extern void __VERIFIER_error() __attribute__ ((__noreturn__)); /* Generated by CIL v. 1.5.1 */ /* print_CIL_Input is false */ typedef unsigned char __u8; typedef unsigned short __u16; typedef int __s32; typedef unsigned int __u32; typedef unsigned long long __u64; typedef signed char s8; typedef unsigned char u8; 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 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 __u16 __le16; typedef __u16 __be16; typedef __u32 __le32; typedef __u32 __be32; typedef __u32 __wsum; struct module; typedef __u32 __kernel_dev_t; typedef __kernel_dev_t dev_t; typedef unsigned short umode_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 __u8 uint8_t; typedef __u32 uint32_t; typedef __u64 uint64_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; 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 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____missing_field_name_9 { unsigned int a ; unsigned int b ; }; struct __anonstruct____missing_field_name_10 { 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____missing_field_name_8 { struct __anonstruct____missing_field_name_9 __annonCompField4 ; struct __anonstruct____missing_field_name_10 __annonCompField5 ; }; struct desc_struct { union __anonunion____missing_field_name_8 __annonCompField6 ; }; typedef unsigned long pteval_t; typedef unsigned long pgdval_t; typedef unsigned long pgprotval_t; struct __anonstruct_pte_t_11 { pteval_t pte ; }; typedef struct __anonstruct_pte_t_11 pte_t; struct pgprot { pgprotval_t pgprot ; }; typedef struct pgprot pgprot_t; struct __anonstruct_pgd_t_12 { pgdval_t pgd ; }; typedef struct __anonstruct_pgd_t_12 pgd_t; struct page; typedef struct page *pgtable_t; struct file; struct seq_file; struct thread_struct; struct mm_struct; struct task_struct; struct cpumask; struct qspinlock { atomic_t val ; }; typedef struct qspinlock arch_spinlock_t; struct qrwlock { atomic_t cnts ; arch_spinlock_t lock ; }; typedef struct qrwlock arch_rwlock_t; struct _ddebug { char const *modname ; char const *function ; char const *filename ; char const *format ; unsigned int lineno : 18 ; unsigned char flags ; }; struct device; struct net_device; struct file_operations; struct completion; struct lockdep_map; 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____missing_field_name_15 { struct pt_regs *regs ; struct kernel_vm86_regs *vm86 ; }; struct math_emu_info { long ___orig_eip ; union __anonunion____missing_field_name_15 __annonCompField7 ; }; struct cpumask { unsigned long bits[128U] ; }; typedef struct cpumask cpumask_t; typedef struct cpumask *cpumask_var_t; struct fregs_state { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u32 status ; }; struct __anonstruct____missing_field_name_25 { u64 rip ; u64 rdp ; }; struct __anonstruct____missing_field_name_26 { u32 fip ; u32 fcs ; u32 foo ; u32 fos ; }; union __anonunion____missing_field_name_24 { struct __anonstruct____missing_field_name_25 __annonCompField11 ; struct __anonstruct____missing_field_name_26 __annonCompField12 ; }; union __anonunion____missing_field_name_27 { u32 padding1[12U] ; u32 sw_reserved[12U] ; }; struct fxregs_state { u16 cwd ; u16 swd ; u16 twd ; u16 fop ; union __anonunion____missing_field_name_24 __annonCompField13 ; u32 mxcsr ; u32 mxcsr_mask ; u32 st_space[32U] ; u32 xmm_space[64U] ; u32 padding[12U] ; union __anonunion____missing_field_name_27 __annonCompField14 ; }; struct swregs_state { 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 xstate_header { u64 xfeatures ; u64 xcomp_bv ; u64 reserved[6U] ; }; struct xregs_state { struct fxregs_state i387 ; struct xstate_header header ; u8 __reserved[464U] ; }; union fpregs_state { struct fregs_state fsave ; struct fxregs_state fxsave ; struct swregs_state soft ; struct xregs_state xsave ; }; struct fpu { union fpregs_state state ; unsigned int last_cpu ; unsigned char fpstate_active ; unsigned char fpregs_active ; unsigned char counter ; }; struct seq_operations; struct perf_event; struct thread_struct { struct desc_struct tls_array[3U] ; unsigned long sp0 ; unsigned long sp ; unsigned short es ; unsigned short ds ; unsigned short fsindex ; unsigned short gsindex ; unsigned long fs ; unsigned long gs ; struct fpu fpu ; struct perf_event *ptrace_bps[4U] ; unsigned long debugreg6 ; unsigned long ptrace_dr7 ; unsigned long cr2 ; unsigned long trap_nr ; unsigned long error_code ; 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 ; }; 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 : 1 ; unsigned char hardirqs_off : 1 ; unsigned short references : 12 ; unsigned int pin_count ; }; 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____missing_field_name_31 { u8 __padding[24U] ; struct lockdep_map dep_map ; }; union __anonunion____missing_field_name_30 { struct raw_spinlock rlock ; struct __anonstruct____missing_field_name_31 __annonCompField16 ; }; struct spinlock { union __anonunion____missing_field_name_30 __annonCompField17 ; }; typedef struct spinlock spinlock_t; struct __anonstruct_rwlock_t_32 { arch_rwlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_rwlock_t_32 rwlock_t; struct optimistic_spin_queue { atomic_t tail ; }; struct mutex { atomic_t count ; spinlock_t wait_lock ; struct list_head wait_list ; struct task_struct *owner ; void *magic ; struct lockdep_map dep_map ; }; struct mutex_waiter { struct list_head list ; struct task_struct *task ; void *magic ; }; struct timespec; struct compat_timespec; struct __anonstruct_futex_34 { u32 *uaddr ; u32 val ; u32 flags ; u32 bitset ; u64 time ; u32 *uaddr2 ; }; struct __anonstruct_nanosleep_35 { clockid_t clockid ; struct timespec *rmtp ; struct compat_timespec *compat_rmtp ; u64 expires ; }; struct pollfd; struct __anonstruct_poll_36 { struct pollfd *ufds ; int nfds ; int has_timeout ; unsigned long tv_sec ; unsigned long tv_nsec ; }; union __anonunion____missing_field_name_33 { struct __anonstruct_futex_34 futex ; struct __anonstruct_nanosleep_35 nanosleep ; struct __anonstruct_poll_36 poll ; }; struct restart_block { long (*fn)(struct restart_block * ) ; union __anonunion____missing_field_name_33 __annonCompField18 ; }; struct seqcount { unsigned int sequence ; struct lockdep_map dep_map ; }; typedef struct seqcount seqcount_t; struct __anonstruct_seqlock_t_45 { struct seqcount seqcount ; spinlock_t lock ; }; typedef struct __anonstruct_seqlock_t_45 seqlock_t; struct timespec { __kernel_time_t tv_sec ; long tv_nsec ; }; typedef unsigned long long cycles_t; union ktime { s64 tv64 ; }; typedef union ktime ktime_t; struct timer_list { struct hlist_node entry ; unsigned long expires ; void (*function)(unsigned long ) ; unsigned long data ; u32 flags ; int slack ; int start_pid ; void *start_site ; char start_comm[16U] ; struct lockdep_map lockdep_map ; }; struct hrtimer; enum hrtimer_restart; struct __wait_queue; typedef struct __wait_queue wait_queue_t; struct __wait_queue { unsigned int flags ; void *private ; int (*func)(wait_queue_t * , unsigned int , int , void * ) ; struct list_head task_list ; }; struct __wait_queue_head { spinlock_t lock ; struct list_head task_list ; }; typedef struct __wait_queue_head wait_queue_head_t; struct completion { unsigned int done ; wait_queue_head_t wait ; }; struct notifier_block; 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 ctl_table; 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____missing_field_name_47 { struct ctl_table *ctl_table ; int used ; int count ; int nreg ; }; union __anonunion____missing_field_name_46 { struct __anonstruct____missing_field_name_47 __annonCompField19 ; struct callback_head rcu ; }; struct ctl_table_set; struct ctl_table_header { union __anonunion____missing_field_name_46 __annonCompField20 ; 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 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 ; struct workqueue_struct *wq ; int cpu ; }; struct vm_area_struct; struct __anonstruct_nodemask_t_48 { unsigned long bits[16U] ; }; typedef struct __anonstruct_nodemask_t_48 nodemask_t; struct rw_semaphore; struct rw_semaphore { long count ; struct list_head wait_list ; raw_spinlock_t wait_lock ; struct optimistic_spin_queue osq ; struct task_struct *owner ; struct lockdep_map dep_map ; }; struct notifier_block { int (*notifier_call)(struct notifier_block * , unsigned long , void * ) ; struct notifier_block *next ; int priority ; }; 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 wake_irq; struct pm_subsys_data { spinlock_t lock ; unsigned int refcount ; struct list_head clock_list ; }; 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 is_noirq_suspended ; bool is_late_suspended ; bool ignore_children ; bool early_init ; bool direct_complete ; 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 ; struct wake_irq *wakeirq ; 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 ; unsigned char memalloc_noio : 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 ; void (*set_latency_tolerance)(struct device * , s32 ) ; struct dev_pm_qos *qos ; }; struct dev_pm_domain { struct dev_pm_ops ops ; void (*detach)(struct device * , bool ) ; int (*activate)(struct device * ) ; void (*sync)(struct device * ) ; void (*dismiss)(struct device * ) ; }; struct __anonstruct_mm_context_t_113 { void *ldt ; int size ; unsigned short ia32_compat ; struct mutex lock ; void *vdso ; atomic_t perf_rdpmc_allowed ; }; typedef struct __anonstruct_mm_context_t_113 mm_context_t; struct bio_vec; struct llist_node; struct llist_node { struct llist_node *next ; }; struct kmem_cache; struct kernel_cap_struct { __u32 cap[2U] ; }; typedef struct kernel_cap_struct kernel_cap_t; struct inode; struct dentry; struct user_namespace; struct plist_node { int prio ; struct list_head prio_list ; struct list_head node_list ; }; 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 __anonstruct____missing_field_name_146 { struct arch_uprobe_task autask ; unsigned long vaddr ; }; struct __anonstruct____missing_field_name_147 { struct callback_head dup_xol_work ; unsigned long dup_xol_addr ; }; union __anonunion____missing_field_name_145 { struct __anonstruct____missing_field_name_146 __annonCompField33 ; struct __anonstruct____missing_field_name_147 __annonCompField34 ; }; struct uprobe; struct return_instance; struct uprobe_task { enum uprobe_task_state state ; union __anonunion____missing_field_name_145 __annonCompField35 ; struct uprobe *active_uprobe ; unsigned long xol_vaddr ; struct return_instance *return_instances ; unsigned int depth ; }; struct xol_area; struct uprobes_state { struct xol_area *xol_area ; }; struct address_space; struct mem_cgroup; typedef void compound_page_dtor(struct page * ); union __anonunion____missing_field_name_148 { struct address_space *mapping ; void *s_mem ; }; union __anonunion____missing_field_name_150 { unsigned long index ; void *freelist ; bool pfmemalloc ; }; struct __anonstruct____missing_field_name_154 { unsigned short inuse ; unsigned short objects : 15 ; unsigned char frozen : 1 ; }; union __anonunion____missing_field_name_153 { atomic_t _mapcount ; struct __anonstruct____missing_field_name_154 __annonCompField38 ; int units ; }; struct __anonstruct____missing_field_name_152 { union __anonunion____missing_field_name_153 __annonCompField39 ; atomic_t _count ; }; union __anonunion____missing_field_name_151 { unsigned long counters ; struct __anonstruct____missing_field_name_152 __annonCompField40 ; unsigned int active ; }; struct __anonstruct____missing_field_name_149 { union __anonunion____missing_field_name_150 __annonCompField37 ; union __anonunion____missing_field_name_151 __annonCompField41 ; }; struct __anonstruct____missing_field_name_156 { struct page *next ; int pages ; int pobjects ; }; struct slab; struct __anonstruct____missing_field_name_157 { compound_page_dtor *compound_dtor ; unsigned long compound_order ; }; union __anonunion____missing_field_name_155 { struct list_head lru ; struct __anonstruct____missing_field_name_156 __annonCompField43 ; struct slab *slab_page ; struct callback_head callback_head ; struct __anonstruct____missing_field_name_157 __annonCompField44 ; pgtable_t pmd_huge_pte ; }; union __anonunion____missing_field_name_158 { unsigned long private ; spinlock_t *ptl ; struct kmem_cache *slab_cache ; struct page *first_page ; }; struct page { unsigned long flags ; union __anonunion____missing_field_name_148 __annonCompField36 ; struct __anonstruct____missing_field_name_149 __annonCompField42 ; union __anonunion____missing_field_name_155 __annonCompField45 ; union __anonunion____missing_field_name_158 __annonCompField46 ; struct mem_cgroup *mem_cgroup ; }; struct page_frag { struct page *page ; __u32 offset ; __u32 size ; }; struct __anonstruct_shared_159 { struct rb_node rb ; unsigned long rb_subtree_last ; }; 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 ; struct __anonstruct_shared_159 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 task_rss_stat { int events ; int count[3U] ; }; struct mm_rss_stat { atomic_long_t count[3U] ; }; struct kioctx_table; struct linux_binfmt; struct mmu_notifier_mm; struct mm_struct { struct vm_area_struct *mmap ; struct rb_root mm_rb ; u32 vmacache_seqnum ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; unsigned long mmap_base ; unsigned long mmap_legacy_base ; unsigned long task_size ; unsigned long highest_vm_end ; pgd_t *pgd ; atomic_t mm_users ; atomic_t mm_count ; atomic_long_t nr_ptes ; atomic_long_t nr_pmds ; 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 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[46U] ; 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 kioctx_table *ioctx_table ; struct task_struct *owner ; struct file *exe_file ; struct mmu_notifier_mm *mmu_notifier_mm ; struct cpumask cpumask_allocation ; unsigned long numa_next_scan ; unsigned long numa_scan_offset ; int numa_scan_seq ; bool tlb_flush_pending ; struct uprobes_state uprobes_state ; void *bd_addr ; }; typedef unsigned long cputime_t; struct __anonstruct_kuid_t_161 { uid_t val ; }; typedef struct __anonstruct_kuid_t_161 kuid_t; struct __anonstruct_kgid_t_162 { gid_t val ; }; typedef struct __anonstruct_kgid_t_162 kgid_t; struct sem_undo_list; struct sysv_sem { struct sem_undo_list *undo_list ; }; struct user_struct; struct sysv_shm { struct list_head shm_clist ; }; struct __anonstruct_sigset_t_163 { unsigned long sig[1U] ; }; typedef struct __anonstruct_sigset_t_163 sigset_t; struct siginfo; typedef void __signalfn_t(int ); typedef __signalfn_t *__sighandler_t; typedef void __restorefn_t(void); typedef __restorefn_t *__sigrestore_t; union sigval { int sival_int ; void *sival_ptr ; }; typedef union sigval sigval_t; struct __anonstruct__kill_165 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; }; struct __anonstruct__timer_166 { __kernel_timer_t _tid ; int _overrun ; char _pad[0U] ; sigval_t _sigval ; int _sys_private ; }; struct __anonstruct__rt_167 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; sigval_t _sigval ; }; struct __anonstruct__sigchld_168 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; int _status ; __kernel_clock_t _utime ; __kernel_clock_t _stime ; }; struct __anonstruct__addr_bnd_170 { void *_lower ; void *_upper ; }; struct __anonstruct__sigfault_169 { void *_addr ; short _addr_lsb ; struct __anonstruct__addr_bnd_170 _addr_bnd ; }; struct __anonstruct__sigpoll_171 { long _band ; int _fd ; }; struct __anonstruct__sigsys_172 { void *_call_addr ; int _syscall ; unsigned int _arch ; }; union __anonunion__sifields_164 { int _pad[28U] ; struct __anonstruct__kill_165 _kill ; struct __anonstruct__timer_166 _timer ; struct __anonstruct__rt_167 _rt ; struct __anonstruct__sigchld_168 _sigchld ; struct __anonstruct__sigfault_169 _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_164 _sifields ; }; typedef struct siginfo siginfo_t; struct sigpending { struct list_head list ; sigset_t signal ; }; struct sigaction { __sighandler_t sa_handler ; unsigned long sa_flags ; __sigrestore_t sa_restorer ; sigset_t sa_mask ; }; struct k_sigaction { struct sigaction sa ; }; 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 percpu_counter { raw_spinlock_t lock ; s64 count ; struct list_head list ; s32 *counters ; }; struct seccomp_filter; struct seccomp { int mode ; struct seccomp_filter *filter ; }; struct rt_mutex_waiter; struct rlimit { __kernel_ulong_t rlim_cur ; __kernel_ulong_t rlim_max ; }; 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 (*get_time)(void) ; ktime_t offset ; }; struct hrtimer_cpu_base { raw_spinlock_t lock ; seqcount_t seq ; struct hrtimer *running ; unsigned int cpu ; unsigned int active_bases ; unsigned int clock_was_set_seq ; bool migration_enabled ; bool nohz_active ; unsigned char in_hrtirq : 1 ; unsigned char hres_active : 1 ; unsigned char hang_detected : 1 ; ktime_t expires_next ; struct hrtimer *next_timer ; unsigned int nr_events ; unsigned int nr_retries ; unsigned int nr_hangs ; unsigned int max_hang_time ; struct hrtimer_clock_base clock_base[4U] ; }; 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 ; }; struct assoc_array_ptr; struct assoc_array { struct assoc_array_ptr *root ; unsigned long nr_leaves_on_tree ; }; typedef int32_t key_serial_t; typedef uint32_t key_perm_t; struct key; struct signal_struct; struct cred; struct key_type; struct keyring_index_key { struct key_type *type ; char const *description ; size_t desc_len ; }; union __anonunion____missing_field_name_179 { struct list_head graveyard_link ; struct rb_node serial_node ; }; struct key_user; union __anonunion____missing_field_name_180 { time_t expiry ; time_t revoked_at ; }; struct __anonstruct____missing_field_name_182 { struct key_type *type ; char *description ; }; union __anonunion____missing_field_name_181 { struct keyring_index_key index_key ; struct __anonstruct____missing_field_name_182 __annonCompField49 ; }; union __anonunion_type_data_183 { struct list_head link ; unsigned long x[2U] ; void *p[2U] ; int reject_error ; }; union __anonunion_payload_185 { unsigned long value ; void *rcudata ; void *data ; void *data2[2U] ; }; union __anonunion____missing_field_name_184 { union __anonunion_payload_185 payload ; struct assoc_array keys ; }; struct key { atomic_t usage ; key_serial_t serial ; union __anonunion____missing_field_name_179 __annonCompField47 ; struct rw_semaphore sem ; struct key_user *user ; void *security ; union __anonunion____missing_field_name_180 __annonCompField48 ; time_t last_used_at ; kuid_t uid ; kgid_t gid ; key_perm_t perm ; unsigned short quotalen ; unsigned short datalen ; unsigned long flags ; union __anonunion____missing_field_name_181 __annonCompField50 ; union __anonunion_type_data_183 type_data ; union __anonunion____missing_field_name_184 __annonCompField51 ; }; struct audit_context; struct group_info { atomic_t usage ; int ngroups ; int nblocks ; kgid_t small_block[32U] ; kgid_t *blocks[0U] ; }; 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 ; void *security ; struct user_struct *user ; struct user_namespace *user_ns ; struct group_info *group_info ; struct callback_head rcu ; }; union __anonunion____missing_field_name_186 { unsigned long bitmap[4U] ; struct callback_head callback_head ; }; struct idr_layer { int prefix ; int layer ; struct idr_layer *ary[256U] ; int count ; union __anonunion____missing_field_name_186 __annonCompField52 ; }; struct idr { struct idr_layer *hint ; struct idr_layer *top ; int layers ; int cur ; spinlock_t lock ; int id_free_cnt ; struct idr_layer *id_free ; }; struct ida_bitmap { long nr_busy ; unsigned long bitmap[15U] ; }; struct ida { struct idr idr ; struct ida_bitmap *free_bitmap ; }; struct percpu_ref; typedef void percpu_ref_func_t(struct percpu_ref * ); struct percpu_ref { atomic_long_t count ; unsigned long percpu_count_ptr ; percpu_ref_func_t *release ; percpu_ref_func_t *confirm_switch ; bool force_atomic ; struct callback_head rcu ; }; struct cgroup; struct cgroup_root; struct cgroup_subsys; struct cgroup_taskset; struct kernfs_node; struct kernfs_ops; struct kernfs_open_file; struct cgroup_subsys_state { struct cgroup *cgroup ; struct cgroup_subsys *ss ; struct percpu_ref refcnt ; struct cgroup_subsys_state *parent ; struct list_head sibling ; struct list_head children ; int id ; unsigned int flags ; u64 serial_nr ; struct callback_head callback_head ; struct work_struct destroy_work ; }; struct css_set { atomic_t refcount ; struct hlist_node hlist ; struct list_head tasks ; struct list_head mg_tasks ; struct list_head cgrp_links ; struct cgroup *dfl_cgrp ; struct cgroup_subsys_state *subsys[12U] ; struct list_head mg_preload_node ; struct list_head mg_node ; struct cgroup *mg_src_cgrp ; struct css_set *mg_dst_cset ; struct list_head e_cset_node[12U] ; struct callback_head callback_head ; }; struct cgroup { struct cgroup_subsys_state self ; unsigned long flags ; int id ; int populated_cnt ; struct kernfs_node *kn ; struct kernfs_node *procs_kn ; struct kernfs_node *populated_kn ; unsigned int subtree_control ; unsigned int child_subsys_mask ; struct cgroup_subsys_state *subsys[12U] ; struct cgroup_root *root ; struct list_head cset_links ; struct list_head e_csets[12U] ; struct list_head pidlists ; struct mutex pidlist_mutex ; wait_queue_head_t offline_waitq ; struct work_struct release_agent_work ; }; struct kernfs_root; struct cgroup_root { struct kernfs_root *kf_root ; unsigned int subsys_mask ; int hierarchy_id ; struct cgroup cgrp ; atomic_t nr_cgrps ; struct list_head root_list ; unsigned int flags ; struct idr cgroup_idr ; char release_agent_path[4096U] ; char name[64U] ; }; struct cftype { char name[64U] ; int private ; umode_t mode ; size_t max_write_len ; unsigned int flags ; struct cgroup_subsys *ss ; struct list_head node ; struct kernfs_ops *kf_ops ; u64 (*read_u64)(struct cgroup_subsys_state * , struct cftype * ) ; s64 (*read_s64)(struct cgroup_subsys_state * , struct cftype * ) ; int (*seq_show)(struct seq_file * , void * ) ; void *(*seq_start)(struct seq_file * , loff_t * ) ; void *(*seq_next)(struct seq_file * , void * , loff_t * ) ; void (*seq_stop)(struct seq_file * , void * ) ; int (*write_u64)(struct cgroup_subsys_state * , struct cftype * , u64 ) ; int (*write_s64)(struct cgroup_subsys_state * , struct cftype * , s64 ) ; ssize_t (*write)(struct kernfs_open_file * , char * , size_t , loff_t ) ; struct lock_class_key lockdep_key ; }; struct cgroup_subsys { struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state * ) ; int (*css_online)(struct cgroup_subsys_state * ) ; void (*css_offline)(struct cgroup_subsys_state * ) ; void (*css_released)(struct cgroup_subsys_state * ) ; void (*css_free)(struct cgroup_subsys_state * ) ; void (*css_reset)(struct cgroup_subsys_state * ) ; void (*css_e_css_changed)(struct cgroup_subsys_state * ) ; int (*can_attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*cancel_attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*attach)(struct cgroup_subsys_state * , struct cgroup_taskset * ) ; void (*fork)(struct task_struct * ) ; void (*exit)(struct cgroup_subsys_state * , struct cgroup_subsys_state * , struct task_struct * ) ; void (*bind)(struct cgroup_subsys_state * ) ; int disabled ; int early_init ; bool broken_hierarchy ; bool warned_broken_hierarchy ; int id ; char const *name ; struct cgroup_root *root ; struct idr css_idr ; struct list_head cfts ; struct cftype *dfl_cftypes ; struct cftype *legacy_cftypes ; unsigned int depends_on ; }; struct futex_pi_state; struct robust_list_head; struct bio_list; struct fs_struct; struct perf_event_context; struct blk_plug; struct nameidata; struct cfs_rq; struct task_group; 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 task_cputime_atomic { atomic64_t utime ; atomic64_t stime ; atomic64_t sum_exec_runtime ; }; struct thread_group_cputimer { struct task_cputime_atomic cputime_atomic ; int running ; }; struct autogroup; struct tty_struct; struct taskstats; struct tty_audit_buf; struct signal_struct { atomic_t sigcnt ; atomic_t live ; int nr_threads ; struct list_head thread_head ; 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 ; int posix_timer_id ; 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 ; seqlock_t stats_lock ; 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 ; unsigned int audit_tty_log_passwd ; struct tty_audit_buf *tty_audit_buf ; 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 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 backing_dev_info; 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 ; u64 blkio_start ; u64 blkio_delay ; u64 swapin_delay ; u32 blkio_count ; u32 swapin_count ; u64 freepages_start ; u64 freepages_delay ; u32 freepages_count ; }; struct wake_q_node { struct wake_q_node *next ; }; struct io_context; struct pipe_inode_info; struct uts_namespace; struct load_weight { unsigned long weight ; u32 inv_weight ; }; struct sched_avg { u64 last_runnable_update ; s64 decay_count ; unsigned long load_avg_contrib ; unsigned long utilization_avg_contrib ; u32 runnable_avg_sum ; u32 avg_period ; u32 running_avg_sum ; }; 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 ; int depth ; 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 long watchdog_stamp ; 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 sched_dl_entity { struct rb_node rb_node ; u64 dl_runtime ; u64 dl_deadline ; u64 dl_period ; u64 dl_bw ; s64 runtime ; u64 deadline ; unsigned int flags ; int dl_throttled ; int dl_new ; int dl_boosted ; int dl_yielded ; struct hrtimer dl_timer ; }; struct memcg_oom_info { struct mem_cgroup *memcg ; gfp_t gfp_mask ; int order ; unsigned char may_oom : 1 ; }; struct sched_class; struct files_struct; struct compat_robust_list_head; struct numa_group; 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 ; struct task_struct *last_wakee ; unsigned long wakee_flips ; unsigned long wakee_flip_decay_ts ; int wake_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 sched_dl_entity dl ; struct hlist_head preempt_notifiers ; unsigned int policy ; int nr_cpus_allowed ; cpumask_t cpus_allowed ; unsigned long rcu_tasks_nvcsw ; bool rcu_tasks_holdout ; struct list_head rcu_tasks_holdout_list ; int rcu_tasks_idle_cpu ; struct sched_info sched_info ; struct list_head tasks ; struct plist_node pushable_tasks ; struct rb_node pushable_dl_tasks ; struct mm_struct *mm ; struct mm_struct *active_mm ; u32 vmacache_seqnum ; struct vm_area_struct *vmacache[4U] ; struct task_rss_stat rss_stat ; int exit_state ; int exit_code ; int exit_signal ; int pdeath_signal ; unsigned long jobctl ; unsigned int personality ; unsigned char in_execve : 1 ; unsigned char in_iowait : 1 ; unsigned char sched_reset_on_fork : 1 ; unsigned char sched_contributes_to_load : 1 ; unsigned char sched_migrated : 1 ; unsigned char memcg_kmem_skip_account : 1 ; unsigned char brk_randomized : 1 ; unsigned long atomic_flags ; struct restart_block restart_block ; pid_t pid ; pid_t tgid ; 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 list_head thread_node ; 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 ; u64 start_time ; u64 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] ; struct nameidata *nameidata ; struct sysv_sem sysvsem ; struct sysv_shm sysvshm ; 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 wake_q_node wake_q ; struct rb_root pi_waiters ; struct rb_node *pi_waiters_leftmost ; 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 ; unsigned int numa_scan_period ; unsigned int numa_scan_period_max ; int numa_preferred_nid ; unsigned long numa_migrate_retry ; u64 node_stamp ; u64 last_task_numa_placement ; u64 last_sum_exec_runtime ; struct callback_head numa_work ; struct list_head numa_entry ; struct numa_group *numa_group ; unsigned long *numa_faults ; unsigned long total_numa_faults ; unsigned long numa_faults_locality[3U] ; unsigned long numa_pages_migrated ; 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 int kasan_depth ; unsigned long trace ; unsigned long trace_recursion ; struct memcg_oom_info memcg_oom ; struct uprobe_task *utask ; unsigned int sequential_io ; unsigned int sequential_io_avg ; unsigned long task_state_change ; int pagefault_disabled ; }; enum irqreturn { IRQ_NONE = 0, IRQ_HANDLED = 1, IRQ_WAKE_THREAD = 2 } ; typedef enum irqreturn irqreturn_t; struct wireless_dev; struct kernel_param; struct wiphy; struct station_info; struct ethtool_coalesce; struct kernel_param_ops { unsigned int flags ; 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____missing_field_name_205 { void *arg ; struct kparam_string const *str ; struct kparam_array const *arr ; }; struct kernel_param { char const *name ; struct module *mod ; struct kernel_param_ops const *ops ; u16 const perm ; s8 level ; u8 flags ; union __anonunion____missing_field_name_205 __annonCompField56 ; }; 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 iovec { void *iov_base ; __kernel_size_t iov_len ; }; struct kvec { void *iov_base ; size_t iov_len ; }; union __anonunion____missing_field_name_206 { struct iovec const *iov ; struct kvec const *kvec ; struct bio_vec const *bvec ; }; struct iov_iter { int type ; size_t iov_offset ; size_t count ; union __anonunion____missing_field_name_206 __annonCompField57 ; unsigned long nr_segs ; }; typedef unsigned short __kernel_sa_family_t; typedef __kernel_sa_family_t sa_family_t; struct sockaddr { sa_family_t sa_family ; char sa_data[14U] ; }; struct kiocb; struct msghdr { void *msg_name ; int msg_namelen ; struct iov_iter msg_iter ; void *msg_control ; __kernel_size_t msg_controllen ; unsigned int msg_flags ; struct kiocb *msg_iocb ; }; enum ldv_17221 { SS_FREE = 0, SS_UNCONNECTED = 1, SS_CONNECTING = 2, SS_CONNECTED = 3, SS_DISCONNECTING = 4 } ; typedef enum ldv_17221 socket_state; struct poll_table_struct; struct net; struct fasync_struct; struct socket_wq { wait_queue_head_t wait ; struct fasync_struct *fasync_list ; struct callback_head rcu ; }; struct sock; struct proto_ops; struct socket { socket_state state ; short type ; unsigned long flags ; struct socket_wq *wq ; struct file *file ; struct sock *sk ; struct proto_ops const *ops ; }; struct proto_ops { int family ; struct module *owner ; int (*release)(struct socket * ) ; int (*bind)(struct socket * , struct sockaddr * , int ) ; int (*connect)(struct socket * , struct sockaddr * , int , int ) ; int (*socketpair)(struct socket * , struct socket * ) ; int (*accept)(struct socket * , struct socket * , int ) ; int (*getname)(struct socket * , struct sockaddr * , int * , int ) ; unsigned int (*poll)(struct file * , struct socket * , struct poll_table_struct * ) ; int (*ioctl)(struct socket * , unsigned int , unsigned long ) ; int (*compat_ioctl)(struct socket * , unsigned int , unsigned long ) ; int (*listen)(struct socket * , int ) ; int (*shutdown)(struct socket * , int ) ; int (*setsockopt)(struct socket * , int , int , char * , unsigned int ) ; int (*getsockopt)(struct socket * , int , int , char * , int * ) ; int (*compat_setsockopt)(struct socket * , int , int , char * , unsigned int ) ; int (*compat_getsockopt)(struct socket * , int , int , char * , int * ) ; int (*sendmsg)(struct socket * , struct msghdr * , size_t ) ; int (*recvmsg)(struct socket * , struct msghdr * , size_t , int ) ; int (*mmap)(struct file * , struct socket * , struct vm_area_struct * ) ; ssize_t (*sendpage)(struct socket * , struct page * , int , size_t , int ) ; ssize_t (*splice_read)(struct socket * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; int (*set_peek_off)(struct sock * , int ) ; }; struct in6_addr; struct sk_buff; struct iattr; struct super_block; struct file_system_type; struct kernfs_open_node; struct kernfs_iattrs; struct kernfs_elem_dir { unsigned long subdirs ; struct rb_root children ; struct kernfs_root *root ; }; struct kernfs_elem_symlink { struct kernfs_node *target_kn ; }; struct kernfs_elem_attr { struct kernfs_ops const *ops ; struct kernfs_open_node *open ; loff_t size ; struct kernfs_node *notify_next ; }; union __anonunion____missing_field_name_207 { struct kernfs_elem_dir dir ; struct kernfs_elem_symlink symlink ; struct kernfs_elem_attr attr ; }; struct kernfs_node { atomic_t count ; atomic_t active ; struct lockdep_map dep_map ; struct kernfs_node *parent ; char const *name ; struct rb_node rb ; void const *ns ; unsigned int hash ; union __anonunion____missing_field_name_207 __annonCompField58 ; void *priv ; unsigned short flags ; umode_t mode ; unsigned int ino ; struct kernfs_iattrs *iattr ; }; struct kernfs_syscall_ops { int (*remount_fs)(struct kernfs_root * , int * , char * ) ; int (*show_options)(struct seq_file * , struct kernfs_root * ) ; int (*mkdir)(struct kernfs_node * , char const * , umode_t ) ; int (*rmdir)(struct kernfs_node * ) ; int (*rename)(struct kernfs_node * , struct kernfs_node * , char const * ) ; }; struct kernfs_root { struct kernfs_node *kn ; unsigned int flags ; struct ida ino_ida ; struct kernfs_syscall_ops *syscall_ops ; struct list_head supers ; wait_queue_head_t deactivate_waitq ; }; struct kernfs_open_file { struct kernfs_node *kn ; struct file *file ; void *priv ; struct mutex mutex ; int event ; struct list_head list ; char *prealloc_buf ; size_t atomic_write_len ; bool mmapped ; struct vm_operations_struct const *vm_ops ; }; struct kernfs_ops { int (*seq_show)(struct seq_file * , void * ) ; void *(*seq_start)(struct seq_file * , loff_t * ) ; void *(*seq_next)(struct seq_file * , void * , loff_t * ) ; void (*seq_stop)(struct seq_file * , void * ) ; ssize_t (*read)(struct kernfs_open_file * , char * , size_t , loff_t ) ; size_t atomic_write_len ; bool prealloc ; ssize_t (*write)(struct kernfs_open_file * , char * , size_t , loff_t ) ; int (*mmap)(struct kernfs_open_file * , struct vm_area_struct * ) ; struct lock_class_key lockdep_key ; }; 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 ; bool (*current_may_mount)(void) ; void *(*grab_current_ns)(void) ; void const *(*netlink_ns)(struct sock * ) ; void const *(*initial_ns)(void) ; void (*drop_ns)(void * ) ; }; 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 bin_attribute; 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 **bin_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 ) ; }; 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 kernfs_node *sd ; struct kref kref ; struct delayed_work release ; 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 *argv[3U] ; 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 path; struct seq_file { char *buf ; size_t size ; size_t from ; size_t count ; size_t pad_until ; loff_t index ; loff_t read_pos ; u64 version ; struct mutex lock ; struct seq_operations const *op ; int poll_event ; struct user_namespace *user_ns ; 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 pinctrl; struct pinctrl_state; struct dev_pin_info { struct pinctrl *p ; struct pinctrl_state *default_state ; struct pinctrl_state *sleep_state ; struct pinctrl_state *idle_state ; }; 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 fwnode_handle; struct iommu_ops; struct iommu_group; struct device_attribute; struct bus_type { char const *name ; char const *dev_name ; struct device *dev_root ; struct device_attribute *dev_attrs ; struct attribute_group const **bus_groups ; struct attribute_group const **dev_groups ; struct attribute_group const **drv_groups ; 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 (*online)(struct device * ) ; int (*offline)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct dev_pm_ops const *pm ; struct iommu_ops const *iommu_ops ; struct subsys_private *p ; struct lock_class_key lock_key ; }; struct device_type; enum probe_type { PROBE_DEFAULT_STRATEGY = 0, PROBE_PREFER_ASYNCHRONOUS = 1, PROBE_FORCE_SYNCHRONOUS = 2 } ; struct of_device_id; struct acpi_device_id; struct device_driver { char const *name ; struct bus_type *bus ; struct module *owner ; char const *mod_name ; bool suppress_bind_attrs ; enum probe_type probe_type ; 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 class_attribute; struct class { char const *name ; struct module *owner ; struct class_attribute *class_attrs ; struct attribute_group const **dev_groups ; 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 ) ; }; 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 * , kuid_t * , kgid_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 cma; 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 ; void *driver_data ; struct dev_pm_info power ; struct dev_pm_domain *pm_domain ; struct dev_pin_info *pins ; int numa_node ; u64 *dma_mask ; u64 coherent_dma_mask ; unsigned long dma_pfn_offset ; struct device_dma_parameters *dma_parms ; struct list_head dma_pools ; struct dma_coherent_mem *dma_mem ; struct cma *cma_area ; struct dev_archdata archdata ; struct device_node *of_node ; struct fwnode_handle *fwnode ; 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 ; bool offline_disabled ; bool offline ; }; struct wakeup_source { char const *name ; struct list_head entry ; spinlock_t lock ; struct wake_irq *wakeirq ; 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 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 shrink_control { gfp_t gfp_mask ; unsigned long nr_to_scan ; int nid ; struct mem_cgroup *memcg ; }; struct shrinker { unsigned long (*count_objects)(struct shrinker * , struct shrink_control * ) ; unsigned long (*scan_objects)(struct shrinker * , struct shrink_control * ) ; int seeks ; long batch ; unsigned long flags ; struct list_head list ; atomic_long_t *nr_deferred ; }; struct file_ra_state; struct writeback_control; struct bdi_writeback; struct vm_fault { unsigned int flags ; unsigned long pgoff ; void *virtual_address ; struct page *cow_page ; struct page *page ; unsigned long max_pgoff ; pte_t *pte ; }; 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 * ) ; void (*map_pages)(struct vm_area_struct * , struct vm_fault * ) ; int (*page_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*pfn_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*access)(struct vm_area_struct * , unsigned long , void * , int , int ) ; char const *(*name)(struct vm_area_struct * ) ; int (*set_policy)(struct vm_area_struct * , struct mempolicy * ) ; struct mempolicy *(*get_policy)(struct vm_area_struct * , unsigned long ) ; struct page *(*find_special_page)(struct vm_area_struct * , unsigned long ) ; }; 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 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 ; }; typedef u64 netdev_features_t; union __anonunion_in6_u_208 { __u8 u6_addr8[16U] ; __be16 u6_addr16[8U] ; __be32 u6_addr32[4U] ; }; struct in6_addr { union __anonunion_in6_u_208 in6_u ; }; struct ethhdr { unsigned char h_dest[6U] ; unsigned char h_source[6U] ; __be16 h_proto ; }; struct pipe_buf_operations; struct pipe_buffer { struct page *page ; unsigned int offset ; unsigned int len ; struct pipe_buf_operations const *ops ; unsigned int flags ; unsigned long private ; }; struct pipe_inode_info { struct mutex mutex ; wait_queue_head_t wait ; unsigned int nrbufs ; unsigned int curbuf ; unsigned int buffers ; unsigned int readers ; unsigned int writers ; unsigned int files ; unsigned int waiting_writers ; unsigned int r_counter ; unsigned int w_counter ; struct page *tmp_page ; struct fasync_struct *fasync_readers ; struct fasync_struct *fasync_writers ; struct pipe_buffer *bufs ; }; struct pipe_buf_operations { int can_merge ; int (*confirm)(struct pipe_inode_info * , struct pipe_buffer * ) ; void (*release)(struct pipe_inode_info * , struct pipe_buffer * ) ; int (*steal)(struct pipe_inode_info * , struct pipe_buffer * ) ; void (*get)(struct pipe_inode_info * , struct pipe_buffer * ) ; }; struct napi_struct; struct nf_conntrack { atomic_t use ; }; union __anonunion____missing_field_name_213 { struct net_device *physoutdev ; char neigh_header[8U] ; }; union __anonunion____missing_field_name_214 { __be32 ipv4_daddr ; struct in6_addr ipv6_daddr ; }; struct nf_bridge_info { atomic_t use ; unsigned char orig_proto ; bool pkt_otherhost ; __u16 frag_max_size ; unsigned int mask ; struct net_device *physindev ; union __anonunion____missing_field_name_213 __annonCompField62 ; union __anonunion____missing_field_name_214 __annonCompField63 ; }; struct sk_buff_head { struct sk_buff *next ; struct sk_buff *prev ; __u32 qlen ; spinlock_t lock ; }; typedef unsigned int sk_buff_data_t; struct __anonstruct____missing_field_name_217 { u32 stamp_us ; u32 stamp_jiffies ; }; union __anonunion____missing_field_name_216 { u64 v64 ; struct __anonstruct____missing_field_name_217 __annonCompField64 ; }; struct skb_mstamp { union __anonunion____missing_field_name_216 __annonCompField65 ; }; union __anonunion____missing_field_name_220 { ktime_t tstamp ; struct skb_mstamp skb_mstamp ; }; struct __anonstruct____missing_field_name_219 { struct sk_buff *next ; struct sk_buff *prev ; union __anonunion____missing_field_name_220 __annonCompField66 ; }; union __anonunion____missing_field_name_218 { struct __anonstruct____missing_field_name_219 __annonCompField67 ; struct rb_node rbnode ; }; struct sec_path; struct __anonstruct____missing_field_name_222 { __u16 csum_start ; __u16 csum_offset ; }; union __anonunion____missing_field_name_221 { __wsum csum ; struct __anonstruct____missing_field_name_222 __annonCompField69 ; }; union __anonunion____missing_field_name_223 { unsigned int napi_id ; unsigned int sender_cpu ; }; union __anonunion____missing_field_name_224 { __u32 mark ; __u32 reserved_tailroom ; }; union __anonunion____missing_field_name_225 { __be16 inner_protocol ; __u8 inner_ipproto ; }; struct sk_buff { union __anonunion____missing_field_name_218 __annonCompField68 ; struct sock *sk ; struct net_device *dev ; char cb[48U] ; unsigned long _skb_refdst ; void (*destructor)(struct sk_buff * ) ; struct sec_path *sp ; struct nf_conntrack *nfct ; struct nf_bridge_info *nf_bridge ; unsigned int len ; unsigned int data_len ; __u16 mac_len ; __u16 hdr_len ; __u16 queue_mapping ; unsigned char cloned : 1 ; unsigned char nohdr : 1 ; unsigned char fclone : 2 ; unsigned char peeked : 1 ; unsigned char head_frag : 1 ; unsigned char xmit_more : 1 ; __u32 headers_start[0U] ; __u8 __pkt_type_offset[0U] ; unsigned char pkt_type : 3 ; unsigned char pfmemalloc : 1 ; unsigned char ignore_df : 1 ; unsigned char nfctinfo : 3 ; unsigned char nf_trace : 1 ; unsigned char ip_summed : 2 ; unsigned char ooo_okay : 1 ; unsigned char l4_hash : 1 ; unsigned char sw_hash : 1 ; unsigned char wifi_acked_valid : 1 ; unsigned char wifi_acked : 1 ; unsigned char no_fcs : 1 ; unsigned char encapsulation : 1 ; unsigned char encap_hdr_csum : 1 ; unsigned char csum_valid : 1 ; unsigned char csum_complete_sw : 1 ; unsigned char csum_level : 2 ; unsigned char csum_bad : 1 ; unsigned char ndisc_nodetype : 2 ; unsigned char ipvs_property : 1 ; unsigned char inner_protocol_type : 1 ; unsigned char remcsum_offload : 1 ; __u16 tc_index ; __u16 tc_verd ; union __anonunion____missing_field_name_221 __annonCompField70 ; __u32 priority ; int skb_iif ; __u32 hash ; __be16 vlan_proto ; __u16 vlan_tci ; union __anonunion____missing_field_name_223 __annonCompField71 ; __u32 secmark ; union __anonunion____missing_field_name_224 __annonCompField72 ; union __anonunion____missing_field_name_225 __annonCompField73 ; __u16 inner_transport_header ; __u16 inner_network_header ; __u16 inner_mac_header ; __be16 protocol ; __u16 transport_header ; __u16 network_header ; __u16 mac_header ; __u32 headers_end[0U] ; sk_buff_data_t tail ; sk_buff_data_t end ; unsigned char *head ; unsigned char *data ; unsigned int truesize ; atomic_t users ; }; struct dst_entry; struct dql { unsigned int num_queued ; unsigned int adj_limit ; unsigned int last_obj_cnt ; unsigned int limit ; unsigned int num_completed ; unsigned int prev_ovlimit ; unsigned int prev_num_queued ; unsigned int prev_last_obj_cnt ; unsigned int lowest_slack ; unsigned long slack_start_time ; unsigned int max_limit ; unsigned int min_limit ; unsigned int slack_hold_time ; }; struct __anonstruct_sync_serial_settings_227 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; }; typedef struct __anonstruct_sync_serial_settings_227 sync_serial_settings; struct __anonstruct_te1_settings_228 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; unsigned int slot_map ; }; typedef struct __anonstruct_te1_settings_228 te1_settings; struct __anonstruct_raw_hdlc_proto_229 { unsigned short encoding ; unsigned short parity ; }; typedef struct __anonstruct_raw_hdlc_proto_229 raw_hdlc_proto; struct __anonstruct_fr_proto_230 { unsigned int t391 ; unsigned int t392 ; unsigned int n391 ; unsigned int n392 ; unsigned int n393 ; unsigned short lmi ; unsigned short dce ; }; typedef struct __anonstruct_fr_proto_230 fr_proto; struct __anonstruct_fr_proto_pvc_231 { unsigned int dlci ; }; typedef struct __anonstruct_fr_proto_pvc_231 fr_proto_pvc; struct __anonstruct_fr_proto_pvc_info_232 { unsigned int dlci ; char master[16U] ; }; typedef struct __anonstruct_fr_proto_pvc_info_232 fr_proto_pvc_info; struct __anonstruct_cisco_proto_233 { unsigned int interval ; unsigned int timeout ; }; typedef struct __anonstruct_cisco_proto_233 cisco_proto; struct ifmap { unsigned long mem_start ; unsigned long mem_end ; unsigned short base_addr ; unsigned char irq ; unsigned char dma ; unsigned char port ; }; union __anonunion_ifs_ifsu_234 { raw_hdlc_proto *raw_hdlc ; cisco_proto *cisco ; fr_proto *fr ; fr_proto_pvc *fr_pvc ; fr_proto_pvc_info *fr_pvc_info ; sync_serial_settings *sync ; te1_settings *te1 ; }; struct if_settings { unsigned int type ; unsigned int size ; union __anonunion_ifs_ifsu_234 ifs_ifsu ; }; union __anonunion_ifr_ifrn_235 { char ifrn_name[16U] ; }; union __anonunion_ifr_ifru_236 { struct sockaddr ifru_addr ; struct sockaddr ifru_dstaddr ; struct sockaddr ifru_broadaddr ; struct sockaddr ifru_netmask ; struct sockaddr ifru_hwaddr ; short ifru_flags ; int ifru_ivalue ; int ifru_mtu ; struct ifmap ifru_map ; char ifru_slave[16U] ; char ifru_newname[16U] ; void *ifru_data ; struct if_settings ifru_settings ; }; struct ifreq { union __anonunion_ifr_ifrn_235 ifr_ifrn ; union __anonunion_ifr_ifru_236 ifr_ifru ; }; 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 __anonstruct____missing_field_name_241 { spinlock_t lock ; int count ; }; union __anonunion____missing_field_name_240 { struct __anonstruct____missing_field_name_241 __annonCompField74 ; }; struct lockref { union __anonunion____missing_field_name_240 __annonCompField75 ; }; struct vfsmount; struct __anonstruct____missing_field_name_243 { u32 hash ; u32 len ; }; union __anonunion____missing_field_name_242 { struct __anonstruct____missing_field_name_243 __annonCompField76 ; u64 hash_len ; }; struct qstr { union __anonunion____missing_field_name_242 __annonCompField77 ; unsigned char const *name ; }; struct dentry_operations; union __anonunion_d_u_244 { struct hlist_node d_alias ; 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] ; struct lockref d_lockref ; struct dentry_operations const *d_op ; struct super_block *d_sb ; unsigned long d_time ; void *d_fsdata ; struct list_head d_lru ; struct list_head d_child ; struct list_head d_subdirs ; union __anonunion_d_u_244 d_u ; }; struct dentry_operations { int (*d_revalidate)(struct dentry * , unsigned int ) ; int (*d_weak_revalidate)(struct dentry * , unsigned int ) ; int (*d_hash)(struct dentry const * , struct qstr * ) ; int (*d_compare)(struct dentry const * , struct dentry 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 inode *(*d_select_inode)(struct dentry * , unsigned int ) ; }; struct path { struct vfsmount *mnt ; struct dentry *dentry ; }; struct list_lru_one { struct list_head list ; long nr_items ; }; struct list_lru_memcg { struct list_lru_one *lru[0U] ; }; struct list_lru_node { spinlock_t lock ; struct list_lru_one lru ; struct list_lru_memcg *memcg_lrus ; }; struct list_lru { struct list_lru_node *node ; struct list_head list ; }; struct __anonstruct____missing_field_name_248 { struct radix_tree_node *parent ; void *private_data ; }; union __anonunion____missing_field_name_247 { struct __anonstruct____missing_field_name_248 __annonCompField78 ; struct callback_head callback_head ; }; struct radix_tree_node { unsigned int path ; unsigned int count ; union __anonunion____missing_field_name_247 __annonCompField79 ; struct list_head private_list ; void *slots[64U] ; unsigned long tags[3U][1U] ; }; struct radix_tree_root { unsigned int height ; gfp_t gfp_mask ; struct radix_tree_node *rnode ; }; 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 block_device; struct bio_vec { struct page *bv_page ; unsigned int bv_len ; unsigned int bv_offset ; }; struct export_operations; 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 dquot; typedef __kernel_uid32_t projid_t; struct __anonstruct_kprojid_t_252 { projid_t val ; }; typedef struct __anonstruct_kprojid_t_252 kprojid_t; enum quota_type { USRQUOTA = 0, GRPQUOTA = 1, PRJQUOTA = 2 } ; typedef long long qsize_t; union __anonunion____missing_field_name_253 { kuid_t uid ; kgid_t gid ; kprojid_t projid ; }; struct kqid { union __anonunion____missing_field_name_253 __annonCompField81 ; 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_max_spc_limit ; qsize_t dqi_max_ino_limit ; 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 * ) ; int (*get_projid)(struct inode * , kprojid_t * ) ; }; struct qc_dqblk { int d_fieldmask ; u64 d_spc_hardlimit ; u64 d_spc_softlimit ; u64 d_ino_hardlimit ; u64 d_ino_softlimit ; u64 d_space ; u64 d_ino_count ; s64 d_ino_timer ; s64 d_spc_timer ; int d_ino_warns ; int d_spc_warns ; u64 d_rt_spc_hardlimit ; u64 d_rt_spc_softlimit ; u64 d_rt_space ; s64 d_rt_spc_timer ; int d_rt_spc_warns ; }; struct qc_type_state { unsigned int flags ; unsigned int spc_timelimit ; unsigned int ino_timelimit ; unsigned int rt_spc_timelimit ; unsigned int spc_warnlimit ; unsigned int ino_warnlimit ; unsigned int rt_spc_warnlimit ; unsigned long long ino ; blkcnt_t blocks ; blkcnt_t nextents ; }; struct qc_state { unsigned int s_incoredqs ; struct qc_type_state s_state[3U] ; }; struct qc_info { int i_fieldmask ; unsigned int i_flags ; unsigned int i_spc_timelimit ; unsigned int i_ino_timelimit ; unsigned int i_rt_spc_timelimit ; unsigned int i_spc_warnlimit ; unsigned int i_ino_warnlimit ; unsigned int i_rt_spc_warnlimit ; }; struct quotactl_ops { int (*quota_on)(struct super_block * , int , int , struct path * ) ; int (*quota_off)(struct super_block * , int ) ; int (*quota_enable)(struct super_block * , unsigned int ) ; int (*quota_disable)(struct super_block * , unsigned int ) ; int (*quota_sync)(struct super_block * , int ) ; int (*set_info)(struct super_block * , int , struct qc_info * ) ; int (*get_dqblk)(struct super_block * , struct kqid , struct qc_dqblk * ) ; int (*set_dqblk)(struct super_block * , struct kqid , struct qc_dqblk * ) ; int (*get_state)(struct super_block * , struct qc_state * ) ; int (*rm_xquota)(struct super_block * , unsigned 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 inode *files[3U] ; struct mem_dqinfo info[3U] ; struct quota_format_ops const *ops[3U] ; }; struct kiocb { struct file *ki_filp ; loff_t ki_pos ; void (*ki_complete)(struct kiocb * , long , long ) ; void *private ; int ki_flags ; }; 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 int , unsigned int ) ; int (*releasepage)(struct page * , gfp_t ) ; void (*freepage)(struct page * ) ; ssize_t (*direct_IO)(struct kiocb * , struct iov_iter * , loff_t ) ; int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode ) ; int (*launder_page)(struct page * ) ; int (*is_partially_uptodate)(struct page * , unsigned long , unsigned long ) ; void (*is_dirty_writeback)(struct page * , bool * , bool * ) ; 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 address_space { struct inode *host ; struct radix_tree_root page_tree ; spinlock_t tree_lock ; atomic_t i_mmap_writable ; struct rb_root i_mmap ; struct rw_semaphore i_mmap_rwsem ; unsigned long nrpages ; unsigned long nrshadows ; unsigned long writeback_index ; struct address_space_operations const *a_ops ; unsigned long flags ; 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____missing_field_name_256 { unsigned int const i_nlink ; unsigned int __i_nlink ; }; union __anonunion____missing_field_name_257 { struct hlist_head i_dentry ; struct callback_head i_rcu ; }; struct file_lock_context; struct cdev; union __anonunion____missing_field_name_258 { struct pipe_inode_info *i_pipe ; struct block_device *i_bdev ; struct cdev *i_cdev ; char *i_link ; }; 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____missing_field_name_256 __annonCompField82 ; 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 ; unsigned long dirtied_time_when ; struct hlist_node i_hash ; struct list_head i_wb_list ; struct bdi_writeback *i_wb ; int i_wb_frn_winner ; u16 i_wb_frn_avg_time ; u16 i_wb_frn_history ; struct list_head i_lru ; struct list_head i_sb_list ; union __anonunion____missing_field_name_257 __annonCompField83 ; u64 i_version ; atomic_t i_count ; atomic_t i_dio_count ; atomic_t i_writecount ; atomic_t i_readcount ; struct file_operations const *i_fop ; struct file_lock_context *i_flctx ; struct address_space i_data ; struct list_head i_devices ; union __anonunion____missing_field_name_258 __annonCompField84 ; __u32 i_generation ; __u32 i_fsnotify_mask ; struct hlist_head i_fsnotify_marks ; 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_259 { struct llist_node fu_llist ; struct callback_head fu_rcuhead ; }; struct file { union __anonunion_f_u_259 f_u ; struct path f_path ; struct inode *f_inode ; struct file_operations const *f_op ; spinlock_t f_lock ; atomic_long_t f_count ; unsigned int f_flags ; fmode_t f_mode ; struct mutex f_pos_lock ; 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 ; }; typedef void *fl_owner_t; struct file_lock; 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 * ) ; unsigned long (*lm_owner_key)(struct file_lock * ) ; fl_owner_t (*lm_get_owner)(fl_owner_t ) ; void (*lm_put_owner)(fl_owner_t ) ; void (*lm_notify)(struct file_lock * ) ; int (*lm_grant)(struct file_lock * , int ) ; bool (*lm_break)(struct file_lock * ) ; int (*lm_change)(struct file_lock * , int , struct list_head * ) ; void (*lm_setup)(struct file_lock * , void ** ) ; }; 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 __anonstruct_afs_261 { struct list_head link ; int state ; }; union __anonunion_fl_u_260 { struct nfs_lock_info nfs_fl ; struct nfs4_lock_info nfs4_fl ; struct __anonstruct_afs_261 afs ; }; struct file_lock { struct file_lock *fl_next ; struct list_head fl_list ; struct hlist_node fl_link ; struct list_head fl_block ; fl_owner_t fl_owner ; unsigned int fl_flags ; unsigned char fl_type ; unsigned int fl_pid ; int fl_link_cpu ; 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_260 fl_u ; }; struct file_lock_context { spinlock_t flc_lock ; struct list_head flc_flock ; struct list_head flc_posix ; struct list_head flc_lease ; }; 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 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_iflags ; 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_mounts ; struct block_device *s_bdev ; struct backing_dev_info *s_bdi ; struct mtd_info *s_mtd ; struct hlist_node s_instances ; unsigned int s_quota_types ; 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 workqueue_struct *s_dio_done_wq ; struct hlist_head s_pins ; struct list_lru s_dentry_lru ; struct list_lru s_inode_lru ; struct callback_head rcu ; int s_stack_depth ; }; 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 dir_context; struct dir_context { int (*actor)(struct dir_context * , char const * , int , loff_t , u64 , unsigned int ) ; loff_t pos ; }; 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 (*read_iter)(struct kiocb * , struct iov_iter * ) ; ssize_t (*write_iter)(struct kiocb * , struct iov_iter * ) ; int (*iterate)(struct file * , struct dir_context * ) ; 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 (*mremap)(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 ** , void ** ) ; long (*fallocate)(struct file * , int , loff_t , loff_t ) ; void (*show_fdinfo)(struct seq_file * , struct file * ) ; }; struct inode_operations { struct dentry *(*lookup)(struct inode * , struct dentry * , unsigned int ) ; char const *(*follow_link)(struct dentry * , void ** ) ; int (*permission)(struct inode * , int ) ; struct posix_acl *(*get_acl)(struct inode * , int ) ; int (*readlink)(struct dentry * , char * , int ) ; void (*put_link)(struct inode * , 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 (*rename2)(struct inode * , struct dentry * , struct inode * , struct dentry * , unsigned 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 * ) ; 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 * ) ; int (*tmpfile)(struct inode * , struct dentry * , umode_t ) ; int (*set_acl)(struct inode * , struct posix_acl * , 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_super)(struct super_block * ) ; int (*freeze_fs)(struct super_block * ) ; int (*thaw_super)(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 ) ; struct dquot **(*get_dquots)(struct inode * ) ; int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ; long (*nr_cached_objects)(struct super_block * , struct shrink_control * ) ; long (*free_cached_objects)(struct super_block * , struct shrink_control * ) ; }; 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 s32 compat_time_t; typedef s32 compat_long_t; typedef u32 compat_uptr_t; struct compat_timespec { compat_time_t tv_sec ; s32 tv_nsec ; }; 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 ethtool_cmd { __u32 cmd ; __u32 supported ; __u32 advertising ; __u16 speed ; __u8 duplex ; __u8 port ; __u8 phy_address ; __u8 transceiver ; __u8 autoneg ; __u8 mdio_support ; __u32 maxtxpkt ; __u32 maxrxpkt ; __u16 speed_hi ; __u8 eth_tp_mdix ; __u8 eth_tp_mdix_ctrl ; __u32 lp_advertising ; __u32 reserved[2U] ; }; struct ethtool_drvinfo { __u32 cmd ; char driver[32U] ; char version[32U] ; char fw_version[32U] ; char bus_info[32U] ; char erom_version[32U] ; char reserved2[12U] ; __u32 n_priv_flags ; __u32 n_stats ; __u32 testinfo_len ; __u32 eedump_len ; __u32 regdump_len ; }; struct ethtool_wolinfo { __u32 cmd ; __u32 supported ; __u32 wolopts ; __u8 sopass[6U] ; }; struct ethtool_tunable { __u32 cmd ; __u32 id ; __u32 type_id ; __u32 len ; void *data[0U] ; }; struct ethtool_regs { __u32 cmd ; __u32 version ; __u32 len ; __u8 data[0U] ; }; struct ethtool_eeprom { __u32 cmd ; __u32 magic ; __u32 offset ; __u32 len ; __u8 data[0U] ; }; struct ethtool_eee { __u32 cmd ; __u32 supported ; __u32 advertised ; __u32 lp_advertised ; __u32 eee_active ; __u32 eee_enabled ; __u32 tx_lpi_enabled ; __u32 tx_lpi_timer ; __u32 reserved[2U] ; }; struct ethtool_modinfo { __u32 cmd ; __u32 type ; __u32 eeprom_len ; __u32 reserved[8U] ; }; struct ethtool_coalesce { __u32 cmd ; __u32 rx_coalesce_usecs ; __u32 rx_max_coalesced_frames ; __u32 rx_coalesce_usecs_irq ; __u32 rx_max_coalesced_frames_irq ; __u32 tx_coalesce_usecs ; __u32 tx_max_coalesced_frames ; __u32 tx_coalesce_usecs_irq ; __u32 tx_max_coalesced_frames_irq ; __u32 stats_block_coalesce_usecs ; __u32 use_adaptive_rx_coalesce ; __u32 use_adaptive_tx_coalesce ; __u32 pkt_rate_low ; __u32 rx_coalesce_usecs_low ; __u32 rx_max_coalesced_frames_low ; __u32 tx_coalesce_usecs_low ; __u32 tx_max_coalesced_frames_low ; __u32 pkt_rate_high ; __u32 rx_coalesce_usecs_high ; __u32 rx_max_coalesced_frames_high ; __u32 tx_coalesce_usecs_high ; __u32 tx_max_coalesced_frames_high ; __u32 rate_sample_interval ; }; struct ethtool_ringparam { __u32 cmd ; __u32 rx_max_pending ; __u32 rx_mini_max_pending ; __u32 rx_jumbo_max_pending ; __u32 tx_max_pending ; __u32 rx_pending ; __u32 rx_mini_pending ; __u32 rx_jumbo_pending ; __u32 tx_pending ; }; struct ethtool_channels { __u32 cmd ; __u32 max_rx ; __u32 max_tx ; __u32 max_other ; __u32 max_combined ; __u32 rx_count ; __u32 tx_count ; __u32 other_count ; __u32 combined_count ; }; struct ethtool_pauseparam { __u32 cmd ; __u32 autoneg ; __u32 rx_pause ; __u32 tx_pause ; }; struct ethtool_test { __u32 cmd ; __u32 flags ; __u32 reserved ; __u32 len ; __u64 data[0U] ; }; struct ethtool_stats { __u32 cmd ; __u32 n_stats ; __u64 data[0U] ; }; struct ethtool_tcpip4_spec { __be32 ip4src ; __be32 ip4dst ; __be16 psrc ; __be16 pdst ; __u8 tos ; }; struct ethtool_ah_espip4_spec { __be32 ip4src ; __be32 ip4dst ; __be32 spi ; __u8 tos ; }; struct ethtool_usrip4_spec { __be32 ip4src ; __be32 ip4dst ; __be32 l4_4_bytes ; __u8 tos ; __u8 ip_ver ; __u8 proto ; }; union ethtool_flow_union { struct ethtool_tcpip4_spec tcp_ip4_spec ; struct ethtool_tcpip4_spec udp_ip4_spec ; struct ethtool_tcpip4_spec sctp_ip4_spec ; struct ethtool_ah_espip4_spec ah_ip4_spec ; struct ethtool_ah_espip4_spec esp_ip4_spec ; struct ethtool_usrip4_spec usr_ip4_spec ; struct ethhdr ether_spec ; __u8 hdata[52U] ; }; struct ethtool_flow_ext { __u8 padding[2U] ; unsigned char h_dest[6U] ; __be16 vlan_etype ; __be16 vlan_tci ; __be32 data[2U] ; }; struct ethtool_rx_flow_spec { __u32 flow_type ; union ethtool_flow_union h_u ; struct ethtool_flow_ext h_ext ; union ethtool_flow_union m_u ; struct ethtool_flow_ext m_ext ; __u64 ring_cookie ; __u32 location ; }; struct ethtool_rxnfc { __u32 cmd ; __u32 flow_type ; __u64 data ; struct ethtool_rx_flow_spec fs ; __u32 rule_cnt ; __u32 rule_locs[0U] ; }; struct ethtool_flash { __u32 cmd ; __u32 region ; char data[128U] ; }; struct ethtool_dump { __u32 cmd ; __u32 version ; __u32 flag ; __u32 len ; __u8 data[0U] ; }; struct ethtool_ts_info { __u32 cmd ; __u32 so_timestamping ; __s32 phc_index ; __u32 tx_types ; __u32 tx_reserved[3U] ; __u32 rx_filters ; __u32 rx_reserved[3U] ; }; enum ethtool_phys_id_state { ETHTOOL_ID_INACTIVE = 0, ETHTOOL_ID_ACTIVE = 1, ETHTOOL_ID_ON = 2, ETHTOOL_ID_OFF = 3 } ; struct ethtool_ops { int (*get_settings)(struct net_device * , struct ethtool_cmd * ) ; int (*set_settings)(struct net_device * , struct ethtool_cmd * ) ; void (*get_drvinfo)(struct net_device * , struct ethtool_drvinfo * ) ; int (*get_regs_len)(struct net_device * ) ; void (*get_regs)(struct net_device * , struct ethtool_regs * , void * ) ; void (*get_wol)(struct net_device * , struct ethtool_wolinfo * ) ; int (*set_wol)(struct net_device * , struct ethtool_wolinfo * ) ; u32 (*get_msglevel)(struct net_device * ) ; void (*set_msglevel)(struct net_device * , u32 ) ; int (*nway_reset)(struct net_device * ) ; u32 (*get_link)(struct net_device * ) ; int (*get_eeprom_len)(struct net_device * ) ; int (*get_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*set_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*get_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; int (*set_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; void (*get_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; int (*set_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; void (*get_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; int (*set_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; void (*self_test)(struct net_device * , struct ethtool_test * , u64 * ) ; void (*get_strings)(struct net_device * , u32 , u8 * ) ; int (*set_phys_id)(struct net_device * , enum ethtool_phys_id_state ) ; void (*get_ethtool_stats)(struct net_device * , struct ethtool_stats * , u64 * ) ; int (*begin)(struct net_device * ) ; void (*complete)(struct net_device * ) ; u32 (*get_priv_flags)(struct net_device * ) ; int (*set_priv_flags)(struct net_device * , u32 ) ; int (*get_sset_count)(struct net_device * , int ) ; int (*get_rxnfc)(struct net_device * , struct ethtool_rxnfc * , u32 * ) ; int (*set_rxnfc)(struct net_device * , struct ethtool_rxnfc * ) ; int (*flash_device)(struct net_device * , struct ethtool_flash * ) ; int (*reset)(struct net_device * , u32 * ) ; u32 (*get_rxfh_key_size)(struct net_device * ) ; u32 (*get_rxfh_indir_size)(struct net_device * ) ; int (*get_rxfh)(struct net_device * , u32 * , u8 * , u8 * ) ; int (*set_rxfh)(struct net_device * , u32 const * , u8 const * , u8 const ) ; void (*get_channels)(struct net_device * , struct ethtool_channels * ) ; int (*set_channels)(struct net_device * , struct ethtool_channels * ) ; int (*get_dump_flag)(struct net_device * , struct ethtool_dump * ) ; int (*get_dump_data)(struct net_device * , struct ethtool_dump * , void * ) ; int (*set_dump)(struct net_device * , struct ethtool_dump * ) ; int (*get_ts_info)(struct net_device * , struct ethtool_ts_info * ) ; int (*get_module_info)(struct net_device * , struct ethtool_modinfo * ) ; int (*get_module_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ; int (*get_eee)(struct net_device * , struct ethtool_eee * ) ; int (*set_eee)(struct net_device * , struct ethtool_eee * ) ; int (*get_tunable)(struct net_device * , struct ethtool_tunable const * , void * ) ; int (*set_tunable)(struct net_device * , struct ethtool_tunable const * , void const * ) ; }; struct prot_inuse; struct netns_core { struct ctl_table_header *sysctl_hdr ; int sysctl_somaxconn ; struct prot_inuse *inuse ; }; struct u64_stats_sync { }; struct ipstats_mib { u64 mibs[36U] ; struct u64_stats_sync syncp ; }; struct icmp_mib { unsigned long mibs[28U] ; }; struct icmpmsg_mib { atomic_long_t mibs[512U] ; }; struct icmpv6_mib { unsigned long mibs[6U] ; }; struct icmpv6msg_mib { atomic_long_t mibs[512U] ; }; struct tcp_mib { unsigned long mibs[16U] ; }; struct udp_mib { unsigned long mibs[9U] ; }; struct linux_mib { unsigned long mibs[115U] ; }; struct linux_xfrm_mib { unsigned long mibs[29U] ; }; struct proc_dir_entry; struct netns_mib { struct tcp_mib *tcp_statistics ; struct ipstats_mib *ip_statistics ; struct linux_mib *net_statistics ; struct udp_mib *udp_statistics ; struct udp_mib *udplite_statistics ; struct icmp_mib *icmp_statistics ; struct icmpmsg_mib *icmpmsg_statistics ; struct proc_dir_entry *proc_net_devsnmp6 ; struct udp_mib *udp_stats_in6 ; struct udp_mib *udplite_stats_in6 ; struct ipstats_mib *ipv6_statistics ; struct icmpv6_mib *icmpv6_statistics ; struct icmpv6msg_mib *icmpv6msg_statistics ; struct linux_xfrm_mib *xfrm_statistics ; }; struct netns_unix { int sysctl_max_dgram_qlen ; struct ctl_table_header *ctl ; }; struct netns_packet { struct mutex sklist_lock ; struct hlist_head sklist ; }; struct netns_frags { struct percpu_counter mem ; int timeout ; int high_thresh ; int low_thresh ; }; struct ipv4_devconf; struct fib_rules_ops; struct fib_table; struct local_ports { seqlock_t lock ; int range[2U] ; bool warned ; }; struct ping_group_range { seqlock_t lock ; kgid_t range[2U] ; }; struct inet_peer_base; struct xt_table; struct netns_ipv4 { struct ctl_table_header *forw_hdr ; struct ctl_table_header *frags_hdr ; struct ctl_table_header *ipv4_hdr ; struct ctl_table_header *route_hdr ; struct ctl_table_header *xfrm4_hdr ; struct ipv4_devconf *devconf_all ; struct ipv4_devconf *devconf_dflt ; struct fib_rules_ops *rules_ops ; bool fib_has_custom_rules ; struct fib_table *fib_local ; struct fib_table *fib_main ; struct fib_table *fib_default ; int fib_num_tclassid_users ; struct hlist_head *fib_table_hash ; bool fib_offload_disabled ; struct sock *fibnl ; struct sock **icmp_sk ; struct sock *mc_autojoin_sk ; struct inet_peer_base *peers ; struct sock **tcp_sk ; struct netns_frags frags ; struct xt_table *iptable_filter ; struct xt_table *iptable_mangle ; struct xt_table *iptable_raw ; struct xt_table *arptable_filter ; struct xt_table *iptable_security ; struct xt_table *nat_table ; int sysctl_icmp_echo_ignore_all ; int sysctl_icmp_echo_ignore_broadcasts ; int sysctl_icmp_ignore_bogus_error_responses ; int sysctl_icmp_ratelimit ; int sysctl_icmp_ratemask ; int sysctl_icmp_errors_use_inbound_ifaddr ; struct local_ports ip_local_ports ; int sysctl_tcp_ecn ; int sysctl_tcp_ecn_fallback ; int sysctl_ip_no_pmtu_disc ; int sysctl_ip_fwd_use_pmtu ; int sysctl_ip_nonlocal_bind ; int sysctl_fwmark_reflect ; int sysctl_tcp_fwmark_accept ; int sysctl_tcp_mtu_probing ; int sysctl_tcp_base_mss ; int sysctl_tcp_probe_threshold ; u32 sysctl_tcp_probe_interval ; struct ping_group_range ping_group_range ; atomic_t dev_addr_genid ; unsigned long *sysctl_local_reserved_ports ; struct list_head mr_tables ; struct fib_rules_ops *mr_rules_ops ; atomic_t rt_genid ; }; struct neighbour; struct dst_ops { unsigned short family ; unsigned int gc_thresh ; int (*gc)(struct dst_ops * ) ; struct dst_entry *(*check)(struct dst_entry * , __u32 ) ; unsigned int (*default_advmss)(struct dst_entry const * ) ; unsigned int (*mtu)(struct dst_entry const * ) ; u32 *(*cow_metrics)(struct dst_entry * , unsigned long ) ; void (*destroy)(struct dst_entry * ) ; void (*ifdown)(struct dst_entry * , struct net_device * , int ) ; struct dst_entry *(*negative_advice)(struct dst_entry * ) ; void (*link_failure)(struct sk_buff * ) ; void (*update_pmtu)(struct dst_entry * , struct sock * , struct sk_buff * , u32 ) ; void (*redirect)(struct dst_entry * , struct sock * , struct sk_buff * ) ; int (*local_out)(struct sk_buff * ) ; struct neighbour *(*neigh_lookup)(struct dst_entry const * , struct sk_buff * , void const * ) ; struct kmem_cache *kmem_cachep ; struct percpu_counter pcpuc_entries ; }; struct netns_sysctl_ipv6 { struct ctl_table_header *hdr ; struct ctl_table_header *route_hdr ; struct ctl_table_header *icmp_hdr ; struct ctl_table_header *frags_hdr ; struct ctl_table_header *xfrm6_hdr ; int bindv6only ; int flush_delay ; int ip6_rt_max_size ; int ip6_rt_gc_min_interval ; int ip6_rt_gc_timeout ; int ip6_rt_gc_interval ; int ip6_rt_gc_elasticity ; int ip6_rt_mtu_expires ; int ip6_rt_min_advmss ; int flowlabel_consistency ; int auto_flowlabels ; int icmpv6_time ; int anycast_src_echo_reply ; int fwmark_reflect ; int idgen_retries ; int idgen_delay ; int flowlabel_state_ranges ; }; struct ipv6_devconf; struct rt6_info; struct rt6_statistics; struct fib6_table; struct netns_ipv6 { struct netns_sysctl_ipv6 sysctl ; struct ipv6_devconf *devconf_all ; struct ipv6_devconf *devconf_dflt ; struct inet_peer_base *peers ; struct netns_frags frags ; struct xt_table *ip6table_filter ; struct xt_table *ip6table_mangle ; struct xt_table *ip6table_raw ; struct xt_table *ip6table_security ; struct xt_table *ip6table_nat ; struct rt6_info *ip6_null_entry ; struct rt6_statistics *rt6_stats ; struct timer_list ip6_fib_timer ; struct hlist_head *fib_table_hash ; struct fib6_table *fib6_main_tbl ; struct dst_ops ip6_dst_ops ; unsigned int ip6_rt_gc_expire ; unsigned long ip6_rt_last_gc ; struct rt6_info *ip6_prohibit_entry ; struct rt6_info *ip6_blk_hole_entry ; struct fib6_table *fib6_local_tbl ; struct fib_rules_ops *fib6_rules_ops ; struct sock **icmp_sk ; struct sock *ndisc_sk ; struct sock *tcp_sk ; struct sock *igmp_sk ; struct sock *mc_autojoin_sk ; struct list_head mr6_tables ; struct fib_rules_ops *mr6_rules_ops ; atomic_t dev_addr_genid ; atomic_t fib6_sernum ; }; struct netns_nf_frag { struct netns_sysctl_ipv6 sysctl ; struct netns_frags frags ; }; struct netns_sysctl_lowpan { struct ctl_table_header *frags_hdr ; }; struct netns_ieee802154_lowpan { struct netns_sysctl_lowpan sysctl ; struct netns_frags frags ; }; struct sctp_mib; struct netns_sctp { struct sctp_mib *sctp_statistics ; struct proc_dir_entry *proc_net_sctp ; struct ctl_table_header *sysctl_header ; struct sock *ctl_sock ; struct list_head local_addr_list ; struct list_head addr_waitq ; struct timer_list addr_wq_timer ; struct list_head auto_asconf_splist ; spinlock_t addr_wq_lock ; spinlock_t local_addr_lock ; unsigned int rto_initial ; unsigned int rto_min ; unsigned int rto_max ; int rto_alpha ; int rto_beta ; int max_burst ; int cookie_preserve_enable ; char *sctp_hmac_alg ; unsigned int valid_cookie_life ; unsigned int sack_timeout ; unsigned int hb_interval ; int max_retrans_association ; int max_retrans_path ; int max_retrans_init ; int pf_retrans ; int sndbuf_policy ; int rcvbuf_policy ; int default_auto_asconf ; int addip_enable ; int addip_noauth ; int prsctp_enable ; int auth_enable ; int scope_policy ; int rwnd_upd_shift ; unsigned long max_autoclose ; }; struct netns_dccp { struct sock *v4_ctl_sk ; struct sock *v6_ctl_sk ; }; struct nf_logger; struct netns_nf { struct proc_dir_entry *proc_netfilter ; struct nf_logger const *nf_loggers[13U] ; struct ctl_table_header *nf_log_dir_header ; }; struct ebt_table; struct netns_xt { struct list_head tables[13U] ; bool notrack_deprecated_warning ; bool clusterip_deprecated_warning ; struct ebt_table *broute_table ; struct ebt_table *frame_filter ; struct ebt_table *frame_nat ; }; struct hlist_nulls_node; struct hlist_nulls_head { struct hlist_nulls_node *first ; }; struct hlist_nulls_node { struct hlist_nulls_node *next ; struct hlist_nulls_node **pprev ; }; struct nf_proto_net { struct ctl_table_header *ctl_table_header ; struct ctl_table *ctl_table ; struct ctl_table_header *ctl_compat_header ; struct ctl_table *ctl_compat_table ; unsigned int users ; }; struct nf_generic_net { struct nf_proto_net pn ; unsigned int timeout ; }; struct nf_tcp_net { struct nf_proto_net pn ; unsigned int timeouts[14U] ; unsigned int tcp_loose ; unsigned int tcp_be_liberal ; unsigned int tcp_max_retrans ; }; struct nf_udp_net { struct nf_proto_net pn ; unsigned int timeouts[2U] ; }; struct nf_icmp_net { struct nf_proto_net pn ; unsigned int timeout ; }; struct nf_ip_net { struct nf_generic_net generic ; struct nf_tcp_net tcp ; struct nf_udp_net udp ; struct nf_icmp_net icmp ; struct nf_icmp_net icmpv6 ; struct ctl_table_header *ctl_table_header ; struct ctl_table *ctl_table ; }; struct ct_pcpu { spinlock_t lock ; struct hlist_nulls_head unconfirmed ; struct hlist_nulls_head dying ; struct hlist_nulls_head tmpl ; }; struct ip_conntrack_stat; struct nf_ct_event_notifier; struct nf_exp_event_notifier; struct netns_ct { atomic_t count ; unsigned int expect_count ; struct delayed_work ecache_dwork ; bool ecache_dwork_pending ; struct ctl_table_header *sysctl_header ; struct ctl_table_header *acct_sysctl_header ; struct ctl_table_header *tstamp_sysctl_header ; struct ctl_table_header *event_sysctl_header ; struct ctl_table_header *helper_sysctl_header ; char *slabname ; unsigned int sysctl_log_invalid ; int sysctl_events ; int sysctl_acct ; int sysctl_auto_assign_helper ; bool auto_assign_helper_warned ; int sysctl_tstamp ; int sysctl_checksum ; unsigned int htable_size ; seqcount_t generation ; struct kmem_cache *nf_conntrack_cachep ; struct hlist_nulls_head *hash ; struct hlist_head *expect_hash ; struct ct_pcpu *pcpu_lists ; struct ip_conntrack_stat *stat ; struct nf_ct_event_notifier *nf_conntrack_event_cb ; struct nf_exp_event_notifier *nf_expect_event_cb ; struct nf_ip_net nf_ct_proto ; unsigned int labels_used ; u8 label_words ; struct hlist_head *nat_bysource ; unsigned int nat_htable_size ; }; struct nft_af_info; struct netns_nftables { struct list_head af_info ; struct list_head commit_list ; struct nft_af_info *ipv4 ; struct nft_af_info *ipv6 ; struct nft_af_info *inet ; struct nft_af_info *arp ; struct nft_af_info *bridge ; struct nft_af_info *netdev ; unsigned int base_seq ; u8 gencursor ; }; struct tasklet_struct { struct tasklet_struct *next ; unsigned long state ; atomic_t count ; void (*func)(unsigned long ) ; unsigned long data ; }; struct flow_cache_percpu { struct hlist_head *hash_table ; int hash_count ; u32 hash_rnd ; int hash_rnd_recalc ; struct tasklet_struct flush_tasklet ; }; struct flow_cache { u32 hash_shift ; struct flow_cache_percpu *percpu ; struct notifier_block hotcpu_notifier ; int low_watermark ; int high_watermark ; struct timer_list rnd_timer ; }; struct xfrm_policy_hash { struct hlist_head *table ; unsigned int hmask ; u8 dbits4 ; u8 sbits4 ; u8 dbits6 ; u8 sbits6 ; }; struct xfrm_policy_hthresh { struct work_struct work ; seqlock_t lock ; u8 lbits4 ; u8 rbits4 ; u8 lbits6 ; u8 rbits6 ; }; struct netns_xfrm { struct list_head state_all ; struct hlist_head *state_bydst ; struct hlist_head *state_bysrc ; struct hlist_head *state_byspi ; unsigned int state_hmask ; unsigned int state_num ; struct work_struct state_hash_work ; struct hlist_head state_gc_list ; struct work_struct state_gc_work ; struct list_head policy_all ; struct hlist_head *policy_byidx ; unsigned int policy_idx_hmask ; struct hlist_head policy_inexact[3U] ; struct xfrm_policy_hash policy_bydst[3U] ; unsigned int policy_count[6U] ; struct work_struct policy_hash_work ; struct xfrm_policy_hthresh policy_hthresh ; struct sock *nlsk ; struct sock *nlsk_stash ; u32 sysctl_aevent_etime ; u32 sysctl_aevent_rseqth ; int sysctl_larval_drop ; u32 sysctl_acq_expires ; struct ctl_table_header *sysctl_hdr ; struct dst_ops xfrm4_dst_ops ; struct dst_ops xfrm6_dst_ops ; spinlock_t xfrm_state_lock ; rwlock_t xfrm_policy_lock ; struct mutex xfrm_cfg_mutex ; struct flow_cache flow_cache_global ; atomic_t flow_cache_genid ; struct list_head flow_cache_gc_list ; spinlock_t flow_cache_gc_lock ; struct work_struct flow_cache_gc_work ; struct work_struct flow_cache_flush_work ; struct mutex flow_flush_sem ; }; struct mpls_route; struct netns_mpls { size_t platform_labels ; struct mpls_route **platform_label ; struct ctl_table_header *ctl ; }; struct proc_ns_operations; struct ns_common { atomic_long_t stashed ; struct proc_ns_operations const *ops ; unsigned int inum ; }; struct net_generic; struct netns_ipvs; struct net { atomic_t passive ; atomic_t count ; spinlock_t rules_mod_lock ; atomic64_t cookie_gen ; struct list_head list ; struct list_head cleanup_list ; struct list_head exit_list ; struct user_namespace *user_ns ; spinlock_t nsid_lock ; struct idr netns_ids ; struct ns_common ns ; struct proc_dir_entry *proc_net ; struct proc_dir_entry *proc_net_stat ; struct ctl_table_set sysctls ; struct sock *rtnl ; struct sock *genl_sock ; struct list_head dev_base_head ; struct hlist_head *dev_name_head ; struct hlist_head *dev_index_head ; unsigned int dev_base_seq ; int ifindex ; unsigned int dev_unreg_count ; struct list_head rules_ops ; struct net_device *loopback_dev ; struct netns_core core ; struct netns_mib mib ; struct netns_packet packet ; struct netns_unix unx ; struct netns_ipv4 ipv4 ; struct netns_ipv6 ipv6 ; struct netns_ieee802154_lowpan ieee802154_lowpan ; struct netns_sctp sctp ; struct netns_dccp dccp ; struct netns_nf nf ; struct netns_xt xt ; struct netns_ct ct ; struct netns_nftables nft ; struct netns_nf_frag nf_frag ; struct sock *nfnl ; struct sock *nfnl_stash ; struct sk_buff_head wext_nlevents ; struct net_generic *gen ; struct netns_xfrm xfrm ; struct netns_ipvs *ipvs ; struct netns_mpls mpls ; struct sock *diag_nlsk ; atomic_t fnhe_genid ; }; struct __anonstruct_possible_net_t_292 { struct net *net ; }; typedef struct __anonstruct_possible_net_t_292 possible_net_t; typedef unsigned long kernel_ulong_t; struct acpi_device_id { __u8 id[9U] ; kernel_ulong_t driver_data ; }; struct of_device_id { char name[32U] ; char type[32U] ; char compatible[128U] ; void const *data ; }; enum fwnode_type { FWNODE_INVALID = 0, FWNODE_OF = 1, FWNODE_ACPI = 2, FWNODE_PDATA = 3 } ; struct fwnode_handle { enum fwnode_type type ; struct fwnode_handle *secondary ; }; typedef u32 phandle; struct property { char *name ; int length ; void *value ; struct property *next ; unsigned long _flags ; unsigned int unique_id ; struct bin_attribute attr ; }; struct device_node { char const *name ; char const *type ; phandle phandle ; char const *full_name ; struct fwnode_handle fwnode ; struct property *properties ; struct property *deadprops ; struct device_node *parent ; struct device_node *child ; struct device_node *sibling ; struct kobject kobj ; unsigned long _flags ; void *data ; }; enum ldv_27732 { PHY_INTERFACE_MODE_NA = 0, PHY_INTERFACE_MODE_MII = 1, PHY_INTERFACE_MODE_GMII = 2, PHY_INTERFACE_MODE_SGMII = 3, PHY_INTERFACE_MODE_TBI = 4, PHY_INTERFACE_MODE_REVMII = 5, PHY_INTERFACE_MODE_RMII = 6, PHY_INTERFACE_MODE_RGMII = 7, PHY_INTERFACE_MODE_RGMII_ID = 8, PHY_INTERFACE_MODE_RGMII_RXID = 9, PHY_INTERFACE_MODE_RGMII_TXID = 10, PHY_INTERFACE_MODE_RTBI = 11, PHY_INTERFACE_MODE_SMII = 12, PHY_INTERFACE_MODE_XGMII = 13, PHY_INTERFACE_MODE_MOCA = 14, PHY_INTERFACE_MODE_QSGMII = 15, PHY_INTERFACE_MODE_MAX = 16 } ; typedef enum ldv_27732 phy_interface_t; enum ldv_27786 { MDIOBUS_ALLOCATED = 1, MDIOBUS_REGISTERED = 2, MDIOBUS_UNREGISTERED = 3, MDIOBUS_RELEASED = 4 } ; struct phy_device; struct mii_bus { char const *name ; char id[17U] ; void *priv ; int (*read)(struct mii_bus * , int , int ) ; int (*write)(struct mii_bus * , int , int , u16 ) ; int (*reset)(struct mii_bus * ) ; struct mutex mdio_lock ; struct device *parent ; enum ldv_27786 state ; struct device dev ; struct phy_device *phy_map[32U] ; u32 phy_mask ; u32 phy_ignore_ta_mask ; int *irq ; }; enum phy_state { PHY_DOWN = 0, PHY_STARTING = 1, PHY_READY = 2, PHY_PENDING = 3, PHY_UP = 4, PHY_AN = 5, PHY_RUNNING = 6, PHY_NOLINK = 7, PHY_FORCING = 8, PHY_CHANGELINK = 9, PHY_HALTED = 10, PHY_RESUMING = 11 } ; struct phy_c45_device_ids { u32 devices_in_package ; u32 device_ids[8U] ; }; struct phy_driver; struct phy_device { struct phy_driver *drv ; struct mii_bus *bus ; struct device dev ; u32 phy_id ; struct phy_c45_device_ids c45_ids ; bool is_c45 ; bool is_internal ; bool has_fixups ; bool suspended ; enum phy_state state ; u32 dev_flags ; phy_interface_t interface ; int addr ; int speed ; int duplex ; int pause ; int asym_pause ; int link ; u32 interrupts ; u32 supported ; u32 advertising ; u32 lp_advertising ; int autoneg ; int link_timeout ; int irq ; void *priv ; struct work_struct phy_queue ; struct delayed_work state_queue ; atomic_t irq_disable ; struct mutex lock ; struct net_device *attached_dev ; void (*adjust_link)(struct net_device * ) ; }; struct phy_driver { u32 phy_id ; char *name ; unsigned int phy_id_mask ; u32 features ; u32 flags ; void const *driver_data ; int (*soft_reset)(struct phy_device * ) ; int (*config_init)(struct phy_device * ) ; int (*probe)(struct phy_device * ) ; int (*suspend)(struct phy_device * ) ; int (*resume)(struct phy_device * ) ; int (*config_aneg)(struct phy_device * ) ; int (*aneg_done)(struct phy_device * ) ; int (*read_status)(struct phy_device * ) ; int (*ack_interrupt)(struct phy_device * ) ; int (*config_intr)(struct phy_device * ) ; int (*did_interrupt)(struct phy_device * ) ; void (*remove)(struct phy_device * ) ; int (*match_phy_device)(struct phy_device * ) ; int (*ts_info)(struct phy_device * , struct ethtool_ts_info * ) ; int (*hwtstamp)(struct phy_device * , struct ifreq * ) ; bool (*rxtstamp)(struct phy_device * , struct sk_buff * , int ) ; void (*txtstamp)(struct phy_device * , struct sk_buff * , int ) ; int (*set_wol)(struct phy_device * , struct ethtool_wolinfo * ) ; void (*get_wol)(struct phy_device * , struct ethtool_wolinfo * ) ; void (*link_change_notify)(struct phy_device * ) ; int (*read_mmd_indirect)(struct phy_device * , int , int , int ) ; void (*write_mmd_indirect)(struct phy_device * , int , int , int , u32 ) ; int (*module_info)(struct phy_device * , struct ethtool_modinfo * ) ; int (*module_eeprom)(struct phy_device * , struct ethtool_eeprom * , u8 * ) ; struct device_driver driver ; }; struct fixed_phy_status { int link ; int speed ; int duplex ; int pause ; int asym_pause ; }; enum dsa_tag_protocol { DSA_TAG_PROTO_NONE = 0, DSA_TAG_PROTO_DSA = 1, DSA_TAG_PROTO_TRAILER = 2, DSA_TAG_PROTO_EDSA = 3, DSA_TAG_PROTO_BRCM = 4 } ; struct dsa_chip_data { struct device *host_dev ; int sw_addr ; int eeprom_len ; struct device_node *of_node ; char *port_names[12U] ; struct device_node *port_dn[12U] ; s8 *rtable ; }; struct dsa_platform_data { struct device *netdev ; struct net_device *of_netdev ; int nr_chips ; struct dsa_chip_data *chip ; }; struct packet_type; struct dsa_switch; struct dsa_switch_tree { struct dsa_platform_data *pd ; struct net_device *master_netdev ; int (*rcv)(struct sk_buff * , struct net_device * , struct packet_type * , struct net_device * ) ; enum dsa_tag_protocol tag_protocol ; s8 cpu_switch ; s8 cpu_port ; int link_poll_needed ; struct work_struct link_poll_work ; struct timer_list link_poll_timer ; struct dsa_switch *ds[4U] ; }; struct dsa_switch_driver; struct dsa_switch { struct dsa_switch_tree *dst ; int index ; enum dsa_tag_protocol tag_protocol ; struct dsa_chip_data *pd ; struct dsa_switch_driver *drv ; struct device *master_dev ; char hwmon_name[24U] ; struct device *hwmon_dev ; u32 dsa_port_mask ; u32 phys_port_mask ; u32 phys_mii_mask ; struct mii_bus *slave_mii_bus ; struct net_device *ports[12U] ; }; struct dsa_switch_driver { struct list_head list ; enum dsa_tag_protocol tag_protocol ; int priv_size ; char *(*probe)(struct device * , int ) ; int (*setup)(struct dsa_switch * ) ; int (*set_addr)(struct dsa_switch * , u8 * ) ; u32 (*get_phy_flags)(struct dsa_switch * , int ) ; int (*phy_read)(struct dsa_switch * , int , int ) ; int (*phy_write)(struct dsa_switch * , int , int , u16 ) ; void (*poll_link)(struct dsa_switch * ) ; void (*adjust_link)(struct dsa_switch * , int , struct phy_device * ) ; void (*fixed_link_update)(struct dsa_switch * , int , struct fixed_phy_status * ) ; void (*get_strings)(struct dsa_switch * , int , uint8_t * ) ; void (*get_ethtool_stats)(struct dsa_switch * , int , uint64_t * ) ; int (*get_sset_count)(struct dsa_switch * ) ; void (*get_wol)(struct dsa_switch * , int , struct ethtool_wolinfo * ) ; int (*set_wol)(struct dsa_switch * , int , struct ethtool_wolinfo * ) ; int (*suspend)(struct dsa_switch * ) ; int (*resume)(struct dsa_switch * ) ; int (*port_enable)(struct dsa_switch * , int , struct phy_device * ) ; void (*port_disable)(struct dsa_switch * , int , struct phy_device * ) ; int (*set_eee)(struct dsa_switch * , int , struct phy_device * , struct ethtool_eee * ) ; int (*get_eee)(struct dsa_switch * , int , struct ethtool_eee * ) ; int (*get_temp)(struct dsa_switch * , int * ) ; int (*get_temp_limit)(struct dsa_switch * , int * ) ; int (*set_temp_limit)(struct dsa_switch * , int ) ; int (*get_temp_alarm)(struct dsa_switch * , bool * ) ; int (*get_eeprom_len)(struct dsa_switch * ) ; int (*get_eeprom)(struct dsa_switch * , struct ethtool_eeprom * , u8 * ) ; int (*set_eeprom)(struct dsa_switch * , struct ethtool_eeprom * , u8 * ) ; int (*get_regs_len)(struct dsa_switch * , int ) ; void (*get_regs)(struct dsa_switch * , int , struct ethtool_regs * , void * ) ; int (*port_join_bridge)(struct dsa_switch * , int , u32 ) ; int (*port_leave_bridge)(struct dsa_switch * , int , u32 ) ; int (*port_stp_update)(struct dsa_switch * , int , u8 ) ; int (*fdb_add)(struct dsa_switch * , int , unsigned char const * , u16 ) ; int (*fdb_del)(struct dsa_switch * , int , unsigned char const * , u16 ) ; int (*fdb_getnext)(struct dsa_switch * , int , unsigned char * , bool * ) ; }; struct ieee_ets { __u8 willing ; __u8 ets_cap ; __u8 cbs ; __u8 tc_tx_bw[8U] ; __u8 tc_rx_bw[8U] ; __u8 tc_tsa[8U] ; __u8 prio_tc[8U] ; __u8 tc_reco_bw[8U] ; __u8 tc_reco_tsa[8U] ; __u8 reco_prio_tc[8U] ; }; struct ieee_maxrate { __u64 tc_maxrate[8U] ; }; struct ieee_qcn { __u8 rpg_enable[8U] ; __u32 rppp_max_rps[8U] ; __u32 rpg_time_reset[8U] ; __u32 rpg_byte_reset[8U] ; __u32 rpg_threshold[8U] ; __u32 rpg_max_rate[8U] ; __u32 rpg_ai_rate[8U] ; __u32 rpg_hai_rate[8U] ; __u32 rpg_gd[8U] ; __u32 rpg_min_dec_fac[8U] ; __u32 rpg_min_rate[8U] ; __u32 cndd_state_machine[8U] ; }; struct ieee_qcn_stats { __u64 rppp_rp_centiseconds[8U] ; __u32 rppp_created_rps[8U] ; }; struct ieee_pfc { __u8 pfc_cap ; __u8 pfc_en ; __u8 mbc ; __u16 delay ; __u64 requests[8U] ; __u64 indications[8U] ; }; struct cee_pg { __u8 willing ; __u8 error ; __u8 pg_en ; __u8 tcs_supported ; __u8 pg_bw[8U] ; __u8 prio_pg[8U] ; }; struct cee_pfc { __u8 willing ; __u8 error ; __u8 pfc_en ; __u8 tcs_supported ; }; struct dcb_app { __u8 selector ; __u8 priority ; __u16 protocol ; }; struct dcb_peer_app_info { __u8 willing ; __u8 error ; }; struct dcbnl_rtnl_ops { int (*ieee_getets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_setets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_getmaxrate)(struct net_device * , struct ieee_maxrate * ) ; int (*ieee_setmaxrate)(struct net_device * , struct ieee_maxrate * ) ; int (*ieee_getqcn)(struct net_device * , struct ieee_qcn * ) ; int (*ieee_setqcn)(struct net_device * , struct ieee_qcn * ) ; int (*ieee_getqcnstats)(struct net_device * , struct ieee_qcn_stats * ) ; int (*ieee_getpfc)(struct net_device * , struct ieee_pfc * ) ; int (*ieee_setpfc)(struct net_device * , struct ieee_pfc * ) ; int (*ieee_getapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_setapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_delapp)(struct net_device * , struct dcb_app * ) ; int (*ieee_peer_getets)(struct net_device * , struct ieee_ets * ) ; int (*ieee_peer_getpfc)(struct net_device * , struct ieee_pfc * ) ; u8 (*getstate)(struct net_device * ) ; u8 (*setstate)(struct net_device * , u8 ) ; void (*getpermhwaddr)(struct net_device * , u8 * ) ; void (*setpgtccfgtx)(struct net_device * , int , u8 , u8 , u8 , u8 ) ; void (*setpgbwgcfgtx)(struct net_device * , int , u8 ) ; void (*setpgtccfgrx)(struct net_device * , int , u8 , u8 , u8 , u8 ) ; void (*setpgbwgcfgrx)(struct net_device * , int , u8 ) ; void (*getpgtccfgtx)(struct net_device * , int , u8 * , u8 * , u8 * , u8 * ) ; void (*getpgbwgcfgtx)(struct net_device * , int , u8 * ) ; void (*getpgtccfgrx)(struct net_device * , int , u8 * , u8 * , u8 * , u8 * ) ; void (*getpgbwgcfgrx)(struct net_device * , int , u8 * ) ; void (*setpfccfg)(struct net_device * , int , u8 ) ; void (*getpfccfg)(struct net_device * , int , u8 * ) ; u8 (*setall)(struct net_device * ) ; u8 (*getcap)(struct net_device * , int , u8 * ) ; int (*getnumtcs)(struct net_device * , int , u8 * ) ; int (*setnumtcs)(struct net_device * , int , u8 ) ; u8 (*getpfcstate)(struct net_device * ) ; void (*setpfcstate)(struct net_device * , u8 ) ; void (*getbcncfg)(struct net_device * , int , u32 * ) ; void (*setbcncfg)(struct net_device * , int , u32 ) ; void (*getbcnrp)(struct net_device * , int , u8 * ) ; void (*setbcnrp)(struct net_device * , int , u8 ) ; int (*setapp)(struct net_device * , u8 , u16 , u8 ) ; int (*getapp)(struct net_device * , u8 , u16 ) ; u8 (*getfeatcfg)(struct net_device * , int , u8 * ) ; u8 (*setfeatcfg)(struct net_device * , int , u8 ) ; u8 (*getdcbx)(struct net_device * ) ; u8 (*setdcbx)(struct net_device * , u8 ) ; int (*peer_getappinfo)(struct net_device * , struct dcb_peer_app_info * , u16 * ) ; int (*peer_getapptable)(struct net_device * , struct dcb_app * ) ; int (*cee_peer_getpg)(struct net_device * , struct cee_pg * ) ; int (*cee_peer_getpfc)(struct net_device * , struct cee_pfc * ) ; }; struct taskstats { __u16 version ; __u32 ac_exitcode ; __u8 ac_flag ; __u8 ac_nice ; __u64 cpu_count ; __u64 cpu_delay_total ; __u64 blkio_count ; __u64 blkio_delay_total ; __u64 swapin_count ; __u64 swapin_delay_total ; __u64 cpu_run_real_total ; __u64 cpu_run_virtual_total ; char ac_comm[32U] ; __u8 ac_sched ; __u8 ac_pad[3U] ; __u32 ac_uid ; __u32 ac_gid ; __u32 ac_pid ; __u32 ac_ppid ; __u32 ac_btime ; __u64 ac_etime ; __u64 ac_utime ; __u64 ac_stime ; __u64 ac_minflt ; __u64 ac_majflt ; __u64 coremem ; __u64 virtmem ; __u64 hiwater_rss ; __u64 hiwater_vm ; __u64 read_char ; __u64 write_char ; __u64 read_syscalls ; __u64 write_syscalls ; __u64 read_bytes ; __u64 write_bytes ; __u64 cancelled_write_bytes ; __u64 nvcsw ; __u64 nivcsw ; __u64 ac_utimescaled ; __u64 ac_stimescaled ; __u64 cpu_scaled_run_real_total ; __u64 freepages_count ; __u64 freepages_delay_total ; }; struct netprio_map { struct callback_head rcu ; u32 priomap_len ; u32 priomap[] ; }; struct mnt_namespace; struct ipc_namespace; struct nsproxy { atomic_t count ; struct uts_namespace *uts_ns ; struct ipc_namespace *ipc_ns ; struct mnt_namespace *mnt_ns ; struct pid_namespace *pid_ns_for_children ; struct net *net_ns ; }; struct nlmsghdr { __u32 nlmsg_len ; __u16 nlmsg_type ; __u16 nlmsg_flags ; __u32 nlmsg_seq ; __u32 nlmsg_pid ; }; struct nlattr { __u16 nla_len ; __u16 nla_type ; }; struct netlink_callback { struct sk_buff *skb ; struct nlmsghdr const *nlh ; int (*dump)(struct sk_buff * , struct netlink_callback * ) ; int (*done)(struct netlink_callback * ) ; void *data ; struct module *module ; u16 family ; u16 min_dump_alloc ; unsigned int prev_seq ; unsigned int seq ; long args[6U] ; }; struct ndmsg { __u8 ndm_family ; __u8 ndm_pad1 ; __u16 ndm_pad2 ; __s32 ndm_ifindex ; __u16 ndm_state ; __u8 ndm_flags ; __u8 ndm_type ; }; struct rtnl_link_stats64 { __u64 rx_packets ; __u64 tx_packets ; __u64 rx_bytes ; __u64 tx_bytes ; __u64 rx_errors ; __u64 tx_errors ; __u64 rx_dropped ; __u64 tx_dropped ; __u64 multicast ; __u64 collisions ; __u64 rx_length_errors ; __u64 rx_over_errors ; __u64 rx_crc_errors ; __u64 rx_frame_errors ; __u64 rx_fifo_errors ; __u64 rx_missed_errors ; __u64 tx_aborted_errors ; __u64 tx_carrier_errors ; __u64 tx_fifo_errors ; __u64 tx_heartbeat_errors ; __u64 tx_window_errors ; __u64 rx_compressed ; __u64 tx_compressed ; }; struct ifla_vf_stats { __u64 rx_packets ; __u64 tx_packets ; __u64 rx_bytes ; __u64 tx_bytes ; __u64 broadcast ; __u64 multicast ; }; struct ifla_vf_info { __u32 vf ; __u8 mac[32U] ; __u32 vlan ; __u32 qos ; __u32 spoofchk ; __u32 linkstate ; __u32 min_tx_rate ; __u32 max_tx_rate ; __u32 rss_query_en ; }; struct netpoll_info; struct wpan_dev; struct mpls_dev; enum netdev_tx { __NETDEV_TX_MIN = (-0x7FFFFFFF-1), NETDEV_TX_OK = 0, NETDEV_TX_BUSY = 16, NETDEV_TX_LOCKED = 32 } ; typedef enum netdev_tx netdev_tx_t; struct net_device_stats { unsigned long rx_packets ; unsigned long tx_packets ; unsigned long rx_bytes ; unsigned long tx_bytes ; unsigned long rx_errors ; unsigned long tx_errors ; unsigned long rx_dropped ; unsigned long tx_dropped ; unsigned long multicast ; unsigned long collisions ; unsigned long rx_length_errors ; unsigned long rx_over_errors ; unsigned long rx_crc_errors ; unsigned long rx_frame_errors ; unsigned long rx_fifo_errors ; unsigned long rx_missed_errors ; unsigned long tx_aborted_errors ; unsigned long tx_carrier_errors ; unsigned long tx_fifo_errors ; unsigned long tx_heartbeat_errors ; unsigned long tx_window_errors ; unsigned long rx_compressed ; unsigned long tx_compressed ; }; struct neigh_parms; struct netdev_hw_addr_list { struct list_head list ; int count ; }; struct hh_cache { u16 hh_len ; u16 __pad ; seqlock_t hh_lock ; unsigned long hh_data[16U] ; }; struct header_ops { int (*create)(struct sk_buff * , struct net_device * , unsigned short , void const * , void const * , unsigned int ) ; int (*parse)(struct sk_buff const * , unsigned char * ) ; int (*cache)(struct neighbour const * , struct hh_cache * , __be16 ) ; void (*cache_update)(struct hh_cache * , struct net_device const * , unsigned char const * ) ; }; struct napi_struct { struct list_head poll_list ; unsigned long state ; int weight ; unsigned int gro_count ; int (*poll)(struct napi_struct * , int ) ; spinlock_t poll_lock ; int poll_owner ; struct net_device *dev ; struct sk_buff *gro_list ; struct sk_buff *skb ; struct hrtimer timer ; struct list_head dev_list ; struct hlist_node napi_hash_node ; unsigned int napi_id ; }; enum rx_handler_result { RX_HANDLER_CONSUMED = 0, RX_HANDLER_ANOTHER = 1, RX_HANDLER_EXACT = 2, RX_HANDLER_PASS = 3 } ; typedef enum rx_handler_result rx_handler_result_t; typedef rx_handler_result_t rx_handler_func_t(struct sk_buff ** ); struct Qdisc; struct netdev_queue { struct net_device *dev ; struct Qdisc *qdisc ; struct Qdisc *qdisc_sleeping ; struct kobject kobj ; int numa_node ; spinlock_t _xmit_lock ; int xmit_lock_owner ; unsigned long trans_start ; unsigned long trans_timeout ; unsigned long state ; struct dql dql ; unsigned long tx_maxrate ; }; struct rps_map { unsigned int len ; struct callback_head rcu ; u16 cpus[0U] ; }; struct rps_dev_flow { u16 cpu ; u16 filter ; unsigned int last_qtail ; }; struct rps_dev_flow_table { unsigned int mask ; struct callback_head rcu ; struct rps_dev_flow flows[0U] ; }; struct netdev_rx_queue { struct rps_map *rps_map ; struct rps_dev_flow_table *rps_flow_table ; struct kobject kobj ; struct net_device *dev ; }; struct xps_map { unsigned int len ; unsigned int alloc_len ; struct callback_head rcu ; u16 queues[0U] ; }; struct xps_dev_maps { struct callback_head rcu ; struct xps_map *cpu_map[0U] ; }; struct netdev_tc_txq { u16 count ; u16 offset ; }; struct netdev_fcoe_hbainfo { char manufacturer[64U] ; char serial_number[64U] ; char hardware_version[64U] ; char driver_version[64U] ; char optionrom_version[64U] ; char firmware_version[64U] ; char model[256U] ; char model_description[256U] ; }; struct netdev_phys_item_id { unsigned char id[32U] ; unsigned char id_len ; }; struct net_device_ops { int (*ndo_init)(struct net_device * ) ; void (*ndo_uninit)(struct net_device * ) ; int (*ndo_open)(struct net_device * ) ; int (*ndo_stop)(struct net_device * ) ; netdev_tx_t (*ndo_start_xmit)(struct sk_buff * , struct net_device * ) ; u16 (*ndo_select_queue)(struct net_device * , struct sk_buff * , void * , u16 (*)(struct net_device * , struct sk_buff * ) ) ; void (*ndo_change_rx_flags)(struct net_device * , int ) ; void (*ndo_set_rx_mode)(struct net_device * ) ; int (*ndo_set_mac_address)(struct net_device * , void * ) ; int (*ndo_validate_addr)(struct net_device * ) ; int (*ndo_do_ioctl)(struct net_device * , struct ifreq * , int ) ; int (*ndo_set_config)(struct net_device * , struct ifmap * ) ; int (*ndo_change_mtu)(struct net_device * , int ) ; int (*ndo_neigh_setup)(struct net_device * , struct neigh_parms * ) ; void (*ndo_tx_timeout)(struct net_device * ) ; struct rtnl_link_stats64 *(*ndo_get_stats64)(struct net_device * , struct rtnl_link_stats64 * ) ; struct net_device_stats *(*ndo_get_stats)(struct net_device * ) ; int (*ndo_vlan_rx_add_vid)(struct net_device * , __be16 , u16 ) ; int (*ndo_vlan_rx_kill_vid)(struct net_device * , __be16 , u16 ) ; void (*ndo_poll_controller)(struct net_device * ) ; int (*ndo_netpoll_setup)(struct net_device * , struct netpoll_info * ) ; void (*ndo_netpoll_cleanup)(struct net_device * ) ; int (*ndo_busy_poll)(struct napi_struct * ) ; int (*ndo_set_vf_mac)(struct net_device * , int , u8 * ) ; int (*ndo_set_vf_vlan)(struct net_device * , int , u16 , u8 ) ; int (*ndo_set_vf_rate)(struct net_device * , int , int , int ) ; int (*ndo_set_vf_spoofchk)(struct net_device * , int , bool ) ; int (*ndo_get_vf_config)(struct net_device * , int , struct ifla_vf_info * ) ; int (*ndo_set_vf_link_state)(struct net_device * , int , int ) ; int (*ndo_get_vf_stats)(struct net_device * , int , struct ifla_vf_stats * ) ; int (*ndo_set_vf_port)(struct net_device * , int , struct nlattr ** ) ; int (*ndo_get_vf_port)(struct net_device * , int , struct sk_buff * ) ; int (*ndo_set_vf_rss_query_en)(struct net_device * , int , bool ) ; int (*ndo_setup_tc)(struct net_device * , u8 ) ; int (*ndo_fcoe_enable)(struct net_device * ) ; int (*ndo_fcoe_disable)(struct net_device * ) ; int (*ndo_fcoe_ddp_setup)(struct net_device * , u16 , struct scatterlist * , unsigned int ) ; int (*ndo_fcoe_ddp_done)(struct net_device * , u16 ) ; int (*ndo_fcoe_ddp_target)(struct net_device * , u16 , struct scatterlist * , unsigned int ) ; int (*ndo_fcoe_get_hbainfo)(struct net_device * , struct netdev_fcoe_hbainfo * ) ; int (*ndo_fcoe_get_wwn)(struct net_device * , u64 * , int ) ; int (*ndo_rx_flow_steer)(struct net_device * , struct sk_buff const * , u16 , u32 ) ; int (*ndo_add_slave)(struct net_device * , struct net_device * ) ; int (*ndo_del_slave)(struct net_device * , struct net_device * ) ; netdev_features_t (*ndo_fix_features)(struct net_device * , netdev_features_t ) ; int (*ndo_set_features)(struct net_device * , netdev_features_t ) ; int (*ndo_neigh_construct)(struct neighbour * ) ; void (*ndo_neigh_destroy)(struct neighbour * ) ; int (*ndo_fdb_add)(struct ndmsg * , struct nlattr ** , struct net_device * , unsigned char const * , u16 , u16 ) ; int (*ndo_fdb_del)(struct ndmsg * , struct nlattr ** , struct net_device * , unsigned char const * , u16 ) ; int (*ndo_fdb_dump)(struct sk_buff * , struct netlink_callback * , struct net_device * , struct net_device * , int ) ; int (*ndo_bridge_setlink)(struct net_device * , struct nlmsghdr * , u16 ) ; int (*ndo_bridge_getlink)(struct sk_buff * , u32 , u32 , struct net_device * , u32 , int ) ; int (*ndo_bridge_dellink)(struct net_device * , struct nlmsghdr * , u16 ) ; int (*ndo_change_carrier)(struct net_device * , bool ) ; int (*ndo_get_phys_port_id)(struct net_device * , struct netdev_phys_item_id * ) ; int (*ndo_get_phys_port_name)(struct net_device * , char * , size_t ) ; void (*ndo_add_vxlan_port)(struct net_device * , sa_family_t , __be16 ) ; void (*ndo_del_vxlan_port)(struct net_device * , sa_family_t , __be16 ) ; void *(*ndo_dfwd_add_station)(struct net_device * , struct net_device * ) ; void (*ndo_dfwd_del_station)(struct net_device * , void * ) ; netdev_tx_t (*ndo_dfwd_start_xmit)(struct sk_buff * , struct net_device * , void * ) ; int (*ndo_get_lock_subclass)(struct net_device * ) ; netdev_features_t (*ndo_features_check)(struct sk_buff * , struct net_device * , netdev_features_t ) ; int (*ndo_set_tx_maxrate)(struct net_device * , int , u32 ) ; int (*ndo_get_iflink)(struct net_device const * ) ; }; struct __anonstruct_adj_list_305 { struct list_head upper ; struct list_head lower ; }; struct __anonstruct_all_adj_list_306 { struct list_head upper ; struct list_head lower ; }; struct iw_handler_def; struct iw_public_data; struct switchdev_ops; struct vlan_info; struct tipc_bearer; struct in_device; struct dn_dev; struct inet6_dev; struct tcf_proto; struct cpu_rmap; struct pcpu_lstats; struct pcpu_sw_netstats; struct pcpu_dstats; struct pcpu_vstats; union __anonunion____missing_field_name_307 { void *ml_priv ; struct pcpu_lstats *lstats ; struct pcpu_sw_netstats *tstats ; struct pcpu_dstats *dstats ; struct pcpu_vstats *vstats ; }; struct garp_port; struct mrp_port; struct rtnl_link_ops; struct net_device { char name[16U] ; struct hlist_node name_hlist ; char *ifalias ; unsigned long mem_end ; unsigned long mem_start ; unsigned long base_addr ; int irq ; atomic_t carrier_changes ; unsigned long state ; struct list_head dev_list ; struct list_head napi_list ; struct list_head unreg_list ; struct list_head close_list ; struct list_head ptype_all ; struct list_head ptype_specific ; struct __anonstruct_adj_list_305 adj_list ; struct __anonstruct_all_adj_list_306 all_adj_list ; netdev_features_t features ; netdev_features_t hw_features ; netdev_features_t wanted_features ; netdev_features_t vlan_features ; netdev_features_t hw_enc_features ; netdev_features_t mpls_features ; int ifindex ; int group ; struct net_device_stats stats ; atomic_long_t rx_dropped ; atomic_long_t tx_dropped ; struct iw_handler_def const *wireless_handlers ; struct iw_public_data *wireless_data ; struct net_device_ops const *netdev_ops ; struct ethtool_ops const *ethtool_ops ; struct switchdev_ops const *switchdev_ops ; struct header_ops const *header_ops ; unsigned int flags ; unsigned int priv_flags ; unsigned short gflags ; unsigned short padded ; unsigned char operstate ; unsigned char link_mode ; unsigned char if_port ; unsigned char dma ; unsigned int mtu ; unsigned short type ; unsigned short hard_header_len ; unsigned short needed_headroom ; unsigned short needed_tailroom ; unsigned char perm_addr[32U] ; unsigned char addr_assign_type ; unsigned char addr_len ; unsigned short neigh_priv_len ; unsigned short dev_id ; unsigned short dev_port ; spinlock_t addr_list_lock ; unsigned char name_assign_type ; bool uc_promisc ; struct netdev_hw_addr_list uc ; struct netdev_hw_addr_list mc ; struct netdev_hw_addr_list dev_addrs ; struct kset *queues_kset ; unsigned int promiscuity ; unsigned int allmulti ; struct vlan_info *vlan_info ; struct dsa_switch_tree *dsa_ptr ; struct tipc_bearer *tipc_ptr ; void *atalk_ptr ; struct in_device *ip_ptr ; struct dn_dev *dn_ptr ; struct inet6_dev *ip6_ptr ; void *ax25_ptr ; struct wireless_dev *ieee80211_ptr ; struct wpan_dev *ieee802154_ptr ; struct mpls_dev *mpls_ptr ; unsigned long last_rx ; unsigned char *dev_addr ; struct netdev_rx_queue *_rx ; unsigned int num_rx_queues ; unsigned int real_num_rx_queues ; unsigned long gro_flush_timeout ; rx_handler_func_t *rx_handler ; void *rx_handler_data ; struct tcf_proto *ingress_cl_list ; struct netdev_queue *ingress_queue ; struct list_head nf_hooks_ingress ; unsigned char broadcast[32U] ; struct cpu_rmap *rx_cpu_rmap ; struct hlist_node index_hlist ; struct netdev_queue *_tx ; unsigned int num_tx_queues ; unsigned int real_num_tx_queues ; struct Qdisc *qdisc ; unsigned long tx_queue_len ; spinlock_t tx_global_lock ; int watchdog_timeo ; struct xps_dev_maps *xps_maps ; unsigned long trans_start ; struct timer_list watchdog_timer ; int *pcpu_refcnt ; struct list_head todo_list ; struct list_head link_watch_list ; unsigned char reg_state ; bool dismantle ; unsigned short rtnl_link_state ; void (*destructor)(struct net_device * ) ; struct netpoll_info *npinfo ; possible_net_t nd_net ; union __anonunion____missing_field_name_307 __annonCompField94 ; struct garp_port *garp_port ; struct mrp_port *mrp_port ; struct device dev ; struct attribute_group const *sysfs_groups[4U] ; struct attribute_group const *sysfs_rx_queue_group ; struct rtnl_link_ops const *rtnl_link_ops ; unsigned int gso_max_size ; u16 gso_max_segs ; u16 gso_min_segs ; struct dcbnl_rtnl_ops const *dcbnl_ops ; u8 num_tc ; struct netdev_tc_txq tc_to_txq[16U] ; u8 prio_tc_map[16U] ; unsigned int fcoe_ddp_xid ; struct netprio_map *priomap ; struct phy_device *phydev ; struct lock_class_key *qdisc_tx_busylock ; }; struct packet_type { __be16 type ; struct net_device *dev ; int (*func)(struct sk_buff * , struct net_device * , struct packet_type * , struct net_device * ) ; bool (*id_match)(struct packet_type * , struct sock * ) ; void *af_packet_priv ; struct list_head list ; }; struct pcpu_sw_netstats { u64 rx_packets ; u64 rx_bytes ; u64 tx_packets ; u64 tx_bytes ; struct u64_stats_sync syncp ; }; struct debugfs_blob_wrapper { void *data ; unsigned long size ; }; enum nl80211_iftype { NL80211_IFTYPE_UNSPECIFIED = 0, NL80211_IFTYPE_ADHOC = 1, NL80211_IFTYPE_STATION = 2, NL80211_IFTYPE_AP = 3, NL80211_IFTYPE_AP_VLAN = 4, NL80211_IFTYPE_WDS = 5, NL80211_IFTYPE_MONITOR = 6, NL80211_IFTYPE_MESH_POINT = 7, NL80211_IFTYPE_P2P_CLIENT = 8, NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NUM_NL80211_IFTYPES = 12, NL80211_IFTYPE_MAX = 11 } ; struct nl80211_sta_flag_update { __u32 mask ; __u32 set ; }; enum nl80211_reg_initiator { NL80211_REGDOM_SET_BY_CORE = 0, NL80211_REGDOM_SET_BY_USER = 1, NL80211_REGDOM_SET_BY_DRIVER = 2, NL80211_REGDOM_SET_BY_COUNTRY_IE = 3 } ; enum nl80211_dfs_regions { NL80211_DFS_UNSET = 0, NL80211_DFS_FCC = 1, NL80211_DFS_ETSI = 2, NL80211_DFS_JP = 3 } ; enum nl80211_user_reg_hint_type { NL80211_USER_REG_HINT_USER = 0, NL80211_USER_REG_HINT_CELL_BASE = 1, NL80211_USER_REG_HINT_INDOOR = 2 } ; enum nl80211_mesh_power_mode { NL80211_MESH_POWER_UNKNOWN = 0, NL80211_MESH_POWER_ACTIVE = 1, NL80211_MESH_POWER_LIGHT_SLEEP = 2, NL80211_MESH_POWER_DEEP_SLEEP = 3, __NL80211_MESH_POWER_AFTER_LAST = 4, NL80211_MESH_POWER_MAX = 3 } ; enum nl80211_chan_width { NL80211_CHAN_WIDTH_20_NOHT = 0, NL80211_CHAN_WIDTH_20 = 1, NL80211_CHAN_WIDTH_40 = 2, NL80211_CHAN_WIDTH_80 = 3, NL80211_CHAN_WIDTH_80P80 = 4, NL80211_CHAN_WIDTH_160 = 5, NL80211_CHAN_WIDTH_5 = 6, NL80211_CHAN_WIDTH_10 = 7 } ; enum nl80211_bss_scan_width { NL80211_BSS_CHAN_WIDTH_20 = 0, NL80211_BSS_CHAN_WIDTH_10 = 1, NL80211_BSS_CHAN_WIDTH_5 = 2 } ; enum nl80211_auth_type { NL80211_AUTHTYPE_OPEN_SYSTEM = 0, NL80211_AUTHTYPE_SHARED_KEY = 1, NL80211_AUTHTYPE_FT = 2, NL80211_AUTHTYPE_NETWORK_EAP = 3, NL80211_AUTHTYPE_SAE = 4, __NL80211_AUTHTYPE_NUM = 5, NL80211_AUTHTYPE_MAX = 4, NL80211_AUTHTYPE_AUTOMATIC = 5 } ; enum nl80211_mfp { NL80211_MFP_NO = 0, NL80211_MFP_REQUIRED = 1 } ; struct nl80211_wowlan_tcp_data_seq { __u32 start ; __u32 offset ; __u32 len ; }; struct nl80211_wowlan_tcp_data_token { __u32 offset ; __u32 len ; __u8 token_stream[] ; }; struct nl80211_wowlan_tcp_data_token_feature { __u32 min_len ; __u32 max_len ; __u32 bufsize ; }; enum nl80211_dfs_state { NL80211_DFS_USABLE = 0, NL80211_DFS_UNAVAILABLE = 1, NL80211_DFS_AVAILABLE = 2 } ; struct nl80211_vendor_cmd_info { __u32 vendor_id ; __u32 subcmd ; }; struct ieee80211_mcs_info { u8 rx_mask[10U] ; __le16 rx_highest ; u8 tx_params ; u8 reserved[3U] ; }; struct ieee80211_ht_cap { __le16 cap_info ; u8 ampdu_params_info ; struct ieee80211_mcs_info mcs ; __le16 extended_ht_cap_info ; __le32 tx_BF_cap_info ; u8 antenna_selection_info ; }; struct ieee80211_vht_mcs_info { __le16 rx_mcs_map ; __le16 rx_highest ; __le16 tx_mcs_map ; __le16 tx_highest ; }; struct ieee80211_vht_cap { __le32 vht_cap_info ; struct ieee80211_vht_mcs_info supp_mcs ; }; enum environment_cap { ENVIRON_ANY = 0, ENVIRON_INDOOR = 1, ENVIRON_OUTDOOR = 2 } ; struct regulatory_request { struct callback_head callback_head ; int wiphy_idx ; enum nl80211_reg_initiator initiator ; enum nl80211_user_reg_hint_type user_reg_hint_type ; char alpha2[2U] ; enum nl80211_dfs_regions dfs_region ; bool intersect ; bool processed ; enum environment_cap country_ie_env ; struct list_head list ; }; struct ieee80211_freq_range { u32 start_freq_khz ; u32 end_freq_khz ; u32 max_bandwidth_khz ; }; struct ieee80211_power_rule { u32 max_antenna_gain ; u32 max_eirp ; }; struct ieee80211_reg_rule { struct ieee80211_freq_range freq_range ; struct ieee80211_power_rule power_rule ; u32 flags ; u32 dfs_cac_ms ; }; struct ieee80211_regdomain { struct callback_head callback_head ; u32 n_reg_rules ; char alpha2[3U] ; enum nl80211_dfs_regions dfs_region ; struct ieee80211_reg_rule reg_rules[] ; }; enum ieee80211_band { IEEE80211_BAND_2GHZ = 0, IEEE80211_BAND_5GHZ = 1, IEEE80211_BAND_60GHZ = 2, IEEE80211_NUM_BANDS = 3 } ; struct ieee80211_channel { enum ieee80211_band band ; u16 center_freq ; u16 hw_value ; u32 flags ; int max_antenna_gain ; int max_power ; int max_reg_power ; bool beacon_found ; u32 orig_flags ; int orig_mag ; int orig_mpwr ; enum nl80211_dfs_state dfs_state ; unsigned long dfs_state_entered ; unsigned int dfs_cac_ms ; }; struct ieee80211_rate { u32 flags ; u16 bitrate ; u16 hw_value ; u16 hw_value_short ; }; struct ieee80211_sta_ht_cap { u16 cap ; bool ht_supported ; u8 ampdu_factor ; u8 ampdu_density ; struct ieee80211_mcs_info mcs ; }; struct ieee80211_sta_vht_cap { bool vht_supported ; u32 cap ; struct ieee80211_vht_mcs_info vht_mcs ; }; struct ieee80211_supported_band { struct ieee80211_channel *channels ; struct ieee80211_rate *bitrates ; enum ieee80211_band band ; int n_channels ; int n_bitrates ; struct ieee80211_sta_ht_cap ht_cap ; struct ieee80211_sta_vht_cap vht_cap ; }; struct cfg80211_chan_def { struct ieee80211_channel *chan ; enum nl80211_chan_width width ; u32 center_freq1 ; u32 center_freq2 ; }; struct cfg80211_crypto_settings { u32 wpa_versions ; u32 cipher_group ; int n_ciphers_pairwise ; u32 ciphers_pairwise[5U] ; int n_akm_suites ; u32 akm_suites[2U] ; bool control_port ; __be16 control_port_ethertype ; bool control_port_no_encrypt ; }; struct mac_address { u8 addr[6U] ; }; struct rate_info { u8 flags ; u8 mcs ; u16 legacy ; u8 nss ; u8 bw ; }; struct sta_bss_parameters { u8 flags ; u8 dtim_period ; u16 beacon_interval ; }; struct cfg80211_tid_stats { u32 filled ; u64 rx_msdu ; u64 tx_msdu ; u64 tx_msdu_retries ; u64 tx_msdu_failed ; }; struct station_info { u32 filled ; u32 connected_time ; u32 inactive_time ; u64 rx_bytes ; u64 tx_bytes ; u16 llid ; u16 plid ; u8 plink_state ; s8 signal ; s8 signal_avg ; u8 chains ; s8 chain_signal[4U] ; s8 chain_signal_avg[4U] ; struct rate_info txrate ; struct rate_info rxrate ; u32 rx_packets ; u32 tx_packets ; u32 tx_retries ; u32 tx_failed ; u32 rx_dropped_misc ; struct sta_bss_parameters bss_param ; struct nl80211_sta_flag_update sta_flags ; int generation ; u8 const *assoc_req_ies ; size_t assoc_req_ies_len ; u32 beacon_loss_count ; s64 t_offset ; enum nl80211_mesh_power_mode local_pm ; enum nl80211_mesh_power_mode peer_pm ; enum nl80211_mesh_power_mode nonpeer_pm ; u32 expected_throughput ; u64 rx_beacon ; u8 rx_beacon_signal_avg ; struct cfg80211_tid_stats pertid[17U] ; }; struct cfg80211_ssid { u8 ssid[32U] ; u8 ssid_len ; }; struct cfg80211_scan_request { struct cfg80211_ssid *ssids ; int n_ssids ; u32 n_channels ; enum nl80211_bss_scan_width scan_width ; u8 const *ie ; size_t ie_len ; u32 flags ; u32 rates[3U] ; struct wireless_dev *wdev ; u8 mac_addr[6U] ; u8 mac_addr_mask[6U] ; struct wiphy *wiphy ; unsigned long scan_start ; bool aborted ; bool notified ; bool no_cck ; struct ieee80211_channel *channels[0U] ; }; struct cfg80211_match_set { struct cfg80211_ssid ssid ; s32 rssi_thold ; }; struct cfg80211_sched_scan_request { struct cfg80211_ssid *ssids ; int n_ssids ; u32 n_channels ; enum nl80211_bss_scan_width scan_width ; u32 interval ; u8 const *ie ; size_t ie_len ; u32 flags ; struct cfg80211_match_set *match_sets ; int n_match_sets ; s32 min_rssi_thold ; u32 delay ; u8 mac_addr[6U] ; u8 mac_addr_mask[6U] ; struct wiphy *wiphy ; struct net_device *dev ; unsigned long scan_start ; struct callback_head callback_head ; u32 owner_nlportid ; struct ieee80211_channel *channels[0U] ; }; enum cfg80211_signal_type { CFG80211_SIGNAL_TYPE_NONE = 0, CFG80211_SIGNAL_TYPE_MBM = 1, CFG80211_SIGNAL_TYPE_UNSPEC = 2 } ; struct cfg80211_ibss_params { u8 const *ssid ; u8 const *bssid ; struct cfg80211_chan_def chandef ; u8 const *ie ; u8 ssid_len ; u8 ie_len ; u16 beacon_interval ; u32 basic_rates ; bool channel_fixed ; bool privacy ; bool control_port ; bool userspace_handles_dfs ; int mcast_rate[3U] ; struct ieee80211_ht_cap ht_capa ; struct ieee80211_ht_cap ht_capa_mask ; }; struct cfg80211_connect_params { struct ieee80211_channel *channel ; struct ieee80211_channel *channel_hint ; u8 const *bssid ; u8 const *bssid_hint ; u8 const *ssid ; size_t ssid_len ; enum nl80211_auth_type auth_type ; u8 const *ie ; size_t ie_len ; bool privacy ; enum nl80211_mfp mfp ; struct cfg80211_crypto_settings crypto ; u8 const *key ; u8 key_len ; u8 key_idx ; u32 flags ; int bg_scan_period ; struct ieee80211_ht_cap ht_capa ; struct ieee80211_ht_cap ht_capa_mask ; struct ieee80211_vht_cap vht_capa ; struct ieee80211_vht_cap vht_capa_mask ; }; struct cfg80211_pkt_pattern { u8 const *mask ; u8 const *pattern ; int pattern_len ; int pkt_offset ; }; struct cfg80211_wowlan_tcp { struct socket *sock ; __be32 src ; __be32 dst ; u16 src_port ; u16 dst_port ; u8 dst_mac[6U] ; int payload_len ; u8 const *payload ; struct nl80211_wowlan_tcp_data_seq payload_seq ; u32 data_interval ; u32 wake_len ; u8 const *wake_data ; u8 const *wake_mask ; u32 tokens_size ; struct nl80211_wowlan_tcp_data_token payload_tok ; }; struct cfg80211_wowlan { bool any ; bool disconnect ; bool magic_pkt ; bool gtk_rekey_failure ; bool eap_identity_req ; bool four_way_handshake ; bool rfkill_release ; struct cfg80211_pkt_pattern *patterns ; struct cfg80211_wowlan_tcp *tcp ; int n_patterns ; struct cfg80211_sched_scan_request *nd_config ; }; struct ieee80211_iface_limit { u16 max ; u16 types ; }; struct ieee80211_iface_combination { struct ieee80211_iface_limit const *limits ; u32 num_different_channels ; u16 max_interfaces ; u8 n_limits ; bool beacon_int_infra_match ; u8 radar_detect_widths ; u8 radar_detect_regions ; }; struct ieee80211_txrx_stypes { u16 tx ; u16 rx ; }; struct wiphy_wowlan_tcp_support { struct nl80211_wowlan_tcp_data_token_feature const *tok ; u32 data_payload_max ; u32 data_interval_max ; u32 wake_payload_max ; bool seq ; }; struct wiphy_wowlan_support { u32 flags ; int n_patterns ; int pattern_max_len ; int pattern_min_len ; int max_pkt_offset ; int max_nd_match_sets ; struct wiphy_wowlan_tcp_support const *tcp ; }; struct wiphy_coalesce_support { int n_rules ; int max_delay ; int n_patterns ; int pattern_max_len ; int pattern_min_len ; int max_pkt_offset ; }; struct wiphy_vendor_command { struct nl80211_vendor_cmd_info info ; u32 flags ; int (*doit)(struct wiphy * , struct wireless_dev * , void const * , int ) ; }; struct wiphy { u8 perm_addr[6U] ; u8 addr_mask[6U] ; struct mac_address *addresses ; struct ieee80211_txrx_stypes const *mgmt_stypes ; struct ieee80211_iface_combination const *iface_combinations ; int n_iface_combinations ; u16 software_iftypes ; u16 n_addresses ; u16 interface_modes ; u16 max_acl_mac_addrs ; u32 flags ; u32 regulatory_flags ; u32 features ; u8 ext_features[1U] ; u32 ap_sme_capa ; enum cfg80211_signal_type signal_type ; int bss_priv_size ; u8 max_scan_ssids ; u8 max_sched_scan_ssids ; u8 max_match_sets ; u16 max_scan_ie_len ; u16 max_sched_scan_ie_len ; int n_cipher_suites ; u32 const *cipher_suites ; u8 retry_short ; u8 retry_long ; u32 frag_threshold ; u32 rts_threshold ; u8 coverage_class ; char fw_version[32U] ; u32 hw_version ; struct wiphy_wowlan_support const *wowlan ; struct cfg80211_wowlan *wowlan_config ; u16 max_remain_on_channel_duration ; u8 max_num_pmkids ; u32 available_antennas_tx ; u32 available_antennas_rx ; u32 probe_resp_offload ; u8 const *extended_capabilities ; u8 const *extended_capabilities_mask ; u8 extended_capabilities_len ; void const *privid ; struct ieee80211_supported_band *bands[3U] ; void (*reg_notifier)(struct wiphy * , struct regulatory_request * ) ; struct ieee80211_regdomain const *regd ; struct device dev ; bool registered ; struct dentry *debugfsdir ; struct ieee80211_ht_cap const *ht_capa_mod_mask ; struct ieee80211_vht_cap const *vht_capa_mod_mask ; possible_net_t _net ; struct iw_handler_def const *wext ; struct wiphy_coalesce_support const *coalesce ; struct wiphy_vendor_command const *vendor_commands ; struct nl80211_vendor_cmd_info const *vendor_events ; int n_vendor_commands ; int n_vendor_events ; u16 max_ap_assoc_sta ; u8 max_num_csa_counters ; u8 max_adj_channel_rssi_comp ; char priv[0U] ; }; struct cfg80211_conn; struct cfg80211_internal_bss; struct cfg80211_cached_keys; struct __anonstruct_wext_357 { struct cfg80211_ibss_params ibss ; struct cfg80211_connect_params connect ; struct cfg80211_cached_keys *keys ; u8 const *ie ; size_t ie_len ; u8 bssid[6U] ; u8 prev_bssid[6U] ; u8 ssid[32U] ; s8 default_key ; s8 default_mgmt_key ; bool prev_bssid_valid ; }; struct wireless_dev { struct wiphy *wiphy ; enum nl80211_iftype iftype ; struct list_head list ; struct net_device *netdev ; u32 identifier ; struct list_head mgmt_registrations ; spinlock_t mgmt_registrations_lock ; struct mutex mtx ; bool use_4addr ; bool p2p_started ; u8 address[6U] ; u8 ssid[32U] ; u8 ssid_len ; u8 mesh_id_len ; u8 mesh_id_up_len ; struct cfg80211_conn *conn ; struct cfg80211_cached_keys *connect_keys ; struct list_head event_list ; spinlock_t event_lock ; struct cfg80211_internal_bss *current_bss ; struct cfg80211_chan_def preset_chandef ; struct cfg80211_chan_def chandef ; bool ibss_fixed ; bool ibss_dfs_possible ; bool ps ; int ps_timeout ; int beacon_interval ; u32 ap_unexpected_nlportid ; bool cac_started ; unsigned long cac_start_time ; unsigned int cac_time_ms ; u32 owner_nlportid ; struct __anonstruct_wext_357 wext ; }; struct wil_platform_ops { int (*bus_request)(void * , uint32_t ) ; int (*suspend)(void * ) ; int (*resume)(void * ) ; void (*uninit)(void * ) ; }; struct RGF_BL { u32 ready ; u32 version ; u32 rf_type ; u32 baseband_type ; u8 mac_address[6U] ; u8 pad[2U] ; }; struct wil6210_mbox_ring { u32 base ; u16 entry_size ; u16 size ; u32 tail ; u32 head ; }; struct wil6210_mbox_ctl { struct wil6210_mbox_ring tx ; struct wil6210_mbox_ring rx ; }; struct wil_ctx { struct sk_buff *skb ; u8 nr_frags ; u8 mapped_as ; }; union vring_desc; struct vring { dma_addr_t pa ; union vring_desc volatile *va ; u16 size ; u32 swtail ; u32 swhead ; u32 hwtail ; struct wil_ctx *ctx ; }; struct vring_tx_data { bool dot1x_open ; int enabled ; cycles_t idle ; cycles_t last_idle ; cycles_t begin ; u8 agg_wsize ; u16 agg_timeout ; u8 agg_amsdu ; bool addba_in_progress ; spinlock_t lock ; }; struct wil_tid_ampdu_rx { struct sk_buff **reorder_buf ; unsigned long *reorder_time ; struct timer_list session_timer ; struct timer_list reorder_timer ; unsigned long last_rx ; u16 head_seq_num ; u16 stored_mpdu_num ; u16 ssn ; u16 buf_size ; u16 timeout ; u16 ssn_last_drop ; u8 dialog_token ; bool first_time ; }; enum wil_sta_status { wil_sta_unused = 0, wil_sta_conn_pending = 1, wil_sta_connected = 2 } ; struct wil_net_stats { unsigned long rx_packets ; unsigned long tx_packets ; unsigned long rx_bytes ; unsigned long tx_bytes ; unsigned long tx_errors ; unsigned long rx_dropped ; u16 last_mcs_rx ; u64 rx_per_mcs[13U] ; }; struct wil_sta_info { u8 addr[6U] ; enum wil_sta_status status ; struct wil_net_stats stats ; struct wil_tid_ampdu_rx *tid_rx[16U] ; spinlock_t tid_rx_lock ; unsigned long tid_rx_timer_expired[1U] ; unsigned long tid_rx_stop_requested[1U] ; }; struct vring_tx_desc; struct desc_alloc_info; struct pmc_ctx { struct mutex lock ; struct vring_tx_desc *pring_va ; dma_addr_t pring_pa ; struct desc_alloc_info *descriptors ; int last_cmd_status ; int num_descriptors ; int descriptor_size ; }; struct wil6210_priv { struct pci_dev *pdev ; int n_msi ; struct wireless_dev *wdev ; void *csr ; unsigned long status[1U] ; u32 fw_version ; u32 hw_version ; char const *hw_name ; unsigned long hw_capabilities[0U] ; u8 n_mids ; u32 recovery_count ; u32 recovery_state ; unsigned long last_fw_recovery ; wait_queue_head_t wq ; u32 monitor_flags ; u32 privacy ; int sinfo_gen ; u32 ap_isolate ; u32 tx_max_burst_duration ; u32 tx_interframe_timeout ; u32 rx_max_burst_duration ; u32 rx_interframe_timeout ; u32 isr_misc ; struct mutex wmi_mutex ; struct wil6210_mbox_ctl mbox_ctl ; struct completion wmi_ready ; struct completion wmi_call ; u16 wmi_seq ; u16 reply_id ; void *reply_buf ; u16 reply_size ; struct workqueue_struct *wmi_wq ; struct work_struct wmi_event_worker ; struct workqueue_struct *wq_service ; struct work_struct connect_worker ; struct work_struct disconnect_worker ; struct work_struct fw_error_worker ; struct timer_list connect_timer ; struct timer_list scan_timer ; int pending_connect_cid ; struct list_head pending_wmi_ev ; spinlock_t wmi_ev_lock ; struct napi_struct napi_rx ; struct napi_struct napi_tx ; struct list_head back_rx_pending ; struct mutex back_rx_mutex ; struct work_struct back_rx_worker ; struct list_head back_tx_pending ; struct mutex back_tx_mutex ; struct work_struct back_tx_worker ; struct list_head probe_client_pending ; struct mutex probe_client_mutex ; struct work_struct probe_client_worker ; struct vring vring_rx ; struct vring vring_tx[24U] ; struct vring_tx_data vring_tx_data[24U] ; u8 vring2cid_tid[24U][2U] ; struct wil_sta_info sta[8U] ; int bcast_vring ; struct cfg80211_scan_request *scan_request ; struct mutex mutex ; atomic_t isr_count_rx ; atomic_t isr_count_tx ; struct dentry *debug ; struct debugfs_blob_wrapper blobs[8U] ; void *platform_handle ; struct wil_platform_ops platform_ops ; struct pmc_ctx pmc ; }; struct vring_dma_addr { __le32 addr_low ; __le16 addr_high ; }; struct vring_tx_mac { u32 d[3U] ; u32 ucode_cmd ; }; struct vring_tx_dma { u32 d0 ; struct vring_dma_addr addr ; u8 ip_length ; u8 b11 ; u8 error ; u8 status ; __le16 length ; }; struct vring_rx_mac { u32 d0 ; u32 d1 ; u16 w4 ; u16 pn_15_0 ; u32 pn_47_16 ; }; struct vring_rx_dma { u32 d0 ; struct vring_dma_addr addr ; u8 ip_length ; u8 b11 ; u8 error ; u8 status ; __le16 length ; }; struct vring_tx_desc { struct vring_tx_mac mac ; struct vring_tx_dma dma ; }; struct vring_rx_desc { struct vring_rx_mac mac ; struct vring_rx_dma dma ; }; union vring_desc { struct vring_tx_desc tx ; struct vring_rx_desc rx ; }; typedef bool ldv_func_ret_type; typedef bool ldv_func_ret_type___0; typedef bool ldv_func_ret_type___1; typedef bool ldv_func_ret_type___2; typedef int ldv_func_ret_type___3; typedef int ldv_func_ret_type___4; typedef int ldv_func_ret_type___5; typedef int ldv_func_ret_type___6; typedef bool ldv_func_ret_type___7; typedef bool ldv_func_ret_type___8; typedef bool ldv_func_ret_type___9; typedef bool ldv_func_ret_type___10; typedef bool ldv_func_ret_type___11; typedef int ldv_func_ret_type___12; typedef bool ldv_func_ret_type___13; typedef int ldv_func_ret_type___14; typedef int ldv_func_ret_type___15; typedef int ldv_func_ret_type___16; typedef int ldv_func_ret_type___17; enum hrtimer_restart; enum nl80211_channel_type { NL80211_CHAN_NO_HT = 0, NL80211_CHAN_HT20 = 1, NL80211_CHAN_HT40MINUS = 2, NL80211_CHAN_HT40PLUS = 3 } ; typedef __u64 __le64; enum hrtimer_restart; enum nl80211_ac { NL80211_AC_VO = 0, NL80211_AC_VI = 1, NL80211_AC_BE = 2, NL80211_AC_BK = 3, NL80211_NUM_ACS = 4 } ; enum nl80211_txrate_gi { NL80211_TXRATE_DEFAULT_GI = 0, NL80211_TXRATE_FORCE_SGI = 1, NL80211_TXRATE_FORCE_LGI = 2 } ; enum nl80211_tx_power_setting { NL80211_TX_POWER_AUTOMATIC = 0, NL80211_TX_POWER_LIMITED = 1, NL80211_TX_POWER_FIXED = 2 } ; enum nl80211_coalesce_condition { NL80211_COALESCE_CONDITION_MATCH = 0, NL80211_COALESCE_CONDITION_NO_MATCH = 1 } ; enum nl80211_hidden_ssid { NL80211_HIDDEN_SSID_NOT_IN_USE = 0, NL80211_HIDDEN_SSID_ZERO_LEN = 1, NL80211_HIDDEN_SSID_ZERO_CONTENTS = 2 } ; enum nl80211_tdls_operation { NL80211_TDLS_DISCOVERY_REQ = 0, NL80211_TDLS_SETUP = 1, NL80211_TDLS_TEARDOWN = 2, NL80211_TDLS_ENABLE_LINK = 3, NL80211_TDLS_DISABLE_LINK = 4 } ; enum nl80211_acl_policy { NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0, NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 1 } ; enum nl80211_smps_mode { NL80211_SMPS_OFF = 0, NL80211_SMPS_STATIC = 1, NL80211_SMPS_DYNAMIC = 2, __NL80211_SMPS_AFTER_LAST = 3, NL80211_SMPS_MAX = 2 } ; enum nl80211_crit_proto_id { NL80211_CRIT_PROTO_UNSPEC = 0, NL80211_CRIT_PROTO_DHCP = 1, NL80211_CRIT_PROTO_EAPOL = 2, NL80211_CRIT_PROTO_APIPA = 3, NUM_NL80211_CRIT_PROTO = 4 } ; struct ieee80211_msrment_ie { u8 token ; u8 mode ; u8 type ; u8 request[0U] ; }; struct ieee80211_ext_chansw_ie { u8 mode ; u8 new_operating_class ; u8 new_ch_num ; u8 count ; }; struct ieee80211_tpc_report_ie { u8 tx_power ; u8 link_margin ; }; struct __anonstruct_auth_317 { __le16 auth_alg ; __le16 auth_transaction ; __le16 status_code ; u8 variable[0U] ; }; struct __anonstruct_deauth_318 { __le16 reason_code ; }; struct __anonstruct_assoc_req_319 { __le16 capab_info ; __le16 listen_interval ; u8 variable[0U] ; }; struct __anonstruct_assoc_resp_320 { __le16 capab_info ; __le16 status_code ; __le16 aid ; u8 variable[0U] ; }; struct __anonstruct_reassoc_resp_321 { __le16 capab_info ; __le16 status_code ; __le16 aid ; u8 variable[0U] ; }; struct __anonstruct_reassoc_req_322 { __le16 capab_info ; __le16 listen_interval ; u8 current_ap[6U] ; u8 variable[0U] ; }; struct __anonstruct_disassoc_323 { __le16 reason_code ; }; struct __anonstruct_beacon_324 { __le64 timestamp ; __le16 beacon_int ; __le16 capab_info ; u8 variable[0U] ; }; struct __anonstruct_probe_req_325 { u8 variable[0U] ; }; struct __anonstruct_probe_resp_326 { __le64 timestamp ; __le16 beacon_int ; __le16 capab_info ; u8 variable[0U] ; }; struct __anonstruct_wme_action_329 { u8 action_code ; u8 dialog_token ; u8 status_code ; u8 variable[0U] ; }; struct __anonstruct_chan_switch_330 { u8 action_code ; u8 variable[0U] ; }; struct __anonstruct_ext_chan_switch_331 { u8 action_code ; struct ieee80211_ext_chansw_ie data ; u8 variable[0U] ; }; struct __anonstruct_measurement_332 { u8 action_code ; u8 dialog_token ; u8 element_id ; u8 length ; struct ieee80211_msrment_ie msr_elem ; }; struct __anonstruct_addba_req_333 { u8 action_code ; u8 dialog_token ; __le16 capab ; __le16 timeout ; __le16 start_seq_num ; }; struct __anonstruct_addba_resp_334 { u8 action_code ; u8 dialog_token ; __le16 status ; __le16 capab ; __le16 timeout ; }; struct __anonstruct_delba_335 { u8 action_code ; __le16 params ; __le16 reason_code ; }; struct __anonstruct_self_prot_336 { u8 action_code ; u8 variable[0U] ; }; struct __anonstruct_mesh_action_337 { u8 action_code ; u8 variable[0U] ; }; struct __anonstruct_sa_query_338 { u8 action ; u8 trans_id[2U] ; }; struct __anonstruct_ht_smps_339 { u8 action ; u8 smps_control ; }; struct __anonstruct_ht_notify_cw_340 { u8 action_code ; u8 chanwidth ; }; struct __anonstruct_tdls_discover_resp_341 { u8 action_code ; u8 dialog_token ; __le16 capability ; u8 variable[0U] ; }; struct __anonstruct_vht_opmode_notif_342 { u8 action_code ; u8 operating_mode ; }; struct __anonstruct_tpc_report_343 { u8 action_code ; u8 dialog_token ; u8 tpc_elem_id ; u8 tpc_elem_length ; struct ieee80211_tpc_report_ie tpc ; }; union __anonunion_u_328 { struct __anonstruct_wme_action_329 wme_action ; struct __anonstruct_chan_switch_330 chan_switch ; struct __anonstruct_ext_chan_switch_331 ext_chan_switch ; struct __anonstruct_measurement_332 measurement ; struct __anonstruct_addba_req_333 addba_req ; struct __anonstruct_addba_resp_334 addba_resp ; struct __anonstruct_delba_335 delba ; struct __anonstruct_self_prot_336 self_prot ; struct __anonstruct_mesh_action_337 mesh_action ; struct __anonstruct_sa_query_338 sa_query ; struct __anonstruct_ht_smps_339 ht_smps ; struct __anonstruct_ht_notify_cw_340 ht_notify_cw ; struct __anonstruct_tdls_discover_resp_341 tdls_discover_resp ; struct __anonstruct_vht_opmode_notif_342 vht_opmode_notif ; struct __anonstruct_tpc_report_343 tpc_report ; }; struct __anonstruct_action_327 { u8 category ; union __anonunion_u_328 u ; }; union __anonunion_u_316 { struct __anonstruct_auth_317 auth ; struct __anonstruct_deauth_318 deauth ; struct __anonstruct_assoc_req_319 assoc_req ; struct __anonstruct_assoc_resp_320 assoc_resp ; struct __anonstruct_reassoc_resp_321 reassoc_resp ; struct __anonstruct_reassoc_req_322 reassoc_req ; struct __anonstruct_disassoc_323 disassoc ; struct __anonstruct_beacon_324 beacon ; struct __anonstruct_probe_req_325 probe_req ; struct __anonstruct_probe_resp_326 probe_resp ; struct __anonstruct_action_327 action ; }; struct ieee80211_mgmt { __le16 frame_control ; __le16 duration ; u8 da[6U] ; u8 sa[6U] ; u8 bssid[6U] ; __le16 seq_ctrl ; union __anonunion_u_316 u ; }; enum ieee80211_bss_type { IEEE80211_BSS_TYPE_ESS = 0, IEEE80211_BSS_TYPE_PBSS = 1, IEEE80211_BSS_TYPE_IBSS = 2, IEEE80211_BSS_TYPE_MBSS = 3, IEEE80211_BSS_TYPE_ANY = 4 } ; enum ieee80211_privacy { IEEE80211_PRIVACY_ON = 0, IEEE80211_PRIVACY_OFF = 1, IEEE80211_PRIVACY_ANY = 2 } ; struct vif_params { int use_4addr ; u8 macaddr[6U] ; }; struct key_params { u8 const *key ; u8 const *seq ; int key_len ; int seq_len ; u32 cipher ; }; struct survey_info { struct ieee80211_channel *channel ; u64 time ; u64 time_busy ; u64 time_ext_busy ; u64 time_rx ; u64 time_tx ; u64 time_scan ; u32 filled ; s8 noise ; }; struct cfg80211_beacon_data { u8 const *head ; u8 const *tail ; u8 const *beacon_ies ; u8 const *proberesp_ies ; u8 const *assocresp_ies ; u8 const *probe_resp ; size_t head_len ; size_t tail_len ; size_t beacon_ies_len ; size_t proberesp_ies_len ; size_t assocresp_ies_len ; size_t probe_resp_len ; }; struct cfg80211_acl_data { enum nl80211_acl_policy acl_policy ; int n_acl_entries ; struct mac_address mac_addrs[] ; }; struct cfg80211_ap_settings { struct cfg80211_chan_def chandef ; struct cfg80211_beacon_data beacon ; int beacon_interval ; int dtim_period ; u8 const *ssid ; size_t ssid_len ; enum nl80211_hidden_ssid hidden_ssid ; struct cfg80211_crypto_settings crypto ; bool privacy ; enum nl80211_auth_type auth_type ; enum nl80211_smps_mode smps_mode ; int inactivity_timeout ; u8 p2p_ctwindow ; bool p2p_opp_ps ; struct cfg80211_acl_data const *acl ; }; struct cfg80211_csa_settings { struct cfg80211_chan_def chandef ; struct cfg80211_beacon_data beacon_csa ; u16 const *counter_offsets_beacon ; u16 const *counter_offsets_presp ; unsigned int n_counter_offsets_beacon ; unsigned int n_counter_offsets_presp ; struct cfg80211_beacon_data beacon_after ; bool radar_required ; bool block_tx ; u8 count ; }; struct station_parameters { u8 const *supported_rates ; struct net_device *vlan ; u32 sta_flags_mask ; u32 sta_flags_set ; u32 sta_modify_mask ; int listen_interval ; u16 aid ; u8 supported_rates_len ; u8 plink_action ; u8 plink_state ; struct ieee80211_ht_cap const *ht_capa ; struct ieee80211_vht_cap const *vht_capa ; u8 uapsd_queues ; u8 max_sp ; enum nl80211_mesh_power_mode local_pm ; u16 capability ; u8 const *ext_capab ; u8 ext_capab_len ; u8 const *supported_channels ; u8 supported_channels_len ; u8 const *supported_oper_classes ; u8 supported_oper_classes_len ; u8 opmode_notif ; bool opmode_notif_used ; }; struct station_del_parameters { u8 const *mac ; u8 subtype ; u16 reason_code ; }; struct mpath_info { u32 filled ; u32 frame_qlen ; u32 sn ; u32 metric ; u32 exptime ; u32 discovery_timeout ; u8 discovery_retries ; u8 flags ; int generation ; }; struct bss_parameters { int use_cts_prot ; int use_short_preamble ; int use_short_slot_time ; u8 const *basic_rates ; u8 basic_rates_len ; int ap_isolate ; int ht_opmode ; s8 p2p_ctwindow ; s8 p2p_opp_ps ; }; struct mesh_config { u16 dot11MeshRetryTimeout ; u16 dot11MeshConfirmTimeout ; u16 dot11MeshHoldingTimeout ; u16 dot11MeshMaxPeerLinks ; u8 dot11MeshMaxRetries ; u8 dot11MeshTTL ; u8 element_ttl ; bool auto_open_plinks ; u32 dot11MeshNbrOffsetMaxNeighbor ; u8 dot11MeshHWMPmaxPREQretries ; u32 path_refresh_time ; u16 min_discovery_timeout ; u32 dot11MeshHWMPactivePathTimeout ; u16 dot11MeshHWMPpreqMinInterval ; u16 dot11MeshHWMPperrMinInterval ; u16 dot11MeshHWMPnetDiameterTraversalTime ; u8 dot11MeshHWMPRootMode ; u16 dot11MeshHWMPRannInterval ; bool dot11MeshGateAnnouncementProtocol ; bool dot11MeshForwarding ; s32 rssi_threshold ; u16 ht_opmode ; u32 dot11MeshHWMPactivePathToRootTimeout ; u16 dot11MeshHWMProotInterval ; u16 dot11MeshHWMPconfirmationInterval ; enum nl80211_mesh_power_mode power_mode ; u16 dot11MeshAwakeWindowDuration ; u32 plink_timeout ; }; struct mesh_setup { struct cfg80211_chan_def chandef ; u8 const *mesh_id ; u8 mesh_id_len ; u8 sync_method ; u8 path_sel_proto ; u8 path_metric ; u8 auth_id ; u8 const *ie ; u8 ie_len ; bool is_authenticated ; bool is_secure ; bool user_mpm ; u8 dtim_period ; u16 beacon_interval ; int mcast_rate[3U] ; u32 basic_rates ; }; struct ocb_setup { struct cfg80211_chan_def chandef ; }; struct ieee80211_txq_params { enum nl80211_ac ac ; u16 txop ; u16 cwmin ; u16 cwmax ; u8 aifs ; }; struct cfg80211_bss_ies { u64 tsf ; struct callback_head callback_head ; int len ; bool from_beacon ; u8 data[] ; }; struct cfg80211_bss { struct ieee80211_channel *channel ; enum nl80211_bss_scan_width scan_width ; struct cfg80211_bss_ies const *ies ; struct cfg80211_bss_ies const *beacon_ies ; struct cfg80211_bss_ies const *proberesp_ies ; struct cfg80211_bss *hidden_beacon_bss ; s32 signal ; u16 beacon_interval ; u16 capability ; u8 bssid[6U] ; u8 priv[0U] ; }; struct cfg80211_auth_request { struct cfg80211_bss *bss ; u8 const *ie ; size_t ie_len ; enum nl80211_auth_type auth_type ; u8 const *key ; u8 key_len ; u8 key_idx ; u8 const *sae_data ; size_t sae_data_len ; }; struct cfg80211_assoc_request { struct cfg80211_bss *bss ; u8 const *ie ; u8 const *prev_bssid ; size_t ie_len ; struct cfg80211_crypto_settings crypto ; bool use_mfp ; u32 flags ; struct ieee80211_ht_cap ht_capa ; struct ieee80211_ht_cap ht_capa_mask ; struct ieee80211_vht_cap vht_capa ; struct ieee80211_vht_cap vht_capa_mask ; }; struct cfg80211_deauth_request { u8 const *bssid ; u8 const *ie ; size_t ie_len ; u16 reason_code ; bool local_state_change ; }; struct cfg80211_disassoc_request { struct cfg80211_bss *bss ; u8 const *ie ; size_t ie_len ; u16 reason_code ; bool local_state_change ; }; struct __anonstruct_control_355 { u32 legacy ; u8 ht_mcs[10U] ; u16 vht_mcs[8U] ; enum nl80211_txrate_gi gi ; }; struct cfg80211_bitrate_mask { struct __anonstruct_control_355 control[3U] ; }; struct cfg80211_pmksa { u8 const *bssid ; u8 const *pmkid ; }; struct cfg80211_coalesce_rules { int delay ; enum nl80211_coalesce_condition condition ; struct cfg80211_pkt_pattern *patterns ; int n_patterns ; }; struct cfg80211_coalesce { struct cfg80211_coalesce_rules *rules ; int n_rules ; }; struct cfg80211_gtk_rekey_data { u8 const *kek ; u8 const *kck ; u8 const *replay_ctr ; }; struct cfg80211_update_ft_ies_params { u16 md ; u8 const *ie ; size_t ie_len ; }; struct cfg80211_mgmt_tx_params { struct ieee80211_channel *chan ; bool offchan ; unsigned int wait ; u8 const *buf ; size_t len ; bool no_cck ; bool dont_wait_for_ack ; int n_csa_offsets ; u16 const *csa_offsets ; }; struct cfg80211_dscp_exception { u8 dscp ; u8 up ; }; struct cfg80211_dscp_range { u8 low ; u8 high ; }; struct cfg80211_qos_map { u8 num_des ; struct cfg80211_dscp_exception dscp_exception[21U] ; struct cfg80211_dscp_range up[8U] ; }; struct cfg80211_ops { int (*suspend)(struct wiphy * , struct cfg80211_wowlan * ) ; int (*resume)(struct wiphy * ) ; void (*set_wakeup)(struct wiphy * , bool ) ; struct wireless_dev *(*add_virtual_intf)(struct wiphy * , char const * , unsigned char , enum nl80211_iftype , u32 * , struct vif_params * ) ; int (*del_virtual_intf)(struct wiphy * , struct wireless_dev * ) ; int (*change_virtual_intf)(struct wiphy * , struct net_device * , enum nl80211_iftype , u32 * , struct vif_params * ) ; int (*add_key)(struct wiphy * , struct net_device * , u8 , bool , u8 const * , struct key_params * ) ; int (*get_key)(struct wiphy * , struct net_device * , u8 , bool , u8 const * , void * , void (*)(void * , struct key_params * ) ) ; int (*del_key)(struct wiphy * , struct net_device * , u8 , bool , u8 const * ) ; int (*set_default_key)(struct wiphy * , struct net_device * , u8 , bool , bool ) ; int (*set_default_mgmt_key)(struct wiphy * , struct net_device * , u8 ) ; int (*start_ap)(struct wiphy * , struct net_device * , struct cfg80211_ap_settings * ) ; int (*change_beacon)(struct wiphy * , struct net_device * , struct cfg80211_beacon_data * ) ; int (*stop_ap)(struct wiphy * , struct net_device * ) ; int (*add_station)(struct wiphy * , struct net_device * , u8 const * , struct station_parameters * ) ; int (*del_station)(struct wiphy * , struct net_device * , struct station_del_parameters * ) ; int (*change_station)(struct wiphy * , struct net_device * , u8 const * , struct station_parameters * ) ; int (*get_station)(struct wiphy * , struct net_device * , u8 const * , struct station_info * ) ; int (*dump_station)(struct wiphy * , struct net_device * , int , u8 * , struct station_info * ) ; int (*add_mpath)(struct wiphy * , struct net_device * , u8 const * , u8 const * ) ; int (*del_mpath)(struct wiphy * , struct net_device * , u8 const * ) ; int (*change_mpath)(struct wiphy * , struct net_device * , u8 const * , u8 const * ) ; int (*get_mpath)(struct wiphy * , struct net_device * , u8 * , u8 * , struct mpath_info * ) ; int (*dump_mpath)(struct wiphy * , struct net_device * , int , u8 * , u8 * , struct mpath_info * ) ; int (*get_mpp)(struct wiphy * , struct net_device * , u8 * , u8 * , struct mpath_info * ) ; int (*dump_mpp)(struct wiphy * , struct net_device * , int , u8 * , u8 * , struct mpath_info * ) ; int (*get_mesh_config)(struct wiphy * , struct net_device * , struct mesh_config * ) ; int (*update_mesh_config)(struct wiphy * , struct net_device * , u32 , struct mesh_config const * ) ; int (*join_mesh)(struct wiphy * , struct net_device * , struct mesh_config const * , struct mesh_setup const * ) ; int (*leave_mesh)(struct wiphy * , struct net_device * ) ; int (*join_ocb)(struct wiphy * , struct net_device * , struct ocb_setup * ) ; int (*leave_ocb)(struct wiphy * , struct net_device * ) ; int (*change_bss)(struct wiphy * , struct net_device * , struct bss_parameters * ) ; int (*set_txq_params)(struct wiphy * , struct net_device * , struct ieee80211_txq_params * ) ; int (*libertas_set_mesh_channel)(struct wiphy * , struct net_device * , struct ieee80211_channel * ) ; int (*set_monitor_channel)(struct wiphy * , struct cfg80211_chan_def * ) ; int (*scan)(struct wiphy * , struct cfg80211_scan_request * ) ; int (*auth)(struct wiphy * , struct net_device * , struct cfg80211_auth_request * ) ; int (*assoc)(struct wiphy * , struct net_device * , struct cfg80211_assoc_request * ) ; int (*deauth)(struct wiphy * , struct net_device * , struct cfg80211_deauth_request * ) ; int (*disassoc)(struct wiphy * , struct net_device * , struct cfg80211_disassoc_request * ) ; int (*connect)(struct wiphy * , struct net_device * , struct cfg80211_connect_params * ) ; int (*disconnect)(struct wiphy * , struct net_device * , u16 ) ; int (*join_ibss)(struct wiphy * , struct net_device * , struct cfg80211_ibss_params * ) ; int (*leave_ibss)(struct wiphy * , struct net_device * ) ; int (*set_mcast_rate)(struct wiphy * , struct net_device * , int * ) ; int (*set_wiphy_params)(struct wiphy * , u32 ) ; int (*set_tx_power)(struct wiphy * , struct wireless_dev * , enum nl80211_tx_power_setting , int ) ; int (*get_tx_power)(struct wiphy * , struct wireless_dev * , int * ) ; int (*set_wds_peer)(struct wiphy * , struct net_device * , u8 const * ) ; void (*rfkill_poll)(struct wiphy * ) ; int (*testmode_cmd)(struct wiphy * , struct wireless_dev * , void * , int ) ; int (*testmode_dump)(struct wiphy * , struct sk_buff * , struct netlink_callback * , void * , int ) ; int (*set_bitrate_mask)(struct wiphy * , struct net_device * , u8 const * , struct cfg80211_bitrate_mask const * ) ; int (*dump_survey)(struct wiphy * , struct net_device * , int , struct survey_info * ) ; int (*set_pmksa)(struct wiphy * , struct net_device * , struct cfg80211_pmksa * ) ; int (*del_pmksa)(struct wiphy * , struct net_device * , struct cfg80211_pmksa * ) ; int (*flush_pmksa)(struct wiphy * , struct net_device * ) ; int (*remain_on_channel)(struct wiphy * , struct wireless_dev * , struct ieee80211_channel * , unsigned int , u64 * ) ; int (*cancel_remain_on_channel)(struct wiphy * , struct wireless_dev * , u64 ) ; int (*mgmt_tx)(struct wiphy * , struct wireless_dev * , struct cfg80211_mgmt_tx_params * , u64 * ) ; int (*mgmt_tx_cancel_wait)(struct wiphy * , struct wireless_dev * , u64 ) ; int (*set_power_mgmt)(struct wiphy * , struct net_device * , bool , int ) ; int (*set_cqm_rssi_config)(struct wiphy * , struct net_device * , s32 , u32 ) ; int (*set_cqm_txe_config)(struct wiphy * , struct net_device * , u32 , u32 , u32 ) ; void (*mgmt_frame_register)(struct wiphy * , struct wireless_dev * , u16 , bool ) ; int (*set_antenna)(struct wiphy * , u32 , u32 ) ; int (*get_antenna)(struct wiphy * , u32 * , u32 * ) ; int (*sched_scan_start)(struct wiphy * , struct net_device * , struct cfg80211_sched_scan_request * ) ; int (*sched_scan_stop)(struct wiphy * , struct net_device * ) ; int (*set_rekey_data)(struct wiphy * , struct net_device * , struct cfg80211_gtk_rekey_data * ) ; int (*tdls_mgmt)(struct wiphy * , struct net_device * , u8 const * , u8 , u8 , u16 , u32 , bool , u8 const * , size_t ) ; int (*tdls_oper)(struct wiphy * , struct net_device * , u8 const * , enum nl80211_tdls_operation ) ; int (*probe_client)(struct wiphy * , struct net_device * , u8 const * , u64 * ) ; int (*set_noack_map)(struct wiphy * , struct net_device * , u16 ) ; int (*get_channel)(struct wiphy * , struct wireless_dev * , struct cfg80211_chan_def * ) ; int (*start_p2p_device)(struct wiphy * , struct wireless_dev * ) ; void (*stop_p2p_device)(struct wiphy * , struct wireless_dev * ) ; int (*set_mac_acl)(struct wiphy * , struct net_device * , struct cfg80211_acl_data const * ) ; int (*start_radar_detection)(struct wiphy * , struct net_device * , struct cfg80211_chan_def * , u32 ) ; int (*update_ft_ies)(struct wiphy * , struct net_device * , struct cfg80211_update_ft_ies_params * ) ; int (*crit_proto_start)(struct wiphy * , struct wireless_dev * , enum nl80211_crit_proto_id , u16 ) ; void (*crit_proto_stop)(struct wiphy * , struct wireless_dev * ) ; int (*set_coalesce)(struct wiphy * , struct cfg80211_coalesce * ) ; int (*channel_switch)(struct wiphy * , struct net_device * , struct cfg80211_csa_settings * ) ; int (*set_qos_map)(struct wiphy * , struct net_device * , struct cfg80211_qos_map * ) ; int (*set_ap_chanwidth)(struct wiphy * , struct net_device * , struct cfg80211_chan_def * ) ; int (*add_tx_ts)(struct wiphy * , struct net_device * , u8 , u8 const * , u8 , u16 ) ; int (*del_tx_ts)(struct wiphy * , struct net_device * , u8 , u8 const * ) ; int (*tdls_channel_switch)(struct wiphy * , struct net_device * , u8 const * , u8 , struct cfg80211_chan_def * ) ; void (*tdls_cancel_channel_switch)(struct wiphy * , struct net_device * , u8 const * ) ; }; struct wil6210_mbox_hdr_wmi { u8 mid ; u8 reserved ; __le16 id ; __le32 timestamp ; }; struct wil_probe_client_req { struct list_head list ; u64 cookie ; u8 cid ; }; enum wmi_network_type { WMI_NETTYPE_INFRA = 1, WMI_NETTYPE_ADHOC = 2, WMI_NETTYPE_ADHOC_CREATOR = 4, WMI_NETTYPE_AP = 16, WMI_NETTYPE_P2P = 32, WMI_NETTYPE_WBE = 64 } ; struct wmi_connect_cmd { u8 network_type ; u8 dot11_auth_mode ; u8 auth_mode ; u8 pairwise_crypto_type ; u8 pairwise_crypto_len ; u8 group_crypto_type ; u8 group_crypto_len ; u8 ssid_len ; u8 ssid[32U] ; u8 channel ; u8 reserved0 ; u8 bssid[6U] ; __le32 ctrl_flags ; u8 dst_mac[6U] ; u8 reserved1[2U] ; }; enum wmi_key_usage { WMI_KEY_USE_PAIRWISE = 0, WMI_KEY_USE_RX_GROUP = 1, WMI_KEY_USE_TX_GROUP = 2 } ; struct __anonstruct_channel_list_358 { u8 channel ; u8 reserved ; }; struct wmi_start_scan_cmd { u8 direct_scan_mac_addr[6U] ; u8 reserved[2U] ; __le32 home_dwell_time ; __le32 force_scan_interval ; u8 scan_type ; u8 num_channels ; struct __anonstruct_channel_list_358 channel_list[0U] ; }; struct wmi_sw_tx_req_cmd { u8 dst_mac[6U] ; __le16 len ; u8 payload[0U] ; }; struct wmi_notify_req_cmd { u8 cid ; u8 year ; u8 month ; u8 day ; __le32 interval_usec ; u8 hour ; u8 minute ; u8 second ; u8 miliseconds ; }; struct wmi_notify_req_done_event { __le32 status ; __le64 tsf ; __le32 snr_val ; __le32 tx_tpt ; __le32 tx_goodput ; __le32 rx_goodput ; __le16 bf_mcs ; __le16 my_rx_sector ; __le16 my_tx_sector ; __le16 other_rx_sector ; __le16 other_tx_sector ; __le16 range ; u8 sqi ; u8 reserved[3U] ; }; struct wmi_sw_tx_complete_event { u8 status ; u8 reserved[3U] ; }; struct __anonstruct___nl2wmi_360 { enum nl80211_iftype nl ; enum wmi_network_type wmi ; }; struct __anonstruct_reply_363 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_notify_req_done_event evt ; }; struct __anonstruct_cmd_366 { struct wmi_start_scan_cmd cmd ; u16 chnl[4U] ; }; struct __anonstruct_evt_370 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_sw_tx_complete_event evt ; }; typedef int ldv_func_ret_type___18; struct kernel_symbol { unsigned long value ; char const *name ; }; typedef u64 phys_addr_t; typedef phys_addr_t resource_size_t; typedef void (*ctor_fn_t)(void); struct bug_entry { int bug_addr_disp ; int file_disp ; unsigned short line ; unsigned short flags ; }; enum hrtimer_restart; 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_bus; struct trace_event_call; 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 latch_tree_node { struct rb_node node[2U] ; }; 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 completion *kobj_completion ; }; 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, MODULE_STATE_UNFORMED = 3 } ; struct mod_tree_node { struct module *mod ; struct latch_tree_node node ; }; struct module_sect_attrs; struct module_notes_attrs; struct tracepoint; struct trace_enum_map; 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 mutex param_lock ; 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 ; bool async_probe_requested ; 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_tree_node mtn_core ; struct mod_tree_node mtn_init ; 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 trace_event_call **trace_events ; unsigned int num_trace_events ; struct trace_enum_map **trace_enums ; unsigned int num_trace_enums ; bool klp_alive ; struct list_head source_list ; struct list_head target_list ; void (*exit)(void) ; atomic_t refcnt ; ctor_fn_t (**ctors)(void) ; unsigned int num_ctors ; }; struct pci_device_id { __u32 vendor ; __u32 device ; __u32 subvendor ; __u32 subdevice ; __u32 class ; __u32 class_mask ; kernel_ulong_t driver_data ; }; 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____missing_field_name_220___0 { 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 ; u8 msi_cap ; u8 msix_cap ; unsigned char pcie_mpss : 3 ; u8 rom_base_reg ; u8 pin ; u16 pcie_flags_reg ; u8 dma_alias_devfn ; struct pci_driver *driver ; u64 dma_mask ; struct device_dma_parameters dma_parms ; pci_power_t current_state ; u8 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 char ignore_hotplug : 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] ; bool match_driver ; 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 no_64bit_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 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 ; unsigned char irq_managed : 1 ; unsigned char has_secondary_link : 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 attribute_group const **msi_irq_groups ; struct pci_vpd *vpd ; union __anonunion____missing_field_name_220___0 __annonCompField58 ; struct pci_ats *ats ; phys_addr_t rom ; size_t romlen ; char *driver_override ; }; struct pci_ops; struct msi_controller; 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 ; struct msi_controller *msi ; 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 { void *(*map_bus)(struct pci_bus * , unsigned int , int ) ; 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 (*reset_notify)(struct pci_dev * , bool ) ; 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 exception_table_entry { int insn ; int fixup ; }; struct gate_struct64 { u16 offset_low ; u16 segment ; unsigned char ist : 3 ; unsigned char zero0 : 5 ; unsigned char type : 5 ; unsigned char dpl : 2 ; unsigned char p : 1 ; u16 offset_middle ; u32 offset_high ; u32 zero1 ; }; typedef struct gate_struct64 gate_desc; struct desc_ptr { unsigned short size ; unsigned long address ; }; struct tss_struct; struct pv_cpu_ops { unsigned long (*get_debugreg)(int ) ; void (*set_debugreg)(int , unsigned long ) ; void (*clts)(void) ; unsigned long (*read_cr0)(void) ; void (*write_cr0)(unsigned long ) ; unsigned long (*read_cr4_safe)(void) ; unsigned long (*read_cr4)(void) ; void (*write_cr4)(unsigned long ) ; unsigned long (*read_cr8)(void) ; void (*write_cr8)(unsigned long ) ; void (*load_tr_desc)(void) ; void (*load_gdt)(struct desc_ptr const * ) ; void (*load_idt)(struct desc_ptr const * ) ; void (*store_idt)(struct desc_ptr * ) ; void (*set_ldt)(void const * , unsigned int ) ; unsigned long (*store_tr)(void) ; void (*load_tls)(struct thread_struct * , unsigned int ) ; void (*load_gs_index)(unsigned int ) ; void (*write_ldt_entry)(struct desc_struct * , int , void const * ) ; void (*write_gdt_entry)(struct desc_struct * , int , void const * , int ) ; void (*write_idt_entry)(gate_desc * , int , gate_desc const * ) ; void (*alloc_ldt)(struct desc_struct * , unsigned int ) ; void (*free_ldt)(struct desc_struct * , unsigned int ) ; void (*load_sp0)(struct tss_struct * , struct thread_struct * ) ; void (*set_iopl_mask)(unsigned int ) ; void (*wbinvd)(void) ; void (*io_delay)(void) ; void (*cpuid)(unsigned int * , unsigned int * , unsigned int * , unsigned int * ) ; u64 (*read_msr)(unsigned int , int * ) ; int (*write_msr)(unsigned int , unsigned int , unsigned int ) ; u64 (*read_tsc)(void) ; u64 (*read_pmc)(int ) ; unsigned long long (*read_tscp)(unsigned int * ) ; void (*usergs_sysret64)(void) ; void (*usergs_sysret32)(void) ; void (*iret)(void) ; void (*swapgs)(void) ; void (*start_context_switch)(struct task_struct * ) ; void (*end_context_switch)(struct task_struct * ) ; }; struct x86_hw_tss { u32 reserved1 ; u64 sp0 ; u64 sp1 ; u64 sp2 ; u64 reserved2 ; u64 ist[7U] ; u32 reserved3 ; u32 reserved4 ; u16 reserved5 ; u16 io_bitmap_base ; }; struct tss_struct { struct x86_hw_tss x86_tss ; unsigned long io_bitmap[1025U] ; unsigned long SYSENTER_stack[64U] ; }; enum hrtimer_restart; struct skb_frag_struct; typedef struct skb_frag_struct skb_frag_t; struct __anonstruct_page_279 { struct page *p ; }; struct skb_frag_struct { struct __anonstruct_page_279 page ; __u32 page_offset ; __u32 size ; }; struct skb_shared_hwtstamps { ktime_t hwtstamp ; }; struct skb_shared_info { unsigned char nr_frags ; __u8 tx_flags ; unsigned short gso_size ; unsigned short gso_segs ; unsigned short gso_type ; struct sk_buff *frag_list ; struct skb_shared_hwtstamps hwtstamps ; u32 tskey ; __be32 ip6_frag_id ; atomic_t dataref ; void *destructor_arg ; skb_frag_t frags[17U] ; }; struct fw_map { u32 from ; u32 to ; u32 host ; char const *name ; }; struct wil6210_mbox_ring_desc { __le32 sync ; __le32 addr ; }; struct wil6210_mbox_hdr { __le16 seq ; __le16 len ; __le16 type ; u8 flags ; u8 reserved ; }; enum dbg_off_type { doff_u32 = 0, doff_x32 = 1, doff_ulong = 2, doff_io32 = 3 } ; struct dbg_off { char const *name ; umode_t mode ; ulong off ; enum dbg_off_type type ; }; struct __anonstruct_reply_372 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_notify_req_done_event evt ; }; struct __anonstruct_dbg_files_378 { char const *name ; umode_t mode ; struct file_operations const *fops ; }; struct __anonstruct_dbg_icr_380 { char const *name ; u32 icr_off ; }; 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 static_key; typedef int pao_T__; typedef int pao_T_____0; struct static_key { atomic_t enabled ; }; enum hrtimer_restart; struct __anonstruct_event_358 { struct wil6210_mbox_hdr hdr ; struct wil6210_mbox_hdr_wmi wmi ; u8 data[0U] ; }; struct pending_wmi_event { struct list_head list ; struct __anonstruct_event_358 event ; }; struct wmi_disconnect_sta_cmd { u8 dst_mac[6U] ; __le16 disconnect_reason ; }; struct wmi_add_cipher_key_cmd { u8 key_index ; u8 key_type ; u8 key_usage ; u8 key_len ; u8 key_rsc[8U] ; u8 key[32U] ; u8 key_op_ctrl ; u8 mac[6U] ; }; struct wmi_delete_cipher_key_cmd { u8 key_index ; u8 mac[6U] ; }; struct wmi_set_appie_cmd { u8 mgmt_frm_type ; u8 reserved ; __le16 ie_len ; u8 ie_info[0U] ; }; struct wmi_set_ssid_cmd { __le32 ssid_len ; u8 ssid[32U] ; }; struct wmi_set_pcp_channel_cmd { u8 channel ; u8 reserved[3U] ; }; struct wmi_p2p_cfg_cmd { u8 discovery_mode ; u8 channel ; __le16 bcon_interval ; }; struct wmi_pcp_start_cmd { __le16 bcon_interval ; u8 pcp_max_assoc_sta ; u8 hidden_ssid ; u8 reserved0[8U] ; u8 network_type ; u8 channel ; u8 disable_sec_offload ; u8 disable_sec ; }; struct wmi_sw_ring_cfg { __le64 ring_mem_base ; __le16 ring_size ; __le16 max_mpdu_size ; }; struct wmi_vring_ba_en_cmd { u8 ringid ; u8 agg_max_wsize ; __le16 ba_timeout ; u8 amsdu ; }; struct wmi_vring_ba_dis_cmd { u8 ringid ; u8 reserved ; __le16 reason ; }; struct wmi_sniffer_cfg { __le32 mode ; __le32 phy_info_mode ; __le32 phy_support ; u8 channel ; u8 reserved[3U] ; }; struct wmi_cfg_rx_chain_cmd { __le32 action ; struct wmi_sw_ring_cfg rx_sw_ring ; u8 mid ; u8 decap_trans_type ; u8 l2_802_3_offload_ctrl ; u8 l2_nwifi_offload_ctrl ; u8 vlan_id ; u8 nwifi_ds_trans_type ; u8 l3_l4_ctrl ; u8 ring_ctrl ; __le16 prefetch_thrsh ; __le16 wb_thrsh ; __le32 itr_value ; __le16 host_thrsh ; u8 reorder_type ; u8 reserved ; struct wmi_sniffer_cfg sniffer_cfg ; }; struct wmi_rcp_addba_resp_cmd { u8 cidxtid ; u8 dialog_token ; __le16 status_code ; __le16 ba_param_set ; __le16 ba_timeout ; }; struct wmi_rcp_delba_cmd { u8 cidxtid ; u8 reserved ; __le16 reason ; }; struct wmi_set_mac_address_cmd { u8 mac[6U] ; u8 reserved[2U] ; }; struct wmi_echo_cmd { __le32 value ; }; struct wmi_temp_sense_cmd { __le32 measure_baseband_en ; __le32 measure_rf_en ; __le32 measure_mode ; }; struct wmi_eapol_rx_event { u8 src_mac[6U] ; __le16 eapol_len ; u8 eapol[0U] ; }; struct wmi_ready_event { __le32 sw_version ; __le32 abi_version ; u8 mac[6U] ; u8 phy_capability ; u8 numof_additional_mids ; }; struct wmi_connect_event { u8 channel ; u8 reserved0 ; u8 bssid[6U] ; __le16 listen_interval ; __le16 beacon_interval ; u8 network_type ; u8 reserved1[3U] ; u8 beacon_ie_len ; u8 assoc_req_len ; u8 assoc_resp_len ; u8 cid ; u8 reserved2[3U] ; u8 assoc_info[0U] ; }; struct wmi_disconnect_event { __le16 protocol_reason_status ; u8 bssid[6U] ; u8 disconnect_reason ; u8 assoc_resp_len ; u8 assoc_info[0U] ; }; struct wmi_scan_complete_event { __le32 status ; }; struct wmi_vring_ba_status_event { __le16 status ; u8 reserved[2U] ; u8 ringid ; u8 agg_wsize ; __le16 ba_timeout ; u8 amsdu ; }; struct wmi_delba_event { u8 cidxtid ; u8 from_initiator ; __le16 reason ; }; struct wmi_rcp_addba_resp_sent_event { u8 cidxtid ; u8 reserved ; __le16 status ; }; struct wmi_rcp_addba_req_event { u8 cidxtid ; u8 dialog_token ; __le16 ba_param_set ; __le16 ba_timeout ; __le16 ba_seq_ctrl ; }; struct wmi_cfg_rx_chain_done_event { __le32 rx_ring_tail_ptr ; __le32 status ; }; struct wmi_vring_en_event { u8 vring_index ; u8 reserved[3U] ; }; struct wmi_listen_started_event { u8 status ; u8 reserved[3U] ; }; struct wmi_pcp_started_event { u8 status ; u8 reserved[3U] ; }; struct wmi_rx_mgmt_info { u8 mcs ; s8 snr ; u8 range ; u8 sqi ; __le16 stype ; __le16 status ; __le32 len ; u8 qid ; u8 mid ; u8 cid ; u8 channel ; }; struct wmi_rx_mgmt_packet_event { struct wmi_rx_mgmt_info info ; u8 payload[0U] ; }; struct wmi_temp_sense_done_event { __le32 baseband_t1000 ; __le32 rf_t1000 ; }; 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 ; }; union __anonunion___u_361 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_363 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_365 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_367 { struct tracepoint_func *__val ; char __c[1U] ; }; struct __anonstruct_cmd_414 { struct wil6210_mbox_hdr hdr ; struct wil6210_mbox_hdr_wmi wmi ; }; struct __anonstruct_wmi_evt_handlers_418 { int eventid ; void (*handler)(struct wil6210_priv * , int , void * , int ) ; }; struct __anonstruct_reply_420 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_pcp_started_event evt ; }; struct __anonstruct_reply_422 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_set_ssid_cmd cmd ; }; struct __anonstruct_reply_424 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_set_pcp_channel_cmd cmd ; }; struct __anonstruct_reply_426 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_listen_started_event evt ; }; struct __anonstruct_evt_428 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_cfg_rx_chain_done_event evt ; }; struct __anonstruct_reply_430 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_temp_sense_done_event evt ; }; struct __anonstruct_reply_432 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_rcp_addba_resp_sent_event evt ; }; enum hrtimer_restart; enum kobject_action { KOBJ_ADD = 0, KOBJ_REMOVE = 1, KOBJ_CHANGE = 2, KOBJ_MOVE = 3, KOBJ_ONLINE = 4, KOBJ_OFFLINE = 5, KOBJ_MAX = 6 } ; union __anonunion___u_375 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_377 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_379 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_381 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_383 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_385 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_387 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_389 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_391 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_393 { struct tracepoint_func *__val ; char __c[1U] ; }; typedef int ldv_func_ret_type___19; typedef short __s16; typedef __u16 __sum16; enum hrtimer_restart; struct rtable; struct icmpv6_mib_device { atomic_long_t mibs[6U] ; }; struct icmpv6msg_mib_device { atomic_long_t mibs[512U] ; }; struct xfrm_policy; struct xfrm_state; struct request_sock; enum gro_result { GRO_MERGED = 0, GRO_MERGED_FREE = 1, GRO_HELD = 2, GRO_NORMAL = 3, GRO_DROP = 4 } ; typedef enum gro_result gro_result_t; enum skb_free_reason { SKB_REASON_CONSUMED = 0, SKB_REASON_DROPPED = 1 } ; struct ieee80211_radiotap_header { u8 it_version ; u8 it_pad ; __le16 it_len ; __le32 it_present ; }; struct iphdr { unsigned char ihl : 4 ; unsigned char version : 4 ; __u8 tos ; __be16 tot_len ; __be16 id ; __be16 frag_off ; __u8 ttl ; __u8 protocol ; __sum16 check ; __be32 saddr ; __be32 daddr ; }; struct ipv6hdr { unsigned char priority : 4 ; unsigned char version : 4 ; __u8 flow_lbl[3U] ; __be16 payload_len ; __u8 nexthdr ; __u8 hop_limit ; struct in6_addr saddr ; struct in6_addr daddr ; }; struct ipv6_stable_secret { bool initialized ; struct in6_addr secret ; }; struct ipv6_devconf { __s32 forwarding ; __s32 hop_limit ; __s32 mtu6 ; __s32 accept_ra ; __s32 accept_redirects ; __s32 autoconf ; __s32 dad_transmits ; __s32 rtr_solicits ; __s32 rtr_solicit_interval ; __s32 rtr_solicit_delay ; __s32 force_mld_version ; __s32 mldv1_unsolicited_report_interval ; __s32 mldv2_unsolicited_report_interval ; __s32 use_tempaddr ; __s32 temp_valid_lft ; __s32 temp_prefered_lft ; __s32 regen_max_retry ; __s32 max_desync_factor ; __s32 max_addresses ; __s32 accept_ra_defrtr ; __s32 accept_ra_pinfo ; __s32 accept_ra_rtr_pref ; __s32 rtr_probe_interval ; __s32 accept_ra_rt_info_max_plen ; __s32 proxy_ndp ; __s32 accept_source_route ; __s32 accept_ra_from_local ; __s32 optimistic_dad ; __s32 use_optimistic ; __s32 mc_forwarding ; __s32 disable_ipv6 ; __s32 accept_dad ; __s32 force_tllao ; __s32 ndisc_notify ; __s32 suppress_frag_ndisc ; __s32 accept_ra_mtu ; struct ipv6_stable_secret stable_secret ; void *sysctl ; }; struct page_counter { atomic_long_t count ; unsigned long limit ; struct page_counter *parent ; unsigned long watermark ; unsigned long failcnt ; }; struct sock_filter { __u16 code ; __u8 jt ; __u8 jf ; __u32 k ; }; struct bpf_insn { __u8 code ; unsigned char dst_reg : 4 ; unsigned char src_reg : 4 ; __s16 off ; __s32 imm ; }; enum bpf_prog_type { BPF_PROG_TYPE_UNSPEC = 0, BPF_PROG_TYPE_SOCKET_FILTER = 1, BPF_PROG_TYPE_KPROBE = 2, BPF_PROG_TYPE_SCHED_CLS = 3, BPF_PROG_TYPE_SCHED_ACT = 4 } ; struct bpf_prog_aux; struct sock_fprog_kern { u16 len ; struct sock_filter *filter ; }; union __anonunion____missing_field_name_323 { struct sock_filter insns[0U] ; struct bpf_insn insnsi[0U] ; }; struct bpf_prog { u16 pages ; bool jited ; bool gpl_compatible ; u32 len ; enum bpf_prog_type type ; struct bpf_prog_aux *aux ; struct sock_fprog_kern *orig_prog ; unsigned int (*bpf_func)(struct sk_buff const * , struct bpf_insn const * ) ; union __anonunion____missing_field_name_323 __annonCompField99 ; }; struct sk_filter { atomic_t refcnt ; struct callback_head rcu ; struct bpf_prog *prog ; }; struct pollfd { int fd ; short events ; short revents ; }; struct poll_table_struct { void (*_qproc)(struct file * , wait_queue_head_t * , struct poll_table_struct * ) ; unsigned long _key ; }; struct nla_policy { u16 type ; u16 len ; }; struct rtnl_link_ops { struct list_head list ; char const *kind ; size_t priv_size ; void (*setup)(struct net_device * ) ; int maxtype ; struct nla_policy const *policy ; int (*validate)(struct nlattr ** , struct nlattr ** ) ; int (*newlink)(struct net * , struct net_device * , struct nlattr ** , struct nlattr ** ) ; int (*changelink)(struct net_device * , struct nlattr ** , struct nlattr ** ) ; void (*dellink)(struct net_device * , struct list_head * ) ; size_t (*get_size)(struct net_device const * ) ; int (*fill_info)(struct sk_buff * , struct net_device const * ) ; size_t (*get_xstats_size)(struct net_device const * ) ; int (*fill_xstats)(struct sk_buff * , struct net_device const * ) ; unsigned int (*get_num_tx_queues)(void) ; unsigned int (*get_num_rx_queues)(void) ; int slave_maxtype ; struct nla_policy const *slave_policy ; int (*slave_validate)(struct nlattr ** , struct nlattr ** ) ; int (*slave_changelink)(struct net_device * , struct net_device * , struct nlattr ** , struct nlattr ** ) ; size_t (*get_slave_size)(struct net_device const * , struct net_device const * ) ; int (*fill_slave_info)(struct sk_buff * , struct net_device const * , struct net_device const * ) ; struct net *(*get_link_net)(struct net_device const * ) ; }; struct neigh_table; struct neigh_parms { possible_net_t net ; struct net_device *dev ; struct list_head list ; int (*neigh_setup)(struct neighbour * ) ; void (*neigh_cleanup)(struct neighbour * ) ; struct neigh_table *tbl ; void *sysctl_table ; int dead ; atomic_t refcnt ; struct callback_head callback_head ; int reachable_time ; int data[13U] ; unsigned long data_state[1U] ; }; struct neigh_statistics { unsigned long allocs ; unsigned long destroys ; unsigned long hash_grows ; unsigned long res_failed ; unsigned long lookups ; unsigned long hits ; unsigned long rcv_probes_mcast ; unsigned long rcv_probes_ucast ; unsigned long periodic_gc_runs ; unsigned long forced_gc_runs ; unsigned long unres_discards ; }; struct neigh_ops; struct neighbour { struct neighbour *next ; struct neigh_table *tbl ; struct neigh_parms *parms ; unsigned long confirmed ; unsigned long updated ; rwlock_t lock ; atomic_t refcnt ; struct sk_buff_head arp_queue ; unsigned int arp_queue_len_bytes ; struct timer_list timer ; unsigned long used ; atomic_t probes ; __u8 flags ; __u8 nud_state ; __u8 type ; __u8 dead ; seqlock_t ha_lock ; unsigned char ha[32U] ; struct hh_cache hh ; int (*output)(struct neighbour * , struct sk_buff * ) ; struct neigh_ops const *ops ; struct callback_head rcu ; struct net_device *dev ; u8 primary_key[0U] ; }; struct neigh_ops { int family ; void (*solicit)(struct neighbour * , struct sk_buff * ) ; void (*error_report)(struct neighbour * , struct sk_buff * ) ; int (*output)(struct neighbour * , struct sk_buff * ) ; int (*connected_output)(struct neighbour * , struct sk_buff * ) ; }; struct pneigh_entry { struct pneigh_entry *next ; possible_net_t net ; struct net_device *dev ; u8 flags ; u8 key[0U] ; }; struct neigh_hash_table { struct neighbour **hash_buckets ; unsigned int hash_shift ; __u32 hash_rnd[4U] ; struct callback_head rcu ; }; struct neigh_table { int family ; int entry_size ; int key_len ; __be16 protocol ; __u32 (*hash)(void const * , struct net_device const * , __u32 * ) ; bool (*key_eq)(struct neighbour const * , void const * ) ; int (*constructor)(struct neighbour * ) ; int (*pconstructor)(struct pneigh_entry * ) ; void (*pdestructor)(struct pneigh_entry * ) ; void (*proxy_redo)(struct sk_buff * ) ; char *id ; struct neigh_parms parms ; struct list_head parms_list ; int gc_interval ; int gc_thresh1 ; int gc_thresh2 ; int gc_thresh3 ; unsigned long last_flush ; struct delayed_work gc_work ; struct timer_list proxy_timer ; struct sk_buff_head proxy_queue ; atomic_t entries ; rwlock_t lock ; unsigned long last_rand ; struct neigh_statistics *stats ; struct neigh_hash_table *nht ; struct pneigh_entry **phash_buckets ; }; struct dn_route; union __anonunion____missing_field_name_334 { struct dst_entry *next ; struct rtable *rt_next ; struct rt6_info *rt6_next ; struct dn_route *dn_next ; }; struct dst_entry { struct callback_head callback_head ; struct dst_entry *child ; struct net_device *dev ; struct dst_ops *ops ; unsigned long _metrics ; unsigned long expires ; struct dst_entry *path ; struct dst_entry *from ; struct xfrm_state *xfrm ; int (*input)(struct sk_buff * ) ; int (*output)(struct sock * , struct sk_buff * ) ; unsigned short flags ; unsigned short pending_confirm ; short error ; short obsolete ; unsigned short header_len ; unsigned short trailer_len ; __u32 tclassid ; long __pad_to_align_refcnt[2U] ; atomic_t __refcnt ; int __use ; unsigned long lastuse ; union __anonunion____missing_field_name_334 __annonCompField100 ; }; struct __anonstruct_socket_lock_t_335 { spinlock_t slock ; int owned ; wait_queue_head_t wq ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_socket_lock_t_335 socket_lock_t; struct proto; typedef __u32 __portpair; typedef __u64 __addrpair; struct __anonstruct____missing_field_name_337 { __be32 skc_daddr ; __be32 skc_rcv_saddr ; }; union __anonunion____missing_field_name_336 { __addrpair skc_addrpair ; struct __anonstruct____missing_field_name_337 __annonCompField101 ; }; union __anonunion____missing_field_name_338 { unsigned int skc_hash ; __u16 skc_u16hashes[2U] ; }; struct __anonstruct____missing_field_name_340 { __be16 skc_dport ; __u16 skc_num ; }; union __anonunion____missing_field_name_339 { __portpair skc_portpair ; struct __anonstruct____missing_field_name_340 __annonCompField104 ; }; union __anonunion____missing_field_name_341 { struct hlist_node skc_bind_node ; struct hlist_nulls_node skc_portaddr_node ; }; union __anonunion____missing_field_name_342 { struct hlist_node skc_node ; struct hlist_nulls_node skc_nulls_node ; }; struct sock_common { union __anonunion____missing_field_name_336 __annonCompField102 ; union __anonunion____missing_field_name_338 __annonCompField103 ; union __anonunion____missing_field_name_339 __annonCompField105 ; unsigned short skc_family ; unsigned char volatile skc_state ; unsigned char skc_reuse : 4 ; unsigned char skc_reuseport : 1 ; unsigned char skc_ipv6only : 1 ; unsigned char skc_net_refcnt : 1 ; int skc_bound_dev_if ; union __anonunion____missing_field_name_341 __annonCompField106 ; struct proto *skc_prot ; possible_net_t skc_net ; struct in6_addr skc_v6_daddr ; struct in6_addr skc_v6_rcv_saddr ; atomic64_t skc_cookie ; int skc_dontcopy_begin[0U] ; union __anonunion____missing_field_name_342 __annonCompField107 ; int skc_tx_queue_mapping ; atomic_t skc_refcnt ; int skc_dontcopy_end[0U] ; }; struct cg_proto; struct __anonstruct_sk_backlog_343 { atomic_t rmem_alloc ; int len ; struct sk_buff *head ; struct sk_buff *tail ; }; struct sock { struct sock_common __sk_common ; socket_lock_t sk_lock ; struct sk_buff_head sk_receive_queue ; struct __anonstruct_sk_backlog_343 sk_backlog ; int sk_forward_alloc ; __u32 sk_rxhash ; u16 sk_incoming_cpu ; __u32 sk_txhash ; unsigned int sk_napi_id ; unsigned int sk_ll_usec ; atomic_t sk_drops ; int sk_rcvbuf ; struct sk_filter *sk_filter ; struct socket_wq *sk_wq ; struct xfrm_policy *sk_policy[2U] ; unsigned long sk_flags ; struct dst_entry *sk_rx_dst ; struct dst_entry *sk_dst_cache ; spinlock_t sk_dst_lock ; atomic_t sk_wmem_alloc ; atomic_t sk_omem_alloc ; int sk_sndbuf ; struct sk_buff_head sk_write_queue ; unsigned char sk_shutdown : 2 ; unsigned char sk_no_check_tx : 1 ; unsigned char sk_no_check_rx : 1 ; unsigned char sk_userlocks : 4 ; unsigned char sk_protocol ; unsigned short sk_type ; int sk_wmem_queued ; gfp_t sk_allocation ; u32 sk_pacing_rate ; u32 sk_max_pacing_rate ; netdev_features_t sk_route_caps ; netdev_features_t sk_route_nocaps ; int sk_gso_type ; unsigned int sk_gso_max_size ; u16 sk_gso_max_segs ; int sk_rcvlowat ; unsigned long sk_lingertime ; struct sk_buff_head sk_error_queue ; struct proto *sk_prot_creator ; rwlock_t sk_callback_lock ; int sk_err ; int sk_err_soft ; u32 sk_ack_backlog ; u32 sk_max_ack_backlog ; __u32 sk_priority ; __u32 sk_cgrp_prioidx ; struct pid *sk_peer_pid ; struct cred const *sk_peer_cred ; long sk_rcvtimeo ; long sk_sndtimeo ; struct timer_list sk_timer ; ktime_t sk_stamp ; u16 sk_tsflags ; u32 sk_tskey ; struct socket *sk_socket ; void *sk_user_data ; struct page_frag sk_frag ; struct sk_buff *sk_send_head ; __s32 sk_peek_off ; int sk_write_pending ; void *sk_security ; __u32 sk_mark ; u32 sk_classid ; struct cg_proto *sk_cgrp ; void (*sk_state_change)(struct sock * ) ; void (*sk_data_ready)(struct sock * ) ; void (*sk_write_space)(struct sock * ) ; void (*sk_error_report)(struct sock * ) ; int (*sk_backlog_rcv)(struct sock * , struct sk_buff * ) ; void (*sk_destruct)(struct sock * ) ; }; struct request_sock_ops; struct timewait_sock_ops; struct inet_hashinfo; struct raw_hashinfo; struct udp_table; union __anonunion_h_346 { struct inet_hashinfo *hashinfo ; struct udp_table *udp_table ; struct raw_hashinfo *raw_hash ; }; struct proto { void (*close)(struct sock * , long ) ; int (*connect)(struct sock * , struct sockaddr * , int ) ; int (*disconnect)(struct sock * , int ) ; struct sock *(*accept)(struct sock * , int , int * ) ; int (*ioctl)(struct sock * , int , unsigned long ) ; int (*init)(struct sock * ) ; void (*destroy)(struct sock * ) ; void (*shutdown)(struct sock * , int ) ; int (*setsockopt)(struct sock * , int , int , char * , unsigned int ) ; int (*getsockopt)(struct sock * , int , int , char * , int * ) ; int (*compat_setsockopt)(struct sock * , int , int , char * , unsigned int ) ; int (*compat_getsockopt)(struct sock * , int , int , char * , int * ) ; int (*compat_ioctl)(struct sock * , unsigned int , unsigned long ) ; int (*sendmsg)(struct sock * , struct msghdr * , size_t ) ; int (*recvmsg)(struct sock * , struct msghdr * , size_t , int , int , int * ) ; int (*sendpage)(struct sock * , struct page * , int , size_t , int ) ; int (*bind)(struct sock * , struct sockaddr * , int ) ; int (*backlog_rcv)(struct sock * , struct sk_buff * ) ; void (*release_cb)(struct sock * ) ; void (*hash)(struct sock * ) ; void (*unhash)(struct sock * ) ; void (*rehash)(struct sock * ) ; int (*get_port)(struct sock * , unsigned short ) ; void (*clear_sk)(struct sock * , int ) ; unsigned int inuse_idx ; bool (*stream_memory_free)(struct sock const * ) ; void (*enter_memory_pressure)(struct sock * ) ; atomic_long_t *memory_allocated ; struct percpu_counter *sockets_allocated ; int *memory_pressure ; long *sysctl_mem ; int *sysctl_wmem ; int *sysctl_rmem ; int max_header ; bool no_autobind ; struct kmem_cache *slab ; unsigned int obj_size ; int slab_flags ; struct percpu_counter *orphan_count ; struct request_sock_ops *rsk_prot ; struct timewait_sock_ops *twsk_prot ; union __anonunion_h_346 h ; struct module *owner ; char name[32U] ; struct list_head node ; int (*init_cgroup)(struct mem_cgroup * , struct cgroup_subsys * ) ; void (*destroy_cgroup)(struct mem_cgroup * ) ; struct cg_proto *(*proto_cgroup)(struct mem_cgroup * ) ; }; struct cg_proto { struct page_counter memory_allocated ; struct percpu_counter sockets_allocated ; int memory_pressure ; long sysctl_mem[3U] ; unsigned long flags ; struct mem_cgroup *memcg ; }; struct request_sock_ops { int family ; int obj_size ; struct kmem_cache *slab ; char *slab_name ; int (*rtx_syn_ack)(struct sock * , struct request_sock * ) ; void (*send_ack)(struct sock * , struct sk_buff * , struct request_sock * ) ; void (*send_reset)(struct sock * , struct sk_buff * ) ; void (*destructor)(struct request_sock * ) ; void (*syn_ack_timeout)(struct request_sock const * ) ; }; struct request_sock { struct sock_common __req_common ; struct request_sock *dl_next ; struct sock *rsk_listener ; u16 mss ; u8 num_retrans ; unsigned char cookie_ts : 1 ; unsigned char num_timeout : 7 ; u32 window_clamp ; u32 rcv_wnd ; u32 ts_recent ; struct timer_list rsk_timer ; struct request_sock_ops const *rsk_ops ; struct sock *sk ; u32 *saved_syn ; u32 secid ; u32 peer_secid ; }; struct timewait_sock_ops { struct kmem_cache *twsk_slab ; char *twsk_slab_name ; unsigned int twsk_obj_size ; int (*twsk_unique)(struct sock * , struct sock * , void * ) ; void (*twsk_destructor)(struct sock * ) ; }; struct tcphdr { __be16 source ; __be16 dest ; __be32 seq ; __be32 ack_seq ; unsigned char res1 : 4 ; unsigned char doff : 4 ; unsigned char fin : 1 ; unsigned char syn : 1 ; unsigned char rst : 1 ; unsigned char psh : 1 ; unsigned char ack : 1 ; unsigned char urg : 1 ; unsigned char ece : 1 ; unsigned char cwr : 1 ; __be16 window ; __sum16 check ; __be16 urg_ptr ; }; struct ip6_sf_list { struct ip6_sf_list *sf_next ; struct in6_addr sf_addr ; unsigned long sf_count[2U] ; unsigned char sf_gsresp ; unsigned char sf_oldin ; unsigned char sf_crcount ; }; struct ifmcaddr6 { struct in6_addr mca_addr ; struct inet6_dev *idev ; struct ifmcaddr6 *next ; struct ip6_sf_list *mca_sources ; struct ip6_sf_list *mca_tomb ; unsigned int mca_sfmode ; unsigned char mca_crcount ; unsigned long mca_sfcount[2U] ; struct timer_list mca_timer ; unsigned int mca_flags ; int mca_users ; atomic_t mca_refcnt ; spinlock_t mca_lock ; unsigned long mca_cstamp ; unsigned long mca_tstamp ; }; struct ifacaddr6 { struct in6_addr aca_addr ; struct inet6_dev *aca_idev ; struct rt6_info *aca_rt ; struct ifacaddr6 *aca_next ; int aca_users ; atomic_t aca_refcnt ; unsigned long aca_cstamp ; unsigned long aca_tstamp ; }; struct ipv6_devstat { struct proc_dir_entry *proc_dir_entry ; struct ipstats_mib *ipv6 ; struct icmpv6_mib_device *icmpv6dev ; struct icmpv6msg_mib_device *icmpv6msgdev ; }; struct inet6_dev { struct net_device *dev ; struct list_head addr_list ; struct ifmcaddr6 *mc_list ; struct ifmcaddr6 *mc_tomb ; spinlock_t mc_lock ; unsigned char mc_qrv ; unsigned char mc_gq_running ; unsigned char mc_ifc_count ; unsigned char mc_dad_count ; unsigned long mc_v1_seen ; unsigned long mc_qi ; unsigned long mc_qri ; unsigned long mc_maxdelay ; struct timer_list mc_gq_timer ; struct timer_list mc_ifc_timer ; struct timer_list mc_dad_timer ; struct ifacaddr6 *ac_list ; rwlock_t lock ; atomic_t refcnt ; __u32 if_flags ; int dead ; u8 rndid[8U] ; struct timer_list regen_timer ; struct list_head tempaddr_list ; struct in6_addr token ; struct neigh_parms *nd_parms ; struct ipv6_devconf cnf ; struct ipv6_devstat stats ; struct timer_list rs_timer ; __u8 rs_probes ; __u8 addr_gen_mode ; unsigned long tstamp ; struct callback_head rcu ; }; struct wmi_vring_cfg_schd { __le16 priority ; __le16 timeslot_us ; }; struct wmi_vring_cfg { struct wmi_sw_ring_cfg tx_sw_ring ; u8 ringid ; u8 cidxtid ; u8 encap_trans_type ; u8 ds_cfg ; u8 nwifi_ds_trans_type ; u8 mac_ctrl ; u8 to_resolution ; u8 agg_max_wsize ; struct wmi_vring_cfg_schd schd_params ; }; struct wmi_vring_cfg_cmd { __le32 action ; struct wmi_vring_cfg vring_cfg ; }; struct wmi_bcast_vring_cfg { struct wmi_sw_ring_cfg tx_sw_ring ; u8 ringid ; u8 encap_trans_type ; u8 ds_cfg ; u8 nwifi_ds_trans_type ; }; struct wmi_bcast_vring_cfg_cmd { __le32 action ; struct wmi_bcast_vring_cfg vring_cfg ; }; struct wmi_vring_cfg_done_event { u8 ringid ; u8 status ; u8 reserved[2U] ; __le32 tx_vring_tail_ptr ; }; union __anonunion___u_450 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_452 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_454 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_456 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_458 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_460 { struct tracepoint_func *__val ; char __c[1U] ; }; struct wil6210_rtap { struct ieee80211_radiotap_header rthdr ; u8 flags ; __le16 chnl_freq ; __le16 chnl_flags ; u8 mcs_present ; u8 mcs_flags ; u8 mcs_index ; }; struct wil6210_rtap_vendor { struct wil6210_rtap rtap ; u8 vendor_oui[3U] ; u8 vendor_ns ; __le16 vendor_skip ; u8 vendor_data[0U] ; }; struct __anonstruct_reply_463 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_vring_cfg_done_event cmd ; }; struct __anonstruct_reply_465 { struct wil6210_mbox_hdr_wmi wmi ; struct wmi_vring_cfg_done_event cmd ; }; struct va_list; typedef __builtin_va_list __gnuc_va_list; typedef __gnuc_va_list va_list; struct va_format { char const *fmt ; va_list *va ; }; enum hrtimer_restart; union __anonunion___u_363___0 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_365___0 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_367___0 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_369 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_371 { struct tracepoint_func *__val ; char __c[1U] ; }; union __anonunion___u_373 { struct tracepoint_func *__val ; char __c[1U] ; }; enum hrtimer_restart; struct wil_back_rx { struct list_head list ; u8 cidxtid ; u8 dialog_token ; u16 ba_param_set ; u16 ba_timeout ; u16 ba_seq_ctrl ; }; struct wil_back_tx { struct list_head list ; u8 ringid ; u8 agg_wsize ; u16 agg_timeout ; }; enum hrtimer_restart; enum wil_memio_op { wil_mmio_read = 0, wil_mmio_write = 1, wil_mmio_op_mask = 255, wil_mmio_addr_linker = 0, wil_mmio_addr_ahb = 256, wil_mmio_addr_bar = 512, wil_mmio_addr_mask = 65280 } ; struct wil_memio { uint32_t op ; uint32_t addr ; uint32_t val ; }; struct wil_memio_block { uint32_t op ; uint32_t addr ; uint32_t size ; void *block ; }; enum hrtimer_restart; struct firmware { size_t size ; u8 const *data ; struct page **pages ; void *priv ; }; struct wil_fw_record_head { __le16 type ; __le16 flags ; __le32 size ; }; struct wil_fw_record_data { __le32 addr ; __le32 data[0U] ; }; struct wil_fw_record_fill { __le32 addr ; __le32 value ; __le32 size ; }; struct wil_fw_data_dwrite { __le32 addr ; __le32 value ; __le32 mask ; }; struct wil_fw_record_direct_write { struct wil_fw_data_dwrite data[0U] ; }; struct wil_fw_record_file_header { __le32 signature ; __le32 reserved ; __le32 crc ; __le32 version ; __le32 data_len ; u8 comment[32U] ; }; struct wil_fw_data_gw { __le32 addr ; __le32 value ; }; struct wil_fw_record_gateway_data { __le32 gateway_addr_addr ; __le32 gateway_value_addr ; __le32 gateway_cmd_addr ; __le32 gateway_ctrl_address ; __le32 command ; struct wil_fw_data_gw data[0U] ; }; struct wil_fw_data_gw4 { __le32 addr ; __le32 value[4U] ; }; struct wil_fw_record_gateway_data4 { __le32 gateway_addr_addr ; __le32 gateway_value_addr[4U] ; __le32 gateway_cmd_addr ; __le32 gateway_ctrl_address ; __le32 command ; struct wil_fw_data_gw4 data[0U] ; }; struct __anonstruct_wil_fw_handlers_370 { int type ; int (*handler)(struct wil6210_priv * , void const * , size_t ) ; }; enum hrtimer_restart; struct wmi_pmc_cmd { u8 op ; u8 reserved ; __le16 ring_size ; __le64 mem_base ; }; struct desc_alloc_info { dma_addr_t pa ; void *va ; }; enum hrtimer_restart; struct trace_enum_map { char const *system ; char const *enum_string ; unsigned long enum_value ; }; struct ring_buffer; struct ring_buffer_iter; struct trace_seq; struct seq_buf { char *buffer ; size_t size ; size_t len ; loff_t readpos ; }; struct trace_seq { unsigned char buffer[4096U] ; struct seq_buf seq ; int full ; }; union __anonunion____missing_field_name_418 { __u64 sample_period ; __u64 sample_freq ; }; union __anonunion____missing_field_name_419 { __u32 wakeup_events ; __u32 wakeup_watermark ; }; union __anonunion____missing_field_name_420 { __u64 bp_addr ; __u64 config1 ; }; union __anonunion____missing_field_name_421 { __u64 bp_len ; __u64 config2 ; }; struct perf_event_attr { __u32 type ; __u32 size ; __u64 config ; union __anonunion____missing_field_name_418 __annonCompField96 ; __u64 sample_type ; __u64 read_format ; unsigned char disabled : 1 ; unsigned char inherit : 1 ; unsigned char pinned : 1 ; unsigned char exclusive : 1 ; unsigned char exclude_user : 1 ; unsigned char exclude_kernel : 1 ; unsigned char exclude_hv : 1 ; unsigned char exclude_idle : 1 ; unsigned char mmap : 1 ; unsigned char comm : 1 ; unsigned char freq : 1 ; unsigned char inherit_stat : 1 ; unsigned char enable_on_exec : 1 ; unsigned char task : 1 ; unsigned char watermark : 1 ; unsigned char precise_ip : 2 ; unsigned char mmap_data : 1 ; unsigned char sample_id_all : 1 ; unsigned char exclude_host : 1 ; unsigned char exclude_guest : 1 ; unsigned char exclude_callchain_kernel : 1 ; unsigned char exclude_callchain_user : 1 ; unsigned char mmap2 : 1 ; unsigned char comm_exec : 1 ; unsigned char use_clockid : 1 ; unsigned long __reserved_1 : 38 ; union __anonunion____missing_field_name_419 __annonCompField97 ; __u32 bp_type ; union __anonunion____missing_field_name_420 __annonCompField98 ; union __anonunion____missing_field_name_421 __annonCompField99 ; __u64 branch_sample_type ; __u64 sample_regs_user ; __u32 sample_stack_user ; __s32 clockid ; __u64 sample_regs_intr ; __u32 aux_watermark ; __u32 __reserved_2 ; }; struct __anonstruct____missing_field_name_424 { unsigned char mem_op : 5 ; unsigned short mem_lvl : 14 ; unsigned char mem_snoop : 5 ; unsigned char mem_lock : 2 ; unsigned char mem_dtlb : 7 ; unsigned int mem_rsvd : 31 ; }; union perf_mem_data_src { __u64 val ; struct __anonstruct____missing_field_name_424 __annonCompField102 ; }; struct perf_branch_entry { __u64 from ; __u64 to ; unsigned char mispred : 1 ; unsigned char predicted : 1 ; unsigned char in_tx : 1 ; unsigned char abort : 1 ; unsigned long reserved : 60 ; }; struct pidmap { atomic_t nr_free ; void *page ; }; struct fs_pin; struct pid_namespace { struct kref kref ; struct pidmap pidmap[128U] ; struct callback_head rcu ; int last_pid ; unsigned int nr_hashed ; struct task_struct *child_reaper ; struct kmem_cache *pid_cachep ; unsigned int level ; struct pid_namespace *parent ; struct vfsmount *proc_mnt ; struct dentry *proc_self ; struct dentry *proc_thread_self ; struct fs_pin *bacct ; struct user_namespace *user_ns ; struct work_struct proc_work ; kgid_t pid_gid ; int hide_pid ; int reboot ; struct ns_common ns ; }; struct __anonstruct_local_t_432 { atomic_long_t a ; }; typedef struct __anonstruct_local_t_432 local_t; struct __anonstruct_local64_t_433 { local_t a ; }; typedef struct __anonstruct_local64_t_433 local64_t; struct arch_hw_breakpoint { unsigned long address ; unsigned long mask ; u8 len ; u8 type ; }; struct pmu; struct irq_work { unsigned long flags ; struct llist_node llnode ; void (*func)(struct irq_work * ) ; }; struct perf_regs { __u64 abi ; struct pt_regs *regs ; }; struct perf_callchain_entry { __u64 nr ; __u64 ip[127U] ; }; struct perf_raw_record { u32 size ; void *data ; }; struct perf_branch_stack { __u64 nr ; struct perf_branch_entry entries[0U] ; }; struct hw_perf_event_extra { u64 config ; unsigned int reg ; int alloc ; int idx ; }; struct __anonstruct____missing_field_name_435 { u64 config ; u64 last_tag ; unsigned long config_base ; unsigned long event_base ; int event_base_rdpmc ; int idx ; int last_cpu ; int flags ; struct hw_perf_event_extra extra_reg ; struct hw_perf_event_extra branch_reg ; }; struct __anonstruct____missing_field_name_436 { struct hrtimer hrtimer ; }; struct __anonstruct____missing_field_name_437 { struct list_head tp_list ; }; struct __anonstruct____missing_field_name_438 { int cqm_state ; u32 cqm_rmid ; struct list_head cqm_events_entry ; struct list_head cqm_groups_entry ; struct list_head cqm_group_entry ; }; struct __anonstruct____missing_field_name_439 { int itrace_started ; }; struct __anonstruct____missing_field_name_440 { struct arch_hw_breakpoint info ; struct list_head bp_list ; }; union __anonunion____missing_field_name_434 { struct __anonstruct____missing_field_name_435 __annonCompField103 ; struct __anonstruct____missing_field_name_436 __annonCompField104 ; struct __anonstruct____missing_field_name_437 __annonCompField105 ; struct __anonstruct____missing_field_name_438 __annonCompField106 ; struct __anonstruct____missing_field_name_439 __annonCompField107 ; struct __anonstruct____missing_field_name_440 __annonCompField108 ; }; struct hw_perf_event { union __anonunion____missing_field_name_434 __annonCompField109 ; struct task_struct *target ; int state ; local64_t prev_count ; u64 sample_period ; u64 last_period ; local64_t period_left ; u64 interrupts_seq ; u64 interrupts ; u64 freq_time_stamp ; u64 freq_count_stamp ; }; struct perf_cpu_context; struct pmu { struct list_head entry ; struct module *module ; struct device *dev ; struct attribute_group const **attr_groups ; char const *name ; int type ; int capabilities ; int *pmu_disable_count ; struct perf_cpu_context *pmu_cpu_context ; atomic_t exclusive_cnt ; int task_ctx_nr ; int hrtimer_interval_ms ; void (*pmu_enable)(struct pmu * ) ; void (*pmu_disable)(struct pmu * ) ; int (*event_init)(struct perf_event * ) ; void (*event_mapped)(struct perf_event * ) ; void (*event_unmapped)(struct perf_event * ) ; int (*add)(struct perf_event * , int ) ; void (*del)(struct perf_event * , int ) ; void (*start)(struct perf_event * , int ) ; void (*stop)(struct perf_event * , int ) ; void (*read)(struct perf_event * ) ; void (*start_txn)(struct pmu * ) ; int (*commit_txn)(struct pmu * ) ; void (*cancel_txn)(struct pmu * ) ; int (*event_idx)(struct perf_event * ) ; void (*sched_task)(struct perf_event_context * , bool ) ; size_t task_ctx_size ; u64 (*count)(struct perf_event * ) ; void *(*setup_aux)(int , void ** , int , bool ) ; void (*free_aux)(void * ) ; int (*filter_match)(struct perf_event * ) ; }; enum perf_event_active_state { PERF_EVENT_STATE_EXIT = -3, PERF_EVENT_STATE_ERROR = -2, PERF_EVENT_STATE_OFF = -1, PERF_EVENT_STATE_INACTIVE = 0, PERF_EVENT_STATE_ACTIVE = 1 } ; struct perf_sample_data; struct perf_cgroup; struct event_filter; struct perf_event { struct list_head event_entry ; struct list_head group_entry ; struct list_head sibling_list ; struct list_head migrate_entry ; struct hlist_node hlist_entry ; struct list_head active_entry ; int nr_siblings ; int group_flags ; struct perf_event *group_leader ; struct pmu *pmu ; enum perf_event_active_state state ; unsigned int attach_state ; local64_t count ; atomic64_t child_count ; u64 total_time_enabled ; u64 total_time_running ; u64 tstamp_enabled ; u64 tstamp_running ; u64 tstamp_stopped ; u64 shadow_ctx_time ; struct perf_event_attr attr ; u16 header_size ; u16 id_header_size ; u16 read_size ; struct hw_perf_event hw ; struct perf_event_context *ctx ; atomic_long_t refcount ; atomic64_t child_total_time_enabled ; atomic64_t child_total_time_running ; struct mutex child_mutex ; struct list_head child_list ; struct perf_event *parent ; int oncpu ; int cpu ; struct list_head owner_entry ; struct task_struct *owner ; struct mutex mmap_mutex ; atomic_t mmap_count ; struct ring_buffer *rb ; struct list_head rb_entry ; unsigned long rcu_batches ; int rcu_pending ; wait_queue_head_t waitq ; struct fasync_struct *fasync ; int pending_wakeup ; int pending_kill ; int pending_disable ; struct irq_work pending ; atomic_t event_limit ; void (*destroy)(struct perf_event * ) ; struct callback_head callback_head ; struct pid_namespace *ns ; u64 id ; u64 (*clock)(void) ; void (*overflow_handler)(struct perf_event * , struct perf_sample_data * , struct pt_regs * ) ; void *overflow_handler_context ; struct trace_event_call *tp_event ; struct event_filter *filter ; struct perf_cgroup *cgrp ; int cgrp_defer_enabled ; }; struct perf_event_context { struct pmu *pmu ; raw_spinlock_t lock ; struct mutex mutex ; struct list_head active_ctx_list ; struct list_head pinned_groups ; struct list_head flexible_groups ; struct list_head event_list ; int nr_events ; int nr_active ; int is_active ; int nr_stat ; int nr_freq ; int rotate_disable ; atomic_t refcount ; struct task_struct *task ; u64 time ; u64 timestamp ; struct perf_event_context *parent_ctx ; u64 parent_gen ; u64 generation ; int pin_count ; int nr_cgroups ; void *task_ctx_data ; struct callback_head callback_head ; struct delayed_work orphans_remove ; bool orphans_remove_sched ; }; struct perf_cpu_context { struct perf_event_context ctx ; struct perf_event_context *task_ctx ; int active_oncpu ; int exclusive ; raw_spinlock_t hrtimer_lock ; struct hrtimer hrtimer ; ktime_t hrtimer_interval ; unsigned int hrtimer_active ; struct pmu *unique_pmu ; struct perf_cgroup *cgrp ; }; struct perf_cgroup_info { u64 time ; u64 timestamp ; }; struct perf_cgroup { struct cgroup_subsys_state css ; struct perf_cgroup_info *info ; }; struct __anonstruct_tid_entry_442 { u32 pid ; u32 tid ; }; struct __anonstruct_cpu_entry_443 { u32 cpu ; u32 reserved ; }; struct perf_sample_data { u64 addr ; struct perf_raw_record *raw ; struct perf_branch_stack *br_stack ; u64 period ; u64 weight ; u64 txn ; union perf_mem_data_src data_src ; u64 type ; u64 ip ; struct __anonstruct_tid_entry_442 tid_entry ; u64 time ; u64 id ; u64 stream_id ; struct __anonstruct_cpu_entry_443 cpu_entry ; struct perf_callchain_entry *callchain ; struct perf_regs regs_user ; struct pt_regs regs_user_copy ; struct perf_regs regs_intr ; u64 stack_user_size ; }; struct trace_array; struct trace_buffer; struct tracer; struct trace_print_flags { unsigned long mask ; char const *name ; }; struct trace_iterator; struct trace_event; struct trace_entry { unsigned short type ; unsigned char flags ; unsigned char preempt_count ; int pid ; }; struct trace_iterator { struct trace_array *tr ; struct tracer *trace ; struct trace_buffer *trace_buffer ; void *private ; int cpu_file ; struct mutex mutex ; struct ring_buffer_iter **buffer_iter ; unsigned long iter_flags ; struct trace_seq tmp_seq ; cpumask_var_t started ; bool snapshot ; struct trace_seq seq ; struct trace_entry *ent ; unsigned long lost_events ; int leftover ; int ent_size ; int cpu ; u64 ts ; loff_t pos ; long idx ; }; enum print_line_t; struct trace_event_functions { enum print_line_t (*trace)(struct trace_iterator * , int , struct trace_event * ) ; enum print_line_t (*raw)(struct trace_iterator * , int , struct trace_event * ) ; enum print_line_t (*hex)(struct trace_iterator * , int , struct trace_event * ) ; enum print_line_t (*binary)(struct trace_iterator * , int , struct trace_event * ) ; }; struct trace_event { struct hlist_node node ; struct list_head list ; int type ; struct trace_event_functions *funcs ; }; enum print_line_t { TRACE_TYPE_PARTIAL_LINE = 0, TRACE_TYPE_HANDLED = 1, TRACE_TYPE_UNHANDLED = 2, TRACE_TYPE_NO_CONSUME = 3 } ; enum trace_reg { TRACE_REG_REGISTER = 0, TRACE_REG_UNREGISTER = 1, TRACE_REG_PERF_REGISTER = 2, TRACE_REG_PERF_UNREGISTER = 3, TRACE_REG_PERF_OPEN = 4, TRACE_REG_PERF_CLOSE = 5, TRACE_REG_PERF_ADD = 6, TRACE_REG_PERF_DEL = 7 } ; struct trace_event_class { char const *system ; void *probe ; void *perf_probe ; int (*reg)(struct trace_event_call * , enum trace_reg , void * ) ; int (*define_fields)(struct trace_event_call * ) ; struct list_head *(*get_fields)(struct trace_event_call * ) ; struct list_head fields ; int (*raw_init)(struct trace_event_call * ) ; }; union __anonunion____missing_field_name_444 { char *name ; struct tracepoint *tp ; }; struct trace_event_call { struct list_head list ; struct trace_event_class *class ; union __anonunion____missing_field_name_444 __annonCompField111 ; struct trace_event event ; char *print_fmt ; struct event_filter *filter ; void *mod ; void *data ; int flags ; int perf_refcount ; struct hlist_head *perf_events ; struct bpf_prog *prog ; int (*perf_perm)(struct trace_event_call * , struct perf_event * ) ; }; struct trace_event_raw_wil6210_wmi { struct trace_entry ent ; u8 mid ; u16 id ; u32 timestamp ; u16 buf_len ; u32 __data_loc_buf ; char __data[0U] ; }; struct trace_event_raw_wil6210_log_event { struct trace_entry ent ; u32 __data_loc_msg ; char __data[0U] ; }; struct trace_event_raw_wil6210_irq_pseudo { struct trace_entry ent ; u32 x ; char __data[0U] ; }; struct trace_event_raw_wil6210_irq { struct trace_entry ent ; u32 x ; char __data[0U] ; }; struct trace_event_raw_wil6210_rx { struct trace_entry ent ; u16 index ; unsigned int len ; u8 mid ; u8 cid ; u8 tid ; u8 type ; u8 subtype ; u16 seq ; u8 mcs ; char __data[0U] ; }; struct trace_event_raw_wil6210_tx { struct trace_entry ent ; u8 vring ; u8 frags ; u16 index ; unsigned int len ; char __data[0U] ; }; struct trace_event_raw_wil6210_tx_done { struct trace_entry ent ; u8 vring ; u8 err ; u16 index ; unsigned int len ; char __data[0U] ; }; enum hrtimer_restart; enum hrtimer_restart; __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void set_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; bts %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr): "memory"); return; } } __inline static void clear_bit(long 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_clear_bit(long nr , unsigned long volatile *addr ) { char c ; { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; btr %2, %0; setc %1": "+m" (*addr), "=qm" (c): "Ir" (nr): "memory"); return ((int )((signed char )c) != 0); } } __inline static int constant_test_bit(long nr , unsigned long const volatile *addr ) { { return ((int )((unsigned long )*(addr + (unsigned long )(nr >> 6)) >> ((int )nr & 63)) & 1); } } extern void __dynamic_netdev_dbg(struct _ddebug * , struct net_device const * , char const * , ...) ; extern void __might_sleep(char const * , int , int ) ; extern int kstrtouint(char const * , unsigned int , unsigned int * ) ; __inline static void INIT_LIST_HEAD(struct list_head *list ) { { list->next = list; list->prev = list; return; } } extern void *memset(void * , int , size_t ) ; extern int memcmp(void const * , void const * , size_t ) ; __inline static void bitmap_zero(unsigned long *dst , unsigned int nbits ) { unsigned int len ; { len = (unsigned int )(((unsigned long )nbits + 63UL) / 64UL) * 8U; memset((void *)dst, 0, (size_t )len); return; } } extern void warn_slowpath_null(char const * , int const ) ; __inline static int atomic_read(atomic_t const *v ) { int __var ; { __var = 0; return ((int )*((int const volatile *)(& v->counter))); } } extern void lockdep_init_map(struct lockdep_map * , char const * , struct lock_class_key * , int ) ; extern void __mutex_init(struct mutex * , char const * , struct lock_class_key * ) ; __inline static int mutex_is_locked(struct mutex *lock ) { int tmp ; { tmp = atomic_read((atomic_t const *)(& lock->count)); return (tmp != 1); } } __inline static int ldv_mutex_is_locked_34(struct mutex *lock ) ; __inline static int ldv_mutex_is_locked_39(struct mutex *lock ) ; __inline static int ldv_mutex_is_locked_42(struct mutex *lock ) ; extern int mutex_trylock(struct mutex * ) ; int ldv_mutex_trylock_13(struct mutex *ldv_func_arg1 ) ; extern void mutex_unlock(struct mutex * ) ; void ldv_mutex_unlock_11(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_14(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_15(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_19(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_21(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_28(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_41(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_44(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_47(struct mutex *ldv_func_arg1 ) ; extern void *malloc(size_t ) ; extern void *calloc(size_t , size_t ) ; extern int __VERIFIER_nondet_int(void) ; extern unsigned long __VERIFIER_nondet_ulong(void) ; extern void *__VERIFIER_nondet_pointer(void) ; extern void __VERIFIER_assume(int ) ; void *ldv_malloc(size_t size ) { void *p ; void *tmp ; int tmp___0 ; { tmp___0 = __VERIFIER_nondet_int(); if (tmp___0 != 0) { return ((void *)0); } else { tmp = malloc(size); p = tmp; __VERIFIER_assume((unsigned long )p != (unsigned long )((void *)0)); return (p); } } } void *ldv_zalloc(size_t size ) { void *p ; void *tmp ; int tmp___0 ; { tmp___0 = __VERIFIER_nondet_int(); if (tmp___0 != 0) { return ((void *)0); } else { tmp = calloc(1UL, size); p = tmp; __VERIFIER_assume((unsigned long )p != (unsigned long )((void *)0)); return (p); } } } void *ldv_init_zalloc(size_t size ) { void *p ; void *tmp ; { tmp = calloc(1UL, size); p = tmp; __VERIFIER_assume((unsigned long )p != (unsigned long )((void *)0)); return (p); } } void *ldv_memset(void *s , int c , size_t n ) { void *tmp ; { tmp = memset(s, c, n); return (tmp); } } int ldv_undef_int(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); return (tmp); } } void *ldv_undef_ptr(void) { void *tmp ; { tmp = __VERIFIER_nondet_pointer(); return (tmp); } } unsigned long ldv_undef_ulong(void) { unsigned long tmp ; { tmp = __VERIFIER_nondet_ulong(); return (tmp); } } __inline static void ldv_stop(void) { { LDV_STOP: ; goto LDV_STOP; } } __inline static long ldv__builtin_expect(long exp , long c ) { { return (exp); } } extern void mutex_lock(struct mutex * ) ; void ldv_mutex_lock_10(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_12(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_16(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_18(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_20(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_27(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_40(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_45(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_46(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_i_mutex_of_inode(struct mutex *lock ) ; void ldv_mutex_unlock_i_mutex_of_inode(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_mutex_of_wil6210_priv(struct mutex *lock ) ; int ldv_mutex_is_locked_mutex_of_wil6210_priv(struct mutex *lock ) ; void ldv_mutex_unlock_mutex_of_wil6210_priv(struct mutex *lock ) ; extern void __raw_spin_lock_init(raw_spinlock_t * , char const * , struct lock_class_key * ) ; extern void _raw_spin_lock_bh(raw_spinlock_t * ) ; extern void _raw_spin_unlock_bh(raw_spinlock_t * ) ; __inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) { { return (& lock->__annonCompField17.rlock); } } __inline static void spin_lock_bh(spinlock_t *lock ) { { _raw_spin_lock_bh(& lock->__annonCompField17.rlock); return; } } __inline static void spin_unlock_bh(spinlock_t *lock ) { { _raw_spin_unlock_bh(& lock->__annonCompField17.rlock); return; } } extern unsigned long volatile jiffies ; extern unsigned int jiffies_to_msecs(unsigned long const ) ; extern unsigned long __msecs_to_jiffies(unsigned int const ) ; __inline static unsigned long msecs_to_jiffies(unsigned int const m ) { unsigned long tmp___0 ; { tmp___0 = __msecs_to_jiffies(m); return (tmp___0); } } extern int del_timer_sync(struct timer_list * ) ; int ldv_del_timer_sync_23(struct timer_list *ldv_func_arg1 ) ; int ldv_del_timer_sync_24(struct timer_list *ldv_func_arg1 ) ; int ldv_del_timer_sync_36(struct timer_list *ldv_func_arg1 ) ; int ldv_del_timer_sync_43(struct timer_list *ldv_func_arg1 ) ; extern void __init_waitqueue_head(wait_queue_head_t * , char const * , struct lock_class_key * ) ; extern void __wake_up(wait_queue_head_t * , unsigned int , int , void * ) ; extern long prepare_to_wait_event(wait_queue_head_t * , wait_queue_t * , int ) ; extern void finish_wait(wait_queue_head_t * , wait_queue_t * ) ; __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; } } __inline static void reinit_completion(struct completion *x ) { { x->done = 0U; return; } } extern unsigned long wait_for_completion_timeout(struct completion * , unsigned long ) ; extern void __init_work(struct work_struct * , int ) ; extern struct workqueue_struct *system_wq ; extern struct workqueue_struct *__alloc_workqueue_key(char const * , unsigned int , int , struct lock_class_key * , char const * , ...) ; extern void destroy_workqueue(struct workqueue_struct * ) ; void ldv_destroy_workqueue_22(struct workqueue_struct *ldv_func_arg1 ) ; void ldv_destroy_workqueue_32(struct workqueue_struct *ldv_func_arg1 ) ; void ldv_destroy_workqueue_33(struct workqueue_struct *ldv_func_arg1 ) ; extern bool queue_work_on(int , struct workqueue_struct * , struct work_struct * ) ; bool ldv_queue_work_on_5(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_7(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; extern bool queue_delayed_work_on(int , struct workqueue_struct * , struct delayed_work * , unsigned long ) ; bool ldv_queue_delayed_work_on_6(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_9(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; extern void flush_workqueue(struct workqueue_struct * ) ; void ldv_flush_workqueue_8(struct workqueue_struct *ldv_func_arg1 ) ; void ldv_flush_workqueue_37(struct workqueue_struct *ldv_func_arg1 ) ; void ldv_flush_workqueue_38(struct workqueue_struct *ldv_func_arg1 ) ; extern bool cancel_work_sync(struct work_struct * ) ; bool ldv_cancel_work_sync_25(struct work_struct *ldv_func_arg1 ) ; bool ldv_cancel_work_sync_26(struct work_struct *ldv_func_arg1 ) ; bool ldv_cancel_work_sync_29(struct work_struct *ldv_func_arg1 ) ; bool ldv_cancel_work_sync_30(struct work_struct *ldv_func_arg1 ) ; bool ldv_cancel_work_sync_31(struct work_struct *ldv_func_arg1 ) ; bool ldv_cancel_work_sync_35(struct work_struct *ldv_func_arg1 ) ; __inline static bool queue_work(struct workqueue_struct *wq , struct work_struct *work ) { bool tmp ; { tmp = ldv_queue_work_on_5(8192, wq, work); return (tmp); } } __inline static bool schedule_work(struct work_struct *work ) { bool tmp ; { tmp = queue_work(system_wq, work); return (tmp); } } __inline static unsigned int __readl(void const volatile *addr ) { unsigned int ret ; { __asm__ volatile ("movl %1,%0": "=r" (ret): "m" (*((unsigned int volatile *)addr))); return (ret); } } __inline static void __writel(unsigned int val , void volatile *addr ) { { __asm__ volatile ("movl %0,%1": : "r" (val), "m" (*((unsigned int volatile *)addr))); return; } } extern unsigned int ioread32(void * ) ; extern void iowrite32(u32 , void * ) ; extern void schedule(void) ; struct work_struct *ldv_work_struct_9_2 ; int ldv_work_12_3 ; int ldv_irq_5_1 = 0; int ldv_irq_3_2 = 0; int ldv_work_9_3 ; int ldv_irq_6_1 = 0; struct timer_list *ldv_timer_list_14_3 ; struct work_struct *ldv_work_struct_13_3 ; struct work_struct *ldv_work_struct_10_1 ; int ldv_work_7_2 ; int ldv_work_13_0 ; struct work_struct *ldv_work_struct_7_1 ; int ldv_timer_15_3 ; struct timer_list *ldv_timer_list_15_0 ; struct work_struct *ldv_work_struct_11_0 ; int ldv_irq_1_3 = 0; struct work_struct *ldv_work_struct_12_3 ; struct work_struct *ldv_work_struct_7_2 ; int ldv_work_13_1 ; struct work_struct *ldv_work_struct_7_0 ; int LDV_IN_INTERRUPT = 1; int ldv_irq_1_1 = 0; int ldv_work_8_3 ; int ldv_timer_15_1 ; int ldv_work_13_2 ; int ldv_work_7_1 ; int ldv_irq_4_1 = 0; int ldv_work_8_0 ; struct work_struct *ldv_work_struct_13_2 ; struct work_struct *ldv_work_struct_8_0 ; int ldv_timer_15_0 ; struct work_struct *ldv_work_struct_11_1 ; int ldv_irq_4_0 = 0; int ldv_work_10_0 ; int ldv_work_12_2 ; int ldv_irq_2_2 = 0; struct timer_list *ldv_timer_list_15_3 ; int ldv_irq_1_0 = 0; int ldv_work_7_0 ; struct work_struct *ldv_work_struct_12_0 ; struct timer_list *ldv_timer_list_14_2 ; int ldv_work_10_1 ; struct work_struct *ldv_work_struct_7_3 ; struct timer_list *ldv_timer_list_14_1 ; struct work_struct *ldv_work_struct_10_0 ; int ldv_timer_14_1 ; int ldv_irq_1_2 = 0; int ldv_irq_4_3 = 0; struct kernel_param const *mtu_max_ops_group0 ; int ldv_irq_6_0 = 0; struct work_struct *ldv_work_struct_9_1 ; int ldv_work_11_3 ; int ldv_work_11_2 ; int ldv_work_8_1 ; int ldv_irq_2_0 = 0; struct work_struct *ldv_work_struct_13_1 ; struct work_struct *ldv_work_struct_8_1 ; int ldv_work_9_0 ; int ldv_irq_6_3 = 0; struct work_struct *ldv_work_struct_10_3 ; struct work_struct *ldv_work_struct_8_3 ; struct timer_list *ldv_timer_list_15_2 ; int ldv_irq_5_2 = 0; int ldv_irq_2_1 = 0; int ldv_irq_3_0 = 0; struct timer_list *ldv_timer_list_15_1 ; int ldv_state_variable_56 ; struct work_struct *ldv_work_struct_12_1 ; int ldv_work_11_0 ; struct work_struct *ldv_work_struct_11_2 ; struct work_struct *ldv_work_struct_9_0 ; int ldv_timer_14_2 ; struct work_struct *ldv_work_struct_9_3 ; int ldv_work_10_2 ; int ldv_work_9_2 ; struct work_struct *ldv_work_struct_13_0 ; int ldv_timer_14_3 ; int ldv_work_9_1 ; int ldv_timer_15_2 ; int ldv_irq_3_1 = 0; int ldv_irq_4_2 = 0; int ldv_work_13_3 ; int ldv_work_11_1 ; int ldv_work_7_3 ; int ldv_irq_6_2 = 0; int ldv_work_12_0 ; int ldv_timer_14_0 ; int ldv_work_12_1 ; struct timer_list *ldv_timer_list_14_0 ; struct work_struct *ldv_work_struct_10_2 ; struct work_struct *ldv_work_struct_8_2 ; struct work_struct *ldv_work_struct_12_2 ; int ldv_state_variable_57 ; int ldv_irq_5_3 = 0; int ldv_irq_2_3 = 0; struct kernel_param const *ring_order_ops_group0 ; int ldv_irq_5_0 = 0; int ldv_work_8_2 ; int ldv_irq_3_3 = 0; int ldv_work_10_3 ; struct work_struct *ldv_work_struct_11_3 ; void call_and_disable_work_10(struct work_struct *work ) ; void work_init_9(void) ; void invoke_work_8(void) ; void disable_work_7(struct work_struct *work ) ; void call_and_disable_work_13(struct work_struct *work ) ; void activate_work_13(struct work_struct *work , int state ) ; void invoke_work_10(void) ; void activate_suitable_irq_6(int line , void *data ) ; void call_and_disable_all_11(int state ) ; void activate_suitable_timer_15(struct timer_list *timer , unsigned long data ) ; void call_and_disable_work_7(struct work_struct *work ) ; int reg_timer_15(struct timer_list *timer , void (*function)(unsigned long ) , unsigned long data ) ; void work_init_8(void) ; void ldv_timer_14(int state , struct timer_list *timer ) ; void call_and_disable_all_9(int state ) ; void call_and_disable_all_12(int state ) ; void activate_pending_timer_15(struct timer_list *timer , unsigned long data , int pending_flag ) ; void work_init_10(void) ; void call_and_disable_work_8(struct work_struct *work ) ; void invoke_work_11(void) ; void work_init_13(void) ; void invoke_work_9(void) ; void disable_work_13(struct work_struct *work ) ; void disable_work_8(struct work_struct *work ) ; void activate_work_9(struct work_struct *work , int state ) ; void activate_pending_timer_14(struct timer_list *timer , unsigned long data , int pending_flag ) ; int reg_check_6(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) ; void call_and_disable_all_7(int state ) ; void invoke_work_12(void) ; void ldv_initialize_kernel_param_ops_57(void) ; void call_and_disable_work_12(struct work_struct *work ) ; void work_init_11(void) ; void activate_work_11(struct work_struct *work , int state ) ; void disable_work_11(struct work_struct *work ) ; void disable_work_12(struct work_struct *work ) ; void choose_timer_15(void) ; void work_init_7(void) ; void invoke_work_7(void) ; void timer_init_15(void) ; void call_and_disable_all_8(int state ) ; void call_and_disable_work_9(struct work_struct *work ) ; void activate_work_12(struct work_struct *work , int state ) ; void ldv_timer_15(int state , struct timer_list *timer ) ; void activate_work_8(struct work_struct *work , int state ) ; int reg_timer_14(struct timer_list *timer , void (*function)(unsigned long ) , unsigned long data ) ; void invoke_work_13(void) ; void disable_work_9(struct work_struct *work ) ; void ldv_initialize_kernel_param_ops_56(void) ; void disable_suitable_timer_14(struct timer_list *timer ) ; void disable_work_10(struct work_struct *work ) ; void work_init_12(void) ; void disable_suitable_timer_15(struct timer_list *timer ) ; void activate_work_10(struct work_struct *work , int state ) ; void activate_suitable_timer_14(struct timer_list *timer , unsigned long data ) ; void call_and_disable_work_11(struct work_struct *work ) ; void timer_init_14(void) ; void activate_work_7(struct work_struct *work , int state ) ; void call_and_disable_all_10(int state ) ; void choose_timer_14(void) ; void call_and_disable_all_13(int state ) ; extern int param_set_uint(char const * , struct kernel_param const * ) ; extern int param_get_uint(char * , struct kernel_param const * ) ; extern void msleep(unsigned int ) ; extern void usleep_range(unsigned long , unsigned long ) ; extern int request_threaded_irq(unsigned int , irqreturn_t (*)(int , void * ) , irqreturn_t (*)(int , void * ) , unsigned long , char const * , void * ) ; int ldv_request_threaded_irq_17(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; extern void napi_disable(struct napi_struct * ) ; __inline static void napi_enable(struct napi_struct *n ) { int tmp ; long tmp___0 ; { tmp = constant_test_bit(0L, (unsigned long const volatile *)(& n->state)); tmp___0 = ldv__builtin_expect(tmp == 0, 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/netdevice.h"), "i" (507), "i" (12UL)); ldv_41594: ; goto ldv_41594; } else { } __asm__ volatile ("": : : "memory"); clear_bit(0L, (unsigned long volatile *)(& n->state)); return; } } __inline static struct netdev_queue *netdev_get_tx_queue(struct net_device const *dev , unsigned int index ) { { return ((struct netdev_queue *)dev->_tx + (unsigned long )index); } } extern void netif_tx_wake_queue(struct netdev_queue * ) ; __inline static void netif_tx_wake_all_queues(struct net_device *dev ) { unsigned int i ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { i = 0U; goto ldv_42673; ldv_42672: tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; netif_tx_wake_queue(txq); i = i + 1U; ldv_42673: ; if (dev->num_tx_queues > i) { goto ldv_42672; } else { } return; } } extern void netif_tx_stop_all_queues(struct net_device * ) ; __inline static bool netif_running(struct net_device const *dev ) { int tmp ; { tmp = constant_test_bit(0L, (unsigned long const volatile *)(& dev->state)); return (tmp != 0); } } extern void netif_carrier_off(struct net_device * ) ; __inline static bool is_zero_ether_addr(u8 const *addr ) { { return (((unsigned int )*((u32 const *)addr) | (unsigned int )*((u16 const *)addr + 4U)) == 0U); } } __inline static bool is_multicast_ether_addr(u8 const *addr ) { u32 a ; { a = *((u32 const *)addr); return ((a & 1U) != 0U); } } __inline static bool is_valid_ether_addr(u8 const *addr ) { bool tmp ; int tmp___0 ; bool tmp___1 ; int tmp___2 ; int tmp___3 ; { tmp = is_multicast_ether_addr(addr); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { tmp___1 = is_zero_ether_addr(addr); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { tmp___3 = 1; } else { tmp___3 = 0; } } else { tmp___3 = 0; } return ((bool )tmp___3); } } __inline static void ether_addr_copy(u8 *dst , u8 const *src ) { { *((u32 *)dst) = *((u32 const *)src); *((u16 *)dst + 4U) = *((u16 const *)src + 4U); return; } } __inline static bool ether_addr_equal(u8 const *addr1 , u8 const *addr2 ) { u32 fold ; { fold = ((unsigned int )*((u32 const *)addr1) ^ (unsigned int )*((u32 const *)addr2)) | (unsigned int )((int )((unsigned short )*((u16 const *)addr1 + 4U)) ^ (int )((unsigned short )*((u16 const *)addr2 + 4U))); return (fold == 0U); } } extern void cfg80211_scan_done(struct cfg80211_scan_request * , bool ) ; extern void cfg80211_connect_result(struct net_device * , u8 const * , u8 const * , size_t , u8 const * , size_t , u16 , gfp_t ) ; extern void cfg80211_disconnected(struct net_device * , u16 , u8 const * , size_t , bool , gfp_t ) ; extern void cfg80211_del_sta_sinfo(struct net_device * , u8 const * , struct station_info * , gfp_t ) ; __inline static void cfg80211_del_sta(struct net_device *dev , u8 const *mac_addr , gfp_t gfp ) { { cfg80211_del_sta_sinfo(dev, mac_addr, (struct station_info *)0, gfp); return; } } bool no_fw_recovery ; unsigned int mtu_max ; unsigned short rx_ring_overflow_thrsh ; bool debug_fw ; void wil_dbg_trace(struct wil6210_priv *wil , char const *fmt , ...) ; void wil_err(struct wil6210_priv *wil , char const *fmt , ...) ; void wil_info(struct wil6210_priv *wil , char const *fmt , ...) ; void wil_memcpy_fromio_32(void *dst , void const volatile *src , size_t count ) ; void wil_memcpy_toio_32(void volatile *dst , void const *src , size_t count ) ; int wil_priv_init(struct wil6210_priv *wil ) ; void wil_priv_deinit(struct wil6210_priv *wil ) ; int wil_reset(struct wil6210_priv *wil , bool load_fw ) ; void wil_fw_error_recovery(struct wil6210_priv *wil ) ; void wil_set_recovery_state(struct wil6210_priv *wil , int state ) ; int wil_up(struct wil6210_priv *wil ) ; int __wil_up(struct wil6210_priv *wil ) ; int wil_down(struct wil6210_priv *wil ) ; int __wil_down(struct wil6210_priv *wil ) ; void wil_mbox_ring_le2cpus(struct wil6210_mbox_ring *r ) ; int wil_find_cid(struct wil6210_priv *wil , u8 const *mac ) ; int wmi_send(struct wil6210_priv *wil , u16 cmdid , void *buf , u16 len ) ; void wmi_event_worker(struct work_struct *work ) ; void wmi_event_flush(struct wil6210_priv *wil ) ; int wmi_echo(struct wil6210_priv *wil ) ; int wmi_disconnect_sta(struct wil6210_priv *wil , u8 const *mac , u16 reason ) ; void wil_back_rx_worker(struct work_struct *work ) ; void wil_back_rx_flush(struct wil6210_priv *wil ) ; void wil_back_tx_worker(struct work_struct *work ) ; void wil_back_tx_flush(struct wil6210_priv *wil ) ; void wil6210_clear_irq(struct wil6210_priv *wil ) ; void wil_mask_irq(struct wil6210_priv *wil ) ; void wil_unmask_irq(struct wil6210_priv *wil ) ; void wil_configure_interrupt_moderation(struct wil6210_priv *wil ) ; void wil_disable_irq(struct wil6210_priv *wil ) ; void wil_enable_irq(struct wil6210_priv *wil ) ; int wmi_set_mac_address(struct wil6210_priv *wil , void *addr ) ; void wil6210_disconnect(struct wil6210_priv *wil , u8 const *bssid , u16 reason_code , bool from_event ) ; void wil_probe_client_flush(struct wil6210_priv *wil ) ; void wil_probe_client_worker(struct work_struct *work ) ; int wil_rx_init(struct wil6210_priv *wil , u16 size ) ; void wil_rx_fini(struct wil6210_priv *wil ) ; int wil_vring_init_tx(struct wil6210_priv *wil , int id , int size , int cid , int tid ) ; void wil_vring_fini_tx(struct wil6210_priv *wil , int id ) ; int wil_vring_init_bcast(struct wil6210_priv *wil , int id , int size ) ; int wil_bcast_init(struct wil6210_priv *wil ) ; void wil_bcast_fini(struct wil6210_priv *wil ) ; int wil_request_firmware(struct wil6210_priv *wil , char const *name ) ; void wil_tid_ampdu_rx_free(struct wil6210_priv *wil , struct wil_tid_ampdu_rx *r ) ; unsigned short rx_ring_overflow_thrsh = 0U; unsigned int mtu_max = 1986U; static int mtu_max_set(char const *val , struct kernel_param const *kp ) { int ret ; { ret = param_set_uint(val, kp); if (ret != 0) { return (ret); } else { } if (mtu_max <= 67U || mtu_max > 7912U) { ret = -22; } else { } return (ret); } } static uint rx_ring_order = 10U; static uint tx_ring_order = 10U; static uint bcast_ring_order = 7U; static int ring_order_set(char const *val , struct kernel_param const *kp ) { int ret ; uint x ; { ret = kstrtouint(val, 0U, & x); if (ret != 0) { return (ret); } else { } if (x <= 4U || x > 15U) { return (-22); } else { } *((uint *)kp->__annonCompField56.arg) = x; return (0); } } void wil_memcpy_fromio_32(void *dst , void const volatile *src , size_t count ) { u32 *d ; u32 const volatile *s ; u32 *tmp ; u32 const volatile *tmp___0 ; { d = (u32 *)dst; s = (u32 const volatile *)src; count = count + 4UL; goto ldv_49677; ldv_49676: tmp = d; d = d + 1; tmp___0 = s; s = s + 1; *tmp = __readl((void const volatile *)tmp___0); count = count - 4UL; ldv_49677: ; if (count > 4UL) { goto ldv_49676; } else { } return; } } void wil_memcpy_toio_32(void volatile *dst , void const *src , size_t count ) { u32 volatile *d ; u32 const *s ; u32 volatile *tmp ; u32 const *tmp___0 ; { d = (u32 volatile *)dst; s = (u32 const *)src; count = count + 4UL; goto ldv_49687; ldv_49686: tmp = d; d = d + 1; tmp___0 = s; s = s + 1; __writel(*tmp___0, (void volatile *)tmp); count = count - 4UL; ldv_49687: ; if (count > 4UL) { goto ldv_49686; } else { } return; } } static void wil_disconnect_cid(struct wil6210_priv *wil , int cid , u16 reason_code , bool from_event ) { uint i ; struct net_device *ndev ; struct wireless_dev *wdev ; struct wil_sta_info *sta ; struct _ddebug descriptor ; long tmp ; struct wil_tid_ampdu_rx *r ; { ndev = (wil->wdev)->netdev; wdev = wil->wdev; sta = (struct wil_sta_info *)(& wil->sta) + (unsigned long )cid; __might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c", 151, 0); descriptor.modname = "wil6210"; descriptor.function = "wil_disconnect_cid"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s(CID %d, status %d)\n"; descriptor.lineno = 153U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(CID %d, status %d)\n", "wil_disconnect_cid", cid, (unsigned int )sta->status); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(CID %d, status %d)\n", "wil_disconnect_cid", cid, (unsigned int )sta->status); if ((unsigned int )sta->status != 0U) { if (! from_event) { wmi_disconnect_sta(wil, (u8 const *)(& sta->addr), (int )reason_code); } else { } switch ((unsigned int )wdev->iftype) { case 3U: ; case 9U: cfg80211_del_sta(ndev, (u8 const *)(& sta->addr), 208U); goto ldv_49703; default: ; goto ldv_49703; } ldv_49703: sta->status = 0; } else { } i = 0U; goto ldv_49707; ldv_49706: spin_lock_bh(& sta->tid_rx_lock); r = sta->tid_rx[i]; sta->tid_rx[i] = (struct wil_tid_ampdu_rx *)0; wil_tid_ampdu_rx_free(wil, r); spin_unlock_bh(& sta->tid_rx_lock); i = i + 1U; ldv_49707: ; if (i <= 15U) { goto ldv_49706; } else { } i = 0U; goto ldv_49712; ldv_49711: ; if ((int )wil->vring2cid_tid[i][0] == cid) { wil_vring_fini_tx(wil, (int )i); } else { } i = i + 1U; ldv_49712: ; if (i <= 23U) { goto ldv_49711; } else { } memset((void *)(& sta->stats), 0, 160UL); return; } } static void _wil6210_disconnect(struct wil6210_priv *wil , u8 const *bssid , u16 reason_code , bool from_event ) { int cid ; struct net_device *ndev ; struct wireless_dev *wdev ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; { cid = -2; ndev = (wil->wdev)->netdev; wdev = wil->wdev; __might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c", 196, 0); descriptor.modname = "wil6210"; descriptor.function = "_wil6210_disconnect"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s(bssid=%pM, reason=%d, ev%s)\n"; descriptor.lineno = 198U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(bssid=%pM, reason=%d, ev%s)\n", "_wil6210_disconnect", bssid, (int )reason_code, (int )from_event ? (char *)"+" : (char *)"-"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(bssid=%pM, reason=%d, ev%s)\n", "_wil6210_disconnect", bssid, (int )reason_code, (int )from_event ? (char *)"+" : (char *)"-"); if ((unsigned long )bssid != (unsigned long )((u8 const *)0U)) { tmp___2 = memcmp((void const *)ndev->dev_addr, (void const *)bssid, 6UL); if (tmp___2 != 0) { cid = wil_find_cid(wil, bssid); descriptor___0.modname = "wil6210"; descriptor___0.function = "_wil6210_disconnect"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___0.format = "DBG[MISC]Disconnect %pM, CID=%d, reason=%d\n"; descriptor___0.lineno = 212U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Disconnect %pM, CID=%d, reason=%d\n", bssid, cid, (int )reason_code); } else { } wil_dbg_trace(wil, "DBG[MISC]Disconnect %pM, CID=%d, reason=%d\n", bssid, cid, (int )reason_code); if (cid >= 0) { wil_disconnect_cid(wil, cid, (int )reason_code, (int )from_event); } else { } } else { goto _L; } } else { _L: /* CIL Label */ descriptor___1.modname = "wil6210"; descriptor___1.function = "_wil6210_disconnect"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___1.format = "DBG[MISC]Disconnect all\n"; descriptor___1.lineno = 216U; descriptor___1.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Disconnect all\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]Disconnect all\n"); cid = 0; goto ldv_49728; ldv_49727: wil_disconnect_cid(wil, cid, (int )reason_code, (int )from_event); cid = cid + 1; ldv_49728: ; if (cid <= 7) { goto ldv_49727; } else { } } switch ((unsigned int )wdev->iftype) { case 2U: ; case 8U: wil_bcast_fini(wil); netif_tx_stop_all_queues(ndev); netif_carrier_off(ndev); tmp___4 = constant_test_bit(2L, (unsigned long const volatile *)(& wil->status)); if (tmp___4 != 0) { clear_bit(2L, (unsigned long volatile *)(& wil->status)); cfg80211_disconnected(ndev, (int )reason_code, (u8 const *)0U, 0UL, 0, 208U); } else { tmp___3 = constant_test_bit(1L, (unsigned long const volatile *)(& wil->status)); if (tmp___3 != 0) { cfg80211_connect_result(ndev, bssid, (u8 const *)0U, 0UL, (u8 const *)0U, 0UL, 1, 208U); } else { } } clear_bit(1L, (unsigned long volatile *)(& wil->status)); goto ldv_49732; default: ; goto ldv_49732; } ldv_49732: ; return; } } static void wil_disconnect_worker(struct work_struct *work ) { struct wil6210_priv *wil ; struct work_struct const *__mptr ; { __mptr = (struct work_struct const *)work; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffffce8UL; ldv_mutex_lock_18(& wil->mutex); _wil6210_disconnect(wil, (u8 const *)0U, 1, 0); ldv_mutex_unlock_19(& wil->mutex); return; } } static void wil_connect_timer_fn(ulong x ) { struct wil6210_priv *wil ; struct _ddebug descriptor ; long tmp ; { wil = (struct wil6210_priv *)x; descriptor.modname = "wil6210"; descriptor.function = "wil_connect_timer_fn"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]Connect timeout\n"; descriptor.lineno = 259U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Connect timeout\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]Connect timeout\n"); schedule_work(& wil->disconnect_worker); return; } } static void wil_scan_timer_fn(ulong x ) { struct wil6210_priv *wil ; { wil = (struct wil6210_priv *)x; clear_bit(0L, (unsigned long volatile *)(& wil->status)); wil_err(wil, "Scan timeout detected, start fw error recovery\n"); wil->recovery_state = 1U; schedule_work(& wil->fw_error_worker); return; } } static int wil_wait_for_recovery(struct wil6210_priv *wil ) { int __ret ; wait_queue_t __wait ; long __ret___0 ; long __int ; long tmp ; { __ret = 0; __might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c", 280, 0); if (wil->recovery_state == 1U) { __ret___0 = 0L; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; ldv_49759: tmp = prepare_to_wait_event(& wil->wq, & __wait, 1); __int = tmp; if (wil->recovery_state != 1U) { goto ldv_49758; } else { } if (__int != 0L) { __ret___0 = __int; goto ldv_49758; } else { } schedule(); goto ldv_49759; ldv_49758: finish_wait(& wil->wq, & __wait); __ret = (int )__ret___0; } else { } if (__ret != 0) { wil_err(wil, "Interrupt, canceling recovery\n"); return (-512); } else { } if (wil->recovery_state != 2U) { wil_info(wil, "Recovery cancelled\n"); return (-4); } else { } wil_info(wil, "Proceed with recovery\n"); return (0); } } void wil_set_recovery_state(struct wil6210_priv *wil , int state ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_set_recovery_state"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s(%d -> %d)\n"; descriptor.lineno = 295U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(%d -> %d)\n", "wil_set_recovery_state", wil->recovery_state, state); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(%d -> %d)\n", "wil_set_recovery_state", wil->recovery_state, state); wil->recovery_state = (u32 )state; __wake_up(& wil->wq, 1U, 1, (void *)0); return; } } static void wil_fw_error_worker(struct work_struct *work ) { struct wil6210_priv *wil ; struct work_struct const *__mptr ; struct wireless_dev *wdev ; struct _ddebug descriptor ; long tmp ; bool tmp___0 ; int tmp___1 ; unsigned long tmp___2 ; int tmp___3 ; { __mptr = (struct work_struct const *)work; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffffc98UL; wdev = wil->wdev; descriptor.modname = "wil6210"; descriptor.function = "wil_fw_error_worker"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]fw error worker\n"; descriptor.lineno = 307U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]fw error worker\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]fw error worker\n"); tmp___0 = netif_running((struct net_device const *)(wil->wdev)->netdev); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { wil_info(wil, "No recovery - interface is down\n"); return; } else { } tmp___2 = msecs_to_jiffies(5000U); if ((long )((unsigned long )jiffies - (wil->last_fw_recovery + tmp___2)) < 0L) { wil->recovery_count = wil->recovery_count + 1U; } else { wil->recovery_count = 1U; } if (wil->recovery_count > 5U) { wil_err(wil, "too many recovery attempts (%d), giving up\n", wil->recovery_count); return; } else { } wil->last_fw_recovery = jiffies; ldv_mutex_lock_20(& wil->mutex); switch ((unsigned int )wdev->iftype) { case 2U: ; case 8U: ; case 6U: wil_info(wil, "fw error recovery requested (try %d)...\n", wil->recovery_count); if (! no_fw_recovery) { wil->recovery_state = 2U; } else { } tmp___3 = wil_wait_for_recovery(wil); if (tmp___3 != 0) { goto ldv_49786; } else { } __wil_down(wil); __wil_up(wil); goto ldv_49786; case 3U: ; case 9U: wil_info(wil, "No recovery for AP-like interface\n"); goto ldv_49786; default: wil_err(wil, "No recovery - unknown interface type %d\n", (unsigned int )wdev->iftype); goto ldv_49786; } ldv_49786: ldv_mutex_unlock_21(& wil->mutex); return; } } static int wil_find_free_vring(struct wil6210_priv *wil ) { int i ; { i = 0; goto ldv_49795; ldv_49794: ; if ((unsigned long )wil->vring_tx[i].va == (unsigned long )((union vring_desc volatile *)0)) { return (i); } else { } i = i + 1; ldv_49795: ; if (i <= 23) { goto ldv_49794; } else { } return (-22); } } int wil_bcast_init(struct wil6210_priv *wil ) { int ri ; int rc ; { ri = wil->bcast_vring; if (ri >= 0 && (unsigned long )wil->vring_tx[ri].va != (unsigned long )((union vring_desc volatile *)0)) { return (0); } else { } ri = wil_find_free_vring(wil); if (ri < 0) { return (ri); } else { } wil->bcast_vring = ri; rc = wil_vring_init_bcast(wil, ri, 1 << (int )bcast_ring_order); if (rc != 0) { wil->bcast_vring = -1; } else { } return (rc); } } void wil_bcast_fini(struct wil6210_priv *wil ) { int ri ; { ri = wil->bcast_vring; if (ri < 0) { return; } else { } wil->bcast_vring = -1; wil_vring_fini_tx(wil, ri); return; } } static void wil_connect_worker(struct work_struct *work ) { int rc ; struct wil6210_priv *wil ; struct work_struct const *__mptr ; struct net_device *ndev ; int cid ; int ringid ; int tmp ; struct _ddebug descriptor ; long tmp___0 ; { __mptr = (struct work_struct const *)work; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffffd38UL; ndev = (wil->wdev)->netdev; cid = wil->pending_connect_cid; tmp = wil_find_free_vring(wil); ringid = tmp; if (cid < 0) { wil_err(wil, "No connection pending\n"); return; } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_connect_worker"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[ WMI]Configure for connection CID %d\n"; descriptor.lineno = 415U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Configure for connection CID %d\n", cid); } else { } wil_dbg_trace(wil, "DBG[ WMI]Configure for connection CID %d\n", cid); rc = wil_vring_init_tx(wil, ringid, 1 << (int )tx_ring_order, cid, 0); wil->pending_connect_cid = -1; if (rc == 0) { wil->sta[cid].status = 2; netif_tx_wake_all_queues(ndev); } else { wil->sta[cid].status = 0; } return; } } int wil_priv_init(struct wil6210_priv *wil ) { uint i ; struct _ddebug descriptor ; long tmp ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct lock_class_key __key___1 ; struct lock_class_key __key___2 ; struct lock_class_key __key___3 ; struct lock_class_key __key___4 ; struct lock_class_key __key___5 ; atomic_long_t __constr_expr_0 ; struct lock_class_key __key___6 ; atomic_long_t __constr_expr_1 ; struct lock_class_key __key___7 ; atomic_long_t __constr_expr_2 ; struct lock_class_key __key___8 ; atomic_long_t __constr_expr_3 ; struct lock_class_key __key___9 ; atomic_long_t __constr_expr_4 ; struct lock_class_key __key___10 ; atomic_long_t __constr_expr_5 ; struct lock_class_key __key___11 ; atomic_long_t __constr_expr_6 ; struct lock_class_key __key___12 ; struct lock_class_key __key___13 ; struct lock_class_key __key___14 ; char const *__lock_name ; struct workqueue_struct *tmp___0 ; struct lock_class_key __key___15 ; char const *__lock_name___0 ; struct workqueue_struct *tmp___1 ; { descriptor.modname = "wil6210"; descriptor.function = "wil_priv_init"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 431U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_priv_init"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_priv_init"); memset((void *)(& wil->sta), 0, 3136UL); i = 0U; goto ldv_49826; ldv_49825: spinlock_check(& wil->sta[i].tid_rx_lock); __raw_spin_lock_init(& wil->sta[i].tid_rx_lock.__annonCompField17.rlock, "&(&wil->sta[i].tid_rx_lock)->rlock", & __key); i = i + 1U; ldv_49826: ; if (i <= 7U) { goto ldv_49825; } else { } __mutex_init(& wil->mutex, "&wil->mutex", & __key___0); __mutex_init(& wil->wmi_mutex, "&wil->wmi_mutex", & __key___1); __mutex_init(& wil->back_rx_mutex, "&wil->back_rx_mutex", & __key___2); __mutex_init(& wil->back_tx_mutex, "&wil->back_tx_mutex", & __key___3); __mutex_init(& wil->probe_client_mutex, "&wil->probe_client_mutex", & __key___4); init_completion(& wil->wmi_ready); init_completion(& wil->wmi_call); wil->pending_connect_cid = -1; wil->bcast_vring = -1; reg_timer_14(& wil->connect_timer, & wil_connect_timer_fn, (unsigned long )wil); reg_timer_14(& wil->scan_timer, & wil_scan_timer_fn, (unsigned long )wil); __init_work(& wil->connect_worker, 0); __constr_expr_0.counter = 137438953408L; wil->connect_worker.data = __constr_expr_0; lockdep_init_map(& wil->connect_worker.lockdep_map, "(&wil->connect_worker)", & __key___5, 0); INIT_LIST_HEAD(& wil->connect_worker.entry); wil->connect_worker.func = & wil_connect_worker; __init_work(& wil->disconnect_worker, 0); __constr_expr_1.counter = 137438953408L; wil->disconnect_worker.data = __constr_expr_1; lockdep_init_map(& wil->disconnect_worker.lockdep_map, "(&wil->disconnect_worker)", & __key___6, 0); INIT_LIST_HEAD(& wil->disconnect_worker.entry); wil->disconnect_worker.func = & wil_disconnect_worker; __init_work(& wil->wmi_event_worker, 0); __constr_expr_2.counter = 137438953408L; wil->wmi_event_worker.data = __constr_expr_2; lockdep_init_map(& wil->wmi_event_worker.lockdep_map, "(&wil->wmi_event_worker)", & __key___7, 0); INIT_LIST_HEAD(& wil->wmi_event_worker.entry); wil->wmi_event_worker.func = & wmi_event_worker; __init_work(& wil->fw_error_worker, 0); __constr_expr_3.counter = 137438953408L; wil->fw_error_worker.data = __constr_expr_3; lockdep_init_map(& wil->fw_error_worker.lockdep_map, "(&wil->fw_error_worker)", & __key___8, 0); INIT_LIST_HEAD(& wil->fw_error_worker.entry); wil->fw_error_worker.func = & wil_fw_error_worker; __init_work(& wil->back_rx_worker, 0); __constr_expr_4.counter = 137438953408L; wil->back_rx_worker.data = __constr_expr_4; lockdep_init_map(& wil->back_rx_worker.lockdep_map, "(&wil->back_rx_worker)", & __key___9, 0); INIT_LIST_HEAD(& wil->back_rx_worker.entry); wil->back_rx_worker.func = & wil_back_rx_worker; __init_work(& wil->back_tx_worker, 0); __constr_expr_5.counter = 137438953408L; wil->back_tx_worker.data = __constr_expr_5; lockdep_init_map(& wil->back_tx_worker.lockdep_map, "(&wil->back_tx_worker)", & __key___10, 0); INIT_LIST_HEAD(& wil->back_tx_worker.entry); wil->back_tx_worker.func = & wil_back_tx_worker; __init_work(& wil->probe_client_worker, 0); __constr_expr_6.counter = 137438953408L; wil->probe_client_worker.data = __constr_expr_6; lockdep_init_map(& wil->probe_client_worker.lockdep_map, "(&wil->probe_client_worker)", & __key___11, 0); INIT_LIST_HEAD(& wil->probe_client_worker.entry); wil->probe_client_worker.func = & wil_probe_client_worker; INIT_LIST_HEAD(& wil->pending_wmi_ev); INIT_LIST_HEAD(& wil->back_rx_pending); INIT_LIST_HEAD(& wil->back_tx_pending); INIT_LIST_HEAD(& wil->probe_client_pending); spinlock_check(& wil->wmi_ev_lock); __raw_spin_lock_init(& wil->wmi_ev_lock.__annonCompField17.rlock, "&(&wil->wmi_ev_lock)->rlock", & __key___12); __init_waitqueue_head(& wil->wq, "&wil->wq", & __key___13); __lock_name = "\"%s\"\"wil6210\" \"_wmi\""; tmp___0 = __alloc_workqueue_key("%s", 131082U, 1, & __key___14, __lock_name, (char *)"wil6210_wmi"); wil->wmi_wq = tmp___0; if ((unsigned long )wil->wmi_wq == (unsigned long )((struct workqueue_struct *)0)) { return (-11); } else { } __lock_name___0 = "\"%s\"\"wil6210\" \"_service\""; tmp___1 = __alloc_workqueue_key("%s", 131082U, 1, & __key___15, __lock_name___0, (char *)"wil6210_service"); wil->wq_service = tmp___1; if ((unsigned long )wil->wq_service == (unsigned long )((struct workqueue_struct *)0)) { goto out_wmi_wq; } else { } wil->last_fw_recovery = jiffies; wil->tx_interframe_timeout = 13U; wil->rx_interframe_timeout = 13U; wil->tx_max_burst_duration = 500U; wil->rx_max_burst_duration = 500U; if ((unsigned int )rx_ring_overflow_thrsh == 0U) { rx_ring_overflow_thrsh = 128U; } else { } return (0); out_wmi_wq: ldv_destroy_workqueue_22(wil->wmi_wq); return (-11); } } void wil6210_disconnect(struct wil6210_priv *wil , u8 const *bssid , u16 reason_code , bool from_event ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil6210_disconnect"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 503U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil6210_disconnect"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil6210_disconnect"); ldv_del_timer_sync_23(& wil->connect_timer); _wil6210_disconnect(wil, bssid, (int )reason_code, (int )from_event); return; } } void wil_priv_deinit(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_priv_deinit"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 511U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_priv_deinit"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_priv_deinit"); wil_set_recovery_state(wil, 0); ldv_del_timer_sync_24(& wil->scan_timer); ldv_cancel_work_sync_25(& wil->disconnect_worker); ldv_cancel_work_sync_26(& wil->fw_error_worker); ldv_mutex_lock_27(& wil->mutex); wil6210_disconnect(wil, (u8 const *)0U, 3, 0); ldv_mutex_unlock_28(& wil->mutex); wmi_event_flush(wil); wil_back_rx_flush(wil); ldv_cancel_work_sync_29(& wil->back_rx_worker); wil_back_tx_flush(wil); ldv_cancel_work_sync_30(& wil->back_tx_worker); wil_probe_client_flush(wil); ldv_cancel_work_sync_31(& wil->probe_client_worker); ldv_destroy_workqueue_32(wil->wq_service); ldv_destroy_workqueue_33(wil->wmi_wq); return; } } __inline static void wil_halt_cpu(struct wil6210_priv *wil ) { { iowrite32(2U, wil->csr + 480UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(2U, wil->csr + 508UL); __asm__ volatile ("sfence": : : "memory"); return; } } __inline static void wil_release_cpu(struct wil6210_priv *wil ) { { iowrite32(1U, wil->csr + 480UL); __asm__ volatile ("sfence": : : "memory"); return; } } static int wil_target_reset(struct wil6210_priv *wil ) { int delay ; u32 x ; u32 x1 ; struct _ddebug descriptor ; long 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 ; struct _ddebug descriptor___0 ; long tmp___7 ; int tmp___8 ; unsigned int tmp___9 ; unsigned int tmp___10 ; struct _ddebug descriptor___1 ; long tmp___11 ; { delay = 0; x1 = 0U; descriptor.modname = "wil6210"; descriptor.function = "wil_target_reset"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]Resetting \"%s\"...\n"; descriptor.lineno = 558U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Resetting \"%s\"...\n", wil->hw_name); } else { } wil_dbg_trace(wil, "DBG[MISC]Resetting \"%s\"...\n", wil->hw_name); tmp___0 = ioread32(wil->csr + 9820UL); iowrite32(tmp___0 | 32768U, wil->csr + 9820UL); __asm__ volatile ("sfence": : : "memory"); tmp___1 = ioread32(wil->csr + 2836UL); iowrite32(tmp___1 | 64U, wil->csr + 2836UL); __asm__ volatile ("sfence": : : "memory"); tmp___2 = ioread32(wil->csr + 2836UL); iowrite32(tmp___2 | 128U, wil->csr + 2836UL); __asm__ volatile ("sfence": : : "memory"); wil_halt_cpu(wil); iowrite32(0U, wil->csr + 2620UL); __asm__ volatile ("sfence": : : "memory"); tmp___3 = ioread32(wil->csr + 24UL); iowrite32(tmp___3 & 4294967294U, wil->csr + 24UL); __asm__ volatile ("sfence": : : "memory"); tmp___4 = ioread32(wil->csr + 44964UL); iowrite32(tmp___4 | 1U, wil->csr + 44964UL); __asm__ volatile ("sfence": : : "memory"); usleep_range(5000UL, 7000UL); x = ioread32(wil->csr + 45036UL); if (((unsigned long )x & 1UL) == 0UL) { wil_err(wil, "Xtal stabilization timeout\nRGF_CAF_PLL_LOCK_STATUS = 0x%08x\n", x); return (-62); } else { } tmp___5 = ioread32(wil->csr + 3152UL); iowrite32(tmp___5 & 4294967291U, wil->csr + 3152UL); __asm__ volatile ("sfence": : : "memory"); tmp___6 = ioread32(wil->csr + 2748UL); iowrite32(tmp___6 & 4294967293U, wil->csr + 2748UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(4192287U, wil->csr + 3096UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(15U, wil->csr + 3116UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(4261412864U, wil->csr + 2828UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(63U, wil->csr + 2824UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(240U, wil->csr + 2832UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(4293393920U, wil->csr + 2820UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(0U, wil->csr + 3096UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(0U, wil->csr + 3116UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(0U, wil->csr + 2832UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(0U, wil->csr + 2828UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(0U, wil->csr + 2824UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(0U, wil->csr + 2820UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(3U, wil->csr + 2832UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(32768U, wil->csr + 2828UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(0U, wil->csr + 2820UL); __asm__ volatile ("sfence": : : "memory"); ldv_49884: msleep(20U); x = ioread32(wil->csr + 2620UL); if (x1 != x) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_target_reset"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___0.format = "DBG[MISC]BL.ready 0x%08x => 0x%08x\n"; descriptor___0.lineno = 612U; descriptor___0.flags = 0U; tmp___7 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___7 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]BL.ready 0x%08x => 0x%08x\n", x1, x); } else { } wil_dbg_trace(wil, "DBG[MISC]BL.ready 0x%08x => 0x%08x\n", x1, x); x1 = x; } else { } tmp___8 = delay; delay = delay + 1; if (tmp___8 > 51) { wil_err(wil, "Reset not completed, bl.ready 0x%08x\n", x); return (-62); } else { } if (x != 1U) { goto ldv_49884; } else { } tmp___9 = ioread32(wil->csr + 2748UL); iowrite32(tmp___9 & 4294965247U, wil->csr + 2748UL); __asm__ volatile ("sfence": : : "memory"); tmp___10 = ioread32(wil->csr + 7380UL); iowrite32(tmp___10 | 5U, wil->csr + 7380UL); __asm__ volatile ("sfence": : : "memory"); descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_target_reset"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___1.format = "DBG[MISC]Reset completed in %d ms\n"; descriptor___1.lineno = 628U; descriptor___1.flags = 0U; tmp___11 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___11 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Reset completed in %d ms\n", delay * 20); } else { } wil_dbg_trace(wil, "DBG[MISC]Reset completed in %d ms\n", delay * 20); return (0); } } void wil_mbox_ring_le2cpus(struct wil6210_mbox_ring *r ) { { return; } } static int wil_get_bl_info(struct wil6210_priv *wil ) { struct net_device *ndev ; struct RGF_BL bl ; bool tmp ; int tmp___0 ; bool tmp___1 ; int tmp___2 ; { ndev = (wil->wdev)->netdev; wil_memcpy_fromio_32((void *)(& bl), (void const volatile *)wil->csr + 2620U, 24UL); tmp = is_valid_ether_addr((u8 const *)(& bl.mac_address)); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { wil_err(wil, "BL: Invalid MAC %pM\n", (u8 *)(& bl.mac_address)); return (-22); } else { } ether_addr_copy((u8 *)(& ndev->perm_addr), (u8 const *)(& bl.mac_address)); tmp___1 = is_valid_ether_addr((u8 const *)ndev->dev_addr); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { ether_addr_copy(ndev->dev_addr, (u8 const *)(& bl.mac_address)); } else { } wil_info(wil, "Boot Loader: ver = %d MAC = %pM RF = 0x%08x bband = 0x%08x\n", bl.version, (u8 *)(& bl.mac_address), bl.rf_type, bl.baseband_type); return (0); } } static int wil_wait_for_fw_ready(struct wil6210_priv *wil ) { ulong to ; unsigned long tmp ; ulong left ; unsigned long tmp___0 ; unsigned int tmp___1 ; { tmp = msecs_to_jiffies(1000U); to = tmp; tmp___0 = wait_for_completion_timeout(& wil->wmi_ready, to); left = tmp___0; if (left == 0UL) { wil_err(wil, "Firmware not ready\n"); return (-62); } else { tmp___1 = jiffies_to_msecs(to - left); wil_info(wil, "FW ready after %d ms. HW version 0x%08x\n", tmp___1, wil->hw_version); } return (0); } } int wil_reset(struct wil6210_priv *wil , bool load_fw ) { int rc ; struct _ddebug descriptor ; long tmp ; int __ret_warn_on ; int tmp___0 ; long tmp___1 ; int __ret_warn_on___0 ; int tmp___2 ; long tmp___3 ; u8 mac[6U] ; struct net_device *ndev ; struct _ddebug descriptor___0 ; long tmp___4 ; unsigned int tmp___5 ; unsigned int tmp___6 ; { descriptor.modname = "wil6210"; descriptor.function = "wil_reset"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 691U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_reset"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_reset"); if (wil->hw_version == 0U) { return (-19); } else { } tmp___0 = ldv_mutex_is_locked_34(& wil->mutex); __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/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c", 696); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); tmp___2 = constant_test_bit(6L, (unsigned long const volatile *)(& wil->status)); __ret_warn_on___0 = tmp___2 != 0; tmp___3 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); if (tmp___3 != 0L) { warn_slowpath_null("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c", 697); } else { } ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); if ((int )debug_fw) { mac[0] = 0U; mac[1] = 222U; mac[2] = 173U; mac[3] = 18U; mac[4] = 52U; mac[5] = 86U; ndev = (wil->wdev)->netdev; ether_addr_copy((u8 *)(& ndev->perm_addr), (u8 const *)(& mac)); ether_addr_copy(ndev->dev_addr, (u8 const *)(& ndev->perm_addr)); return (0); } else { } ldv_cancel_work_sync_35(& wil->disconnect_worker); wil6210_disconnect(wil, (u8 const *)0U, 3, 0); wil_bcast_fini(wil); bitmap_zero((unsigned long *)(& wil->status), 7U); if ((unsigned long )wil->scan_request != (unsigned long )((struct cfg80211_scan_request *)0)) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_reset"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___0.format = "DBG[MISC]Abort scan_request 0x%p\n"; descriptor___0.lineno = 719U; descriptor___0.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Abort scan_request 0x%p\n", wil->scan_request); } else { } wil_dbg_trace(wil, "DBG[MISC]Abort scan_request 0x%p\n", wil->scan_request); ldv_del_timer_sync_36(& wil->scan_timer); cfg80211_scan_done(wil->scan_request, 1); wil->scan_request = (struct cfg80211_scan_request *)0; } else { } wil_mask_irq(wil); wmi_event_flush(wil); ldv_flush_workqueue_37(wil->wq_service); ldv_flush_workqueue_38(wil->wmi_wq); rc = wil_target_reset(wil); wil_rx_fini(wil); if (rc != 0) { return (rc); } else { } rc = wil_get_bl_info(wil); if (rc != 0) { return (rc); } else { } if ((int )load_fw) { wil_info(wil, "Use firmware <%s> + board <%s>\n", (char *)"wil6210.fw", (char *)"wil6210.brd"); wil_halt_cpu(wil); rc = wil_request_firmware(wil, "wil6210.fw"); if (rc != 0) { return (rc); } else { } rc = wil_request_firmware(wil, "wil6210.brd"); if (rc != 0) { return (rc); } else { } tmp___5 = ioread32(wil->csr + 24UL); iowrite32(tmp___5 | 1U, wil->csr + 24UL); __asm__ volatile ("sfence": : : "memory"); wil6210_clear_irq(wil); tmp___6 = ioread32(wil->csr + 38000UL); iowrite32(tmp___6, wil->csr + 38000UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(4294967295U, wil->csr + 38012UL); __asm__ volatile ("sfence": : : "memory"); wil_release_cpu(wil); } else { } wil->pending_connect_cid = -1; wil->ap_isolate = 0U; reinit_completion(& wil->wmi_ready); reinit_completion(& wil->wmi_call); if ((int )load_fw) { wil_configure_interrupt_moderation(wil); wil_unmask_irq(wil); rc = wil_wait_for_fw_ready(wil); if (rc == 0) { rc = wmi_echo(wil); } else { } } else { } return (rc); } } void wil_fw_error_recovery(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_fw_error_recovery"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]starting fw error recovery\n"; descriptor.lineno = 795U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]starting fw error recovery\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]starting fw error recovery\n"); wil->recovery_state = 1U; schedule_work(& wil->fw_error_worker); return; } } int __wil_up(struct wil6210_priv *wil ) { struct net_device *ndev ; struct wireless_dev *wdev ; int rc ; int __ret_warn_on ; int tmp ; long tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; struct _ddebug descriptor___2 ; long tmp___4 ; struct _ddebug descriptor___3 ; long tmp___5 ; struct _ddebug descriptor___4 ; long tmp___6 ; { ndev = (wil->wdev)->netdev; wdev = wil->wdev; tmp = ldv_mutex_is_locked_39(& wil->mutex); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { warn_slowpath_null("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c", 806); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); rc = wil_reset(wil, 1); if (rc != 0) { return (rc); } else { } rc = wil_rx_init(wil, (int )((u16 )(1 << (int )rx_ring_order))); if (rc != 0) { return (rc); } else { } switch ((unsigned int )wdev->iftype) { case 2U: descriptor.modname = "wil6210"; descriptor.function = "__wil_up"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]type: STATION\n"; descriptor.lineno = 819U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]type: STATION\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]type: STATION\n"); ndev->type = 1U; goto ldv_49930; case 3U: descriptor___0.modname = "wil6210"; descriptor___0.function = "__wil_up"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___0.format = "DBG[MISC]type: AP\n"; descriptor___0.lineno = 823U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]type: AP\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]type: AP\n"); ndev->type = 1U; goto ldv_49930; case 8U: descriptor___1.modname = "wil6210"; descriptor___1.function = "__wil_up"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___1.format = "DBG[MISC]type: P2P_CLIENT\n"; descriptor___1.lineno = 827U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]type: P2P_CLIENT\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]type: P2P_CLIENT\n"); ndev->type = 1U; goto ldv_49930; case 9U: descriptor___2.modname = "wil6210"; descriptor___2.function = "__wil_up"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___2.format = "DBG[MISC]type: P2P_GO\n"; descriptor___2.lineno = 831U; descriptor___2.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]type: P2P_GO\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]type: P2P_GO\n"); ndev->type = 1U; goto ldv_49930; case 6U: descriptor___3.modname = "wil6210"; descriptor___3.function = "__wil_up"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___3.format = "DBG[MISC]type: Monitor\n"; descriptor___3.lineno = 835U; descriptor___3.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]type: Monitor\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]type: Monitor\n"); ndev->type = 803U; goto ldv_49930; default: ; return (-95); } ldv_49930: wmi_set_mac_address(wil, (void *)ndev->dev_addr); descriptor___4.modname = "wil6210"; descriptor___4.function = "__wil_up"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___4.format = "DBG[MISC]NAPI enable\n"; descriptor___4.lineno = 846U; descriptor___4.flags = 0U; tmp___6 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___6 != 0L) { __dynamic_netdev_dbg(& descriptor___4, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]NAPI enable\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]NAPI enable\n"); napi_enable(& wil->napi_rx); napi_enable(& wil->napi_tx); set_bit(6L, (unsigned long volatile *)(& wil->status)); if ((unsigned long )wil->platform_ops.bus_request != (unsigned long )((int (*)(void * , uint32_t ))0)) { (*(wil->platform_ops.bus_request))(wil->platform_handle, 800000U); } else { } return (0); } } int wil_up(struct wil6210_priv *wil ) { int rc ; struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_up"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 862U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_up"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_up"); ldv_mutex_lock_40(& wil->mutex); rc = __wil_up(wil); ldv_mutex_unlock_41(& wil->mutex); return (rc); } } int __wil_down(struct wil6210_priv *wil ) { int iter ; int __ret_warn_on ; int tmp ; long tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; int tmp___2 ; struct _ddebug descriptor___0 ; long tmp___3 ; int tmp___4 ; int tmp___5 ; int idle ; int tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; { iter = 200; tmp = ldv_mutex_is_locked_42(& wil->mutex); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { warn_slowpath_null("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c", 876); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); if ((unsigned long )wil->platform_ops.bus_request != (unsigned long )((int (*)(void * , uint32_t ))0)) { (*(wil->platform_ops.bus_request))(wil->platform_handle, 0U); } else { } wil_disable_irq(wil); tmp___2 = test_and_clear_bit(6L, (unsigned long volatile *)(& wil->status)); if (tmp___2 != 0) { napi_disable(& wil->napi_rx); napi_disable(& wil->napi_tx); descriptor.modname = "wil6210"; descriptor.function = "__wil_down"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]NAPI disable\n"; descriptor.lineno = 885U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]NAPI disable\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]NAPI disable\n"); } else { } wil_enable_irq(wil); if ((unsigned long )wil->scan_request != (unsigned long )((struct cfg80211_scan_request *)0)) { descriptor___0.modname = "wil6210"; descriptor___0.function = "__wil_down"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor___0.format = "DBG[MISC]Abort scan_request 0x%p\n"; descriptor___0.lineno = 891U; descriptor___0.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Abort scan_request 0x%p\n", wil->scan_request); } else { } wil_dbg_trace(wil, "DBG[MISC]Abort scan_request 0x%p\n", wil->scan_request); ldv_del_timer_sync_43(& wil->scan_timer); cfg80211_scan_done(wil->scan_request, 1); wil->scan_request = (struct cfg80211_scan_request *)0; } else { } tmp___4 = constant_test_bit(2L, (unsigned long const volatile *)(& wil->status)); if (tmp___4 != 0) { wmi_send(wil, 3, (void *)0, 0); } else { tmp___5 = constant_test_bit(1L, (unsigned long const volatile *)(& wil->status)); if (tmp___5 != 0) { wmi_send(wil, 3, (void *)0, 0); } else { } } ldv_mutex_unlock_44(& wil->mutex); goto ldv_49959; ldv_49958: tmp___6 = constant_test_bit(2L, (unsigned long const volatile *)(& wil->status)); if (tmp___6 == 0) { tmp___7 = constant_test_bit(1L, (unsigned long const volatile *)(& wil->status)); if (tmp___7 == 0) { tmp___8 = 1; } else { tmp___8 = 0; } } else { tmp___8 = 0; } idle = tmp___8; if (idle != 0) { goto ldv_49957; } else { } msleep(10U); ldv_49959: tmp___9 = iter; iter = iter - 1; if (tmp___9 != 0) { goto ldv_49958; } else { } ldv_49957: ldv_mutex_lock_45(& wil->mutex); if (iter == 0) { wil_err(wil, "timeout waiting for idle FW/HW\n"); } else { } wil_reset(wil, 0); return (0); } } int wil_down(struct wil6210_priv *wil ) { int rc ; struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_down"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/main.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 924U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_down"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_down"); wil_set_recovery_state(wil, 0); ldv_mutex_lock_46(& wil->mutex); rc = __wil_down(wil); ldv_mutex_unlock_47(& wil->mutex); return (rc); } } int wil_find_cid(struct wil6210_priv *wil , u8 const *mac ) { int i ; int rc ; bool tmp ; { rc = -2; i = 0; goto ldv_49976; ldv_49975: ; if ((unsigned int )wil->sta[i].status != 0U) { tmp = ether_addr_equal((u8 const *)(& wil->sta[i].addr), mac); if ((int )tmp) { rc = i; goto ldv_49974; } else { } } else { } i = i + 1; ldv_49976: ; if ((unsigned int )i <= 7U) { goto ldv_49975; } else { } ldv_49974: ; return (rc); } } void call_and_disable_work_10(struct work_struct *work ) { { if ((ldv_work_10_0 == 2 || ldv_work_10_0 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_10_0) { wil_fw_error_worker(work); ldv_work_10_0 = 1; return; } else { } if ((ldv_work_10_1 == 2 || ldv_work_10_1 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_10_1) { wil_fw_error_worker(work); ldv_work_10_1 = 1; return; } else { } if ((ldv_work_10_2 == 2 || ldv_work_10_2 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_10_2) { wil_fw_error_worker(work); ldv_work_10_2 = 1; return; } else { } if ((ldv_work_10_3 == 2 || ldv_work_10_3 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_10_3) { wil_fw_error_worker(work); ldv_work_10_3 = 1; return; } else { } return; } } void work_init_9(void) { { ldv_work_9_0 = 0; ldv_work_9_1 = 0; ldv_work_9_2 = 0; ldv_work_9_3 = 0; return; } } void invoke_work_8(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_work_8_0 == 2 || ldv_work_8_0 == 3) { ldv_work_8_0 = 4; wil_disconnect_worker(ldv_work_struct_8_0); ldv_work_8_0 = 1; } else { } goto ldv_49991; case 1: ; if (ldv_work_8_1 == 2 || ldv_work_8_1 == 3) { ldv_work_8_1 = 4; wil_disconnect_worker(ldv_work_struct_8_0); ldv_work_8_1 = 1; } else { } goto ldv_49991; case 2: ; if (ldv_work_8_2 == 2 || ldv_work_8_2 == 3) { ldv_work_8_2 = 4; wil_disconnect_worker(ldv_work_struct_8_0); ldv_work_8_2 = 1; } else { } goto ldv_49991; case 3: ; if (ldv_work_8_3 == 2 || ldv_work_8_3 == 3) { ldv_work_8_3 = 4; wil_disconnect_worker(ldv_work_struct_8_0); ldv_work_8_3 = 1; } else { } goto ldv_49991; default: ldv_stop(); } ldv_49991: ; return; } } void disable_work_7(struct work_struct *work ) { { if ((ldv_work_7_0 == 3 || ldv_work_7_0 == 2) && (unsigned long )ldv_work_struct_7_0 == (unsigned long )work) { ldv_work_7_0 = 1; } else { } if ((ldv_work_7_1 == 3 || ldv_work_7_1 == 2) && (unsigned long )ldv_work_struct_7_1 == (unsigned long )work) { ldv_work_7_1 = 1; } else { } if ((ldv_work_7_2 == 3 || ldv_work_7_2 == 2) && (unsigned long )ldv_work_struct_7_2 == (unsigned long )work) { ldv_work_7_2 = 1; } else { } if ((ldv_work_7_3 == 3 || ldv_work_7_3 == 2) && (unsigned long )ldv_work_struct_7_3 == (unsigned long )work) { ldv_work_7_3 = 1; } else { } return; } } void call_and_disable_work_13(struct work_struct *work ) { { if ((ldv_work_13_0 == 2 || ldv_work_13_0 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_13_0) { wil_probe_client_worker(work); ldv_work_13_0 = 1; return; } else { } if ((ldv_work_13_1 == 2 || ldv_work_13_1 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_13_1) { wil_probe_client_worker(work); ldv_work_13_1 = 1; return; } else { } if ((ldv_work_13_2 == 2 || ldv_work_13_2 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_13_2) { wil_probe_client_worker(work); ldv_work_13_2 = 1; return; } else { } if ((ldv_work_13_3 == 2 || ldv_work_13_3 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_13_3) { wil_probe_client_worker(work); ldv_work_13_3 = 1; return; } else { } return; } } void activate_work_13(struct work_struct *work , int state ) { { if (ldv_work_13_0 == 0) { ldv_work_struct_13_0 = work; ldv_work_13_0 = state; return; } else { } if (ldv_work_13_1 == 0) { ldv_work_struct_13_1 = work; ldv_work_13_1 = state; return; } else { } if (ldv_work_13_2 == 0) { ldv_work_struct_13_2 = work; ldv_work_13_2 = state; return; } else { } if (ldv_work_13_3 == 0) { ldv_work_struct_13_3 = work; ldv_work_13_3 = state; return; } else { } return; } } void invoke_work_10(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_work_10_0 == 2 || ldv_work_10_0 == 3) { ldv_work_10_0 = 4; wil_fw_error_worker(ldv_work_struct_10_0); ldv_work_10_0 = 1; } else { } goto ldv_50014; case 1: ; if (ldv_work_10_1 == 2 || ldv_work_10_1 == 3) { ldv_work_10_1 = 4; wil_fw_error_worker(ldv_work_struct_10_0); ldv_work_10_1 = 1; } else { } goto ldv_50014; case 2: ; if (ldv_work_10_2 == 2 || ldv_work_10_2 == 3) { ldv_work_10_2 = 4; wil_fw_error_worker(ldv_work_struct_10_0); ldv_work_10_2 = 1; } else { } goto ldv_50014; case 3: ; if (ldv_work_10_3 == 2 || ldv_work_10_3 == 3) { ldv_work_10_3 = 4; wil_fw_error_worker(ldv_work_struct_10_0); ldv_work_10_3 = 1; } else { } goto ldv_50014; default: ldv_stop(); } ldv_50014: ; return; } } void call_and_disable_all_11(int state ) { { if (ldv_work_11_0 == state) { call_and_disable_work_11(ldv_work_struct_11_0); } else { } if (ldv_work_11_1 == state) { call_and_disable_work_11(ldv_work_struct_11_1); } else { } if (ldv_work_11_2 == state) { call_and_disable_work_11(ldv_work_struct_11_2); } else { } if (ldv_work_11_3 == state) { call_and_disable_work_11(ldv_work_struct_11_3); } else { } return; } } void activate_suitable_timer_15(struct timer_list *timer , unsigned long data ) { { if (ldv_timer_15_0 == 0 || ldv_timer_15_0 == 2) { ldv_timer_list_15_0 = timer; ldv_timer_list_15_0->data = data; ldv_timer_15_0 = 1; return; } else { } if (ldv_timer_15_1 == 0 || ldv_timer_15_1 == 2) { ldv_timer_list_15_1 = timer; ldv_timer_list_15_1->data = data; ldv_timer_15_1 = 1; return; } else { } if (ldv_timer_15_2 == 0 || ldv_timer_15_2 == 2) { ldv_timer_list_15_2 = timer; ldv_timer_list_15_2->data = data; ldv_timer_15_2 = 1; return; } else { } if (ldv_timer_15_3 == 0 || ldv_timer_15_3 == 2) { ldv_timer_list_15_3 = timer; ldv_timer_list_15_3->data = data; ldv_timer_15_3 = 1; return; } else { } return; } } void call_and_disable_work_7(struct work_struct *work ) { { if ((ldv_work_7_0 == 2 || ldv_work_7_0 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_7_0) { wil_connect_worker(work); ldv_work_7_0 = 1; return; } else { } if ((ldv_work_7_1 == 2 || ldv_work_7_1 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_7_1) { wil_connect_worker(work); ldv_work_7_1 = 1; return; } else { } if ((ldv_work_7_2 == 2 || ldv_work_7_2 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_7_2) { wil_connect_worker(work); ldv_work_7_2 = 1; return; } else { } if ((ldv_work_7_3 == 2 || ldv_work_7_3 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_7_3) { wil_connect_worker(work); ldv_work_7_3 = 1; return; } else { } return; } } int reg_timer_15(struct timer_list *timer , void (*function)(unsigned long ) , unsigned long data ) { { if ((unsigned long )function == (unsigned long )(& wil_scan_timer_fn)) { activate_suitable_timer_15(timer, data); } else { } return (0); } } void work_init_8(void) { { ldv_work_8_0 = 0; ldv_work_8_1 = 0; ldv_work_8_2 = 0; ldv_work_8_3 = 0; return; } } void ldv_timer_14(int state , struct timer_list *timer ) { { LDV_IN_INTERRUPT = 2; wil_connect_timer_fn(timer->data); LDV_IN_INTERRUPT = 1; return; } } void call_and_disable_all_9(int state ) { { if (ldv_work_9_0 == state) { call_and_disable_work_9(ldv_work_struct_9_0); } else { } if (ldv_work_9_1 == state) { call_and_disable_work_9(ldv_work_struct_9_1); } else { } if (ldv_work_9_2 == state) { call_and_disable_work_9(ldv_work_struct_9_2); } else { } if (ldv_work_9_3 == state) { call_and_disable_work_9(ldv_work_struct_9_3); } else { } return; } } void call_and_disable_all_12(int state ) { { if (ldv_work_12_0 == state) { call_and_disable_work_12(ldv_work_struct_12_0); } else { } if (ldv_work_12_1 == state) { call_and_disable_work_12(ldv_work_struct_12_1); } else { } if (ldv_work_12_2 == state) { call_and_disable_work_12(ldv_work_struct_12_2); } else { } if (ldv_work_12_3 == state) { call_and_disable_work_12(ldv_work_struct_12_3); } else { } return; } } void activate_pending_timer_15(struct timer_list *timer , unsigned long data , int pending_flag ) { { if ((unsigned long )ldv_timer_list_15_0 == (unsigned long )timer) { if (ldv_timer_15_0 == 2 || pending_flag != 0) { ldv_timer_list_15_0 = timer; ldv_timer_list_15_0->data = data; ldv_timer_15_0 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_15_1 == (unsigned long )timer) { if (ldv_timer_15_1 == 2 || pending_flag != 0) { ldv_timer_list_15_1 = timer; ldv_timer_list_15_1->data = data; ldv_timer_15_1 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_15_2 == (unsigned long )timer) { if (ldv_timer_15_2 == 2 || pending_flag != 0) { ldv_timer_list_15_2 = timer; ldv_timer_list_15_2->data = data; ldv_timer_15_2 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_15_3 == (unsigned long )timer) { if (ldv_timer_15_3 == 2 || pending_flag != 0) { ldv_timer_list_15_3 = timer; ldv_timer_list_15_3->data = data; ldv_timer_15_3 = 1; } else { } return; } else { } activate_suitable_timer_15(timer, data); return; } } void work_init_10(void) { { ldv_work_10_0 = 0; ldv_work_10_1 = 0; ldv_work_10_2 = 0; ldv_work_10_3 = 0; return; } } void call_and_disable_work_8(struct work_struct *work ) { { if ((ldv_work_8_0 == 2 || ldv_work_8_0 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_8_0) { wil_disconnect_worker(work); ldv_work_8_0 = 1; return; } else { } if ((ldv_work_8_1 == 2 || ldv_work_8_1 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_8_1) { wil_disconnect_worker(work); ldv_work_8_1 = 1; return; } else { } if ((ldv_work_8_2 == 2 || ldv_work_8_2 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_8_2) { wil_disconnect_worker(work); ldv_work_8_2 = 1; return; } else { } if ((ldv_work_8_3 == 2 || ldv_work_8_3 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_8_3) { wil_disconnect_worker(work); ldv_work_8_3 = 1; return; } else { } return; } } void invoke_work_11(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_work_11_0 == 2 || ldv_work_11_0 == 3) { ldv_work_11_0 = 4; wil_back_rx_worker(ldv_work_struct_11_0); ldv_work_11_0 = 1; } else { } goto ldv_50069; case 1: ; if (ldv_work_11_1 == 2 || ldv_work_11_1 == 3) { ldv_work_11_1 = 4; wil_back_rx_worker(ldv_work_struct_11_0); ldv_work_11_1 = 1; } else { } goto ldv_50069; case 2: ; if (ldv_work_11_2 == 2 || ldv_work_11_2 == 3) { ldv_work_11_2 = 4; wil_back_rx_worker(ldv_work_struct_11_0); ldv_work_11_2 = 1; } else { } goto ldv_50069; case 3: ; if (ldv_work_11_3 == 2 || ldv_work_11_3 == 3) { ldv_work_11_3 = 4; wil_back_rx_worker(ldv_work_struct_11_0); ldv_work_11_3 = 1; } else { } goto ldv_50069; default: ldv_stop(); } ldv_50069: ; return; } } void work_init_13(void) { { ldv_work_13_0 = 0; ldv_work_13_1 = 0; ldv_work_13_2 = 0; ldv_work_13_3 = 0; return; } } void invoke_work_9(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_work_9_0 == 2 || ldv_work_9_0 == 3) { ldv_work_9_0 = 4; wmi_event_worker(ldv_work_struct_9_0); ldv_work_9_0 = 1; } else { } goto ldv_50083; case 1: ; if (ldv_work_9_1 == 2 || ldv_work_9_1 == 3) { ldv_work_9_1 = 4; wmi_event_worker(ldv_work_struct_9_0); ldv_work_9_1 = 1; } else { } goto ldv_50083; case 2: ; if (ldv_work_9_2 == 2 || ldv_work_9_2 == 3) { ldv_work_9_2 = 4; wmi_event_worker(ldv_work_struct_9_0); ldv_work_9_2 = 1; } else { } goto ldv_50083; case 3: ; if (ldv_work_9_3 == 2 || ldv_work_9_3 == 3) { ldv_work_9_3 = 4; wmi_event_worker(ldv_work_struct_9_0); ldv_work_9_3 = 1; } else { } goto ldv_50083; default: ldv_stop(); } ldv_50083: ; return; } } void disable_work_13(struct work_struct *work ) { { if ((ldv_work_13_0 == 3 || ldv_work_13_0 == 2) && (unsigned long )ldv_work_struct_13_0 == (unsigned long )work) { ldv_work_13_0 = 1; } else { } if ((ldv_work_13_1 == 3 || ldv_work_13_1 == 2) && (unsigned long )ldv_work_struct_13_1 == (unsigned long )work) { ldv_work_13_1 = 1; } else { } if ((ldv_work_13_2 == 3 || ldv_work_13_2 == 2) && (unsigned long )ldv_work_struct_13_2 == (unsigned long )work) { ldv_work_13_2 = 1; } else { } if ((ldv_work_13_3 == 3 || ldv_work_13_3 == 2) && (unsigned long )ldv_work_struct_13_3 == (unsigned long )work) { ldv_work_13_3 = 1; } else { } return; } } void disable_work_8(struct work_struct *work ) { { if ((ldv_work_8_0 == 3 || ldv_work_8_0 == 2) && (unsigned long )ldv_work_struct_8_0 == (unsigned long )work) { ldv_work_8_0 = 1; } else { } if ((ldv_work_8_1 == 3 || ldv_work_8_1 == 2) && (unsigned long )ldv_work_struct_8_1 == (unsigned long )work) { ldv_work_8_1 = 1; } else { } if ((ldv_work_8_2 == 3 || ldv_work_8_2 == 2) && (unsigned long )ldv_work_struct_8_2 == (unsigned long )work) { ldv_work_8_2 = 1; } else { } if ((ldv_work_8_3 == 3 || ldv_work_8_3 == 2) && (unsigned long )ldv_work_struct_8_3 == (unsigned long )work) { ldv_work_8_3 = 1; } else { } return; } } void activate_work_9(struct work_struct *work , int state ) { { if (ldv_work_9_0 == 0) { ldv_work_struct_9_0 = work; ldv_work_9_0 = state; return; } else { } if (ldv_work_9_1 == 0) { ldv_work_struct_9_1 = work; ldv_work_9_1 = state; return; } else { } if (ldv_work_9_2 == 0) { ldv_work_struct_9_2 = work; ldv_work_9_2 = state; return; } else { } if (ldv_work_9_3 == 0) { ldv_work_struct_9_3 = work; ldv_work_9_3 = state; return; } else { } return; } } void activate_pending_timer_14(struct timer_list *timer , unsigned long data , int pending_flag ) { { if ((unsigned long )ldv_timer_list_14_0 == (unsigned long )timer) { if (ldv_timer_14_0 == 2 || pending_flag != 0) { ldv_timer_list_14_0 = timer; ldv_timer_list_14_0->data = data; ldv_timer_14_0 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_14_1 == (unsigned long )timer) { if (ldv_timer_14_1 == 2 || pending_flag != 0) { ldv_timer_list_14_1 = timer; ldv_timer_list_14_1->data = data; ldv_timer_14_1 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_14_2 == (unsigned long )timer) { if (ldv_timer_14_2 == 2 || pending_flag != 0) { ldv_timer_list_14_2 = timer; ldv_timer_list_14_2->data = data; ldv_timer_14_2 = 1; } else { } return; } else { } if ((unsigned long )ldv_timer_list_14_3 == (unsigned long )timer) { if (ldv_timer_14_3 == 2 || pending_flag != 0) { ldv_timer_list_14_3 = timer; ldv_timer_list_14_3->data = data; ldv_timer_14_3 = 1; } else { } return; } else { } activate_suitable_timer_14(timer, data); return; } } void call_and_disable_all_7(int state ) { { if (ldv_work_7_0 == state) { call_and_disable_work_7(ldv_work_struct_7_0); } else { } if (ldv_work_7_1 == state) { call_and_disable_work_7(ldv_work_struct_7_1); } else { } if (ldv_work_7_2 == state) { call_and_disable_work_7(ldv_work_struct_7_2); } else { } if (ldv_work_7_3 == state) { call_and_disable_work_7(ldv_work_struct_7_3); } else { } return; } } void invoke_work_12(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_work_12_0 == 2 || ldv_work_12_0 == 3) { ldv_work_12_0 = 4; wil_back_tx_worker(ldv_work_struct_12_0); ldv_work_12_0 = 1; } else { } goto ldv_50112; case 1: ; if (ldv_work_12_1 == 2 || ldv_work_12_1 == 3) { ldv_work_12_1 = 4; wil_back_tx_worker(ldv_work_struct_12_0); ldv_work_12_1 = 1; } else { } goto ldv_50112; case 2: ; if (ldv_work_12_2 == 2 || ldv_work_12_2 == 3) { ldv_work_12_2 = 4; wil_back_tx_worker(ldv_work_struct_12_0); ldv_work_12_2 = 1; } else { } goto ldv_50112; case 3: ; if (ldv_work_12_3 == 2 || ldv_work_12_3 == 3) { ldv_work_12_3 = 4; wil_back_tx_worker(ldv_work_struct_12_0); ldv_work_12_3 = 1; } else { } goto ldv_50112; default: ldv_stop(); } ldv_50112: ; return; } } void ldv_initialize_kernel_param_ops_57(void) { void *tmp ; { tmp = ldv_init_zalloc(40UL); mtu_max_ops_group0 = (struct kernel_param const *)tmp; return; } } void call_and_disable_work_12(struct work_struct *work ) { { if ((ldv_work_12_0 == 2 || ldv_work_12_0 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_12_0) { wil_back_tx_worker(work); ldv_work_12_0 = 1; return; } else { } if ((ldv_work_12_1 == 2 || ldv_work_12_1 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_12_1) { wil_back_tx_worker(work); ldv_work_12_1 = 1; return; } else { } if ((ldv_work_12_2 == 2 || ldv_work_12_2 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_12_2) { wil_back_tx_worker(work); ldv_work_12_2 = 1; return; } else { } if ((ldv_work_12_3 == 2 || ldv_work_12_3 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_12_3) { wil_back_tx_worker(work); ldv_work_12_3 = 1; return; } else { } return; } } void work_init_11(void) { { ldv_work_11_0 = 0; ldv_work_11_1 = 0; ldv_work_11_2 = 0; ldv_work_11_3 = 0; return; } } void activate_work_11(struct work_struct *work , int state ) { { if (ldv_work_11_0 == 0) { ldv_work_struct_11_0 = work; ldv_work_11_0 = state; return; } else { } if (ldv_work_11_1 == 0) { ldv_work_struct_11_1 = work; ldv_work_11_1 = state; return; } else { } if (ldv_work_11_2 == 0) { ldv_work_struct_11_2 = work; ldv_work_11_2 = state; return; } else { } if (ldv_work_11_3 == 0) { ldv_work_struct_11_3 = work; ldv_work_11_3 = state; return; } else { } return; } } void disable_work_11(struct work_struct *work ) { { if ((ldv_work_11_0 == 3 || ldv_work_11_0 == 2) && (unsigned long )ldv_work_struct_11_0 == (unsigned long )work) { ldv_work_11_0 = 1; } else { } if ((ldv_work_11_1 == 3 || ldv_work_11_1 == 2) && (unsigned long )ldv_work_struct_11_1 == (unsigned long )work) { ldv_work_11_1 = 1; } else { } if ((ldv_work_11_2 == 3 || ldv_work_11_2 == 2) && (unsigned long )ldv_work_struct_11_2 == (unsigned long )work) { ldv_work_11_2 = 1; } else { } if ((ldv_work_11_3 == 3 || ldv_work_11_3 == 2) && (unsigned long )ldv_work_struct_11_3 == (unsigned long )work) { ldv_work_11_3 = 1; } else { } return; } } void disable_work_12(struct work_struct *work ) { { if ((ldv_work_12_0 == 3 || ldv_work_12_0 == 2) && (unsigned long )ldv_work_struct_12_0 == (unsigned long )work) { ldv_work_12_0 = 1; } else { } if ((ldv_work_12_1 == 3 || ldv_work_12_1 == 2) && (unsigned long )ldv_work_struct_12_1 == (unsigned long )work) { ldv_work_12_1 = 1; } else { } if ((ldv_work_12_2 == 3 || ldv_work_12_2 == 2) && (unsigned long )ldv_work_struct_12_2 == (unsigned long )work) { ldv_work_12_2 = 1; } else { } if ((ldv_work_12_3 == 3 || ldv_work_12_3 == 2) && (unsigned long )ldv_work_struct_12_3 == (unsigned long )work) { ldv_work_12_3 = 1; } else { } return; } } void choose_timer_15(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_timer_15_0 == 1) { ldv_timer_15_0 = 2; ldv_timer_15(ldv_timer_15_0, ldv_timer_list_15_0); } else { } goto ldv_50142; case 1: ; if (ldv_timer_15_1 == 1) { ldv_timer_15_1 = 2; ldv_timer_15(ldv_timer_15_1, ldv_timer_list_15_1); } else { } goto ldv_50142; case 2: ; if (ldv_timer_15_2 == 1) { ldv_timer_15_2 = 2; ldv_timer_15(ldv_timer_15_2, ldv_timer_list_15_2); } else { } goto ldv_50142; case 3: ; if (ldv_timer_15_3 == 1) { ldv_timer_15_3 = 2; ldv_timer_15(ldv_timer_15_3, ldv_timer_list_15_3); } else { } goto ldv_50142; default: ldv_stop(); } ldv_50142: ; return; } } void work_init_7(void) { { ldv_work_7_0 = 0; ldv_work_7_1 = 0; ldv_work_7_2 = 0; ldv_work_7_3 = 0; return; } } void invoke_work_7(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_work_7_0 == 2 || ldv_work_7_0 == 3) { ldv_work_7_0 = 4; wil_connect_worker(ldv_work_struct_7_0); ldv_work_7_0 = 1; } else { } goto ldv_50156; case 1: ; if (ldv_work_7_1 == 2 || ldv_work_7_1 == 3) { ldv_work_7_1 = 4; wil_connect_worker(ldv_work_struct_7_0); ldv_work_7_1 = 1; } else { } goto ldv_50156; case 2: ; if (ldv_work_7_2 == 2 || ldv_work_7_2 == 3) { ldv_work_7_2 = 4; wil_connect_worker(ldv_work_struct_7_0); ldv_work_7_2 = 1; } else { } goto ldv_50156; case 3: ; if (ldv_work_7_3 == 2 || ldv_work_7_3 == 3) { ldv_work_7_3 = 4; wil_connect_worker(ldv_work_struct_7_0); ldv_work_7_3 = 1; } else { } goto ldv_50156; default: ldv_stop(); } ldv_50156: ; return; } } void timer_init_15(void) { { ldv_timer_15_0 = 0; ldv_timer_15_1 = 0; ldv_timer_15_2 = 0; ldv_timer_15_3 = 0; return; } } void call_and_disable_all_8(int state ) { { if (ldv_work_8_0 == state) { call_and_disable_work_8(ldv_work_struct_8_0); } else { } if (ldv_work_8_1 == state) { call_and_disable_work_8(ldv_work_struct_8_1); } else { } if (ldv_work_8_2 == state) { call_and_disable_work_8(ldv_work_struct_8_2); } else { } if (ldv_work_8_3 == state) { call_and_disable_work_8(ldv_work_struct_8_3); } else { } return; } } void call_and_disable_work_9(struct work_struct *work ) { { if ((ldv_work_9_0 == 2 || ldv_work_9_0 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_9_0) { wmi_event_worker(work); ldv_work_9_0 = 1; return; } else { } if ((ldv_work_9_1 == 2 || ldv_work_9_1 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_9_1) { wmi_event_worker(work); ldv_work_9_1 = 1; return; } else { } if ((ldv_work_9_2 == 2 || ldv_work_9_2 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_9_2) { wmi_event_worker(work); ldv_work_9_2 = 1; return; } else { } if ((ldv_work_9_3 == 2 || ldv_work_9_3 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_9_3) { wmi_event_worker(work); ldv_work_9_3 = 1; return; } else { } return; } } void activate_work_12(struct work_struct *work , int state ) { { if (ldv_work_12_0 == 0) { ldv_work_struct_12_0 = work; ldv_work_12_0 = state; return; } else { } if (ldv_work_12_1 == 0) { ldv_work_struct_12_1 = work; ldv_work_12_1 = state; return; } else { } if (ldv_work_12_2 == 0) { ldv_work_struct_12_2 = work; ldv_work_12_2 = state; return; } else { } if (ldv_work_12_3 == 0) { ldv_work_struct_12_3 = work; ldv_work_12_3 = state; return; } else { } return; } } void ldv_timer_15(int state , struct timer_list *timer ) { { LDV_IN_INTERRUPT = 2; wil_scan_timer_fn(timer->data); LDV_IN_INTERRUPT = 1; return; } } void activate_work_8(struct work_struct *work , int state ) { { if (ldv_work_8_0 == 0) { ldv_work_struct_8_0 = work; ldv_work_8_0 = state; return; } else { } if (ldv_work_8_1 == 0) { ldv_work_struct_8_1 = work; ldv_work_8_1 = state; return; } else { } if (ldv_work_8_2 == 0) { ldv_work_struct_8_2 = work; ldv_work_8_2 = state; return; } else { } if (ldv_work_8_3 == 0) { ldv_work_struct_8_3 = work; ldv_work_8_3 = state; return; } else { } return; } } int reg_timer_14(struct timer_list *timer , void (*function)(unsigned long ) , unsigned long data ) { { if ((unsigned long )function == (unsigned long )(& wil_connect_timer_fn)) { activate_suitable_timer_14(timer, data); } else { } return (0); } } void invoke_work_13(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_work_13_0 == 2 || ldv_work_13_0 == 3) { ldv_work_13_0 = 4; wil_probe_client_worker(ldv_work_struct_13_0); ldv_work_13_0 = 1; } else { } goto ldv_50196; case 1: ; if (ldv_work_13_1 == 2 || ldv_work_13_1 == 3) { ldv_work_13_1 = 4; wil_probe_client_worker(ldv_work_struct_13_0); ldv_work_13_1 = 1; } else { } goto ldv_50196; case 2: ; if (ldv_work_13_2 == 2 || ldv_work_13_2 == 3) { ldv_work_13_2 = 4; wil_probe_client_worker(ldv_work_struct_13_0); ldv_work_13_2 = 1; } else { } goto ldv_50196; case 3: ; if (ldv_work_13_3 == 2 || ldv_work_13_3 == 3) { ldv_work_13_3 = 4; wil_probe_client_worker(ldv_work_struct_13_0); ldv_work_13_3 = 1; } else { } goto ldv_50196; default: ldv_stop(); } ldv_50196: ; return; } } void disable_work_9(struct work_struct *work ) { { if ((ldv_work_9_0 == 3 || ldv_work_9_0 == 2) && (unsigned long )ldv_work_struct_9_0 == (unsigned long )work) { ldv_work_9_0 = 1; } else { } if ((ldv_work_9_1 == 3 || ldv_work_9_1 == 2) && (unsigned long )ldv_work_struct_9_1 == (unsigned long )work) { ldv_work_9_1 = 1; } else { } if ((ldv_work_9_2 == 3 || ldv_work_9_2 == 2) && (unsigned long )ldv_work_struct_9_2 == (unsigned long )work) { ldv_work_9_2 = 1; } else { } if ((ldv_work_9_3 == 3 || ldv_work_9_3 == 2) && (unsigned long )ldv_work_struct_9_3 == (unsigned long )work) { ldv_work_9_3 = 1; } else { } return; } } void ldv_initialize_kernel_param_ops_56(void) { void *tmp ; { tmp = ldv_init_zalloc(40UL); ring_order_ops_group0 = (struct kernel_param const *)tmp; return; } } void disable_suitable_timer_14(struct timer_list *timer ) { { if (ldv_timer_14_0 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_14_0) { ldv_timer_14_0 = 0; return; } else { } if (ldv_timer_14_1 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_14_1) { ldv_timer_14_1 = 0; return; } else { } if (ldv_timer_14_2 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_14_2) { ldv_timer_14_2 = 0; return; } else { } if (ldv_timer_14_3 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_14_3) { ldv_timer_14_3 = 0; return; } else { } return; } } void disable_work_10(struct work_struct *work ) { { if ((ldv_work_10_0 == 3 || ldv_work_10_0 == 2) && (unsigned long )ldv_work_struct_10_0 == (unsigned long )work) { ldv_work_10_0 = 1; } else { } if ((ldv_work_10_1 == 3 || ldv_work_10_1 == 2) && (unsigned long )ldv_work_struct_10_1 == (unsigned long )work) { ldv_work_10_1 = 1; } else { } if ((ldv_work_10_2 == 3 || ldv_work_10_2 == 2) && (unsigned long )ldv_work_struct_10_2 == (unsigned long )work) { ldv_work_10_2 = 1; } else { } if ((ldv_work_10_3 == 3 || ldv_work_10_3 == 2) && (unsigned long )ldv_work_struct_10_3 == (unsigned long )work) { ldv_work_10_3 = 1; } else { } return; } } void work_init_12(void) { { ldv_work_12_0 = 0; ldv_work_12_1 = 0; ldv_work_12_2 = 0; ldv_work_12_3 = 0; return; } } void disable_suitable_timer_15(struct timer_list *timer ) { { if (ldv_timer_15_0 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_15_0) { ldv_timer_15_0 = 0; return; } else { } if (ldv_timer_15_1 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_15_1) { ldv_timer_15_1 = 0; return; } else { } if (ldv_timer_15_2 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_15_2) { ldv_timer_15_2 = 0; return; } else { } if (ldv_timer_15_3 != 0 && (unsigned long )timer == (unsigned long )ldv_timer_list_15_3) { ldv_timer_15_3 = 0; return; } else { } return; } } void activate_work_10(struct work_struct *work , int state ) { { if (ldv_work_10_0 == 0) { ldv_work_struct_10_0 = work; ldv_work_10_0 = state; return; } else { } if (ldv_work_10_1 == 0) { ldv_work_struct_10_1 = work; ldv_work_10_1 = state; return; } else { } if (ldv_work_10_2 == 0) { ldv_work_struct_10_2 = work; ldv_work_10_2 = state; return; } else { } if (ldv_work_10_3 == 0) { ldv_work_struct_10_3 = work; ldv_work_10_3 = state; return; } else { } return; } } void activate_suitable_timer_14(struct timer_list *timer , unsigned long data ) { { if (ldv_timer_14_0 == 0 || ldv_timer_14_0 == 2) { ldv_timer_list_14_0 = timer; ldv_timer_list_14_0->data = data; ldv_timer_14_0 = 1; return; } else { } if (ldv_timer_14_1 == 0 || ldv_timer_14_1 == 2) { ldv_timer_list_14_1 = timer; ldv_timer_list_14_1->data = data; ldv_timer_14_1 = 1; return; } else { } if (ldv_timer_14_2 == 0 || ldv_timer_14_2 == 2) { ldv_timer_list_14_2 = timer; ldv_timer_list_14_2->data = data; ldv_timer_14_2 = 1; return; } else { } if (ldv_timer_14_3 == 0 || ldv_timer_14_3 == 2) { ldv_timer_list_14_3 = timer; ldv_timer_list_14_3->data = data; ldv_timer_14_3 = 1; return; } else { } return; } } void call_and_disable_work_11(struct work_struct *work ) { { if ((ldv_work_11_0 == 2 || ldv_work_11_0 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_11_0) { wil_back_rx_worker(work); ldv_work_11_0 = 1; return; } else { } if ((ldv_work_11_1 == 2 || ldv_work_11_1 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_11_1) { wil_back_rx_worker(work); ldv_work_11_1 = 1; return; } else { } if ((ldv_work_11_2 == 2 || ldv_work_11_2 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_11_2) { wil_back_rx_worker(work); ldv_work_11_2 = 1; return; } else { } if ((ldv_work_11_3 == 2 || ldv_work_11_3 == 3) && (unsigned long )work == (unsigned long )ldv_work_struct_11_3) { wil_back_rx_worker(work); ldv_work_11_3 = 1; return; } else { } return; } } void timer_init_14(void) { { ldv_timer_14_0 = 0; ldv_timer_14_1 = 0; ldv_timer_14_2 = 0; ldv_timer_14_3 = 0; return; } } void activate_work_7(struct work_struct *work , int state ) { { if (ldv_work_7_0 == 0) { ldv_work_struct_7_0 = work; ldv_work_7_0 = state; return; } else { } if (ldv_work_7_1 == 0) { ldv_work_struct_7_1 = work; ldv_work_7_1 = state; return; } else { } if (ldv_work_7_2 == 0) { ldv_work_struct_7_2 = work; ldv_work_7_2 = state; return; } else { } if (ldv_work_7_3 == 0) { ldv_work_struct_7_3 = work; ldv_work_7_3 = state; return; } else { } return; } } void call_and_disable_all_10(int state ) { { if (ldv_work_10_0 == state) { call_and_disable_work_10(ldv_work_struct_10_0); } else { } if (ldv_work_10_1 == state) { call_and_disable_work_10(ldv_work_struct_10_1); } else { } if (ldv_work_10_2 == state) { call_and_disable_work_10(ldv_work_struct_10_2); } else { } if (ldv_work_10_3 == state) { call_and_disable_work_10(ldv_work_struct_10_3); } else { } return; } } void choose_timer_14(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_timer_14_0 == 1) { ldv_timer_14_0 = 2; ldv_timer_14(ldv_timer_14_0, ldv_timer_list_14_0); } else { } goto ldv_50246; case 1: ; if (ldv_timer_14_1 == 1) { ldv_timer_14_1 = 2; ldv_timer_14(ldv_timer_14_1, ldv_timer_list_14_1); } else { } goto ldv_50246; case 2: ; if (ldv_timer_14_2 == 1) { ldv_timer_14_2 = 2; ldv_timer_14(ldv_timer_14_2, ldv_timer_list_14_2); } else { } goto ldv_50246; case 3: ; if (ldv_timer_14_3 == 1) { ldv_timer_14_3 = 2; ldv_timer_14(ldv_timer_14_3, ldv_timer_list_14_3); } else { } goto ldv_50246; default: ldv_stop(); } ldv_50246: ; return; } } void call_and_disable_all_13(int state ) { { if (ldv_work_13_0 == state) { call_and_disable_work_13(ldv_work_struct_13_0); } else { } if (ldv_work_13_1 == state) { call_and_disable_work_13(ldv_work_struct_13_1); } else { } if (ldv_work_13_2 == state) { call_and_disable_work_13(ldv_work_struct_13_2); } else { } if (ldv_work_13_3 == state) { call_and_disable_work_13(ldv_work_struct_13_3); } else { } return; } } void ldv_main_exported_57(void) { char *ldvarg44 ; void *tmp ; char *ldvarg45 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg44 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg45 = (char *)tmp___0; tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_57 == 1) { mtu_max_set((char const *)ldvarg45, mtu_max_ops_group0); ldv_state_variable_57 = 1; } else { } goto ldv_50260; case 1: ; if (ldv_state_variable_57 == 1) { param_get_uint(ldvarg44, mtu_max_ops_group0); ldv_state_variable_57 = 1; } else { } goto ldv_50260; default: ldv_stop(); } ldv_50260: ; return; } } void ldv_main_exported_56(void) { char *ldvarg139 ; void *tmp ; char *ldvarg140 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg139 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg140 = (char *)tmp___0; tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_56 == 1) { ring_order_set((char const *)ldvarg140, ring_order_ops_group0); ldv_state_variable_56 = 1; } else { } goto ldv_50269; case 1: ; if (ldv_state_variable_56 == 1) { param_get_uint(ldvarg139, ring_order_ops_group0); ldv_state_variable_56 = 1; } else { } goto ldv_50269; default: ldv_stop(); } ldv_50269: ; return; } } bool ldv_queue_work_on_5(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_6(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_7(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_8(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_9(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_10(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_11(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_12(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_13(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_14(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_15(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_16(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_17(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_mutex_lock_18(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_19(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_20(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_21(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_destroy_workqueue_22(struct workqueue_struct *ldv_func_arg1 ) { { destroy_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } int ldv_del_timer_sync_23(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_14(ldv_func_arg1); return (ldv_func_res); } } int ldv_del_timer_sync_24(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___6 ldv_func_res ; int tmp ; { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_14(ldv_func_arg1); return (ldv_func_res); } } bool ldv_cancel_work_sync_25(struct work_struct *ldv_func_arg1 ) { ldv_func_ret_type___7 ldv_func_res ; bool tmp ; { tmp = cancel_work_sync(ldv_func_arg1); ldv_func_res = tmp; disable_work_7(ldv_func_arg1); return (ldv_func_res); } } bool ldv_cancel_work_sync_26(struct work_struct *ldv_func_arg1 ) { ldv_func_ret_type___8 ldv_func_res ; bool tmp ; { tmp = cancel_work_sync(ldv_func_arg1); ldv_func_res = tmp; disable_work_7(ldv_func_arg1); return (ldv_func_res); } } void ldv_mutex_lock_27(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_28(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } bool ldv_cancel_work_sync_29(struct work_struct *ldv_func_arg1 ) { ldv_func_ret_type___9 ldv_func_res ; bool tmp ; { tmp = cancel_work_sync(ldv_func_arg1); ldv_func_res = tmp; disable_work_7(ldv_func_arg1); return (ldv_func_res); } } bool ldv_cancel_work_sync_30(struct work_struct *ldv_func_arg1 ) { ldv_func_ret_type___10 ldv_func_res ; bool tmp ; { tmp = cancel_work_sync(ldv_func_arg1); ldv_func_res = tmp; disable_work_7(ldv_func_arg1); return (ldv_func_res); } } bool ldv_cancel_work_sync_31(struct work_struct *ldv_func_arg1 ) { ldv_func_ret_type___11 ldv_func_res ; bool tmp ; { tmp = cancel_work_sync(ldv_func_arg1); ldv_func_res = tmp; disable_work_7(ldv_func_arg1); return (ldv_func_res); } } void ldv_destroy_workqueue_32(struct workqueue_struct *ldv_func_arg1 ) { { destroy_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } void ldv_destroy_workqueue_33(struct workqueue_struct *ldv_func_arg1 ) { { destroy_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } __inline static int ldv_mutex_is_locked_34(struct mutex *lock ) { ldv_func_ret_type___12 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_is_locked(lock); ldv_func_res = tmp; tmp___0 = ldv_mutex_is_locked_mutex_of_wil6210_priv(lock); return (tmp___0); return (ldv_func_res); } } bool ldv_cancel_work_sync_35(struct work_struct *ldv_func_arg1 ) { ldv_func_ret_type___13 ldv_func_res ; bool tmp ; { tmp = cancel_work_sync(ldv_func_arg1); ldv_func_res = tmp; disable_work_7(ldv_func_arg1); return (ldv_func_res); } } int ldv_del_timer_sync_36(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___14 ldv_func_res ; int tmp ; { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_14(ldv_func_arg1); return (ldv_func_res); } } void ldv_flush_workqueue_37(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } void ldv_flush_workqueue_38(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } __inline static int ldv_mutex_is_locked_39(struct mutex *lock ) { ldv_func_ret_type___15 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_is_locked(lock); ldv_func_res = tmp; tmp___0 = ldv_mutex_is_locked_mutex_of_wil6210_priv(lock); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_lock_40(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_41(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static int ldv_mutex_is_locked_42(struct mutex *lock ) { ldv_func_ret_type___16 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_is_locked(lock); ldv_func_res = tmp; tmp___0 = ldv_mutex_is_locked_mutex_of_wil6210_priv(lock); return (tmp___0); return (ldv_func_res); } } int ldv_del_timer_sync_43(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___17 ldv_func_res ; int tmp ; { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_14(ldv_func_arg1); return (ldv_func_res); } } void ldv_mutex_unlock_44(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_45(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_46(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_47(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; bool ldv_is_err(void const *ptr ) ; void *ldv_err_ptr(long error ) ; __inline static void *ERR_PTR(long error ) ; __inline static bool IS_ERR(void const *ptr ) ; int ldv_mutex_trylock_103(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_101(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_104(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_105(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_100(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_102(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_106(struct mutex *ldv_func_arg1 ) ; bool ldv_queue_work_on_95(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_97(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_96(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_99(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_98(struct workqueue_struct *ldv_func_arg1 ) ; int ldv_state_variable_55 ; struct net_device *wil_netdev_ops_group1 ; int ref_cnt ; void ldv_net_device_ops_55(void) ; extern void dev_err(struct device const * , char const * , ...) ; int ldv_request_threaded_irq_107(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; __inline static void napi_complete(struct napi_struct *n ) { { return; } } extern void netif_napi_add(struct net_device * , struct napi_struct * , int (*)(struct napi_struct * , int ) , int ) ; extern void free_netdev(struct net_device * ) ; void ldv_free_netdev_108(struct net_device *dev ) ; extern void ether_setup(struct net_device * ) ; extern struct net_device *alloc_netdev_mqs(int , char const * , unsigned char , void (*)(struct net_device * ) , unsigned int , unsigned int ) ; extern int register_netdev(struct net_device * ) ; int ldv_register_netdev_109(struct net_device *dev ) ; extern void unregister_netdev(struct net_device * ) ; void ldv_unregister_netdev_110(struct net_device *dev ) ; extern int eth_mac_addr(struct net_device * , void * ) ; extern int eth_validate_addr(struct net_device * ) ; extern void cfg80211_chandef_create(struct cfg80211_chan_def * , struct ieee80211_channel * , enum nl80211_channel_type ) ; __inline static void *wiphy_priv(struct wiphy *wiphy ) { long tmp ; { tmp = ldv__builtin_expect((unsigned long )wiphy == (unsigned long )((struct wiphy *)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 *)"include/net/cfg80211.h"), "i" (3259), "i" (12UL)); ldv_47233: ; goto ldv_47233; } else { } return ((void *)(& wiphy->priv)); } } __inline static struct device *wiphy_dev(struct wiphy *wiphy ) { { return (wiphy->dev.parent); } } __inline static void *wdev_priv(struct wireless_dev *wdev ) { long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )wdev == (unsigned long )((struct wireless_dev *)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 *)"include/net/cfg80211.h"), "i" (3512), "i" (12UL)); ldv_47318: ; goto ldv_47318; } else { } tmp___0 = wiphy_priv(wdev->wiphy); return (tmp___0); } } void *wil_if_alloc(struct device *dev ) ; void wil_if_free(struct wil6210_priv *wil ) ; int wil_if_add(struct wil6210_priv *wil ) ; void wil_if_remove(struct wil6210_priv *wil ) ; void wil_set_ethtoolops(struct net_device *ndev ) ; struct wireless_dev *wil_cfg80211_init(struct device *dev ) ; void wil_wdev_free(struct wil6210_priv *wil ) ; netdev_tx_t wil_start_xmit(struct sk_buff *skb , struct net_device *ndev ) ; int wil_tx_complete(struct wil6210_priv *wil , int ringid ) ; void wil6210_unmask_irq_tx(struct wil6210_priv *wil ) ; void wil_rx_handle(struct wil6210_priv *wil , int *quota ) ; void wil6210_unmask_irq_rx(struct wil6210_priv *wil ) ; int wil_ioctl(struct wil6210_priv *wil , void *data , int cmd ) ; static int wil_open(struct net_device *ndev ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; int tmp___1 ; { tmp = wdev_priv(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; descriptor.modname = "wil6210"; descriptor.function = "wil_open"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 25U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_open"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_open"); if ((int )debug_fw) { wil_err(wil, "%s() while in debug_fw mode\n", "wil_open"); return (-22); } else { } tmp___1 = wil_up(wil); return (tmp___1); } } static int wil_stop(struct net_device *ndev ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; int tmp___1 ; { tmp = wdev_priv(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; descriptor.modname = "wil6210"; descriptor.function = "wil_stop"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 39U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_stop"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_stop"); tmp___1 = wil_down(wil); return (tmp___1); } } static int wil_change_mtu(struct net_device *ndev , int new_mtu ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wdev_priv(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; if (new_mtu <= 67 || (unsigned int )new_mtu > mtu_max) { wil_err(wil, "invalid MTU %d\n", new_mtu); return (-22); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_change_mtu"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]change MTU %d -> %d\n"; descriptor.lineno = 53U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]change MTU %d -> %d\n", ndev->mtu, new_mtu); } else { } wil_dbg_trace(wil, "DBG[MISC]change MTU %d -> %d\n", ndev->mtu, new_mtu); ndev->mtu = (unsigned int )new_mtu; return (0); } } static int wil_do_ioctl(struct net_device *ndev , struct ifreq *ifr , int cmd ) { struct wil6210_priv *wil ; void *tmp ; int ret ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; { tmp = wdev_priv(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; tmp___0 = wil_ioctl(wil, ifr->ifr_ifru.ifru_data, cmd); ret = tmp___0; descriptor.modname = "wil6210"; descriptor.function = "wil_do_ioctl"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]ioctl(0x%04x) -> %d\n"; descriptor.lineno = 65U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]ioctl(0x%04x) -> %d\n", cmd, ret); } else { } wil_dbg_trace(wil, "DBG[MISC]ioctl(0x%04x) -> %d\n", cmd, ret); return (ret); } } static struct net_device_ops const wil_netdev_ops = {0, 0, & wil_open, & wil_stop, & wil_start_xmit, 0, 0, 0, & eth_mac_addr, & eth_validate_addr, & wil_do_ioctl, 0, & wil_change_mtu, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int wil6210_netdev_poll_rx(struct napi_struct *napi , int budget ) { struct wil6210_priv *wil ; struct napi_struct const *__mptr ; int quota ; int done ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; { __mptr = (struct napi_struct const *)napi; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffffae8UL; quota = budget; wil_rx_handle(wil, & quota); done = budget - quota; if (done < budget) { napi_complete(napi); wil6210_unmask_irq_rx(wil); descriptor.modname = "wil6210"; descriptor.function = "wil6210_netdev_poll_rx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[TXRX]NAPI RX complete\n"; descriptor.lineno = 93U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]NAPI RX complete\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]NAPI RX complete\n"); } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wil6210_netdev_poll_rx"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor___0.format = "DBG[TXRX]NAPI RX poll(%d) done %d\n"; descriptor___0.lineno = 96U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]NAPI RX poll(%d) done %d\n", budget, done); } else { } wil_dbg_trace(wil, "DBG[TXRX]NAPI RX poll(%d) done %d\n", budget, done); return (done); } } static int wil6210_netdev_poll_tx(struct napi_struct *napi , int budget ) { struct wil6210_priv *wil ; struct napi_struct const *__mptr ; int tx_done ; uint i ; struct vring *vring ; int tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; int _min1 ; int _min2 ; { __mptr = (struct napi_struct const *)napi; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffff9d0UL; tx_done = 0; i = 0U; goto ldv_48532; ldv_48531: vring = (struct vring *)(& wil->vring_tx) + (unsigned long )i; if ((unsigned long )vring->va == (unsigned long )((union vring_desc volatile *)0)) { goto ldv_48530; } else { } tmp = wil_tx_complete(wil, (int )i); tx_done = tmp + tx_done; ldv_48530: i = i + 1U; ldv_48532: ; if (i <= 23U) { goto ldv_48531; } else { } if (tx_done < budget) { napi_complete(napi); wil6210_unmask_irq_tx(wil); descriptor.modname = "wil6210"; descriptor.function = "wil6210_netdev_poll_tx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[TXRX]NAPI TX complete\n"; descriptor.lineno = 121U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]NAPI TX complete\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]NAPI TX complete\n"); } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wil6210_netdev_poll_tx"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor___0.format = "DBG[TXRX]NAPI TX poll(%d) done %d\n"; descriptor___0.lineno = 124U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]NAPI TX poll(%d) done %d\n", budget, tx_done); } else { } wil_dbg_trace(wil, "DBG[TXRX]NAPI TX poll(%d) done %d\n", budget, tx_done); _min1 = tx_done; _min2 = budget; return (_min1 < _min2 ? _min1 : _min2); } } static void wil_dev_setup(struct net_device *dev ) { { ether_setup(dev); dev->tx_queue_len = 4000UL; return; } } void *wil_if_alloc(struct device *dev ) { struct net_device *ndev ; struct wireless_dev *wdev ; struct wil6210_priv *wil ; struct ieee80211_channel *ch ; int rc ; bool tmp ; void *tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; void *tmp___2 ; { rc = 0; wdev = wil_cfg80211_init(dev); tmp = IS_ERR((void const *)wdev); if ((int )tmp) { dev_err((struct device const *)dev, "wil_cfg80211_init failed\n"); return ((void *)wdev); } else { } tmp___0 = wdev_priv(wdev); wil = (struct wil6210_priv *)tmp___0; wil->wdev = wdev; descriptor.modname = "wil6210"; descriptor.function = "wil_if_alloc"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 152U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_if_alloc"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_if_alloc"); rc = wil_priv_init(wil); if (rc != 0) { dev_err((struct device const *)dev, "wil_priv_init failed\n"); goto out_wdev; } else { } wdev->iftype = 2; ch = ((wdev->wiphy)->bands[2])->channels; cfg80211_chandef_create(& wdev->preset_chandef, ch, 0); ndev = alloc_netdev_mqs(0, "wlan%d", 0, & wil_dev_setup, 1U, 1U); if ((unsigned long )ndev == (unsigned long )((struct net_device *)0)) { dev_err((struct device const *)dev, "alloc_netdev_mqs failed\n"); rc = -12; goto out_priv; } else { } ndev->netdev_ops = & wil_netdev_ops; wil_set_ethtoolops(ndev); ndev->ieee80211_ptr = wdev; ndev->hw_features = 17179885577ULL; ndev->features = ndev->features | ndev->hw_features; ndev->dev.parent = wiphy_dev(wdev->wiphy); wdev->netdev = ndev; netif_napi_add(ndev, & wil->napi_rx, & wil6210_netdev_poll_rx, 16); netif_napi_add(ndev, & wil->napi_tx, & wil6210_netdev_poll_tx, 16); netif_tx_stop_all_queues(ndev); return ((void *)wil); out_priv: wil_priv_deinit(wil); out_wdev: wil_wdev_free(wil); tmp___2 = ERR_PTR((long )rc); return (tmp___2); } } void wil_if_free(struct wil6210_priv *wil ) { struct net_device *ndev ; struct _ddebug descriptor ; long tmp ; { ndev = (wil->wdev)->netdev; descriptor.modname = "wil6210"; descriptor.function = "wil_if_free"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 203U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_if_free"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_if_free"); if ((unsigned long )ndev == (unsigned long )((struct net_device *)0)) { return; } else { } wil_priv_deinit(wil); (wil->wdev)->netdev = (struct net_device *)0; ldv_free_netdev_108(ndev); wil_wdev_free(wil); return; } } int wil_if_add(struct wil6210_priv *wil ) { struct net_device *ndev ; int rc ; struct _ddebug descriptor ; long tmp ; { ndev = (wil->wdev)->netdev; descriptor.modname = "wil6210"; descriptor.function = "wil_if_add"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 221U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_if_add"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_if_add"); rc = ldv_register_netdev_109(ndev); if (rc < 0) { dev_err((struct device const *)(& ndev->dev), "Failed to register netdev: %d\n", rc); return (rc); } else { } return (0); } } void wil_if_remove(struct wil6210_priv *wil ) { struct net_device *ndev ; struct _ddebug descriptor ; long tmp ; { ndev = (wil->wdev)->netdev; descriptor.modname = "wil6210"; descriptor.function = "wil_if_remove"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/netdev.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 236U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_if_remove"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_if_remove"); ldv_unregister_netdev_110(ndev); return; } } extern int ldv_ndo_uninit_55(void) ; int ldv_retval_4 ; int ldv_retval_3 ; extern int ldv_ndo_init_55(void) ; void ldv_net_device_ops_55(void) { void *tmp ; { tmp = ldv_init_zalloc(3008UL); wil_netdev_ops_group1 = (struct net_device *)tmp; return; } } void ldv_main_exported_55(void) { void *ldvarg30 ; void *tmp ; int ldvarg33 ; struct ifreq *ldvarg34 ; void *tmp___0 ; struct sk_buff *ldvarg31 ; void *tmp___1 ; int ldvarg32 ; int tmp___2 ; { tmp = ldv_init_zalloc(1UL); ldvarg30 = tmp; tmp___0 = ldv_init_zalloc(40UL); ldvarg34 = (struct ifreq *)tmp___0; tmp___1 = ldv_init_zalloc(232UL); ldvarg31 = (struct sk_buff *)tmp___1; ldv_memset((void *)(& ldvarg33), 0, 4UL); ldv_memset((void *)(& ldvarg32), 0, 4UL); tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_55 == 1) { eth_validate_addr(wil_netdev_ops_group1); ldv_state_variable_55 = 1; } else { } if (ldv_state_variable_55 == 3) { eth_validate_addr(wil_netdev_ops_group1); ldv_state_variable_55 = 3; } else { } if (ldv_state_variable_55 == 2) { eth_validate_addr(wil_netdev_ops_group1); ldv_state_variable_55 = 2; } else { } goto ldv_48592; case 1: ; if (ldv_state_variable_55 == 3) { wil_stop(wil_netdev_ops_group1); ldv_state_variable_55 = 2; } else { } goto ldv_48592; case 2: ; if (ldv_state_variable_55 == 1) { wil_do_ioctl(wil_netdev_ops_group1, ldvarg34, ldvarg33); ldv_state_variable_55 = 1; } else { } if (ldv_state_variable_55 == 3) { wil_do_ioctl(wil_netdev_ops_group1, ldvarg34, ldvarg33); ldv_state_variable_55 = 3; } else { } if (ldv_state_variable_55 == 2) { wil_do_ioctl(wil_netdev_ops_group1, ldvarg34, ldvarg33); ldv_state_variable_55 = 2; } else { } goto ldv_48592; case 3: ; if (ldv_state_variable_55 == 3) { wil_change_mtu(wil_netdev_ops_group1, ldvarg32); ldv_state_variable_55 = 3; } else { } if (ldv_state_variable_55 == 2) { wil_change_mtu(wil_netdev_ops_group1, ldvarg32); ldv_state_variable_55 = 2; } else { } goto ldv_48592; case 4: ; if (ldv_state_variable_55 == 2) { ldv_retval_4 = wil_open(wil_netdev_ops_group1); if (ldv_retval_4 == 0) { ldv_state_variable_55 = 3; } else { } } else { } goto ldv_48592; case 5: ; if (ldv_state_variable_55 == 3) { wil_start_xmit(ldvarg31, wil_netdev_ops_group1); ldv_state_variable_55 = 3; } else { } goto ldv_48592; case 6: ; if (ldv_state_variable_55 == 1) { eth_mac_addr(wil_netdev_ops_group1, ldvarg30); ldv_state_variable_55 = 1; } else { } if (ldv_state_variable_55 == 3) { eth_mac_addr(wil_netdev_ops_group1, ldvarg30); ldv_state_variable_55 = 3; } else { } if (ldv_state_variable_55 == 2) { eth_mac_addr(wil_netdev_ops_group1, ldvarg30); ldv_state_variable_55 = 2; } else { } goto ldv_48592; case 7: ; if (ldv_state_variable_55 == 1) { ldv_retval_3 = ldv_ndo_init_55(); if (ldv_retval_3 == 0) { ldv_state_variable_55 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_48592; case 8: ; if (ldv_state_variable_55 == 2) { ldv_ndo_uninit_55(); ldv_state_variable_55 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_48592; default: ldv_stop(); } ldv_48592: ; return; } } __inline static void *ERR_PTR(long error ) { void *tmp ; { tmp = ldv_err_ptr(error); return (tmp); } } __inline static bool IS_ERR(void const *ptr ) { bool tmp ; { tmp = ldv_is_err(ptr); return (tmp); } } bool ldv_queue_work_on_95(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_96(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_97(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_98(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_99(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_100(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_101(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_102(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_103(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_104(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_105(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_106(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_107(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_free_netdev_108(struct net_device *dev ) { { free_netdev(dev); ldv_state_variable_55 = 0; return; } } int ldv_register_netdev_109(struct net_device *dev ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; { tmp = register_netdev(dev); ldv_func_res = tmp; ldv_state_variable_55 = 1; ldv_net_device_ops_55(); return (ldv_func_res); } } void ldv_unregister_netdev_110(struct net_device *dev ) { { unregister_netdev(dev); ldv_state_variable_55 = 0; return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static __u16 __fswab16(__u16 val ) { { return ((__u16 )((int )((short )((int )val << 8)) | (int )((short )((int )val >> 8)))); } } extern void __dynamic_dev_dbg(struct _ddebug * , struct device const * , char const * , ...) ; extern void print_hex_dump(char const * , char const * , int , int , int , void const * , size_t , bool ) ; 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(struct list_head * ) ; __inline static int list_empty(struct list_head const *head ) { { return ((unsigned long )((struct list_head const *)head->next) == (unsigned long )head); } } extern void *memcpy(void * , void const * , size_t ) ; __inline static void *ERR_PTR(long error ) ; int ldv_mutex_trylock_139(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_137(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_140(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_141(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_148(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_150(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_152(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_154(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_156(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_158(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_136(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_138(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_142(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_147(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_149(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_151(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_153(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_155(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_157(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) ; void ldv_mutex_unlock_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) ; extern int mod_timer(struct timer_list * , unsigned long ) ; int ldv_mod_timer_144(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; int ldv_mod_timer_146(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; int ldv_del_timer_sync_145(struct timer_list *ldv_func_arg1 ) ; bool ldv_queue_work_on_131(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_133(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_132(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_135(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_134(struct workqueue_struct *ldv_func_arg1 ) ; __inline static bool queue_work___0(struct workqueue_struct *wq , struct work_struct *work ) { bool tmp ; { tmp = ldv_queue_work_on_131(8192, wq, work); return (tmp); } } 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); } } int ldv_state_variable_54 ; struct wireless_dev *wil_cfg80211_ops_group0 ; struct net_device *wil_cfg80211_ops_group3 ; struct wiphy *wil_cfg80211_ops_group2 ; struct station_info *wil_cfg80211_ops_group1 ; void ldv_initialize_cfg80211_ops_54(void) ; int ldv_request_threaded_irq_143(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; extern void netif_carrier_on(struct net_device * ) ; extern u8 const *ieee80211_bss_get_ie(struct cfg80211_bss * , u8 ) ; __inline static void *wiphy_priv___0(struct wiphy *wiphy ) { long tmp ; { tmp = ldv__builtin_expect((unsigned long )wiphy == (unsigned long )((struct wiphy *)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 *)"include/net/cfg80211.h"), "i" (3259), "i" (12UL)); ldv_47285: ; goto ldv_47285; } else { } return ((void *)(& wiphy->priv)); } } __inline static void set_wiphy_dev(struct wiphy *wiphy , struct device *dev ) { { wiphy->dev.parent = dev; return; } } extern struct wiphy *wiphy_new_nm(struct cfg80211_ops const * , int , char const * ) ; __inline static struct wiphy *wiphy_new(struct cfg80211_ops const *ops , int sizeof_priv ) { struct wiphy *tmp ; { tmp = wiphy_new_nm(ops, sizeof_priv, (char const *)0); return (tmp); } } extern int wiphy_register(struct wiphy * ) ; extern void wiphy_unregister(struct wiphy * ) ; extern void wiphy_free(struct wiphy * ) ; extern u8 const *cfg80211_find_ie(u8 , u8 const * , int ) ; extern struct cfg80211_bss *cfg80211_get_bss(struct wiphy * , struct ieee80211_channel * , u8 const * , u8 const * , size_t , enum ieee80211_bss_type , enum ieee80211_privacy ) ; extern void cfg80211_put_bss(struct wiphy * , struct cfg80211_bss * ) ; extern void cfg80211_mgmt_tx_status(struct wireless_dev * , u64 , u8 const * , size_t , bool , gfp_t ) ; extern void cfg80211_probe_status(struct net_device * , u8 const * , u64 , bool , gfp_t ) ; int wmi_call(struct wil6210_priv *wil , u16 cmdid , void *buf , u16 len , u16 reply_id , void *reply , u8 reply_size , int to_msec ) ; int wmi_set_ssid(struct wil6210_priv *wil , u8 ssid_len , void const *ssid ) ; int wmi_set_channel(struct wil6210_priv *wil , int channel ) ; int wmi_del_cipher_key(struct wil6210_priv *wil , u8 key_index , void const *mac_addr , int key_usage ) ; int wmi_add_cipher_key(struct wil6210_priv *wil , u8 key_index , void const *mac_addr , int key_len , void const *key , int key_usage ) ; int wmi_set_ie(struct wil6210_priv *wil , u8 type , u16 ie_len , void const *ie ) ; int wmi_rxon(struct wil6210_priv *wil , bool on ) ; int wil_cfg80211_mgmt_tx(struct wiphy *wiphy , struct wireless_dev *wdev , struct cfg80211_mgmt_tx_params *params , u64 *cookie ) ; int wil_cid_fill_sinfo(struct wil6210_priv *wil , int cid , struct station_info *sinfo ) ; int wmi_pcp_start(struct wil6210_priv *wil , int bi , u8 wmi_nettype , u8 chan , u8 hidden_ssid ) ; int wmi_pcp_stop(struct wil6210_priv *wil ) ; int wil_iftype_nl2wmi(enum nl80211_iftype type ) ; static struct ieee80211_channel wil_60ghz_channels[3U] = { {2, 58320U, 1U, 0U, 0, 40, 0, (_Bool)0, 0U, 0, 0, 0, 0UL, 0U}, {2, 60480U, 2U, 0U, 0, 40, 0, (_Bool)0, 0U, 0, 0, 0, 0UL, 0U}, {2, 62640U, 3U, 0U, 0, 40, 0, (_Bool)0, 0U, 0, 0, 0, 0UL, 0U}}; static struct ieee80211_supported_band wil_band_60ghz = {(struct ieee80211_channel *)(& wil_60ghz_channels), 0, 0, 3, 0, {0U, 1, 3U, 6U, {{254U, 31U}, (unsigned short)0, 1U, {(unsigned char)0, (unsigned char)0, (unsigned char)0}}}, {(_Bool)0, 0U, {(unsigned short)0, (unsigned short)0, (unsigned short)0, (unsigned short)0}}}; static struct ieee80211_txrx_stypes const wil_mgmt_stypes[12U] = { {(unsigned short)0, (unsigned short)0}, {(unsigned short)0, (unsigned short)0}, {8224U, 8208U}, {8224U, 8208U}, {(unsigned short)0, (unsigned short)0}, {(unsigned short)0, (unsigned short)0}, {(unsigned short)0, (unsigned short)0}, {(unsigned short)0, (unsigned short)0}, {8224U, 8208U}, {8224U, 8208U}}; static u32 const wil_cipher_suites[1U] = { 1027080U}; int wil_iftype_nl2wmi(enum nl80211_iftype type ) { struct __anonstruct___nl2wmi_360 __nl2wmi[6U] ; uint i ; { __nl2wmi[0].nl = 1; __nl2wmi[0].wmi = 2; __nl2wmi[1].nl = 2; __nl2wmi[1].wmi = 1; __nl2wmi[2].nl = 3; __nl2wmi[2].wmi = 16; __nl2wmi[3].nl = 8; __nl2wmi[3].wmi = 32; __nl2wmi[4].nl = 9; __nl2wmi[4].wmi = 32; __nl2wmi[5].nl = 6; __nl2wmi[5].wmi = 2; i = 0U; goto ldv_49207; ldv_49206: ; if ((unsigned int )__nl2wmi[i].nl == (unsigned int )type) { return ((int )__nl2wmi[i].wmi); } else { } i = i + 1U; ldv_49207: ; if (i <= 5U) { goto ldv_49206; } else { } return (-95); } } int wil_cid_fill_sinfo(struct wil6210_priv *wil , int cid , struct station_info *sinfo ) { struct wmi_notify_req_cmd cmd ; struct __anonstruct_reply_363 reply ; struct wil_net_stats *stats ; int rc ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { cmd.cid = (unsigned char )cid; cmd.year = (unsigned char)0; cmd.month = (unsigned char)0; cmd.day = (unsigned char)0; cmd.interval_usec = 0U; cmd.hour = (unsigned char)0; cmd.minute = (unsigned char)0; cmd.second = (unsigned char)0; cmd.miliseconds = (unsigned char)0; stats = & wil->sta[cid].stats; rc = wmi_call(wil, 2147, (void *)(& cmd), 12, 6243, (void *)(& reply), 52, 20); if (rc != 0) { return (rc); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_cid_fill_sinfo"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[ WMI]Link status for CID %d: {\n MCS %d TSF 0x%016llx\n BF status 0x%08x SNR 0x%08x SQI %d%%\n Tx Tpt %d goodput %d Rx goodput %d\n Sectors(rx:tx) my %d:%d peer %d:%d\n}\n"; descriptor.lineno = 142U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Link status for CID %d: {\n MCS %d TSF 0x%016llx\n BF status 0x%08x SNR 0x%08x SQI %d%%\n Tx Tpt %d goodput %d Rx goodput %d\n Sectors(rx:tx) my %d:%d peer %d:%d\n}\n", cid, (int )reply.evt.bf_mcs, reply.evt.tsf, reply.evt.status, reply.evt.snr_val, (int )reply.evt.sqi, reply.evt.tx_tpt, reply.evt.tx_goodput, reply.evt.rx_goodput, (int )reply.evt.my_rx_sector, (int )reply.evt.my_tx_sector, (int )reply.evt.other_rx_sector, (int )reply.evt.other_tx_sector); } else { } wil_dbg_trace(wil, "DBG[ WMI]Link status for CID %d: {\n MCS %d TSF 0x%016llx\n BF status 0x%08x SNR 0x%08x SQI %d%%\n Tx Tpt %d goodput %d Rx goodput %d\n Sectors(rx:tx) my %d:%d peer %d:%d\n}\n", cid, (int )reply.evt.bf_mcs, reply.evt.tsf, reply.evt.status, reply.evt.snr_val, (int )reply.evt.sqi, reply.evt.tx_tpt, reply.evt.tx_goodput, reply.evt.rx_goodput, (int )reply.evt.my_rx_sector, (int )reply.evt.my_tx_sector, (int )reply.evt.other_rx_sector, (int )reply.evt.other_tx_sector); sinfo->generation = wil->sinfo_gen; sinfo->filled = 268457740U; sinfo->txrate.flags = 9U; sinfo->txrate.mcs = (u8 )reply.evt.bf_mcs; sinfo->rxrate.flags = 9U; sinfo->rxrate.mcs = (u8 )stats->last_mcs_rx; sinfo->rx_bytes = (u64 )stats->rx_bytes; sinfo->rx_packets = (u32 )stats->rx_packets; sinfo->rx_dropped_misc = (u32 )stats->rx_dropped; sinfo->tx_bytes = (u64 )stats->tx_bytes; sinfo->tx_packets = (u32 )stats->tx_packets; sinfo->tx_failed = (u32 )stats->tx_errors; tmp___0 = constant_test_bit(2L, (unsigned long const volatile *)(& wil->status)); if (tmp___0 != 0) { sinfo->filled = sinfo->filled | 128U; sinfo->signal = (s8 )reply.evt.sqi; } else { } return (rc); } } static int wil_cfg80211_get_station(struct wiphy *wiphy , struct net_device *ndev , u8 const *mac , struct station_info *sinfo ) { struct wil6210_priv *wil ; void *tmp ; int rc ; int cid ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; tmp___0 = wil_find_cid(wil, mac); cid = tmp___0; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_get_station"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(%pM) CID %d\n"; descriptor.lineno = 183U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(%pM) CID %d\n", "wil_cfg80211_get_station", mac, cid); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(%pM) CID %d\n", "wil_cfg80211_get_station", mac, cid); if (cid < 0) { return (cid); } else { } rc = wil_cid_fill_sinfo(wil, cid, sinfo); return (rc); } } static int wil_find_cid_by_idx(struct wil6210_priv *wil , int idx ) { int i ; { i = 0; goto ldv_49243; ldv_49242: ; if ((unsigned int )wil->sta[i].status == 0U) { goto ldv_49241; } else { } if (idx == 0) { return (i); } else { } idx = idx - 1; ldv_49241: i = i + 1; ldv_49243: ; if ((unsigned int )i <= 7U) { goto ldv_49242; } else { } return (-2); } } static int wil_cfg80211_dump_station(struct wiphy *wiphy , struct net_device *dev , int idx , u8 *mac , struct station_info *sinfo ) { struct wil6210_priv *wil ; void *tmp ; int rc ; int cid ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; tmp___0 = wil_find_cid_by_idx(wil, idx); cid = tmp___0; if (cid < 0) { return (-2); } else { } ether_addr_copy(mac, (u8 const *)(& wil->sta[cid].addr)); descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_dump_station"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(%pM) CID %d\n"; descriptor.lineno = 222U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(%pM) CID %d\n", "wil_cfg80211_dump_station", mac, cid); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(%pM) CID %d\n", "wil_cfg80211_dump_station", mac, cid); rc = wil_cid_fill_sinfo(wil, cid, sinfo); return (rc); } } static int wil_cfg80211_change_iface(struct wiphy *wiphy , struct net_device *ndev , enum nl80211_iftype type , u32 *flags , struct vif_params *params ) { struct wil6210_priv *wil ; void *tmp ; struct wireless_dev *wdev ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; wdev = wil->wdev; switch ((unsigned int )type) { case 2U: ; case 3U: ; case 8U: ; case 9U: ; goto ldv_49270; case 6U: ; if ((unsigned long )flags != (unsigned long )((u32 *)0U)) { wil->monitor_flags = *flags; } else { wil->monitor_flags = 0U; } goto ldv_49270; default: ; return (-95); } ldv_49270: wdev->iftype = type; return (0); } } static int wil_cfg80211_scan(struct wiphy *wiphy , struct cfg80211_scan_request *request ) { struct wil6210_priv *wil ; void *tmp ; struct wireless_dev *wdev ; struct __anonstruct_cmd_366 cmd ; uint i ; uint n ; int rc ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; struct _ddebug descriptor___2 ; long tmp___4 ; unsigned long tmp___5 ; u32 _min1 ; unsigned int _min2 ; int ch ; u8 tmp___6 ; struct _ddebug descriptor___3 ; long tmp___7 ; struct _ddebug descriptor___4 ; long tmp___8 ; struct _ddebug descriptor___5 ; long tmp___9 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; wdev = wil->wdev; if ((unsigned long )wil->scan_request != (unsigned long )((struct cfg80211_scan_request *)0)) { wil_err(wil, "Already scanning\n"); return (-11); } else { } switch ((unsigned int )wdev->iftype) { case 2U: ; case 8U: ; goto ldv_49288; default: ; return (-95); } ldv_49288: tmp___0 = constant_test_bit(3L, (unsigned long const volatile *)(& wil->status)); if (tmp___0 != 0) { wil_err(wil, "Can\'t scan now\n"); return (-16); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_scan"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]Start scan_request 0x%p\n"; descriptor.lineno = 291U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Start scan_request 0x%p\n", request); } else { } wil_dbg_trace(wil, "DBG[MISC]Start scan_request 0x%p\n", request); descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_cfg80211_scan"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___0.format = "DBG[MISC]SSID count: %d"; descriptor___0.lineno = 292U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]SSID count: %d", request->n_ssids); } else { } wil_dbg_trace(wil, "DBG[MISC]SSID count: %d", request->n_ssids); i = 0U; goto ldv_49296; ldv_49295: descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_cfg80211_scan"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___1.format = "DBG[MISC]SSID[%d]"; descriptor___1.lineno = 295U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]SSID[%d]", i); } else { } wil_dbg_trace(wil, "DBG[MISC]SSID[%d]", i); descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_cfg80211_scan"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___2.format = "SSID "; descriptor___2.lineno = 298U; descriptor___2.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___4 != 0L) { print_hex_dump("\017", "SSID ", 2, 16, 1, (void const *)(& (request->ssids + (unsigned long )i)->ssid), (size_t )(request->ssids + (unsigned long )i)->ssid_len, 1); } else { } i = i + 1U; ldv_49296: ; if ((uint )request->n_ssids > i) { goto ldv_49295; } else { } if (request->n_ssids != 0) { rc = wmi_set_ssid(wil, (int )(request->ssids)->ssid_len, (void const *)(& (request->ssids)->ssid)); } else { rc = wmi_set_ssid(wil, 0, (void const *)0); } if (rc != 0) { wil_err(wil, "set SSID for scan request failed: %d\n", rc); return (rc); } else { } wil->scan_request = request; tmp___5 = msecs_to_jiffies(10000U); ldv_mod_timer_144(& wil->scan_timer, tmp___5 + (unsigned long )jiffies); memset((void *)(& cmd), 0, 26UL); cmd.cmd.num_channels = 0U; _min1 = request->n_channels; _min2 = 4U; n = _min1 < _min2 ? _min1 : _min2; i = 0U; goto ldv_49305; ldv_49304: ch = (int )(request->channels[i])->hw_value; if (ch == 0) { wil_err(wil, "Scan requested for unknown frequency %dMhz\n", (int )(request->channels[i])->center_freq); goto ldv_49302; } else { } tmp___6 = cmd.cmd.num_channels; cmd.cmd.num_channels = (u8 )((int )cmd.cmd.num_channels + 1); cmd.cmd.channel_list[(int )tmp___6].channel = (unsigned int )((u8 )ch) + 255U; descriptor___3.modname = "wil6210"; descriptor___3.function = "wil_cfg80211_scan"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___3.format = "DBG[MISC]Scan for ch %d : %d MHz\n"; descriptor___3.lineno = 330U; descriptor___3.flags = 0U; tmp___7 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___7 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Scan for ch %d : %d MHz\n", ch, (int )(request->channels[i])->center_freq); } else { } wil_dbg_trace(wil, "DBG[MISC]Scan for ch %d : %d MHz\n", ch, (int )(request->channels[i])->center_freq); ldv_49302: i = i + 1U; ldv_49305: ; if (i < n) { goto ldv_49304; } else { } if (request->ie_len != 0UL) { descriptor___4.modname = "wil6210"; descriptor___4.function = "wil_cfg80211_scan"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___4.format = "Scan IE "; descriptor___4.lineno = 335U; descriptor___4.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___8 != 0L) { print_hex_dump("\017", "Scan IE ", 2, 16, 1, (void const *)request->ie, request->ie_len, 1); } else { } } else { descriptor___5.modname = "wil6210"; descriptor___5.function = "wil_cfg80211_scan"; descriptor___5.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___5.format = "DBG[MISC]Scan has no IE\'s\n"; descriptor___5.lineno = 337U; descriptor___5.flags = 0U; tmp___9 = ldv__builtin_expect((long )descriptor___5.flags & 1L, 0L); if (tmp___9 != 0L) { __dynamic_netdev_dbg(& descriptor___5, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Scan has no IE\'s\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]Scan has no IE\'s\n"); } rc = wmi_set_ie(wil, 1, (int )((u16 )request->ie_len), (void const *)request->ie); if (rc != 0) { wil_err(wil, "Aborting scan, set_ie failed: %d\n", rc); goto out; } else { } rc = wmi_send(wil, 7, (void *)(& cmd), (int )((unsigned int )((u16 )((unsigned long )cmd.cmd.num_channels + 9UL)) * 2U)); out: ; if (rc != 0) { ldv_del_timer_sync_145(& wil->scan_timer); wil->scan_request = (struct cfg80211_scan_request *)0; } else { } return (rc); } } static void wil_print_crypto(struct wil6210_priv *wil , struct cfg80211_crypto_settings *c ) { int i ; int n ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; int __min1 ; int __min2 ; struct _ddebug descriptor___1 ; long tmp___1 ; struct _ddebug descriptor___2 ; long tmp___2 ; struct _ddebug descriptor___3 ; long tmp___3 ; int __min1___0 ; int __min2___0 ; struct _ddebug descriptor___4 ; long tmp___4 ; struct _ddebug descriptor___5 ; long tmp___5 ; struct _ddebug descriptor___6 ; __u16 tmp___6 ; long tmp___7 ; __u16 tmp___8 ; { descriptor.modname = "wil6210"; descriptor.function = "wil_print_crypto"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]WPA versions: 0x%08x cipher group 0x%08x\n"; descriptor.lineno = 364U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]WPA versions: 0x%08x cipher group 0x%08x\n", c->wpa_versions, c->cipher_group); } else { } wil_dbg_trace(wil, "DBG[MISC]WPA versions: 0x%08x cipher group 0x%08x\n", c->wpa_versions, c->cipher_group); descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_print_crypto"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___0.format = "DBG[MISC]Pairwise ciphers [%d] {\n"; descriptor___0.lineno = 365U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Pairwise ciphers [%d] {\n", c->n_ciphers_pairwise); } else { } wil_dbg_trace(wil, "DBG[MISC]Pairwise ciphers [%d] {\n", c->n_ciphers_pairwise); __min1 = c->n_ciphers_pairwise; __min2 = 5; n = __min1 < __min2 ? __min1 : __min2; i = 0; goto ldv_49326; ldv_49325: descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_print_crypto"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___1.format = "DBG[MISC] [%d] = 0x%08x\n"; descriptor___1.lineno = 369U; descriptor___1.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC] [%d] = 0x%08x\n", i, c->ciphers_pairwise[i]); } else { } wil_dbg_trace(wil, "DBG[MISC] [%d] = 0x%08x\n", i, c->ciphers_pairwise[i]); i = i + 1; ldv_49326: ; if (i < n) { goto ldv_49325; } else { } descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_print_crypto"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___2.format = "DBG[MISC]}\n"; descriptor___2.lineno = 370U; descriptor___2.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]}\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]}\n"); descriptor___3.modname = "wil6210"; descriptor___3.function = "wil_print_crypto"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___3.format = "DBG[MISC]AKM suites [%d] {\n"; descriptor___3.lineno = 371U; descriptor___3.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]AKM suites [%d] {\n", c->n_akm_suites); } else { } wil_dbg_trace(wil, "DBG[MISC]AKM suites [%d] {\n", c->n_akm_suites); __min1___0 = c->n_akm_suites; __min2___0 = 2; n = __min1___0 < __min2___0 ? __min1___0 : __min2___0; i = 0; goto ldv_49337; ldv_49336: descriptor___4.modname = "wil6210"; descriptor___4.function = "wil_print_crypto"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___4.format = "DBG[MISC] [%d] = 0x%08x\n"; descriptor___4.lineno = 375U; descriptor___4.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___4, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC] [%d] = 0x%08x\n", i, c->akm_suites[i]); } else { } wil_dbg_trace(wil, "DBG[MISC] [%d] = 0x%08x\n", i, c->akm_suites[i]); i = i + 1; ldv_49337: ; if (i < n) { goto ldv_49336; } else { } descriptor___5.modname = "wil6210"; descriptor___5.function = "wil_print_crypto"; descriptor___5.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___5.format = "DBG[MISC]}\n"; descriptor___5.lineno = 376U; descriptor___5.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___5.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___5, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]}\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]}\n"); descriptor___6.modname = "wil6210"; descriptor___6.function = "wil_print_crypto"; descriptor___6.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___6.format = "DBG[MISC]Control port : %d, eth_type 0x%04x no_encrypt %d\n"; descriptor___6.lineno = 379U; descriptor___6.flags = 0U; tmp___7 = ldv__builtin_expect((long )descriptor___6.flags & 1L, 0L); if (tmp___7 != 0L) { tmp___6 = __fswab16((int )c->control_port_ethertype); __dynamic_netdev_dbg(& descriptor___6, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Control port : %d, eth_type 0x%04x no_encrypt %d\n", (int )c->control_port, (int )tmp___6, (int )c->control_port_no_encrypt); } else { } tmp___8 = __fswab16((int )c->control_port_ethertype); wil_dbg_trace(wil, "DBG[MISC]Control port : %d, eth_type 0x%04x no_encrypt %d\n", (int )c->control_port, (int )tmp___8, (int )c->control_port_no_encrypt); return; } } static void wil_print_connect_params(struct wil6210_priv *wil , struct cfg80211_connect_params *sme ) { { wil_info(wil, "Connecting to:\n"); if ((unsigned long )sme->channel != (unsigned long )((struct ieee80211_channel *)0)) { wil_info(wil, " Channel: %d freq %d\n", (int )(sme->channel)->hw_value, (int )(sme->channel)->center_freq); } else { } if ((unsigned long )sme->bssid != (unsigned long )((u8 const *)0U)) { wil_info(wil, " BSSID: %pM\n", sme->bssid); } else { } if ((unsigned long )sme->ssid != (unsigned long )((u8 const *)0U)) { print_hex_dump("\016", " SSID: ", 2, 16, 1, (void const *)sme->ssid, sme->ssid_len, 1); } else { } wil_info(wil, " Privacy: %s\n", (int )sme->privacy ? (char *)"secure" : (char *)"open"); wil_print_crypto(wil, & sme->crypto); return; } } static int wil_cfg80211_connect(struct wiphy *wiphy , struct net_device *ndev , struct cfg80211_connect_params *sme ) { struct wil6210_priv *wil ; void *tmp ; struct cfg80211_bss *bss ; struct wmi_connect_cmd conn ; u8 const *ssid_eid ; u8 const *rsn_eid ; int ch ; int rc ; int tmp___0 ; int tmp___1 ; u8 const *tmp___2 ; u8 __min1 ; u8 __min2 ; unsigned long tmp___3 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; rc = 0; wil_print_connect_params(wil, sme); tmp___0 = constant_test_bit(1L, (unsigned long const volatile *)(& wil->status)); if (tmp___0 != 0) { return (-114); } else { tmp___1 = constant_test_bit(2L, (unsigned long const volatile *)(& wil->status)); if (tmp___1 != 0) { return (-114); } else { } } if (sme->ie_len > 1024UL) { wil_err(wil, "IE too large (%td bytes)\n", sme->ie_len); return (-34); } else { } if ((unsigned long )sme->ie != (unsigned long )((u8 const *)0U)) { tmp___2 = cfg80211_find_ie(48, sme->ie, (int )sme->ie_len); rsn_eid = tmp___2; } else { rsn_eid = (u8 const *)0U; } if ((int )sme->privacy && (unsigned long )rsn_eid == (unsigned long )((u8 const *)0U)) { wil_info(wil, "WSC connection\n"); } else { } bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, sme->ssid, sme->ssid_len, 0, 2); if ((unsigned long )bss == (unsigned long )((struct cfg80211_bss *)0)) { wil_err(wil, "Unable to find BSS\n"); return (-2); } else { } ssid_eid = ieee80211_bss_get_ie(bss, 0); if ((unsigned long )ssid_eid == (unsigned long )((u8 const *)0U)) { wil_err(wil, "No SSID\n"); rc = -2; goto out; } else { } wil->privacy = (u32 )sme->privacy; if (wil->privacy != 0U) { rc = wmi_del_cipher_key(wil, 0, (void const *)(& bss->bssid), 0); if (rc != 0) { wil_err(wil, "WMI_DELETE_CIPHER_KEY_CMD(PTK) failed\n"); goto out; } else { } rc = wmi_del_cipher_key(wil, 0, (void const *)(& bss->bssid), 1); if (rc != 0) { wil_err(wil, "WMI_DELETE_CIPHER_KEY_CMD(GTK) failed\n"); goto out; } else { } } else { } rc = wmi_set_ie(wil, 3, (int )((u16 )sme->ie_len), (void const *)sme->ie); if (rc != 0) { wil_err(wil, "WMI_SET_APPIE_CMD failed\n"); goto out; } else { } memset((void *)(& conn), 0, 60UL); switch ((int )bss->capability & 3) { case 3: conn.network_type = 1U; goto ldv_49359; case 2: conn.network_type = 32U; goto ldv_49359; default: wil_err(wil, "Unsupported BSS type, capability= 0x%04x\n", (int )bss->capability); goto out; } ldv_49359: ; if (wil->privacy != 0U) { if ((unsigned long )rsn_eid != (unsigned long )((u8 const *)0U)) { conn.dot11_auth_mode = 2U; conn.auth_mode = 16U; conn.pairwise_crypto_type = 32U; conn.pairwise_crypto_len = 16U; conn.group_crypto_type = 32U; conn.group_crypto_len = 16U; } else { conn.dot11_auth_mode = 8U; conn.auth_mode = 1U; } } else { conn.dot11_auth_mode = 1U; conn.auth_mode = 1U; } __min1 = *(ssid_eid + 1UL); __min2 = 32U; conn.ssid_len = (u8 )((int )__min1 < (int )__min2 ? __min1 : __min2); memcpy((void *)(& conn.ssid), (void const *)ssid_eid + 2U, (size_t )conn.ssid_len); ch = (int )(bss->channel)->hw_value; if (ch == 0) { wil_err(wil, "BSS at unknown frequency %dMhz\n", (int )(bss->channel)->center_freq); rc = -95; goto out; } else { } conn.channel = (unsigned int )((u8 )ch) + 255U; ether_addr_copy((u8 *)(& conn.bssid), (u8 const *)(& bss->bssid)); ether_addr_copy((u8 *)(& conn.dst_mac), (u8 const *)(& bss->bssid)); set_bit(1L, (unsigned long volatile *)(& wil->status)); rc = wmi_send(wil, 1, (void *)(& conn), 60); if (rc == 0) { netif_carrier_on(ndev); tmp___3 = msecs_to_jiffies(2000U); ldv_mod_timer_146(& wil->connect_timer, tmp___3 + (unsigned long )jiffies); } else { clear_bit(1L, (unsigned long volatile *)(& wil->status)); } out: cfg80211_put_bss(wiphy, bss); return (rc); } } static int wil_cfg80211_disconnect(struct wiphy *wiphy , struct net_device *ndev , u16 reason_code ) { int rc ; struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_disconnect"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(reason=%d)\n"; descriptor.lineno = 541U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(reason=%d)\n", "wil_cfg80211_disconnect", (int )reason_code); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(reason=%d)\n", "wil_cfg80211_disconnect", (int )reason_code); rc = wmi_send(wil, 3, (void *)0, 0); return (rc); } } int wil_cfg80211_mgmt_tx(struct wiphy *wiphy , struct wireless_dev *wdev , struct cfg80211_mgmt_tx_params *params , u64 *cookie ) { u8 const *buf ; size_t len ; struct wil6210_priv *wil ; void *tmp ; int rc ; bool tx_status ; struct ieee80211_mgmt *mgmt_frame ; struct wmi_sw_tx_req_cmd *cmd ; struct __anonstruct_evt_370 evt ; void *tmp___0 ; { buf = params->buf; len = params->len; tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; tx_status = 0; mgmt_frame = (struct ieee80211_mgmt *)buf; tmp___0 = kmalloc(len + 8UL, 208U); cmd = (struct wmi_sw_tx_req_cmd *)tmp___0; if ((unsigned long )cmd == (unsigned long )((struct wmi_sw_tx_req_cmd *)0)) { rc = -12; goto out; } else { } memcpy((void *)(& cmd->dst_mac), (void const *)(& mgmt_frame->da), 6UL); cmd->len = (unsigned short )len; memcpy((void *)(& cmd->payload), (void const *)buf, len); rc = wmi_call(wil, 2091, (void *)cmd, (int )((unsigned int )((u16 )len) + 8U), 6187, (void *)(& evt), 12, 2000); if (rc == 0) { tx_status = (unsigned int )evt.evt.status == 0U; } else { } kfree((void const *)cmd); out: cfg80211_mgmt_tx_status(wdev, (unsigned long )cookie != (unsigned long )((u64 *)0ULL) ? *cookie : 0ULL, buf, len, (int )tx_status, 208U); return (rc); } } static int wil_cfg80211_set_channel(struct wiphy *wiphy , struct cfg80211_chan_def *chandef ) { struct wil6210_priv *wil ; void *tmp ; struct wireless_dev *wdev ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; wdev = wil->wdev; wdev->preset_chandef = *chandef; return (0); } } static enum wmi_key_usage wil_detect_key_usage(struct wil6210_priv *wil , bool pairwise ) { struct wireless_dev *wdev ; enum wmi_key_usage rc ; char const *key_usage_str[3U] ; struct _ddebug descriptor ; long tmp ; { wdev = wil->wdev; key_usage_str[0] = "WMI_KEY_USE_PAIRWISE"; key_usage_str[1] = "WMI_KEY_USE_RX_GROUP"; key_usage_str[2] = "WMI_KEY_USE_TX_GROUP"; if ((int )pairwise) { rc = 0; } else { switch ((unsigned int )wdev->iftype) { case 2U: rc = 1; goto ldv_49406; case 3U: rc = 2; goto ldv_49406; default: wil_err(wil, "Can\'t determine GTK type\n"); rc = 1; goto ldv_49406; } ldv_49406: ; } descriptor.modname = "wil6210"; descriptor.function = "wil_detect_key_usage"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s() -> %s\n"; descriptor.lineno = 625U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s() -> %s\n", "wil_detect_key_usage", key_usage_str[(unsigned int )rc]); } else { } wil_dbg_trace(wil, "DBG[MISC]%s() -> %s\n", "wil_detect_key_usage", key_usage_str[(unsigned int )rc]); return (rc); } } static int wil_cfg80211_add_key(struct wiphy *wiphy , struct net_device *ndev , u8 key_index , bool pairwise , u8 const *mac_addr , struct key_params *params ) { struct wil6210_priv *wil ; void *tmp ; enum wmi_key_usage key_usage ; enum wmi_key_usage tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; int tmp___2 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; tmp___0 = wil_detect_key_usage(wil, (int )pairwise); key_usage = tmp___0; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_add_key"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(%pM[%d] %s)\n"; descriptor.lineno = 640U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(%pM[%d] %s)\n", "wil_cfg80211_add_key", mac_addr, (int )key_index, (int )pairwise ? (char *)"PTK" : (char *)"GTK"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(%pM[%d] %s)\n", "wil_cfg80211_add_key", mac_addr, (int )key_index, (int )pairwise ? (char *)"PTK" : (char *)"GTK"); tmp___2 = wmi_add_cipher_key(wil, (int )key_index, (void const *)mac_addr, params->key_len, (void const *)params->key, (int )key_usage); return (tmp___2); } } static int wil_cfg80211_del_key(struct wiphy *wiphy , struct net_device *ndev , u8 key_index , bool pairwise , u8 const *mac_addr ) { struct wil6210_priv *wil ; void *tmp ; enum wmi_key_usage key_usage ; enum wmi_key_usage tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; int tmp___2 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; tmp___0 = wil_detect_key_usage(wil, (int )pairwise); key_usage = tmp___0; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_del_key"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(%pM[%d] %s)\n"; descriptor.lineno = 655U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(%pM[%d] %s)\n", "wil_cfg80211_del_key", mac_addr, (int )key_index, (int )pairwise ? (char *)"PTK" : (char *)"GTK"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(%pM[%d] %s)\n", "wil_cfg80211_del_key", mac_addr, (int )key_index, (int )pairwise ? (char *)"PTK" : (char *)"GTK"); tmp___2 = wmi_del_cipher_key(wil, (int )key_index, (void const *)mac_addr, (int )key_usage); return (tmp___2); } } static int wil_cfg80211_set_default_key(struct wiphy *wiphy , struct net_device *ndev , u8 key_index , bool unicast , bool multicast ) { { return (0); } } static int wil_remain_on_channel(struct wiphy *wiphy , struct wireless_dev *wdev , struct ieee80211_channel *chan , unsigned int duration , u64 *cookie ) { struct wil6210_priv *wil ; void *tmp ; int rc ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; wil_info(wil, "%s(%d, %d ms)\n", "wil_remain_on_channel", (int )chan->center_freq, duration); rc = wmi_set_channel(wil, (int )chan->hw_value); if (rc != 0) { return (rc); } else { } rc = wmi_rxon(wil, 1); return (rc); } } static int wil_cancel_remain_on_channel(struct wiphy *wiphy , struct wireless_dev *wdev , u64 cookie ) { struct wil6210_priv *wil ; void *tmp ; int rc ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; wil_info(wil, "%s()\n", "wil_cancel_remain_on_channel"); rc = wmi_rxon(wil, 0); return (rc); } } static void wil_print_bcon_data(struct cfg80211_beacon_data *b ) { struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; struct _ddebug descriptor___2 ; long tmp___2 ; struct _ddebug descriptor___3 ; long tmp___3 ; struct _ddebug descriptor___4 ; long tmp___4 ; { descriptor.modname = "wil6210"; descriptor.function = "wil_print_bcon_data"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "head "; descriptor.lineno = 707U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { print_hex_dump("\017", "head ", 2, 16, 1, (void const *)b->head, b->head_len, 1); } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_print_bcon_data"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___0.format = "tail "; descriptor___0.lineno = 709U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { print_hex_dump("\017", "tail ", 2, 16, 1, (void const *)b->tail, b->tail_len, 1); } else { } descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_print_bcon_data"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___1.format = "BCON IE "; descriptor___1.lineno = 711U; descriptor___1.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___1 != 0L) { print_hex_dump("\017", "BCON IE ", 2, 16, 1, (void const *)b->beacon_ies, b->beacon_ies_len, 1); } else { } descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_print_bcon_data"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___2.format = "PROBE "; descriptor___2.lineno = 713U; descriptor___2.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___2 != 0L) { print_hex_dump("\017", "PROBE ", 2, 16, 1, (void const *)b->probe_resp, b->probe_resp_len, 1); } else { } descriptor___3.modname = "wil6210"; descriptor___3.function = "wil_print_bcon_data"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___3.format = "PROBE IE "; descriptor___3.lineno = 715U; descriptor___3.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___3 != 0L) { print_hex_dump("\017", "PROBE IE ", 2, 16, 1, (void const *)b->proberesp_ies, b->proberesp_ies_len, 1); } else { } descriptor___4.modname = "wil6210"; descriptor___4.function = "wil_print_bcon_data"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___4.format = "ASSOC IE "; descriptor___4.lineno = 717U; descriptor___4.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___4 != 0L) { print_hex_dump("\017", "ASSOC IE ", 2, 16, 1, (void const *)b->assocresp_ies, b->assocresp_ies_len, 1); } else { } return; } } static int wil_fix_bcon(struct wil6210_priv *wil , struct cfg80211_beacon_data *bcon ) { struct ieee80211_mgmt *f ; size_t hlen ; int rc ; { f = (struct ieee80211_mgmt *)bcon->probe_resp; hlen = 36UL; rc = 0; if (bcon->probe_resp_len <= hlen) { return (0); } else { } if ((unsigned long )bcon->assocresp_ies == (unsigned long )((u8 const *)0U)) { bcon->assocresp_ies = (u8 const *)(& f->u.probe_resp.variable); bcon->assocresp_ies_len = bcon->probe_resp_len - hlen; rc = 1; } else { } return (rc); } } static int wil_cfg80211_change_beacon(struct wiphy *wiphy , struct net_device *ndev , struct cfg80211_beacon_data *bcon ) { struct wil6210_priv *wil ; void *tmp ; struct ieee80211_mgmt *f ; size_t hlen ; u8 const *pr_ies ; size_t pr_ies_len ; int rc ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; int tmp___2 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; f = (struct ieee80211_mgmt *)bcon->probe_resp; hlen = 36UL; pr_ies = (u8 const *)0U; pr_ies_len = 0UL; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_change_beacon"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 750U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_cfg80211_change_beacon"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_cfg80211_change_beacon"); wil_print_bcon_data(bcon); if (bcon->probe_resp_len > hlen) { pr_ies = (u8 const *)(& f->u.probe_resp.variable); pr_ies_len = bcon->probe_resp_len - hlen; } else { } tmp___2 = wil_fix_bcon(wil, bcon); if (tmp___2 != 0) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_cfg80211_change_beacon"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___0.format = "DBG[MISC]Fixed bcon\n"; descriptor___0.lineno = 759U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Fixed bcon\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]Fixed bcon\n"); wil_print_bcon_data(bcon); } else { } rc = wmi_set_ie(wil, 2, (int )((u16 )pr_ies_len), (void const *)pr_ies); if (rc != 0) { wil_err(wil, "set_ie(PROBE_RESP) failed\n"); return (rc); } else { } rc = wmi_set_ie(wil, 4, (int )((u16 )bcon->assocresp_ies_len), (void const *)bcon->assocresp_ies); if (rc != 0) { wil_err(wil, "set_ie(ASSOC_RESP) failed\n"); return (rc); } else { } return (0); } } static int wil_cfg80211_start_ap(struct wiphy *wiphy , struct net_device *ndev , struct cfg80211_ap_settings *info ) { int rc ; struct wil6210_priv *wil ; void *tmp ; struct wireless_dev *wdev ; struct ieee80211_channel *channel ; struct cfg80211_beacon_data *bcon ; struct cfg80211_crypto_settings *crypto ; u8 wmi_nettype ; int tmp___0 ; struct ieee80211_mgmt *f ; size_t hlen ; u8 const *pr_ies ; size_t pr_ies_len ; u8 hidden_ssid ; struct _ddebug descriptor ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; struct _ddebug descriptor___2 ; long tmp___4 ; struct _ddebug descriptor___3 ; long tmp___5 ; struct _ddebug descriptor___4 ; long tmp___6 ; struct _ddebug descriptor___5 ; long tmp___7 ; int tmp___8 ; { rc = 0; tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; wdev = ndev->ieee80211_ptr; channel = info->chandef.chan; bcon = & info->beacon; crypto = & info->crypto; tmp___0 = wil_iftype_nl2wmi(wdev->iftype); wmi_nettype = (u8 )tmp___0; f = (struct ieee80211_mgmt *)bcon->probe_resp; hlen = 36UL; pr_ies = (u8 const *)0U; pr_ies_len = 0UL; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_start_ap"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 803U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_cfg80211_start_ap"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_cfg80211_start_ap"); if ((unsigned long )channel == (unsigned long )((struct ieee80211_channel *)0)) { wil_err(wil, "AP: No channel???\n"); return (-22); } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_cfg80211_start_ap"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___0.format = "DBG[MISC]AP on Channel %d %d MHz, %s\n"; descriptor___0.lineno = 811U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]AP on Channel %d %d MHz, %s\n", (int )channel->hw_value, (int )channel->center_freq, (int )info->privacy ? (char *)"secure" : (char *)"open"); } else { } wil_dbg_trace(wil, "DBG[MISC]AP on Channel %d %d MHz, %s\n", (int )channel->hw_value, (int )channel->center_freq, (int )info->privacy ? (char *)"secure" : (char *)"open"); descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_cfg80211_start_ap"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___1.format = "DBG[MISC]Privacy: %d auth_type %d\n"; descriptor___1.lineno = 813U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Privacy: %d auth_type %d\n", (int )info->privacy, (unsigned int )info->auth_type); } else { } wil_dbg_trace(wil, "DBG[MISC]Privacy: %d auth_type %d\n", (int )info->privacy, (unsigned int )info->auth_type); descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_cfg80211_start_ap"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___2.format = "DBG[MISC]Hidden SSID mode: %d\n"; descriptor___2.lineno = 815U; descriptor___2.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Hidden SSID mode: %d\n", (unsigned int )info->hidden_ssid); } else { } wil_dbg_trace(wil, "DBG[MISC]Hidden SSID mode: %d\n", (unsigned int )info->hidden_ssid); descriptor___3.modname = "wil6210"; descriptor___3.function = "wil_cfg80211_start_ap"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___3.format = "DBG[MISC]BI %d DTIM %d\n"; descriptor___3.lineno = 817U; descriptor___3.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]BI %d DTIM %d\n", info->beacon_interval, info->dtim_period); } else { } wil_dbg_trace(wil, "DBG[MISC]BI %d DTIM %d\n", info->beacon_interval, info->dtim_period); descriptor___4.modname = "wil6210"; descriptor___4.function = "wil_cfg80211_start_ap"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___4.format = "SSID "; descriptor___4.lineno = 819U; descriptor___4.flags = 0U; tmp___6 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___6 != 0L) { print_hex_dump("\017", "SSID ", 2, 16, 1, (void const *)info->ssid, info->ssid_len, 1); } else { } wil_print_bcon_data(bcon); wil_print_crypto(wil, crypto); if (bcon->probe_resp_len > hlen) { pr_ies = (u8 const *)(& f->u.probe_resp.variable); pr_ies_len = bcon->probe_resp_len - hlen; } else { } tmp___8 = wil_fix_bcon(wil, bcon); if (tmp___8 != 0) { descriptor___5.modname = "wil6210"; descriptor___5.function = "wil_cfg80211_start_ap"; descriptor___5.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor___5.format = "DBG[MISC]Fixed bcon\n"; descriptor___5.lineno = 829U; descriptor___5.flags = 0U; tmp___7 = ldv__builtin_expect((long )descriptor___5.flags & 1L, 0L); if (tmp___7 != 0L) { __dynamic_netdev_dbg(& descriptor___5, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Fixed bcon\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]Fixed bcon\n"); wil_print_bcon_data(bcon); } else { } wil_set_recovery_state(wil, 0); ldv_mutex_lock_147(& wil->mutex); __wil_down(wil); rc = __wil_up(wil); if (rc != 0) { goto out; } else { } rc = wmi_set_ssid(wil, (int )((u8 )info->ssid_len), (void const *)info->ssid); if (rc != 0) { goto out; } else { } wmi_set_ie(wil, 2, (int )((u16 )pr_ies_len), (void const *)pr_ies); wmi_set_ie(wil, 4, (int )((u16 )bcon->assocresp_ies_len), (void const *)bcon->assocresp_ies); wil->privacy = (u32 )info->privacy; switch ((unsigned int )info->hidden_ssid) { case 0U: hidden_ssid = 0U; goto ldv_49517; case 1U: hidden_ssid = 1U; goto ldv_49517; case 2U: hidden_ssid = 2U; goto ldv_49517; default: rc = -95; goto out; } ldv_49517: netif_carrier_on(ndev); rc = wmi_pcp_start(wil, info->beacon_interval, (int )wmi_nettype, (int )((u8 )channel->hw_value), (int )hidden_ssid); if (rc != 0) { goto err_pcp_start; } else { } rc = wil_bcast_init(wil); if (rc != 0) { goto err_bcast; } else { } goto out; err_bcast: wmi_pcp_stop(wil); err_pcp_start: netif_carrier_off(ndev); out: ldv_mutex_unlock_148(& wil->mutex); return (rc); } } static int wil_cfg80211_stop_ap(struct wiphy *wiphy , struct net_device *ndev ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_stop_ap"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 905U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_cfg80211_stop_ap"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_cfg80211_stop_ap"); netif_carrier_off(ndev); wil_set_recovery_state(wil, 0); ldv_mutex_lock_149(& wil->mutex); wmi_pcp_stop(wil); __wil_down(wil); ldv_mutex_unlock_150(& wil->mutex); return (0); } } static int wil_cfg80211_del_station(struct wiphy *wiphy , struct net_device *dev , struct station_del_parameters *params ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_del_station"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(%pM, reason=%d)\n"; descriptor.lineno = 928U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(%pM, reason=%d)\n", "wil_cfg80211_del_station", params->mac, (int )params->reason_code); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(%pM, reason=%d)\n", "wil_cfg80211_del_station", params->mac, (int )params->reason_code); ldv_mutex_lock_151(& wil->mutex); wil6210_disconnect(wil, params->mac, (int )params->reason_code, 0); ldv_mutex_unlock_152(& wil->mutex); return (0); } } static void wil_probe_client_handle(struct wil6210_priv *wil , struct wil_probe_client_req *req ) { struct net_device *ndev ; struct wil_sta_info *sta ; bool alive ; { ndev = (wil->wdev)->netdev; sta = (struct wil_sta_info *)(& wil->sta) + (unsigned long )req->cid; alive = (unsigned int )sta->status == 2U; cfg80211_probe_status(ndev, (u8 const *)(& sta->addr), req->cookie, (int )alive, 208U); return; } } static struct list_head *next_probe_client(struct wil6210_priv *wil ) { struct list_head *ret ; int tmp ; { ret = (struct list_head *)0; ldv_mutex_lock_153(& wil->probe_client_mutex); tmp = list_empty((struct list_head const *)(& wil->probe_client_pending)); if (tmp == 0) { ret = wil->probe_client_pending.next; list_del(ret); } else { } ldv_mutex_unlock_154(& wil->probe_client_mutex); return (ret); } } void wil_probe_client_worker(struct work_struct *work ) { struct wil6210_priv *wil ; struct work_struct const *__mptr ; struct wil_probe_client_req *req ; struct list_head *lh ; struct list_head const *__mptr___0 ; { __mptr = (struct work_struct const *)work; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffff608UL; goto ldv_49560; ldv_49559: __mptr___0 = (struct list_head const *)lh; req = (struct wil_probe_client_req *)__mptr___0; wil_probe_client_handle(wil, req); kfree((void const *)req); ldv_49560: lh = next_probe_client(wil); if ((unsigned long )lh != (unsigned long )((struct list_head *)0)) { goto ldv_49559; } else { } return; } } void wil_probe_client_flush(struct wil6210_priv *wil ) { struct wil_probe_client_req *req ; struct wil_probe_client_req *t ; struct _ddebug descriptor ; long tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { descriptor.modname = "wil6210"; descriptor.function = "wil_probe_client_flush"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 986U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_probe_client_flush"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_probe_client_flush"); ldv_mutex_lock_155(& wil->probe_client_mutex); __mptr = (struct list_head const *)wil->probe_client_pending.next; req = (struct wil_probe_client_req *)__mptr; __mptr___0 = (struct list_head const *)req->list.next; t = (struct wil_probe_client_req *)__mptr___0; goto ldv_49576; ldv_49575: list_del(& req->list); kfree((void const *)req); req = t; __mptr___1 = (struct list_head const *)t->list.next; t = (struct wil_probe_client_req *)__mptr___1; ldv_49576: ; if ((unsigned long )(& req->list) != (unsigned long )(& wil->probe_client_pending)) { goto ldv_49575; } else { } ldv_mutex_unlock_156(& wil->probe_client_mutex); return; } } static int wil_cfg80211_probe_client(struct wiphy *wiphy , struct net_device *dev , u8 const *peer , u64 *cookie ) { struct wil6210_priv *wil ; void *tmp ; struct wil_probe_client_req *req ; int cid ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; void *tmp___2 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; tmp___0 = wil_find_cid(wil, peer); cid = tmp___0; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_probe_client"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(%pM => CID %d)\n"; descriptor.lineno = 1006U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(%pM => CID %d)\n", "wil_cfg80211_probe_client", peer, cid); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(%pM => CID %d)\n", "wil_cfg80211_probe_client", peer, cid); if (cid < 0) { return (-67); } else { } tmp___2 = kzalloc(32UL, 208U); req = (struct wil_probe_client_req *)tmp___2; if ((unsigned long )req == (unsigned long )((struct wil_probe_client_req *)0)) { return (-12); } else { } req->cid = (u8 )cid; req->cookie = (u64 )cid; ldv_mutex_lock_157(& wil->probe_client_mutex); list_add_tail(& req->list, & wil->probe_client_pending); ldv_mutex_unlock_158(& wil->probe_client_mutex); *cookie = req->cookie; queue_work___0(wil->wq_service, & wil->probe_client_worker); return (0); } } static int wil_cfg80211_change_bss(struct wiphy *wiphy , struct net_device *dev , struct bss_parameters *params ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wiphy_priv___0(wiphy); wil = (struct wil6210_priv *)tmp; if (params->ap_isolate >= 0) { descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_change_bss"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "DBG[MISC]%s(ap_isolate %d => %d)\n"; descriptor.lineno = 1035U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(ap_isolate %d => %d)\n", "wil_cfg80211_change_bss", wil->ap_isolate, params->ap_isolate); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(ap_isolate %d => %d)\n", "wil_cfg80211_change_bss", wil->ap_isolate, params->ap_isolate); wil->ap_isolate = (u32 )params->ap_isolate; } else { } return (0); } } static struct cfg80211_ops wil_cfg80211_ops = {0, 0, 0, 0, 0, & wil_cfg80211_change_iface, & wil_cfg80211_add_key, 0, & wil_cfg80211_del_key, & wil_cfg80211_set_default_key, 0, & wil_cfg80211_start_ap, & wil_cfg80211_change_beacon, & wil_cfg80211_stop_ap, 0, & wil_cfg80211_del_station, 0, & wil_cfg80211_get_station, & wil_cfg80211_dump_station, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_cfg80211_change_bss, 0, 0, & wil_cfg80211_set_channel, & wil_cfg80211_scan, 0, 0, 0, 0, & wil_cfg80211_connect, & wil_cfg80211_disconnect, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_remain_on_channel, & wil_cancel_remain_on_channel, & wil_cfg80211_mgmt_tx, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_cfg80211_probe_client, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void wil_wiphy_init(struct wiphy *wiphy ) { struct _ddebug descriptor ; struct device *tmp ; long tmp___0 ; { wiphy->max_scan_ssids = 1U; wiphy->max_scan_ie_len = 1024U; wiphy->max_num_pmkids = 0U; wiphy->interface_modes = 76U; wiphy->flags = wiphy->flags | 655360U; descriptor.modname = "wil6210"; descriptor.function = "wil_wiphy_init"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "%s : flags = 0x%08x\n"; descriptor.lineno = 1079U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { tmp = wiphy_dev(wiphy); __dynamic_dev_dbg(& descriptor, (struct device const *)tmp, "%s : flags = 0x%08x\n", "wil_wiphy_init", wiphy->flags); } else { } wiphy->probe_resp_offload = 7U; wiphy->bands[2] = & wil_band_60ghz; wiphy->signal_type = 2; wiphy->cipher_suites = (u32 const *)(& wil_cipher_suites); wiphy->n_cipher_suites = 1; wiphy->mgmt_stypes = (struct ieee80211_txrx_stypes const *)(& wil_mgmt_stypes); wiphy->features = wiphy->features | 1U; return; } } struct wireless_dev *wil_cfg80211_init(struct device *dev ) { int rc ; struct wireless_dev *wdev ; struct _ddebug descriptor ; long tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; { rc = 0; descriptor.modname = "wil6210"; descriptor.function = "wil_cfg80211_init"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "%s()\n"; descriptor.lineno = 1101U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)dev, "%s()\n", "wil_cfg80211_init"); } else { } tmp___0 = kzalloc(976UL, 208U); wdev = (struct wireless_dev *)tmp___0; if ((unsigned long )wdev == (unsigned long )((struct wireless_dev *)0)) { tmp___1 = ERR_PTR(-12L); return ((struct wireless_dev *)tmp___1); } else { } wdev->wiphy = wiphy_new((struct cfg80211_ops const *)(& wil_cfg80211_ops), 10064); if ((unsigned long )wdev->wiphy == (unsigned long )((struct wiphy *)0)) { rc = -12; goto out; } else { } set_wiphy_dev(wdev->wiphy, dev); wil_wiphy_init(wdev->wiphy); rc = wiphy_register(wdev->wiphy); if (rc < 0) { goto out_failed_reg; } else { } return (wdev); out_failed_reg: wiphy_free(wdev->wiphy); out: kfree((void const *)wdev); tmp___2 = ERR_PTR((long )rc); return ((struct wireless_dev *)tmp___2); } } void wil_wdev_free(struct wil6210_priv *wil ) { struct wireless_dev *wdev ; struct _ddebug descriptor ; struct device *tmp ; long tmp___0 ; { wdev = wil->wdev; descriptor.modname = "wil6210"; descriptor.function = "wil_wdev_free"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/cfg80211.c"; descriptor.format = "%s()\n"; descriptor.lineno = 1135U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { tmp = wiphy_dev((wil->wdev)->wiphy); __dynamic_dev_dbg(& descriptor, (struct device const *)tmp, "%s()\n", "wil_wdev_free"); } else { } if ((unsigned long )wdev == (unsigned long )((struct wireless_dev *)0)) { return; } else { } wiphy_unregister(wdev->wiphy); wiphy_free(wdev->wiphy); kfree((void const *)wdev); return; } } extern int ldv_bind_54(void) ; int ldv_retval_26 ; extern int ldv_release_54(void) ; void ldv_initialize_cfg80211_ops_54(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; { tmp = ldv_init_zalloc(976UL); wil_cfg80211_ops_group0 = (struct wireless_dev *)tmp; tmp___0 = ldv_init_zalloc(3008UL); wil_cfg80211_ops_group3 = (struct net_device *)tmp___0; tmp___1 = ldv_init_zalloc(1792UL); wil_cfg80211_ops_group2 = (struct wiphy *)tmp___1; tmp___2 = ldv_init_zalloc(840UL); wil_cfg80211_ops_group1 = (struct station_info *)tmp___2; return; } } void ldv_main_exported_54(void) { u64 *ldvarg162 ; void *tmp ; u8 *ldvarg159 ; void *tmp___0 ; struct cfg80211_connect_params *ldvarg171 ; void *tmp___1 ; bool ldvarg180 ; u8 ldvarg179 ; u8 *ldvarg173 ; void *tmp___2 ; u8 ldvarg176 ; enum nl80211_iftype ldvarg183 ; unsigned int ldvarg164 ; u64 *ldvarg166 ; void *tmp___3 ; u8 *ldvarg177 ; void *tmp___4 ; bool ldvarg186 ; struct vif_params *ldvarg184 ; void *tmp___5 ; struct cfg80211_ap_settings *ldvarg172 ; void *tmp___6 ; u8 ldvarg187 ; bool ldvarg175 ; u64 *ldvarg158 ; void *tmp___7 ; struct bss_parameters *ldvarg160 ; void *tmp___8 ; u16 ldvarg161 ; struct station_del_parameters *ldvarg169 ; void *tmp___9 ; struct cfg80211_mgmt_tx_params *ldvarg163 ; void *tmp___10 ; u32 *ldvarg182 ; void *tmp___11 ; struct cfg80211_beacon_data *ldvarg189 ; void *tmp___12 ; struct cfg80211_chan_def *ldvarg170 ; void *tmp___13 ; u64 ldvarg167 ; struct key_params *ldvarg185 ; void *tmp___14 ; u8 *ldvarg188 ; void *tmp___15 ; struct ieee80211_channel *ldvarg165 ; void *tmp___16 ; u8 *ldvarg168 ; void *tmp___17 ; int ldvarg174 ; struct cfg80211_scan_request *ldvarg181 ; void *tmp___18 ; bool ldvarg178 ; int tmp___19 ; { tmp = ldv_init_zalloc(8UL); ldvarg162 = (u64 *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg159 = (u8 *)tmp___0; tmp___1 = ldv_init_zalloc(232UL); ldvarg171 = (struct cfg80211_connect_params *)tmp___1; tmp___2 = ldv_init_zalloc(1UL); ldvarg173 = (u8 *)tmp___2; tmp___3 = ldv_init_zalloc(8UL); ldvarg166 = (u64 *)tmp___3; tmp___4 = ldv_init_zalloc(1UL); ldvarg177 = (u8 *)tmp___4; tmp___5 = ldv_init_zalloc(12UL); ldvarg184 = (struct vif_params *)tmp___5; tmp___6 = ldv_init_zalloc(232UL); ldvarg172 = (struct cfg80211_ap_settings *)tmp___6; tmp___7 = ldv_init_zalloc(8UL); ldvarg158 = (u64 *)tmp___7; tmp___8 = ldv_init_zalloc(40UL); ldvarg160 = (struct bss_parameters *)tmp___8; tmp___9 = ldv_init_zalloc(16UL); ldvarg169 = (struct station_del_parameters *)tmp___9; tmp___10 = ldv_init_zalloc(48UL); ldvarg163 = (struct cfg80211_mgmt_tx_params *)tmp___10; tmp___11 = ldv_init_zalloc(4UL); ldvarg182 = (u32 *)tmp___11; tmp___12 = ldv_init_zalloc(96UL); ldvarg189 = (struct cfg80211_beacon_data *)tmp___12; tmp___13 = ldv_init_zalloc(24UL); ldvarg170 = (struct cfg80211_chan_def *)tmp___13; tmp___14 = ldv_init_zalloc(32UL); ldvarg185 = (struct key_params *)tmp___14; tmp___15 = ldv_init_zalloc(1UL); ldvarg188 = (u8 *)tmp___15; tmp___16 = ldv_init_zalloc(64UL); ldvarg165 = (struct ieee80211_channel *)tmp___16; tmp___17 = ldv_init_zalloc(1UL); ldvarg168 = (u8 *)tmp___17; tmp___18 = ldv_init_zalloc(104UL); ldvarg181 = (struct cfg80211_scan_request *)tmp___18; ldv_memset((void *)(& ldvarg180), 0, 1UL); ldv_memset((void *)(& ldvarg179), 0, 1UL); ldv_memset((void *)(& ldvarg176), 0, 1UL); ldv_memset((void *)(& ldvarg183), 0, 4UL); ldv_memset((void *)(& ldvarg164), 0, 4UL); ldv_memset((void *)(& ldvarg186), 0, 1UL); ldv_memset((void *)(& ldvarg187), 0, 1UL); ldv_memset((void *)(& ldvarg175), 0, 1UL); ldv_memset((void *)(& ldvarg161), 0, 2UL); ldv_memset((void *)(& ldvarg167), 0, 8UL); ldv_memset((void *)(& ldvarg174), 0, 4UL); ldv_memset((void *)(& ldvarg178), 0, 1UL); tmp___19 = __VERIFIER_nondet_int(); switch (tmp___19) { case 0: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_change_beacon(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg189); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_change_beacon(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg189); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_change_beacon(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg189); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 1: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_add_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg187, (int )ldvarg186, (u8 const *)ldvarg188, ldvarg185); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_add_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg187, (int )ldvarg186, (u8 const *)ldvarg188, ldvarg185); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_add_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg187, (int )ldvarg186, (u8 const *)ldvarg188, ldvarg185); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 2: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_change_iface(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg183, ldvarg182, ldvarg184); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_change_iface(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg183, ldvarg182, ldvarg184); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_change_iface(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg183, ldvarg182, ldvarg184); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 3: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_scan(wil_cfg80211_ops_group2, ldvarg181); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_scan(wil_cfg80211_ops_group2, ldvarg181); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_scan(wil_cfg80211_ops_group2, ldvarg181); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 4: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_set_default_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg179, (int )ldvarg178, (int )ldvarg180); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_set_default_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg179, (int )ldvarg178, (int )ldvarg180); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_set_default_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg179, (int )ldvarg178, (int )ldvarg180); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 5: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_del_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg176, (int )ldvarg175, (u8 const *)ldvarg177); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_del_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg176, (int )ldvarg175, (u8 const *)ldvarg177); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_del_key(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg176, (int )ldvarg175, (u8 const *)ldvarg177); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 6: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_dump_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg174, ldvarg173, wil_cfg80211_ops_group1); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_dump_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg174, ldvarg173, wil_cfg80211_ops_group1); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_dump_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg174, ldvarg173, wil_cfg80211_ops_group1); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 7: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_start_ap(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg172); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_start_ap(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg172); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_start_ap(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg172); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 8: ; if (ldv_state_variable_54 == 2) { ldv_retval_26 = wil_cfg80211_connect(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg171); if (ldv_retval_26 == 0) { ldv_state_variable_54 = 3; } else { } } else { } goto ldv_49664; case 9: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_set_channel(wil_cfg80211_ops_group2, ldvarg170); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_set_channel(wil_cfg80211_ops_group2, ldvarg170); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_set_channel(wil_cfg80211_ops_group2, ldvarg170); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 10: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_del_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg169); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_del_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg169); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_del_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg169); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 11: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_get_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (u8 const *)ldvarg168, wil_cfg80211_ops_group1); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_get_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (u8 const *)ldvarg168, wil_cfg80211_ops_group1); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_get_station(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (u8 const *)ldvarg168, wil_cfg80211_ops_group1); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 12: ; if (ldv_state_variable_54 == 1) { wil_cancel_remain_on_channel(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg167); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cancel_remain_on_channel(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg167); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cancel_remain_on_channel(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg167); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 13: ; if (ldv_state_variable_54 == 1) { wil_remain_on_channel(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg165, ldvarg164, ldvarg166); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_remain_on_channel(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg165, ldvarg164, ldvarg166); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_remain_on_channel(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg165, ldvarg164, ldvarg166); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 14: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_mgmt_tx(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg163, ldvarg162); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_mgmt_tx(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg163, ldvarg162); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_mgmt_tx(wil_cfg80211_ops_group2, wil_cfg80211_ops_group0, ldvarg163, ldvarg162); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 15: ; if (ldv_state_variable_54 == 3) { wil_cfg80211_disconnect(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (int )ldvarg161); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 16: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_change_bss(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg160); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_change_bss(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg160); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_change_bss(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, ldvarg160); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 17: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_stop_ap(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_stop_ap(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_stop_ap(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 18: ; if (ldv_state_variable_54 == 1) { wil_cfg80211_probe_client(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (u8 const *)ldvarg159, ldvarg158); ldv_state_variable_54 = 1; } else { } if (ldv_state_variable_54 == 3) { wil_cfg80211_probe_client(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (u8 const *)ldvarg159, ldvarg158); ldv_state_variable_54 = 3; } else { } if (ldv_state_variable_54 == 2) { wil_cfg80211_probe_client(wil_cfg80211_ops_group2, wil_cfg80211_ops_group3, (u8 const *)ldvarg159, ldvarg158); ldv_state_variable_54 = 2; } else { } goto ldv_49664; case 19: ; if (ldv_state_variable_54 == 2) { ldv_release_54(); ldv_state_variable_54 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_49664; case 20: ; if (ldv_state_variable_54 == 1) { ldv_bind_54(); ldv_state_variable_54 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_49664; default: ldv_stop(); } ldv_49664: ; return; } } bool ldv_queue_work_on_131(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_132(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_133(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_134(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_135(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_136(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_137(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_138(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_139(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_140(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_141(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_142(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_143(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } int ldv_mod_timer_144(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; activate_pending_timer_14(ldv_func_arg1, ldv_func_arg2, 1); return (ldv_func_res); } } int ldv_del_timer_sync_145(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___6 ldv_func_res ; int tmp ; { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_14(ldv_func_arg1); return (ldv_func_res); } } int ldv_mod_timer_146(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___18 ldv_func_res ; int tmp ; { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; activate_pending_timer_14(ldv_func_arg1, ldv_func_arg2, 1); return (ldv_func_res); } } void ldv_mutex_lock_147(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_148(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_149(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_150(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_151(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_152(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_153(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_probe_client_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_154(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_probe_client_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_155(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_probe_client_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_156(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_probe_client_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_157(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_probe_client_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_158(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_probe_client_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern struct module __this_module ; long ldv_ptr_err(void const *ptr ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR(void const *ptr ) ; int ldv_mutex_trylock_199(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_197(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_200(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_202(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_205(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_196(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_198(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_203(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_204(struct mutex *ldv_func_arg1 ) ; bool ldv_queue_work_on_191(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_193(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_192(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_195(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_194(struct workqueue_struct *ldv_func_arg1 ) ; extern void pci_iounmap(struct pci_dev * , void * ) ; struct work_struct *ldv_work_struct_9_2 ; int ldv_state_variable_47 ; int ldv_state_variable_20 ; int ldv_work_12_3 ; struct inode *fops_memread_group1 ; int ldv_irq_line_4_2 ; int ldv_work_9_3 ; struct inode *fops_rxon_group1 ; struct inode *fops_txmgmt_group1 ; struct timer_list *ldv_timer_list_14_3 ; struct work_struct *ldv_work_struct_13_3 ; int ldv_state_variable_54 ; int ldv_state_variable_14 ; struct file *fops_wmi_group2 ; int ldv_irq_line_6_2 ; int ldv_state_variable_37 ; int ldv_state_variable_17 ; int ldv_state_variable_51 ; struct work_struct *ldv_work_struct_10_1 ; void *ldv_irq_data_6_0 ; void *ldv_irq_data_2_3 ; int ldv_work_7_2 ; int ldv_state_variable_19 ; int ldv_state_variable_27 ; int ldv_state_variable_9 ; int ldv_work_13_0 ; struct work_struct *ldv_work_struct_7_1 ; int ldv_timer_15_3 ; int ldv_state_variable_42 ; void *ldv_irq_data_2_2 ; struct timer_list *ldv_timer_list_15_0 ; struct work_struct *ldv_work_struct_11_0 ; int ldv_state_variable_7 ; struct file *fops_rxon_group2 ; struct inode *fops_txdesc_group1 ; int ldv_state_variable_55 ; struct trace_event_call *event_class_wil6210_rx_group0 ; struct inode *fops_ioblob_group1 ; int ldv_irq_line_2_2 ; struct inode *fops_mbox_group1 ; void *ldv_irq_data_5_2 ; void *ldv_irq_data_1_0 ; struct inode *fops_vring_group1 ; struct wireless_dev *wil_cfg80211_ops_group0 ; void *ldv_irq_data_3_0 ; struct work_struct *ldv_work_struct_12_3 ; struct work_struct *ldv_work_struct_7_2 ; int ldv_state_variable_26 ; int ldv_work_13_1 ; int ldv_state_variable_28 ; struct work_struct *ldv_work_struct_7_0 ; struct trace_event_call *event_class_wil6210_tx_group0 ; struct inode *fops_back_group1 ; struct pci_dev *wil6210_driver_group1 ; struct file *fops_recovery_group2 ; struct trace_event_call *event_class_wil6210_tx_done_group0 ; int ldv_work_8_3 ; int ldv_timer_15_1 ; int ldv_irq_line_3_1 ; int ldv_work_13_2 ; struct file *fops_iomem_x32_group2 ; int ldv_work_7_1 ; int ldv_state_variable_31 ; struct inode *fops_iomem_x32_group1 ; int ldv_state_variable_8 ; int ldv_state_variable_46 ; int ldv_state_variable_15 ; int ldv_irq_line_5_0 ; int ldv_work_8_0 ; struct file *fops_link_group2 ; int ldv_state_variable_21 ; int ldv_state_variable_33 ; struct work_struct *ldv_work_struct_13_2 ; struct work_struct *ldv_work_struct_8_0 ; void *ldv_irq_data_4_0 ; int ldv_timer_15_0 ; struct file *fops_ssid_group2 ; int ldv_irq_line_6_3 ; struct work_struct *ldv_work_struct_11_1 ; int ldv_work_10_0 ; int ldv_work_12_2 ; struct timer_list *ldv_timer_list_15_3 ; int ldv_irq_line_2_0 ; struct file *fops_sta_group2 ; struct trace_event_call *event_class_wil6210_irq_group0 ; int ldv_irq_line_4_0 ; int ldv_irq_line_6_1 ; int ldv_irq_line_3_0 ; int ldv_state_variable_41 ; int ldv_state_variable_40 ; void *ldv_irq_data_6_1 ; struct inode *fops_pmccfg_group1 ; void *ldv_irq_data_3_3 ; int ldv_irq_line_3_2 ; int ldv_state_variable_10 ; int ldv_work_7_0 ; struct file *fops_back_group2 ; struct work_struct *ldv_work_struct_12_0 ; struct inode *fops_ssid_group1 ; struct timer_list *ldv_timer_list_14_2 ; int ldv_work_10_1 ; int ldv_irq_line_2_1 ; void *ldv_irq_data_6_2 ; struct work_struct *ldv_work_struct_7_3 ; int ldv_state_variable_2 ; int ldv_state_variable_25 ; struct trace_event_call *event_class_wil6210_log_event_group0 ; struct timer_list *ldv_timer_list_14_1 ; struct inode *fops_recovery_group1 ; struct work_struct *ldv_work_struct_10_0 ; void *ldv_irq_data_2_0 ; int ldv_state_variable_11 ; int ldv_timer_14_1 ; int ldv_state_variable_18 ; struct file *fops_freq_group2 ; struct file *fops_ioblob_group2 ; struct kernel_param const *mtu_max_ops_group0 ; int ldv_irq_line_4_1 ; struct inode *fops_pmcdata_group1 ; struct work_struct *ldv_work_struct_9_1 ; int ldv_irq_line_5_3 ; int ldv_state_variable_32 ; int ldv_work_11_3 ; struct net_device *wil_cfg80211_ops_group3 ; struct net_device *wil_ethtool_ops_group1 ; int ldv_work_11_2 ; int pci_counter ; int ldv_state_variable_30 ; int ldv_irq_line_6_0 ; struct net_device *wil_netdev_ops_group1 ; int ldv_work_8_1 ; struct inode *fops_sta_group1 ; int ldv_state_variable_0 ; int ldv_state_variable_45 ; void *ldv_irq_data_5_3 ; struct trace_event_call *event_class_wil6210_wmi_group0 ; int ldv_state_variable_12 ; struct work_struct *ldv_work_struct_13_1 ; struct inode *fops_reset_group1 ; int ldv_irq_line_4_3 ; int ldv_state_variable_22 ; int ldv_state_variable_29 ; struct work_struct *ldv_work_struct_8_1 ; struct file *fops_txdesc_group2 ; int ldv_work_9_0 ; int ref_cnt ; int ldv_irq_line_1_1 ; struct work_struct *ldv_work_struct_10_3 ; struct work_struct *ldv_work_struct_8_3 ; int ldv_state_variable_23 ; struct timer_list *ldv_timer_list_15_2 ; void *ldv_irq_data_2_1 ; int ldv_state_variable_6 ; void *ldv_irq_data_1_3 ; struct timer_list *ldv_timer_list_15_1 ; int ldv_state_variable_50 ; void *ldv_irq_data_5_0 ; struct file *fops_temp_group2 ; int ldv_state_variable_44 ; void *ldv_irq_data_4_1 ; int ldv_state_variable_38 ; int ldv_state_variable_39 ; struct file *fops_info_group2 ; int ldv_state_variable_56 ; int ldv_state_variable_3 ; int ldv_irq_line_1_0 ; void *ldv_irq_data_3_2 ; void *ldv_irq_data_6_3 ; struct work_struct *ldv_work_struct_12_1 ; int ldv_state_variable_52 ; int ldv_work_11_0 ; struct inode *fops_freq_group1 ; struct work_struct *ldv_work_struct_11_2 ; int ldv_state_variable_4 ; struct work_struct *ldv_work_struct_9_0 ; int ldv_timer_14_2 ; struct work_struct *ldv_work_struct_9_3 ; int ldv_work_10_2 ; int ldv_irq_line_3_3 ; int ldv_state_variable_36 ; int ldv_work_9_2 ; struct file *fops_txmgmt_group2 ; struct work_struct *ldv_work_struct_13_0 ; struct file *fops_pmccfg_group2 ; int ldv_state_variable_48 ; int ldv_timer_14_3 ; int ldv_work_9_1 ; int ldv_timer_15_2 ; int ldv_state_variable_5 ; int ldv_state_variable_13 ; int ldv_irq_line_5_2 ; void *ldv_irq_data_4_3 ; struct wiphy *wil_cfg80211_ops_group2 ; int ldv_work_13_3 ; struct file *fops_vring_group2 ; struct station_info *wil_cfg80211_ops_group1 ; struct trace_event_call *event_class_wil6210_irq_pseudo_group0 ; int ldv_work_11_1 ; int ldv_state_variable_49 ; int ldv_state_variable_24 ; int ldv_work_7_3 ; struct file *wil_fops_ulong_group2 ; struct inode *fops_temp_group1 ; int ldv_work_12_0 ; int ldv_state_variable_1 ; struct file *fops_bf_group2 ; int ldv_irq_line_1_2 ; int ldv_timer_14_0 ; int ldv_irq_line_2_3 ; int ldv_work_12_1 ; struct timer_list *ldv_timer_list_14_0 ; struct file *fops_mbox_group2 ; void *ldv_irq_data_1_1 ; struct work_struct *ldv_work_struct_10_2 ; void *ldv_irq_data_4_2 ; struct inode *wil_fops_ulong_group1 ; void *ldv_irq_data_3_1 ; struct file *fops_memread_group2 ; void *ldv_irq_data_5_1 ; struct work_struct *ldv_work_struct_8_2 ; int ldv_state_variable_16 ; struct work_struct *ldv_work_struct_12_2 ; int ldv_state_variable_43 ; int ldv_state_variable_57 ; void *ldv_irq_data_1_2 ; int ldv_irq_line_5_1 ; struct file *fops_pmcdata_group2 ; struct inode *fops_wmi_group1 ; int ldv_state_variable_53 ; struct ethtool_coalesce *wil_ethtool_ops_group0 ; struct file *fops_reset_group2 ; struct kernel_param const *ring_order_ops_group0 ; int ldv_irq_line_1_3 ; struct inode *fops_bf_group1 ; int ldv_work_8_2 ; struct inode *fops_info_group1 ; int ldv_state_variable_34 ; int ldv_work_10_3 ; struct inode *fops_link_group1 ; int ldv_state_variable_35 ; struct work_struct *ldv_work_struct_11_3 ; void ldv_file_operations_41(void) ; void ldv_initialize_trace_event_class_22(void) ; void ldv_file_operations_40(void) ; void ldv_file_operations_50(void) ; void ldv_file_operations_51(void) ; void ldv_initialize_trace_event_class_19(void) ; void ldv_file_operations_34(void) ; void ldv_file_operations_39(void) ; void ldv_initialize_ethtool_ops_16(void) ; void ldv_file_operations_31(void) ; void ldv_initialize_trace_event_class_21(void) ; void ldv_initialize_trace_event_class_18(void) ; void ldv_file_operations_42(void) ; void ldv_file_operations_33(void) ; void ldv_file_operations_48(void) ; void ldv_file_operations_49(void) ; void ldv_file_operations_32(void) ; void ldv_initialize_trace_event_class_17(void) ; void ldv_file_operations_45(void) ; void ldv_file_operations_43(void) ; void ldv_file_operations_38(void) ; void ldv_file_operations_35(void) ; void ldv_file_operations_46(void) ; void ldv_initialize_trace_event_class_20(void) ; void ldv_file_operations_44(void) ; void ldv_pci_driver_53(void) ; void ldv_file_operations_37(void) ; void ldv_file_operations_36(void) ; void ldv_initialize_trace_event_class_23(void) ; void ldv_file_operations_52(void) ; void ldv_file_operations_47(void) ; __inline static void *dev_get_drvdata(struct device const *dev ) { { return ((void *)dev->driver_data); } } __inline static void dev_set_drvdata(struct device *dev , void *data ) { { dev->driver_data = data; return; } } extern void _dev_info(struct device const * , char const * , ...) ; extern int pci_enable_device(struct pci_dev * ) ; extern void pci_disable_device(struct pci_dev * ) ; extern void pci_set_master(struct pci_dev * ) ; extern void pci_clear_master(struct pci_dev * ) ; extern int pci_request_region(struct pci_dev * , int , char const * ) ; extern void pci_release_region(struct pci_dev * , int ) ; extern int __pci_register_driver(struct pci_driver * , struct module * , char const * ) ; int ldv___pci_register_driver_206(struct pci_driver *ldv_func_arg1 , struct module *ldv_func_arg2 , char const *ldv_func_arg3 ) ; extern void pci_unregister_driver(struct pci_driver * ) ; void ldv_pci_unregister_driver_207(struct pci_driver *ldv_func_arg1 ) ; extern void pci_disable_msi(struct pci_dev * ) ; extern int pci_enable_msi_range(struct pci_dev * , int , int ) ; __inline static int pci_enable_msi_exact(struct pci_dev *dev , int nvec ) { int rc ; int tmp ; { tmp = pci_enable_msi_range(dev, nvec, nvec); rc = tmp; if (rc < 0) { return (rc); } else { } return (0); } } __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; } } extern void *pci_ioremap_bar(struct pci_dev * , int ) ; int ldv_request_threaded_irq_201(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; extern void disable_irq(unsigned int ) ; extern void enable_irq(unsigned int ) ; void *wil_platform_init(struct device *dev , struct wil_platform_ops *ops ) ; int wil_platform_modinit(void) ; void wil_platform_modexit(void) ; int wil6210_init_irq(struct wil6210_priv *wil , int irq ) ; void wil6210_fini_irq(struct wil6210_priv *wil , int irq ) ; int wil6210_debugfs_init(struct wil6210_priv *wil ) ; void wil6210_debugfs_remove(struct wil6210_priv *wil ) ; static int use_msi = 1; static void wil_set_capabilities(struct wil6210_priv *wil ) { u32 rev_id ; unsigned int tmp ; { tmp = ioread32(wil->csr + 2868UL); rev_id = tmp; bitmap_zero((unsigned long *)(& wil->hw_capabilities), 0U); switch (rev_id) { case 640812847U: wil->hw_name = "Sparrow B0"; wil->hw_version = 1U; goto ldv_50774; default: wil_err(wil, "Unknown board hardware 0x%08x\n", rev_id); wil->hw_name = "Unknown"; wil->hw_version = 0U; } ldv_50774: wil_info(wil, "Board hardware is %s\n", wil->hw_name); return; } } void wil_disable_irq(struct wil6210_priv *wil ) { int irq ; { irq = (int )(wil->pdev)->irq; disable_irq((unsigned int )irq); if (wil->n_msi == 3) { disable_irq((unsigned int )(irq + 1)); disable_irq((unsigned int )(irq + 2)); } else { } return; } } void wil_enable_irq(struct wil6210_priv *wil ) { int irq ; { irq = (int )(wil->pdev)->irq; enable_irq((unsigned int )irq); if (wil->n_msi == 3) { enable_irq((unsigned int )(irq + 1)); enable_irq((unsigned int )(irq + 2)); } else { } return; } } static int wil_if_pcie_enable(struct wil6210_priv *wil ) { struct pci_dev *pdev ; int rc ; int msi_only ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; int tmp___2 ; int tmp___3 ; { pdev = wil->pdev; msi_only = (int )pdev->msi_enabled; descriptor.modname = "wil6210"; descriptor.function = "wil_if_pcie_enable"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pcie_bus.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 84U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_if_pcie_enable"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_if_pcie_enable"); pdev->msi_enabled = 0U; pci_set_master(pdev); switch (use_msi) { case 3: ; case 1: descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_if_pcie_enable"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pcie_bus.c"; descriptor___0.format = "DBG[MISC]Setup %d MSI interrupts\n"; descriptor___0.lineno = 96U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Setup %d MSI interrupts\n", use_msi); } else { } wil_dbg_trace(wil, "DBG[MISC]Setup %d MSI interrupts\n", use_msi); goto ldv_50795; case 0: descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_if_pcie_enable"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pcie_bus.c"; descriptor___1.format = "DBG[MISC]MSI interrupts disabled, use INTx\n"; descriptor___1.lineno = 99U; descriptor___1.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]MSI interrupts disabled, use INTx\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]MSI interrupts disabled, use INTx\n"); goto ldv_50795; default: wil_err(wil, "Invalid use_msi=%d, default to 1\n", use_msi); use_msi = 1; } ldv_50795: ; if (use_msi == 3) { tmp___2 = pci_enable_msi_range(pdev, 3, 3); if (tmp___2 < 0) { wil_err(wil, "3 MSI mode failed, try 1 MSI\n"); use_msi = 1; } else { } } else { } if (use_msi == 1) { tmp___3 = pci_enable_msi_exact(pdev, 1); if (tmp___3 != 0) { wil_err(wil, "pci_enable_msi failed, use INTx\n"); use_msi = 0; } else { } } else { } wil->n_msi = use_msi; if (wil->n_msi == 0 && msi_only != 0) { wil_err(wil, "Interrupt pin not routed, unable to use INTx\n"); rc = -19; goto stop_master; } else { } rc = wil6210_init_irq(wil, (int )pdev->irq); if (rc != 0) { goto stop_master; } else { } ldv_mutex_lock_204(& wil->mutex); rc = wil_reset(wil, 0); ldv_mutex_unlock_205(& wil->mutex); if (rc != 0) { goto release_irq; } else { } return (0); release_irq: wil6210_fini_irq(wil, (int )pdev->irq); pci_disable_msi(pdev); stop_master: pci_clear_master(pdev); return (rc); } } static int wil_if_pcie_disable(struct wil6210_priv *wil ) { struct pci_dev *pdev ; struct _ddebug descriptor ; long tmp ; { pdev = wil->pdev; descriptor.modname = "wil6210"; descriptor.function = "wil_if_pcie_disable"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pcie_bus.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 150U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_if_pcie_disable"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_if_pcie_disable"); pci_clear_master(pdev); wil6210_fini_irq(wil, (int )pdev->irq); pci_disable_msi(pdev); return (0); } } static int wil_pcie_probe(struct pci_dev *pdev , struct pci_device_id const *id ) { struct wil6210_priv *wil ; struct device *dev ; int rc ; void *tmp ; long tmp___0 ; bool tmp___1 ; { dev = & pdev->dev; _dev_info((struct device const *)(& pdev->dev), "wil6210 device found [%04x:%04x] (rev %x)\n", (int )pdev->vendor, (int )pdev->device, (int )pdev->revision); if ((pdev->resource[0].start == 0ULL && pdev->resource[0].end == pdev->resource[0].start) || pdev->resource[0].end - pdev->resource[0].start != 2097151ULL) { dev_err((struct device const *)(& pdev->dev), "Not wil6210? BAR0 size is %lu while expecting %lu\n", pdev->resource[0].start != 0ULL || pdev->resource[0].end != pdev->resource[0].start ? (unsigned long )((pdev->resource[0].end - pdev->resource[0].start) + 1ULL) : 0UL, 2097152UL); return (-19); } else { } tmp = wil_if_alloc(dev); wil = (struct wil6210_priv *)tmp; tmp___1 = IS_ERR((void const *)wil); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)wil); rc = (int )tmp___0; dev_err((struct device const *)dev, "wil_if_alloc failed: %d\n", rc); return (rc); } else { } wil->pdev = pdev; pci_set_drvdata(pdev, (void *)wil); wil->platform_handle = wil_platform_init(& pdev->dev, & wil->platform_ops); if ((unsigned long )wil->platform_handle == (unsigned long )((void *)0)) { rc = -19; wil_err(wil, "wil_platform_init failed\n"); goto if_free; } else { } rc = pci_enable_device(pdev); if (rc != 0) { wil_err(wil, "pci_enable_device failed, retry with MSI only\n"); pdev->msi_enabled = 1U; rc = pci_enable_device(pdev); } else { } if (rc != 0) { wil_err(wil, "pci_enable_device failed, even with MSI only\n"); goto err_plat; } else { } rc = pci_request_region(pdev, 0, "wil6210"); if (rc != 0) { wil_err(wil, "pci_request_region failed\n"); goto err_disable_pdev; } else { } wil->csr = pci_ioremap_bar(pdev, 0); if ((unsigned long )wil->csr == (unsigned long )((void *)0)) { wil_err(wil, "pci_ioremap_bar failed\n"); rc = -19; goto err_release_reg; } else { } wil_info(wil, "CSR at %pR -> 0x%p\n", (struct resource *)(& pdev->resource), wil->csr); wil_set_capabilities(wil); wil6210_clear_irq(wil); rc = wil_if_pcie_enable(wil); if (rc != 0) { wil_err(wil, "Enable device failed\n"); goto err_iounmap; } else { } rc = wil_if_add(wil); if (rc != 0) { wil_err(wil, "wil_if_add failed: %d\n", rc); goto bus_disable; } else { } wil6210_debugfs_init(wil); return (0); bus_disable: wil_if_pcie_disable(wil); err_iounmap: pci_iounmap(pdev, wil->csr); err_release_reg: pci_release_region(pdev, 0); err_disable_pdev: pci_disable_device(pdev); err_plat: ; if ((unsigned long )wil->platform_ops.uninit != (unsigned long )((void (*)(void * ))0)) { (*(wil->platform_ops.uninit))(wil->platform_handle); } else { } if_free: wil_if_free(wil); return (rc); } } static void wil_pcie_remove(struct pci_dev *pdev ) { struct wil6210_priv *wil ; void *tmp ; void *csr ; struct _ddebug descriptor ; long tmp___0 ; { tmp = pci_get_drvdata(pdev); wil = (struct wil6210_priv *)tmp; csr = wil->csr; descriptor.modname = "wil6210"; descriptor.function = "wil_pcie_remove"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pcie_bus.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 276U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_pcie_remove"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_pcie_remove"); wil6210_debugfs_remove(wil); wil_if_remove(wil); wil_if_pcie_disable(wil); pci_iounmap(pdev, csr); pci_release_region(pdev, 0); pci_disable_device(pdev); if ((unsigned long )wil->platform_ops.uninit != (unsigned long )((void (*)(void * ))0)) { (*(wil->platform_ops.uninit))(wil->platform_handle); } else { } wil_if_free(wil); return; } } static struct pci_device_id const wil6210_pcie_ids[3U] = { {6889U, 784U, 4294967295U, 4294967295U, 0U, 0U, 0UL}, {6889U, 770U, 4294967295U, 4294967295U, 0U, 0U, 0UL}}; struct pci_device_id const __mod_pci__wil6210_pcie_ids_device_table[3U] ; static struct pci_driver wil6210_driver = {{0, 0}, "wil6210", (struct pci_device_id const *)(& wil6210_pcie_ids), & wil_pcie_probe, & wil_pcie_remove, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0, 0, (_Bool)0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {{{{{{0}}, 0U, 0U, 0, {0, {0, 0}, 0, 0, 0UL}}}}, {0, 0}}}; static int wil6210_driver_init(void) { int rc ; { rc = wil_platform_modinit(); if (rc != 0) { return (rc); } else { } rc = ldv___pci_register_driver_206(& wil6210_driver, & __this_module, "wil6210"); if (rc != 0) { wil_platform_modexit(); } else { } return (rc); } } static void wil6210_driver_exit(void) { { ldv_pci_unregister_driver_207(& wil6210_driver); wil_platform_modexit(); return; } } int ldv_retval_12 ; extern int ldv_shutdown_53(void) ; extern void ldv_initialize(void) ; void ldv_check_final_state(void) ; int ldv_retval_9 ; void ldv_pci_driver_53(void) { void *tmp ; { tmp = ldv_init_zalloc(2976UL); wil6210_driver_group1 = (struct pci_dev *)tmp; return; } } void ldv_main_exported_27(void) ; void ldv_main_exported_25(void) ; void ldv_main_exported_28(void) ; void ldv_main_exported_21(void) ; void ldv_main_exported_26(void) ; void ldv_main_exported_17(void) ; void ldv_main_exported_20(void) ; void ldv_main_exported_22(void) ; void ldv_main_exported_18(void) ; void ldv_main_exported_30(void) ; void ldv_main_exported_24(void) ; void ldv_main_exported_19(void) ; void ldv_main_exported_23(void) ; void ldv_main_exported_29(void) ; void ldv_main_exported_16(void) ; void ldv_main_exported_35(void) ; void ldv_main_exported_33(void) ; void ldv_main_exported_32(void) ; void ldv_main_exported_48(void) ; void ldv_main_exported_42(void) ; void ldv_main_exported_46(void) ; void ldv_main_exported_44(void) ; void ldv_main_exported_50(void) ; void ldv_main_exported_39(void) ; void ldv_main_exported_36(void) ; void ldv_main_exported_40(void) ; void ldv_main_exported_51(void) ; void ldv_main_exported_41(void) ; void ldv_main_exported_47(void) ; void ldv_main_exported_52(void) ; void ldv_main_exported_38(void) ; void ldv_main_exported_34(void) ; void ldv_main_exported_49(void) ; void ldv_main_exported_37(void) ; void ldv_main_exported_45(void) ; void ldv_main_exported_43(void) ; void ldv_main_exported_31(void) ; int main(void) { struct pci_device_id *ldvarg72 ; void *tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { tmp = ldv_init_zalloc(32UL); ldvarg72 = (struct pci_device_id *)tmp; ldv_initialize(); ldv_state_variable_33 = 0; ldv_state_variable_32 = 0; ldv_state_variable_21 = 0; work_init_7(); ldv_state_variable_7 = 1; ldv_state_variable_26 = 0; ldv_state_variable_17 = 0; ldv_state_variable_2 = 1; ldv_state_variable_1 = 1; ldv_state_variable_18 = 0; ldv_state_variable_30 = 0; ldv_state_variable_16 = 0; ldv_state_variable_44 = 0; ldv_state_variable_55 = 0; ldv_state_variable_27 = 0; ldv_state_variable_25 = 0; ldv_state_variable_28 = 0; ldv_state_variable_57 = 0; ldv_state_variable_40 = 0; ldv_state_variable_20 = 0; timer_init_14(); ldv_state_variable_14 = 1; ldv_state_variable_49 = 0; ldv_state_variable_24 = 0; work_init_10(); ldv_state_variable_10 = 1; ldv_state_variable_31 = 0; ldv_state_variable_35 = 0; work_init_11(); ldv_state_variable_11 = 1; ldv_state_variable_53 = 0; ldv_state_variable_48 = 0; ldv_state_variable_42 = 0; ldv_state_variable_22 = 0; ref_cnt = 0; ldv_state_variable_0 = 1; ldv_state_variable_46 = 0; work_init_13(); ldv_state_variable_13 = 1; ldv_state_variable_23 = 0; ldv_state_variable_29 = 0; ldv_state_variable_6 = 1; ldv_state_variable_50 = 0; ldv_state_variable_39 = 0; ldv_state_variable_36 = 0; ldv_state_variable_3 = 1; ldv_state_variable_51 = 0; work_init_9(); ldv_state_variable_9 = 1; ldv_state_variable_41 = 0; work_init_12(); ldv_state_variable_12 = 1; ldv_state_variable_47 = 0; timer_init_15(); ldv_state_variable_15 = 1; ldv_state_variable_52 = 0; ldv_state_variable_38 = 0; work_init_8(); ldv_state_variable_8 = 1; ldv_state_variable_4 = 1; ldv_state_variable_34 = 0; ldv_state_variable_56 = 0; ldv_state_variable_45 = 0; ldv_state_variable_37 = 0; ldv_state_variable_43 = 0; ldv_state_variable_19 = 0; ldv_state_variable_54 = 0; ldv_state_variable_5 = 1; ldv_51023: tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_33 != 0) { ldv_main_exported_33(); } else { } goto ldv_50954; case 1: ; if (ldv_state_variable_32 != 0) { ldv_main_exported_32(); } else { } goto ldv_50954; case 2: ; if (ldv_state_variable_21 != 0) { ldv_main_exported_21(); } else { } goto ldv_50954; case 3: ; goto ldv_50954; case 4: ; if (ldv_state_variable_26 != 0) { ldv_main_exported_26(); } else { } goto ldv_50954; case 5: ; if (ldv_state_variable_17 != 0) { ldv_main_exported_17(); } else { } goto ldv_50954; case 6: ; goto ldv_50954; case 7: ; goto ldv_50954; case 8: ; if (ldv_state_variable_18 != 0) { ldv_main_exported_18(); } else { } goto ldv_50954; case 9: ; if (ldv_state_variable_30 != 0) { ldv_main_exported_30(); } else { } goto ldv_50954; case 10: ; if (ldv_state_variable_16 != 0) { ldv_main_exported_16(); } else { } goto ldv_50954; case 11: ; if (ldv_state_variable_44 != 0) { ldv_main_exported_44(); } else { } goto ldv_50954; case 12: ; if (ldv_state_variable_55 != 0) { ldv_main_exported_55(); } else { } goto ldv_50954; case 13: ; if (ldv_state_variable_27 != 0) { ldv_main_exported_27(); } else { } goto ldv_50954; case 14: ; if (ldv_state_variable_25 != 0) { ldv_main_exported_25(); } else { } goto ldv_50954; case 15: ; if (ldv_state_variable_28 != 0) { ldv_main_exported_28(); } else { } goto ldv_50954; case 16: ; if (ldv_state_variable_57 != 0) { ldv_main_exported_57(); } else { } goto ldv_50954; case 17: ; if (ldv_state_variable_40 != 0) { ldv_main_exported_40(); } else { } goto ldv_50954; case 18: ; if (ldv_state_variable_20 != 0) { ldv_main_exported_20(); } else { } goto ldv_50954; case 19: ; goto ldv_50954; case 20: ; if (ldv_state_variable_49 != 0) { ldv_main_exported_49(); } else { } goto ldv_50954; case 21: ; if (ldv_state_variable_24 != 0) { ldv_main_exported_24(); } else { } goto ldv_50954; case 22: ; goto ldv_50954; case 23: ; if (ldv_state_variable_31 != 0) { ldv_main_exported_31(); } else { } goto ldv_50954; case 24: ; if (ldv_state_variable_35 != 0) { ldv_main_exported_35(); } else { } goto ldv_50954; case 25: ; goto ldv_50954; case 26: ; if (ldv_state_variable_53 != 0) { tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_53 == 1) { ldv_retval_9 = wil_pcie_probe(wil6210_driver_group1, (struct pci_device_id const *)ldvarg72); if (ldv_retval_9 == 0) { ldv_state_variable_53 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_50982; case 1: ; if (ldv_state_variable_53 == 2) { wil_pcie_remove(wil6210_driver_group1); ldv_state_variable_53 = 1; } else { } goto ldv_50982; case 2: ; if (ldv_state_variable_53 == 2) { ldv_shutdown_53(); ldv_state_variable_53 = 2; } else { } goto ldv_50982; default: ldv_stop(); } ldv_50982: ; } else { } goto ldv_50954; case 27: ; if (ldv_state_variable_48 != 0) { ldv_main_exported_48(); } else { } goto ldv_50954; case 28: ; if (ldv_state_variable_42 != 0) { ldv_main_exported_42(); } else { } goto ldv_50954; case 29: ; if (ldv_state_variable_22 != 0) { ldv_main_exported_22(); } else { } goto ldv_50954; case 30: ; if (ldv_state_variable_0 != 0) { tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_0 == 2 && ref_cnt == 0) { wil6210_driver_exit(); ldv_state_variable_0 = 3; goto ldv_final; } else { } goto ldv_50992; case 1: ; if (ldv_state_variable_0 == 1) { ldv_retval_12 = wil6210_driver_init(); if (ldv_retval_12 != 0) { ldv_state_variable_0 = 3; goto ldv_final; } else { } if (ldv_retval_12 == 0) { ldv_state_variable_0 = 2; ldv_state_variable_54 = 1; ldv_initialize_cfg80211_ops_54(); ldv_state_variable_43 = 1; ldv_file_operations_43(); ldv_state_variable_19 = 1; ldv_initialize_trace_event_class_19(); ldv_state_variable_45 = 1; ldv_file_operations_45(); ldv_state_variable_37 = 1; ldv_file_operations_37(); ldv_state_variable_56 = 1; ldv_initialize_kernel_param_ops_56(); ldv_state_variable_34 = 1; ldv_file_operations_34(); ldv_state_variable_38 = 1; ldv_file_operations_38(); ldv_state_variable_52 = 1; ldv_file_operations_52(); ldv_state_variable_47 = 1; ldv_file_operations_47(); ldv_state_variable_41 = 1; ldv_file_operations_41(); ldv_state_variable_51 = 1; ldv_file_operations_51(); ldv_state_variable_36 = 1; ldv_file_operations_36(); ldv_state_variable_39 = 1; ldv_file_operations_39(); ldv_state_variable_50 = 1; ldv_file_operations_50(); ldv_state_variable_29 = 1; ldv_state_variable_23 = 1; ldv_initialize_trace_event_class_23(); ldv_state_variable_46 = 1; ldv_file_operations_46(); ldv_state_variable_42 = 1; ldv_file_operations_42(); ldv_state_variable_22 = 1; ldv_initialize_trace_event_class_22(); ldv_state_variable_48 = 1; ldv_file_operations_48(); ldv_state_variable_35 = 1; ldv_file_operations_35(); ldv_state_variable_31 = 1; ldv_file_operations_31(); ldv_state_variable_24 = 1; ldv_state_variable_49 = 1; ldv_file_operations_49(); ldv_state_variable_20 = 1; ldv_initialize_trace_event_class_20(); ldv_state_variable_40 = 1; ldv_file_operations_40(); ldv_state_variable_57 = 1; ldv_initialize_kernel_param_ops_57(); ldv_state_variable_28 = 1; ldv_state_variable_27 = 1; ldv_state_variable_25 = 1; ldv_state_variable_44 = 1; ldv_file_operations_44(); ldv_state_variable_16 = 1; ldv_initialize_ethtool_ops_16(); ldv_state_variable_30 = 1; ldv_state_variable_18 = 1; ldv_initialize_trace_event_class_18(); ldv_state_variable_17 = 1; ldv_initialize_trace_event_class_17(); ldv_state_variable_26 = 1; ldv_state_variable_21 = 1; ldv_initialize_trace_event_class_21(); ldv_state_variable_32 = 1; ldv_file_operations_32(); ldv_state_variable_33 = 1; ldv_file_operations_33(); } else { } } else { } goto ldv_50992; default: ldv_stop(); } ldv_50992: ; } else { } goto ldv_50954; case 31: ; if (ldv_state_variable_46 != 0) { ldv_main_exported_46(); } else { } goto ldv_50954; case 32: ; goto ldv_50954; case 33: ; if (ldv_state_variable_23 != 0) { ldv_main_exported_23(); } else { } goto ldv_50954; case 34: ; if (ldv_state_variable_29 != 0) { ldv_main_exported_29(); } else { } goto ldv_50954; case 35: ; goto ldv_50954; case 36: ; if (ldv_state_variable_50 != 0) { ldv_main_exported_50(); } else { } goto ldv_50954; case 37: ; if (ldv_state_variable_39 != 0) { ldv_main_exported_39(); } else { } goto ldv_50954; case 38: ; if (ldv_state_variable_36 != 0) { ldv_main_exported_36(); } else { } goto ldv_50954; case 39: ; goto ldv_50954; case 40: ; if (ldv_state_variable_51 != 0) { ldv_main_exported_51(); } else { } goto ldv_50954; case 41: ; goto ldv_50954; case 42: ; if (ldv_state_variable_41 != 0) { ldv_main_exported_41(); } else { } goto ldv_50954; case 43: ; goto ldv_50954; case 44: ; if (ldv_state_variable_47 != 0) { ldv_main_exported_47(); } else { } goto ldv_50954; case 45: ; goto ldv_50954; case 46: ; if (ldv_state_variable_52 != 0) { ldv_main_exported_52(); } else { } goto ldv_50954; case 47: ; if (ldv_state_variable_38 != 0) { ldv_main_exported_38(); } else { } goto ldv_50954; case 48: ; goto ldv_50954; case 49: ; goto ldv_50954; case 50: ; if (ldv_state_variable_34 != 0) { ldv_main_exported_34(); } else { } goto ldv_50954; case 51: ; if (ldv_state_variable_56 != 0) { ldv_main_exported_56(); } else { } goto ldv_50954; case 52: ; if (ldv_state_variable_45 != 0) { ldv_main_exported_45(); } else { } goto ldv_50954; case 53: ; if (ldv_state_variable_37 != 0) { ldv_main_exported_37(); } else { } goto ldv_50954; case 54: ; if (ldv_state_variable_43 != 0) { ldv_main_exported_43(); } else { } goto ldv_50954; case 55: ; if (ldv_state_variable_19 != 0) { ldv_main_exported_19(); } else { } goto ldv_50954; case 56: ; if (ldv_state_variable_54 != 0) { ldv_main_exported_54(); } else { } goto ldv_50954; case 57: ; goto ldv_50954; default: ldv_stop(); } ldv_50954: ; goto ldv_51023; ldv_final: ldv_check_final_state(); return 0; } } __inline static long PTR_ERR(void const *ptr ) { long tmp ; { tmp = ldv_ptr_err(ptr); return (tmp); } } bool ldv_queue_work_on_191(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_192(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_193(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_194(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_195(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_196(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_197(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_198(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_199(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_200(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_201(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_mutex_unlock_202(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_203(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_204(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_205(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv___pci_register_driver_206(struct pci_driver *ldv_func_arg1 , struct module *ldv_func_arg2 , char const *ldv_func_arg3 ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; { tmp = __pci_register_driver(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; ldv_state_variable_53 = 1; ldv_pci_driver_53(); return (ldv_func_res); } } void ldv_pci_unregister_driver_207(struct pci_driver *ldv_func_arg1 ) { { pci_unregister_driver(ldv_func_arg1); ldv_state_variable_53 = 0; return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; extern struct pv_cpu_ops pv_cpu_ops ; extern int hex_dump_to_buffer(void const * , size_t , int , int , char * , size_t , bool ) ; extern void __might_fault(char const * , int ) ; extern int kstrtoll(char const * , unsigned int , long long * ) ; __inline static int kstrtol(char const *s , unsigned int base , long *res ) { int tmp ; { tmp = kstrtoll(s, base, (long long *)res); return (tmp); } } extern int sprintf(char * , char const * , ...) ; extern int snprintf(char * , size_t , char const * , ...) ; extern int sscanf(char const * , char const * , ...) ; bool ldv_is_err_or_null(void const *ptr ) ; extern size_t strlen(char const * ) ; extern int strcmp(char const * , char const * ) ; __inline static u64 paravirt_read_tsc(void) { u64 __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_cpu_ops.read_tsc == (unsigned long )((u64 (*)(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 *)"./arch/x86/include/asm/paravirt.h"), "i" (179), "i" (12UL)); ldv_4012: ; goto ldv_4012; } else { } __asm__ volatile ("771:\n\tcall *%c6;\n772:\n.pushsection .parainstructions,\"a\"\n .balign 8 \n .quad 771b\n .byte %c5\n .byte 772b-771b\n .short %c7\n.popsection\n": "=D" (__edi), "=S" (__esi), "=d" (__edx), "=c" (__ecx), "=a" (__eax): [paravirt_typenum] "i" (34UL), [paravirt_opptr] "i" (& pv_cpu_ops.read_tsc), [paravirt_clobber] "i" (511): "memory", "cc", "r8", "r9", "r10", "r11"); __ret = (unsigned long long )__eax; return (__ret); } } __inline static void *ERR_PTR(long error ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static bool IS_ERR_OR_NULL(void const *ptr ) ; extern void __xchg_wrong_size(void) ; __inline static void atomic_inc(atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; incl %0": "+m" (v->counter)); return; } } __inline static int atomic_xchg(atomic_t *v , int new ) { int __ret ; { __ret = new; switch (4UL) { case 1UL: __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5631; case 2UL: __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5631; case 4UL: __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5631; case 8UL: __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (v->counter): : "memory", "cc"); goto ldv_5631; default: __xchg_wrong_size(); } ldv_5631: ; return (__ret); } } int ldv_mutex_trylock_239(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_235(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_236(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_240(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_234(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_237(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_238(struct mutex *ldv_func_arg1 ) ; __inline static cycles_t get_cycles(void) { unsigned long long ret ; { ret = 0ULL; ret = paravirt_read_tsc(); return (ret); } } bool ldv_queue_work_on_229(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_231(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_230(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_233(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_232(struct workqueue_struct *ldv_func_arg1 ) ; extern loff_t default_llseek(struct file * , loff_t , int ) ; extern loff_t generic_file_llseek(struct file * , loff_t , int ) ; extern int simple_open(struct inode * , struct file * ) ; extern ssize_t simple_read_from_buffer(void * , size_t , loff_t * , void const * , size_t ) ; extern ssize_t simple_write_to_buffer(void * , size_t , loff_t * , void const * , size_t ) ; __inline static void __simple_attr_check_format(char const *fmt , ...) { { return; } } extern int simple_attr_open(struct inode * , struct file * , int (*)(void * , u64 * ) , int (*)(void * , u64 ) , char const * ) ; extern int simple_attr_release(struct inode * , struct file * ) ; extern ssize_t simple_attr_read(struct file * , char * , size_t , loff_t * ) ; extern ssize_t simple_attr_write(struct file * , char const * , size_t , loff_t * ) ; 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_puts(struct seq_file * , char const * ) ; extern int seq_printf(struct seq_file * , char const * , ...) ; extern int single_open(struct file * , int (*)(struct seq_file * , void * ) , void * ) ; extern int single_release(struct inode * , struct file * ) ; extern struct dentry *debugfs_create_file(char const * , umode_t , struct dentry * , void * , struct file_operations const * ) ; extern struct dentry *debugfs_create_dir(char const * , struct dentry * ) ; extern void debugfs_remove_recursive(struct dentry * ) ; extern struct dentry *debugfs_create_u32(char const * , umode_t , struct dentry * , u32 * ) ; extern struct dentry *debugfs_create_x32(char const * , umode_t , struct dentry * , u32 * ) ; __inline static void *lowmem_page_address(struct page const *page ) { { return ((void *)((unsigned long )((unsigned long long )(((long )page + 24189255811072L) / 64L) << 12) + 0xffff880000000000UL)); } } extern unsigned long _copy_from_user(void * , void const * , unsigned int ) ; extern unsigned long _copy_to_user(void * , void const * , unsigned int ) ; extern void __copy_from_user_overflow(void) ; extern void __copy_to_user_overflow(void) ; __inline static unsigned long copy_from_user(void *to , void const *from , unsigned long n ) { int sz ; unsigned long tmp ; long tmp___0 ; { tmp = __builtin_object_size((void const *)to, 0); sz = (int )tmp; __might_fault("./arch/x86/include/asm/uaccess.h", 697); tmp___0 = ldv__builtin_expect((long )(sz < 0 || (unsigned long )sz >= n), 1L); if (tmp___0 != 0L) { n = _copy_from_user(to, from, (unsigned int )n); } else { __copy_from_user_overflow(); } return (n); } } __inline static unsigned long copy_to_user(void *to , void const *from , unsigned long n ) { int sz ; unsigned long tmp ; long tmp___0 ; { tmp = __builtin_object_size(from, 0); sz = (int )tmp; __might_fault("./arch/x86/include/asm/uaccess.h", 732); tmp___0 = ldv__builtin_expect((long )(sz < 0 || (unsigned long )sz >= n), 1L); if (tmp___0 != 0L) { n = _copy_to_user(to, from, (unsigned int )n); } else { __copy_to_user_overflow(); } return (n); } } __inline static unsigned int skb_frag_size(skb_frag_t const *frag ) { { return ((unsigned int )frag->size); } } extern void kfree_skb(struct sk_buff * ) ; __inline static unsigned char *skb_end_pointer(struct sk_buff const *skb ) { { return ((unsigned char *)skb->head + (unsigned long )skb->end); } } __inline static struct sk_buff *skb_get(struct sk_buff *skb ) { { atomic_inc(& skb->users); return (skb); } } __inline static unsigned int skb_headlen(struct sk_buff const *skb ) { { return ((unsigned int )skb->len - (unsigned int )skb->data_len); } } __inline static struct page *skb_frag_page(skb_frag_t const *frag ) { { return ((struct page *)frag->page.p); } } __inline static void *skb_frag_address_safe(skb_frag_t const *frag ) { void *ptr ; struct page *tmp ; void *tmp___0 ; long tmp___1 ; { tmp = skb_frag_page(frag); tmp___0 = lowmem_page_address((struct page const *)tmp); ptr = tmp___0; tmp___1 = ldv__builtin_expect((unsigned long )ptr == (unsigned long )((void *)0), 0L); if (tmp___1 != 0L) { return ((void *)0); } else { } return (ptr + (unsigned long )frag->page_offset); } } int ldv_request_threaded_irq_241(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; extern int dev_close(struct net_device * ) ; extern void rtnl_lock(void) ; extern void rtnl_unlock(void) ; extern int power_supply_is_system_supplied(void) ; u32 vring_idle_trsh ; struct fw_map const fw_mapping[8U] ; __inline static u8 mk_cidxtid(u8 cid , u8 tid ) { { return ((u8 )((int )((signed char )((int )tid << 4)) | ((int )((signed char )cid) & 15))); } } void *wmi_buffer(struct wil6210_priv *wil , __le32 ptr_ ) ; void *wmi_addr(struct wil6210_priv *wil , u32 ptr ) ; int wmi_read_hdr(struct wil6210_priv *wil , __le32 ptr , struct wil6210_mbox_hdr *hdr ) ; int wmi_get_temperature(struct wil6210_priv *wil , u32 *t_bb , u32 *t_rf ) ; int wmi_addba(struct wil6210_priv *wil , u8 ringid , u8 size , u16 timeout ) ; int wmi_delba_tx(struct wil6210_priv *wil , u8 ringid , u16 reason ) ; int wmi_delba_rx(struct wil6210_priv *wil , u8 cidxtid , u16 reason ) ; void wil_pmc_init(struct wil6210_priv *wil ) ; void wil_pmc_alloc(struct wil6210_priv *wil , int num_descriptors , int descriptor_size ) ; void wil_pmc_free(struct wil6210_priv *wil , int send_pmc_cmd ) ; int wil_pmc_last_cmd_status(struct wil6210_priv *wil ) ; ssize_t wil_pmc_read(struct file *filp , char *buf , size_t count , loff_t *f_pos ) ; loff_t wil_pmc_llseek(struct file *filp , loff_t off , int whence ) ; static u32 mem_addr ; static u32 dbg_txdesc_index ; static u32 dbg_vring_index ; u32 vring_idle_trsh = 16U; static void wil_print_vring(struct seq_file *s , struct wil6210_priv *wil , char const *name , struct vring *vring , char _s , char _h ) { void *x ; void *tmp ; u32 v ; uint i ; struct vring_tx_desc volatile *d ; { tmp = wmi_addr(wil, vring->hwtail); x = tmp; seq_printf(s, "VRING %s = {\n", name); seq_printf(s, " pa = %pad\n", & vring->pa); seq_printf(s, " va = 0x%p\n", vring->va); seq_printf(s, " size = %d\n", (int )vring->size); seq_printf(s, " swtail = %d\n", vring->swtail); seq_printf(s, " swhead = %d\n", vring->swhead); seq_printf(s, " hwtail = [0x%08x] -> ", vring->hwtail); if ((unsigned long )x != (unsigned long )((void *)0)) { v = ioread32(x); seq_printf(s, "0x%08x = %d\n", v, v); } else { seq_puts(s, "???\n"); } if ((unsigned long )vring->va != (unsigned long )((union vring_desc volatile *)0) && (unsigned int )vring->size <= 1024U) { i = 0U; goto ldv_52454; ldv_52453: d = & (vring->va + (unsigned long )i)->tx; if ((i & 63U) == 0U && i != 0U) { seq_puts(s, "\n"); } else { } seq_printf(s, "%c", (int )d->dma.status & 1 ? (int )_s : ((unsigned long )(vring->ctx + (unsigned long )i)->skb != (unsigned long )((struct sk_buff *)0) ? (int )_h : 104)); i = i + 1U; ldv_52454: ; if ((uint )vring->size > i) { goto ldv_52453; } else { } seq_puts(s, "\n"); } else { } seq_puts(s, "}\n"); return; } } static int wil_vring_debugfs_show(struct seq_file *s , void *data ) { uint i ; struct wil6210_priv *wil ; struct vring *vring ; struct vring_tx_data *txdata ; int cid ; int tid ; u32 swhead ; u32 swtail ; int used ; int avail ; char name[10U] ; char sidle[10U] ; cycles_t now ; cycles_t tmp ; uint64_t idle ; uint64_t total ; uint32_t __base ; uint32_t __rem ; { wil = (struct wil6210_priv *)s->private; wil_print_vring(s, wil, "rx", & wil->vring_rx, 83, 95); i = 0U; goto ldv_52481; ldv_52480: vring = (struct vring *)(& wil->vring_tx) + (unsigned long )i; txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )i; if ((unsigned long )vring->va != (unsigned long )((union vring_desc volatile *)0)) { cid = (int )wil->vring2cid_tid[i][0]; tid = (int )wil->vring2cid_tid[i][1]; swhead = vring->swhead; swtail = vring->swtail; used = (int )((((u32 )vring->size + swhead) - swtail) % (u32 )vring->size); avail = ((int )vring->size - used) + -1; tmp = get_cycles(); now = tmp; idle = txdata->idle * 100ULL; total = now - txdata->begin; if (total != 0ULL) { __base = (uint32_t )total; __rem = (uint32_t )(idle % (uint64_t )__base); idle = idle / (uint64_t )__base; snprintf((char *)(& sidle), 10UL, "%3d%%", (int )idle); } else { snprintf((char *)(& sidle), 10UL, "N/A"); } txdata->begin = now; txdata->idle = 0ULL; snprintf((char *)(& name), 10UL, "tx_%2d", i); if (cid <= 7) { seq_printf(s, "\n%pM CID %d TID %d 1x%s BACK([%u] %u TU A%s) [%3d|%3d] idle %s\n", (u8 *)(& wil->sta[cid].addr), cid, tid, (int )txdata->dot1x_open ? (char *)"+" : (char *)"-", (int )txdata->agg_wsize, (int )txdata->agg_timeout, (unsigned int )txdata->agg_amsdu != 0U ? (char *)"+" : (char *)"-", used, avail, (char *)(& sidle)); } else { seq_printf(s, "\nBroadcast 1x%s [%3d|%3d] idle %s\n", (int )txdata->dot1x_open ? (char *)"+" : (char *)"-", used, avail, (char *)(& sidle)); } wil_print_vring(s, wil, (char const *)(& name), vring, 95, 72); } else { } i = i + 1U; ldv_52481: ; if (i <= 23U) { goto ldv_52480; } else { } return (0); } } static int wil_vring_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_vring_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_vring = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_vring_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void wil_print_ring(struct seq_file *s , char const *prefix , void *off ) { struct wil6210_priv *wil ; struct wil6210_mbox_ring r ; int rsize ; uint i ; void *tmp ; void *tmp___0 ; void *tmp___1 ; struct wil6210_mbox_ring_desc d ; struct wil6210_mbox_hdr hdr ; size_t delta ; void *x ; u16 len ; int n ; char printbuf[50U] ; unsigned char databuf[240U] ; void *src ; void *tmp___2 ; int l ; int _min1 ; int _min2 ; int tmp___3 ; { wil = (struct wil6210_priv *)s->private; wil_memcpy_fromio_32((void *)(& r), (void const volatile *)off, 16UL); wil_mbox_ring_le2cpus(& r); rsize = (int )((unsigned int )r.size / 8U); seq_printf(s, "ring %s = {\n", prefix); seq_printf(s, " base = 0x%08x\n", r.base); seq_printf(s, " size = 0x%04x bytes -> %d entries\n", (int )r.size, rsize); seq_printf(s, " tail = 0x%08x\n", r.tail); seq_printf(s, " head = 0x%08x\n", r.head); seq_printf(s, " entry size = %d\n", (int )r.entry_size); if (((unsigned int )r.size & 7U) != 0U) { seq_printf(s, " ??? size is not multiple of %zd, garbage?\n", 8UL); goto out; } else { } tmp = wmi_addr(wil, r.base); if ((unsigned long )tmp == (unsigned long )((void *)0)) { seq_puts(s, " ??? pointers are garbage?\n"); goto out; } else { tmp___0 = wmi_addr(wil, r.tail); if ((unsigned long )tmp___0 == (unsigned long )((void *)0)) { seq_puts(s, " ??? pointers are garbage?\n"); goto out; } else { tmp___1 = wmi_addr(wil, r.head); if ((unsigned long )tmp___1 == (unsigned long )((void *)0)) { seq_puts(s, " ??? pointers are garbage?\n"); goto out; } else { } } } i = 0U; goto ldv_52515; ldv_52514: delta = (unsigned long )i * 8UL; x = wil->csr + (((unsigned long )r.base + delta) + 0xffffffffff780000UL); wil_memcpy_fromio_32((void *)(& d), (void const volatile *)x, 8UL); seq_printf(s, " [%2x] %s %s%s 0x%08x", i, d.sync != 0U ? (char *)"F" : (char *)"E", (size_t )(r.tail - r.base) == delta ? (char *)"t" : (char *)" ", (size_t )(r.head - r.base) == delta ? (char *)"h" : (char *)" ", d.addr); tmp___3 = wmi_read_hdr(wil, d.addr, & hdr); if (tmp___3 == 0) { len = hdr.len; seq_printf(s, " -> %04x %04x %04x %02x\n", (int )hdr.seq, (int )len, (int )hdr.type, (int )hdr.flags); if ((unsigned int )len <= 240U) { n = 0; tmp___2 = wmi_buffer(wil, d.addr); src = tmp___2 + 8UL; wil_memcpy_fromio_32((void *)(& databuf), (void const volatile *)src, (size_t )len); goto ldv_52512; ldv_52511: _min1 = (int )len - n; _min2 = 16; l = _min1 < _min2 ? _min1 : _min2; hex_dump_to_buffer((void const *)(& databuf) + (unsigned long )n, (size_t )l, 16, 1, (char *)(& printbuf), 50UL, 0); seq_printf(s, " : %s\n", (char *)(& printbuf)); n = n + l; ldv_52512: ; if ((int )len > n) { goto ldv_52511; } else { } } else { } } else { seq_puts(s, "\n"); } i = i + 1U; ldv_52515: ; if ((uint )rsize > i) { goto ldv_52514; } else { } out: seq_puts(s, "}\n"); return; } } static int wil_mbox_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; { wil = (struct wil6210_priv *)s->private; wil_print_ring(s, "tx", wil->csr + 700UL); wil_print_ring(s, "rx", wil->csr + 716U); return (0); } } static int wil_mbox_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_mbox_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_mbox = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_mbox_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int wil_debugfs_iomem_x32_set(void *data , u64 val ) { { iowrite32((u32 )val, data); __asm__ volatile ("sfence": : : "memory"); return (0); } } static int wil_debugfs_iomem_x32_get(void *data , u64 *val ) { unsigned int tmp ; { tmp = ioread32(data); *val = (u64 )tmp; return (0); } } static int fops_iomem_x32_open(struct inode *inode , struct file *file ) { int tmp ; { __simple_attr_check_format("0x%08llx\n", 0ULL); tmp = simple_attr_open(inode, file, & wil_debugfs_iomem_x32_get, & wil_debugfs_iomem_x32_set, "0x%08llx\n"); return (tmp); } } static struct file_operations const fops_iomem_x32 = {& __this_module, & generic_file_llseek, & simple_attr_read, & simple_attr_write, 0, 0, 0, 0, 0, 0, 0, 0, & fops_iomem_x32_open, 0, & simple_attr_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static struct dentry *wil_debugfs_create_iomem_x32(char const *name , umode_t mode , struct dentry *parent , void *value ) { struct dentry *tmp ; { tmp = debugfs_create_file(name, (int )mode, parent, value, & fops_iomem_x32); return (tmp); } } static int wil_debugfs_ulong_set(void *data , u64 val ) { { *((ulong *)data) = (ulong )val; return (0); } } static int wil_debugfs_ulong_get(void *data , u64 *val ) { { *val = (u64 )*((ulong *)data); return (0); } } static int wil_fops_ulong_open(struct inode *inode , struct file *file ) { int tmp ; { __simple_attr_check_format("%llu\n", 0ULL); tmp = simple_attr_open(inode, file, & wil_debugfs_ulong_get, & wil_debugfs_ulong_set, "%llu\n"); return (tmp); } } static struct file_operations const wil_fops_ulong = {& __this_module, & generic_file_llseek, & simple_attr_read, & simple_attr_write, 0, 0, 0, 0, 0, 0, 0, 0, & wil_fops_ulong_open, 0, & simple_attr_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static struct dentry *wil_debugfs_create_ulong(char const *name , umode_t mode , struct dentry *parent , ulong *value ) { struct dentry *tmp ; { tmp = debugfs_create_file(name, (int )mode, parent, (void *)value, & wil_fops_ulong); return (tmp); } } static void wil6210_debugfs_init_offset(struct wil6210_priv *wil , struct dentry *dbg , void *base , struct dbg_off const * const tbl ) { int i ; struct dentry *f ; void *tmp ; long tmp___0 ; bool tmp___1 ; { i = 0; goto ldv_52580; ldv_52579: ; switch ((unsigned int )(tbl + (unsigned long )i)->type) { case 0U: f = debugfs_create_u32((tbl + (unsigned long )i)->name, (int )(tbl + (unsigned long )i)->mode, dbg, (u32 *)(base + (tbl + (unsigned long )i)->off)); goto ldv_52574; case 1U: f = debugfs_create_x32((tbl + (unsigned long )i)->name, (int )(tbl + (unsigned long )i)->mode, dbg, (u32 *)(base + (tbl + (unsigned long )i)->off)); goto ldv_52574; case 2U: f = wil_debugfs_create_ulong((tbl + (unsigned long )i)->name, (int )(tbl + (unsigned long )i)->mode, dbg, (ulong *)(base + (tbl + (unsigned long )i)->off)); goto ldv_52574; case 3U: f = wil_debugfs_create_iomem_x32((tbl + (unsigned long )i)->name, (int )(tbl + (unsigned long )i)->mode, dbg, base + (tbl + (unsigned long )i)->off); goto ldv_52574; default: tmp = ERR_PTR(-22L); f = (struct dentry *)tmp; } ldv_52574: tmp___1 = IS_ERR_OR_NULL((void const *)f); if ((int )tmp___1) { tmp___0 = PTR_ERR((void const *)f); wil_err(wil, "Create file \"%s\": err %ld\n", (tbl + (unsigned long )i)->name, tmp___0); } else { } i = i + 1; ldv_52580: ; if ((unsigned long )(tbl + (unsigned long )i)->name != (unsigned long )((char const */* const */)0)) { goto ldv_52579; } else { } return; } } static struct dbg_off const isr_off[8U] = { {"ICC", 420U, 0UL, 3}, {"ICR", 420U, 4UL, 3}, {"ICM", 420U, 8UL, 3}, {"ICS", 128U, 12UL, 3}, {"IMV", 420U, 16UL, 3}, {"IMS", 128U, 20UL, 3}, {"IMC", 128U, 24UL, 3}}; static int wil6210_debugfs_create_ISR(struct wil6210_priv *wil , char const *name , struct dentry *parent , u32 off ) { struct dentry *d ; struct dentry *tmp ; bool tmp___0 ; { tmp = debugfs_create_dir(name, parent); d = tmp; tmp___0 = IS_ERR_OR_NULL((void const *)d); if ((int )tmp___0) { return (-19); } else { } wil6210_debugfs_init_offset(wil, d, wil->csr + (unsigned long )off, (struct dbg_off const *)(& isr_off)); return (0); } } static struct dbg_off const pseudo_isr_off[4U] = { {"CAUSE", 292U, 7272UL, 3}, {"MASK_SW", 292U, 7276UL, 3}, {"MASK_FW", 292U, 7280UL, 3}}; static int wil6210_debugfs_create_pseudo_ISR(struct wil6210_priv *wil , struct dentry *parent ) { struct dentry *d ; struct dentry *tmp ; bool tmp___0 ; { tmp = debugfs_create_dir("PSEUDO_ISR", parent); d = tmp; tmp___0 = IS_ERR_OR_NULL((void const *)d); if ((int )tmp___0) { return (-19); } else { } wil6210_debugfs_init_offset(wil, d, wil->csr, (struct dbg_off const *)(& pseudo_isr_off)); return (0); } } static struct dbg_off const lgc_itr_cnt_off[4U] = { {"TRSH", 420U, 7260UL, 3}, {"DATA", 420U, 7264UL, 3}, {"CTL", 420U, 7268UL, 3}}; static struct dbg_off const tx_itr_cnt_off[7U] = { {"TRSH", 420U, 7476UL, 3}, {"DATA", 420U, 7480UL, 3}, {"CTL", 420U, 7484UL, 3}, {"IDL_TRSH", 420U, 7520UL, 3}, {"IDL_DATA", 420U, 7524UL, 3}, {"IDL_CTL", 420U, 7528UL, 3}}; static struct dbg_off const rx_itr_cnt_off[7U] = { {"TRSH", 420U, 7492UL, 3}, {"DATA", 420U, 7496UL, 3}, {"CTL", 420U, 7500UL, 3}, {"IDL_TRSH", 420U, 7508UL, 3}, {"IDL_DATA", 420U, 7512UL, 3}, {"IDL_CTL", 420U, 7516UL, 3}}; static int wil6210_debugfs_create_ITR_CNT(struct wil6210_priv *wil , struct dentry *parent ) { struct dentry *d ; struct dentry *dtx ; struct dentry *drx ; bool tmp ; bool tmp___0 ; bool tmp___1 ; { d = debugfs_create_dir("ITR_CNT", parent); tmp = IS_ERR_OR_NULL((void const *)d); if ((int )tmp) { return (-19); } else { } dtx = debugfs_create_dir("TX", d); drx = debugfs_create_dir("RX", d); tmp___0 = IS_ERR_OR_NULL((void const *)dtx); if ((int )tmp___0) { return (-19); } else { tmp___1 = IS_ERR_OR_NULL((void const *)drx); if ((int )tmp___1) { return (-19); } else { } } wil6210_debugfs_init_offset(wil, d, wil->csr, (struct dbg_off const *)(& lgc_itr_cnt_off)); wil6210_debugfs_init_offset(wil, dtx, wil->csr, (struct dbg_off const *)(& tx_itr_cnt_off)); wil6210_debugfs_init_offset(wil, drx, wil->csr, (struct dbg_off const *)(& rx_itr_cnt_off)); return (0); } } static int wil_memread_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; void *a ; void *tmp ; unsigned int tmp___0 ; { wil = (struct wil6210_priv *)s->private; tmp = wmi_buffer(wil, mem_addr); a = tmp; if ((unsigned long )a != (unsigned long )((void *)0)) { tmp___0 = ioread32(a); seq_printf(s, "[0x%08x] = 0x%08x\n", mem_addr, tmp___0); } else { seq_printf(s, "[0x%08x] = INVALID\n", mem_addr); } return (0); } } static int wil_memread_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_memread_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_memread = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_memread_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_read_file_ioblob(struct file *file , char *user_buf , size_t count , loff_t *ppos ) { struct debugfs_blob_wrapper *blob ; loff_t pos ; size_t available ; void *buf ; size_t ret ; { blob = (struct debugfs_blob_wrapper *)file->private_data; pos = *ppos; available = blob->size; if (pos < 0LL) { return (-22L); } else { } if ((unsigned long long )pos >= (unsigned long long )available || count == 0UL) { return (0L); } else { } if ((unsigned long long )available - (unsigned long long )pos < (unsigned long long )count) { count = (size_t )((unsigned long long )available - (unsigned long long )pos); } else { } if (count > 4096UL) { count = 4096UL; } else { } buf = kmalloc(count, 208U); if ((unsigned long )buf == (unsigned long )((void *)0)) { return (-12L); } else { } wil_memcpy_fromio_32(buf, (void const volatile *)blob->data + (unsigned long )pos, count); ret = copy_to_user((void *)user_buf, (void const *)buf, count); kfree((void const *)buf); if (ret == count) { return (-14L); } else { } count = count - ret; *ppos = (loff_t )((unsigned long long )pos + (unsigned long long )count); return ((ssize_t )count); } } static struct file_operations const fops_ioblob = {0, & default_llseek, & wil_read_file_ioblob, 0, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static struct dentry *wil_debugfs_create_ioblob(char const *name , umode_t mode , struct dentry *parent , struct debugfs_blob_wrapper *blob ) { struct dentry *tmp ; { tmp = debugfs_create_file(name, (int )mode, parent, (void *)blob, & fops_ioblob); return (tmp); } } static ssize_t wil_write_file_reset(struct file *file , char const *buf , size_t len , loff_t *ppos ) { struct wil6210_priv *wil ; struct net_device *ndev ; { wil = (struct wil6210_priv *)file->private_data; ndev = (wil->wdev)->netdev; rtnl_lock(); dev_close(ndev); ndev->flags = ndev->flags & 4294967294U; rtnl_unlock(); wil_reset(wil, 1); return ((ssize_t )len); } } static struct file_operations const fops_reset = {0, 0, 0, & wil_write_file_reset, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_write_file_rxon(struct file *file , char const *buf , size_t len , loff_t *ppos ) { struct wil6210_priv *wil ; int rc ; long channel ; bool on ; char *kbuf ; void *tmp ; unsigned long tmp___0 ; { wil = (struct wil6210_priv *)file->private_data; tmp = kmalloc(len + 1UL, 208U); kbuf = (char *)tmp; if ((unsigned long )kbuf == (unsigned long )((char *)0)) { return (-12L); } else { } tmp___0 = copy_from_user((void *)kbuf, (void const *)buf, len); if (tmp___0 != 0UL) { kfree((void const *)kbuf); return (-5L); } else { } *(kbuf + len) = 0; rc = kstrtol((char const *)kbuf, 0U, & channel); kfree((void const *)kbuf); if (rc != 0) { return ((ssize_t )rc); } else { } if (channel < 0L || channel > 4L) { wil_err(wil, "Invalid channel %ld\n", channel); return (-22L); } else { } on = channel != 0L; if ((int )on) { rc = wmi_set_channel(wil, (int )channel); if (rc != 0) { return ((ssize_t )rc); } else { } } else { } rc = wmi_rxon(wil, (int )on); if (rc != 0) { return ((ssize_t )rc); } else { } return ((ssize_t )len); } } static struct file_operations const fops_rxon = {0, 0, 0, & wil_write_file_rxon, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_write_back(struct file *file , char const *buf , size_t len , loff_t *ppos ) { struct wil6210_priv *wil ; int rc ; char *kbuf ; void *tmp ; char cmd[9U] ; int p1 ; int p2 ; int p3 ; ssize_t tmp___0 ; u8 tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; { wil = (struct wil6210_priv *)file->private_data; tmp = kmalloc(len + 1UL, 208U); kbuf = (char *)tmp; if ((unsigned long )kbuf == (unsigned long )((char *)0)) { return (-12L); } else { } tmp___0 = simple_write_to_buffer((void *)kbuf, len, ppos, (void const *)buf, len); rc = (int )tmp___0; if ((size_t )rc != len) { kfree((void const *)kbuf); return (rc < 0 ? (ssize_t )rc : -5L); } else { } *(kbuf + len) = 0; rc = sscanf((char const *)kbuf, "%8s %d %d %d", (char *)(& cmd), & p1, & p2, & p3); kfree((void const *)kbuf); if (rc < 0) { return ((ssize_t )rc); } else { } if (rc <= 1) { return (-22L); } else { } tmp___4 = strcmp((char const *)(& cmd), "add"); if (tmp___4 == 0) { if (rc <= 2) { wil_err(wil, "BACK: add require at least 2 params\n"); return (-22L); } else { } if (rc <= 3) { p3 = 0; } else { } wmi_addba(wil, (int )((u8 )p1), (int )((u8 )p2), (int )((u16 )p3)); } else { tmp___3 = strcmp((char const *)(& cmd), "del_tx"); if (tmp___3 == 0) { if (rc <= 2) { p2 = 36; } else { } wmi_delba_tx(wil, (int )((u8 )p1), (int )((u16 )p2)); } else { tmp___2 = strcmp((char const *)(& cmd), "del_rx"); if (tmp___2 == 0) { if (rc <= 2) { wil_err(wil, "BACK: del_rx require at least 2 params\n"); return (-22L); } else { } if (rc <= 3) { p3 = 36; } else { } tmp___1 = mk_cidxtid((int )((u8 )p1), (int )((u8 )p2)); wmi_delba_rx(wil, (int )tmp___1, (int )((u16 )p3)); } else { wil_err(wil, "BACK: Unrecognized command \"%s\"\n", (char *)(& cmd)); return (-22L); } } } return ((ssize_t )len); } } static ssize_t wil_read_back(struct file *file , char *user_buf , size_t count , loff_t *ppos ) { char text[287U] ; ssize_t tmp ; { text[0] = 'b'; text[1] = 'l'; text[2] = 'o'; text[3] = 'c'; text[4] = 'k'; text[5] = ' '; text[6] = 'a'; text[7] = 'c'; text[8] = 'k'; text[9] = ' '; text[10] = 'c'; text[11] = 'o'; text[12] = 'n'; text[13] = 't'; text[14] = 'r'; text[15] = 'o'; text[16] = 'l'; text[17] = ','; text[18] = ' '; text[19] = 'w'; text[20] = 'r'; text[21] = 'i'; text[22] = 't'; text[23] = 'e'; text[24] = ':'; text[25] = '\n'; text[26] = ' '; text[27] = '-'; text[28] = ' '; text[29] = '\"'; text[30] = 'a'; text[31] = 'd'; text[32] = 'd'; text[33] = ' '; text[34] = '<'; text[35] = 'r'; text[36] = 'i'; text[37] = 'n'; text[38] = 'g'; text[39] = 'i'; text[40] = 'd'; text[41] = '>'; text[42] = ' '; text[43] = '<'; text[44] = 'a'; text[45] = 'g'; text[46] = 'g'; text[47] = '_'; text[48] = 's'; text[49] = 'i'; text[50] = 'z'; text[51] = 'e'; text[52] = '>'; text[53] = ' '; text[54] = '<'; text[55] = 't'; text[56] = 'i'; text[57] = 'm'; text[58] = 'e'; text[59] = 'o'; text[60] = 'u'; text[61] = 't'; text[62] = '>'; text[63] = '\"'; text[64] = ' '; text[65] = 't'; text[66] = 'o'; text[67] = ' '; text[68] = 't'; text[69] = 'r'; text[70] = 'i'; text[71] = 'g'; text[72] = 'g'; text[73] = 'e'; text[74] = 'r'; text[75] = ' '; text[76] = 'A'; text[77] = 'D'; text[78] = 'D'; text[79] = 'B'; text[80] = 'A'; text[81] = '\n'; text[82] = 'I'; text[83] = 'f'; text[84] = ' '; text[85] = 'm'; text[86] = 'i'; text[87] = 's'; text[88] = 's'; text[89] = 'i'; text[90] = 'n'; text[91] = 'g'; text[92] = ','; text[93] = ' '; text[94] = '<'; text[95] = 't'; text[96] = 'i'; text[97] = 'm'; text[98] = 'e'; text[99] = 'o'; text[100] = 'u'; text[101] = 't'; text[102] = '>'; text[103] = ' '; text[104] = 'd'; text[105] = 'e'; text[106] = 'f'; text[107] = 'a'; text[108] = 'u'; text[109] = 'l'; text[110] = 't'; text[111] = 's'; text[112] = ' '; text[113] = 't'; text[114] = 'o'; text[115] = ' '; text[116] = '0'; text[117] = '\n'; text[118] = ' '; text[119] = '-'; text[120] = ' '; text[121] = '\"'; text[122] = 'd'; text[123] = 'e'; text[124] = 'l'; text[125] = '_'; text[126] = 't'; text[127] = 'x'; text[128] = ' '; text[129] = '<'; text[130] = 'r'; text[131] = 'i'; text[132] = 'n'; text[133] = 'g'; text[134] = 'i'; text[135] = 'd'; text[136] = '>'; text[137] = ' '; text[138] = '<'; text[139] = 'r'; text[140] = 'e'; text[141] = 'a'; text[142] = 's'; text[143] = 'o'; text[144] = 'n'; text[145] = '>'; text[146] = '\"'; text[147] = ' '; text[148] = 't'; text[149] = 'o'; text[150] = ' '; text[151] = 't'; text[152] = 'r'; text[153] = 'i'; text[154] = 'g'; text[155] = 'g'; text[156] = 'e'; text[157] = 'r'; text[158] = ' '; text[159] = 'D'; text[160] = 'E'; text[161] = 'L'; text[162] = 'B'; text[163] = 'A'; text[164] = ' '; text[165] = 'f'; text[166] = 'o'; text[167] = 'r'; text[168] = ' '; text[169] = 'T'; text[170] = 'x'; text[171] = ' '; text[172] = 's'; text[173] = 'i'; text[174] = 'd'; text[175] = 'e'; text[176] = '\n'; text[177] = ' '; text[178] = '-'; text[179] = ' '; text[180] = '\"'; text[181] = 'd'; text[182] = 'e'; text[183] = 'l'; text[184] = '_'; text[185] = 'r'; text[186] = 'x'; text[187] = ' '; text[188] = '<'; text[189] = 'C'; text[190] = 'I'; text[191] = 'D'; text[192] = '>'; text[193] = ' '; text[194] = '<'; text[195] = 'T'; text[196] = 'I'; text[197] = 'D'; text[198] = '>'; text[199] = ' '; text[200] = '<'; text[201] = 'r'; text[202] = 'e'; text[203] = 'a'; text[204] = 's'; text[205] = 'o'; text[206] = 'n'; text[207] = '>'; text[208] = '\"'; text[209] = ' '; text[210] = 't'; text[211] = 'o'; text[212] = ' '; text[213] = 't'; text[214] = 'r'; text[215] = 'i'; text[216] = 'g'; text[217] = 'g'; text[218] = 'e'; text[219] = 'r'; text[220] = ' '; text[221] = 'D'; text[222] = 'E'; text[223] = 'L'; text[224] = 'B'; text[225] = 'A'; text[226] = ' '; text[227] = 'f'; text[228] = 'o'; text[229] = 'r'; text[230] = ' '; text[231] = 'R'; text[232] = 'x'; text[233] = ' '; text[234] = 's'; text[235] = 'i'; text[236] = 'd'; text[237] = 'e'; text[238] = '\n'; text[239] = 'I'; text[240] = 'f'; text[241] = ' '; text[242] = 'm'; text[243] = 'i'; text[244] = 's'; text[245] = 's'; text[246] = 'i'; text[247] = 'n'; text[248] = 'g'; text[249] = ','; text[250] = ' '; text[251] = '<'; text[252] = 'r'; text[253] = 'e'; text[254] = 'a'; text[255] = 's'; text[256] = 'o'; text[257] = 'n'; text[258] = '>'; text[259] = ' '; text[260] = 's'; text[261] = 'e'; text[262] = 't'; text[263] = ' '; text[264] = 't'; text[265] = 'o'; text[266] = ' '; text[267] = '\"'; text[268] = 'S'; text[269] = 'T'; text[270] = 'A'; text[271] = '_'; text[272] = 'L'; text[273] = 'E'; text[274] = 'A'; text[275] = 'V'; text[276] = 'I'; text[277] = 'N'; text[278] = 'G'; text[279] = '\"'; text[280] = ' '; text[281] = '('; text[282] = '3'; text[283] = '6'; text[284] = ')'; text[285] = '\n'; text[286] = '\000'; tmp = simple_read_from_buffer((void *)user_buf, count, ppos, (void const *)(& text), 287UL); return (tmp); } } static struct file_operations const fops_back = {0, 0, & wil_read_back, & wil_write_back, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_write_pmccfg(struct file *file , char const *buf , size_t len , loff_t *ppos ) { struct wil6210_priv *wil ; int rc ; char *kbuf ; void *tmp ; char cmd[9U] ; int num_descs ; int desc_size ; ssize_t tmp___0 ; int tmp___1 ; int tmp___2 ; { wil = (struct wil6210_priv *)file->private_data; tmp = kmalloc(len + 1UL, 208U); kbuf = (char *)tmp; if ((unsigned long )kbuf == (unsigned long )((char *)0)) { return (-12L); } else { } tmp___0 = simple_write_to_buffer((void *)kbuf, len, ppos, (void const *)buf, len); rc = (int )tmp___0; if ((size_t )rc != len) { kfree((void const *)kbuf); return (rc < 0 ? (ssize_t )rc : -5L); } else { } *(kbuf + len) = 0; rc = sscanf((char const *)kbuf, "%8s %d %d", (char *)(& cmd), & num_descs, & desc_size); kfree((void const *)kbuf); if (rc < 0) { return ((ssize_t )rc); } else { } if (rc <= 0) { wil_err(wil, "pmccfg: no params given\n"); return (-22L); } else { } tmp___2 = strcmp((char const *)(& cmd), "alloc"); if (tmp___2 == 0) { if (rc != 3) { wil_err(wil, "pmccfg: alloc requires 2 params\n"); return (-22L); } else { } wil_pmc_alloc(wil, num_descs, desc_size); } else { tmp___1 = strcmp((char const *)(& cmd), "free"); if (tmp___1 == 0) { if (rc != 1) { wil_err(wil, "pmccfg: free does not have any params\n"); return (-22L); } else { } wil_pmc_free(wil, 1); } else { wil_err(wil, "pmccfg: Unrecognized command \"%s\"\n", (char *)(& cmd)); return (-22L); } } return ((ssize_t )len); } } static ssize_t wil_read_pmccfg(struct file *file , char *user_buf , size_t count , loff_t *ppos ) { struct wil6210_priv *wil ; char text[256U] ; char help[127U] ; int tmp ; size_t tmp___0 ; ssize_t tmp___1 ; { wil = (struct wil6210_priv *)file->private_data; help[0] = 'p'; help[1] = 'm'; help[2] = 'c'; help[3] = ' '; help[4] = 'c'; help[5] = 'o'; help[6] = 'n'; help[7] = 't'; help[8] = 'r'; help[9] = 'o'; help[10] = 'l'; help[11] = ','; help[12] = ' '; help[13] = 'w'; help[14] = 'r'; help[15] = 'i'; help[16] = 't'; help[17] = 'e'; help[18] = ':'; help[19] = '\n'; help[20] = ' '; help[21] = '-'; help[22] = ' '; help[23] = '\"'; help[24] = 'a'; help[25] = 'l'; help[26] = 'l'; help[27] = 'o'; help[28] = 'c'; help[29] = ' '; help[30] = '<'; help[31] = 'n'; help[32] = 'u'; help[33] = 'm'; help[34] = ' '; help[35] = 'd'; help[36] = 'e'; help[37] = 's'; help[38] = 'c'; help[39] = 'r'; help[40] = 'i'; help[41] = 'p'; help[42] = 't'; help[43] = 'o'; help[44] = 'r'; help[45] = 's'; help[46] = '>'; help[47] = ' '; help[48] = '<'; help[49] = 'd'; help[50] = 'e'; help[51] = 's'; help[52] = 'c'; help[53] = 'r'; help[54] = 'i'; help[55] = 'p'; help[56] = 't'; help[57] = 'o'; help[58] = 'r'; help[59] = '_'; help[60] = 's'; help[61] = 'i'; help[62] = 'z'; help[63] = 'e'; help[64] = '>'; help[65] = '\"'; help[66] = ' '; help[67] = 't'; help[68] = 'o'; help[69] = ' '; help[70] = 'a'; help[71] = 'l'; help[72] = 'l'; help[73] = 'o'; help[74] = 'c'; help[75] = 'a'; help[76] = 't'; help[77] = 'e'; help[78] = ' '; help[79] = 'p'; help[80] = 'm'; help[81] = 'c'; help[82] = '\n'; help[83] = ' '; help[84] = '-'; help[85] = ' '; help[86] = '\"'; help[87] = 'f'; help[88] = 'r'; help[89] = 'e'; help[90] = 'e'; help[91] = '\"'; help[92] = ' '; help[93] = 't'; help[94] = 'o'; help[95] = ' '; help[96] = 'f'; help[97] = 'r'; help[98] = 'e'; help[99] = 'e'; help[100] = ' '; help[101] = 'm'; help[102] = 'e'; help[103] = 'm'; help[104] = 'o'; help[105] = 'r'; help[106] = 'y'; help[107] = ' '; help[108] = 'a'; help[109] = 'l'; help[110] = 'l'; help[111] = 'o'; help[112] = 'c'; help[113] = 'a'; help[114] = 't'; help[115] = 'e'; help[116] = 'd'; help[117] = ' '; help[118] = 'f'; help[119] = 'o'; help[120] = 'r'; help[121] = ' '; help[122] = 'p'; help[123] = 'm'; help[124] = 'c'; help[125] = '\n'; help[126] = '\000'; tmp = wil_pmc_last_cmd_status(wil); sprintf((char *)(& text), "Last command status: %d\n\n%s", tmp, (char *)(& help)); tmp___0 = strlen((char const *)(& text)); tmp___1 = simple_read_from_buffer((void *)user_buf, count, ppos, (void const *)(& text), tmp___0 + 1UL); return (tmp___1); } } static struct file_operations const fops_pmccfg = {0, 0, & wil_read_pmccfg, & wil_write_pmccfg, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static struct file_operations const fops_pmcdata = {0, & wil_pmc_llseek, & wil_pmc_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_write_file_txmgmt(struct file *file , char const *buf , size_t len , loff_t *ppos ) { struct wil6210_priv *wil ; struct wiphy *wiphy ; struct wireless_dev *wdev ; struct cfg80211_mgmt_tx_params params ; int rc ; void *frame ; void *tmp ; unsigned long tmp___0 ; { wil = (struct wil6210_priv *)file->private_data; wiphy = (wil->wdev)->wiphy; wdev = wil->wdev; tmp = kmalloc(len, 208U); frame = tmp; if ((unsigned long )frame == (unsigned long )((void *)0)) { return (-12L); } else { } tmp___0 = copy_from_user(frame, (void const *)buf, len); if (tmp___0 != 0UL) { kfree((void const *)frame); return (-5L); } else { } params.buf = (u8 const *)frame; params.len = len; params.chan = wdev->preset_chandef.chan; rc = wil_cfg80211_mgmt_tx(wiphy, wdev, & params, (u64 *)0ULL); kfree((void const *)frame); wil_info(wil, "%s() -> %d\n", "wil_write_file_txmgmt", rc); return ((ssize_t )len); } } static struct file_operations const fops_txmgmt = {0, 0, 0, & wil_write_file_txmgmt, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_write_file_wmi(struct file *file , char const *buf , size_t len , loff_t *ppos ) { struct wil6210_priv *wil ; struct wil6210_mbox_hdr_wmi *wmi ; void *cmd ; int cmdlen ; u16 cmdid ; int rc ; int rc1 ; void *tmp ; ssize_t tmp___0 ; { wil = (struct wil6210_priv *)file->private_data; cmdlen = (int )((unsigned int )len - 8U); if (cmdlen <= 0) { return (-22L); } else { } tmp = kmalloc(len, 208U); wmi = (struct wil6210_mbox_hdr_wmi *)tmp; if ((unsigned long )wmi == (unsigned long )((struct wil6210_mbox_hdr_wmi *)0)) { return (-12L); } else { } tmp___0 = simple_write_to_buffer((void *)wmi, len, ppos, (void const *)buf, len); rc = (int )tmp___0; if (rc < 0) { kfree((void const *)wmi); return ((ssize_t )rc); } else { } cmd = (void *)wmi + 1U; cmdid = wmi->id; rc1 = wmi_send(wil, (int )cmdid, cmd, (int )((u16 )cmdlen)); kfree((void const *)wmi); wil_info(wil, "%s(0x%04x[%d]) -> %d\n", "wil_write_file_wmi", (int )cmdid, cmdlen, rc1); return ((ssize_t )rc); } } static struct file_operations const fops_wmi = {0, 0, 0, & wil_write_file_wmi, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void wil_seq_hexdump(struct seq_file *s , void *p , int len , char const *prefix ) { char printbuf[50U] ; int i ; int l ; int _min1 ; int _min2 ; { i = 0; goto ldv_52744; ldv_52743: _min1 = len - i; _min2 = 16; l = _min1 < _min2 ? _min1 : _min2; hex_dump_to_buffer((void const *)p + (unsigned long )i, (size_t )l, 16, 1, (char *)(& printbuf), 50UL, 0); seq_printf(s, "%s%s\n", prefix, (char *)(& printbuf)); i = i + l; ldv_52744: ; if (i < len) { goto ldv_52743; } else { } return; } } static void wil_seq_print_skb(struct seq_file *s , struct sk_buff *skb ) { int i ; int len ; unsigned int tmp ; void *p ; int nr_frags ; unsigned char *tmp___0 ; struct skb_frag_struct const *frag ; unsigned char *tmp___1 ; unsigned int tmp___2 ; { i = 0; tmp = skb_headlen((struct sk_buff const *)skb); len = (int )tmp; p = (void *)skb->data; tmp___0 = skb_end_pointer((struct sk_buff const *)skb); nr_frags = (int )((struct skb_shared_info *)tmp___0)->nr_frags; seq_printf(s, " len = %d\n", len); wil_seq_hexdump(s, p, len, " : "); if (nr_frags != 0) { seq_printf(s, " nr_frags = %d\n", nr_frags); i = 0; goto ldv_52756; ldv_52755: tmp___1 = skb_end_pointer((struct sk_buff const *)skb); frag = (struct skb_frag_struct const *)(& ((struct skb_shared_info *)tmp___1)->frags) + (unsigned long )i; tmp___2 = skb_frag_size(frag); len = (int )tmp___2; p = skb_frag_address_safe(frag); seq_printf(s, " [%2d] : len = %d\n", i, len); wil_seq_hexdump(s, p, len, " : "); i = i + 1; ldv_52756: ; if (i < nr_frags) { goto ldv_52755; } else { } } else { } return; } } static int wil_txdesc_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; struct vring *vring ; bool tx ; struct vring_tx_desc volatile *d ; u32 volatile *u ; struct sk_buff *skb ; { wil = (struct wil6210_priv *)s->private; tx = dbg_vring_index <= 23U; vring = (int )tx ? (struct vring *)(& wil->vring_tx) + (unsigned long )dbg_vring_index : & wil->vring_rx; if ((unsigned long )vring->va == (unsigned long )((union vring_desc volatile *)0)) { if ((int )tx) { seq_printf(s, "No Tx[%2d] VRING\n", dbg_vring_index); } else { seq_puts(s, "No Rx VRING\n"); } return (0); } else { } if ((u32 )vring->size > dbg_txdesc_index) { d = & (vring->va + (unsigned long )dbg_txdesc_index)->tx; u = (u32 volatile *)d; skb = (vring->ctx + (unsigned long )dbg_txdesc_index)->skb; if ((int )tx) { seq_printf(s, "Tx[%2d][%3d] = {\n", dbg_vring_index, dbg_txdesc_index); } else { seq_printf(s, "Rx[%3d] = {\n", dbg_txdesc_index); } seq_printf(s, " MAC = 0x%08x 0x%08x 0x%08x 0x%08x\n", *u, *(u + 1UL), *(u + 2UL), *(u + 3UL)); seq_printf(s, " DMA = 0x%08x 0x%08x 0x%08x 0x%08x\n", *(u + 4UL), *(u + 5UL), *(u + 6UL), *(u + 7UL)); seq_printf(s, " SKB = 0x%p\n", skb); if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { skb_get(skb); wil_seq_print_skb(s, skb); kfree_skb(skb); } else { } seq_puts(s, "}\n"); } else if ((int )tx) { seq_printf(s, "[%2d] TxDesc index (%d) >= size (%d)\n", dbg_vring_index, dbg_txdesc_index, (int )vring->size); } else { seq_printf(s, "RxDesc index (%d) >= size (%d)\n", dbg_txdesc_index, (int )vring->size); } return (0); } } static int wil_txdesc_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_txdesc_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_txdesc = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_txdesc_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static char *wil_bfstatus_str(u32 status ) { { switch (status) { case 0U: ; return ((char *)"Failed"); case 1U: ; return ((char *)"OK"); case 2U: ; return ((char *)"Retrying"); default: ; return ((char *)"??"); } } } static bool is_all_zeros(void * const x_ , size_t sz ) { u32 *x ; int n ; { x = (u32 *)x_; n = 0; goto ldv_52787; ldv_52786: ; if (*(x + (unsigned long )n) != 0U) { return (0); } else { } n = n + 1; ldv_52787: ; if ((unsigned long )n < sz / 4UL) { goto ldv_52786; } else { } return (1); } } static int wil_bf_debugfs_show(struct seq_file *s , void *data ) { int rc ; int i ; struct wil6210_priv *wil ; struct wmi_notify_req_cmd cmd ; struct __anonstruct_reply_372 reply ; u32 status ; bool tmp ; char *tmp___0 ; { wil = (struct wil6210_priv *)s->private; cmd.cid = (unsigned char)0; cmd.year = (unsigned char)0; cmd.month = (unsigned char)0; cmd.day = (unsigned char)0; cmd.interval_usec = 0U; cmd.hour = (unsigned char)0; cmd.minute = (unsigned char)0; cmd.second = (unsigned char)0; cmd.miliseconds = (unsigned char)0; i = 0; goto ldv_52806; ldv_52805: cmd.cid = (u8 )i; rc = wmi_call(wil, 2147, (void *)(& cmd), 12, 6243, (void *)(& reply), 52, 20); if (rc != 0) { goto ldv_52804; } else { tmp = is_all_zeros((void */* const */)(& reply.evt), 44UL); if ((int )tmp) { goto ldv_52804; } else { } } status = reply.evt.status; tmp___0 = wil_bfstatus_str(status); seq_printf(s, "CID %d {\n TSF = 0x%016llx\n TxMCS = %2d TxTpt = %4d\n SQI = %4d\n Status = 0x%08x %s\n Sectors(rx:tx) my %2d:%2d peer %2d:%2d\n Goodput(rx:tx) %4d:%4d\n}\n", i, reply.evt.tsf, (int )reply.evt.bf_mcs, reply.evt.tx_tpt, (int )reply.evt.sqi, status, tmp___0, (int )reply.evt.my_rx_sector, (int )reply.evt.my_tx_sector, (int )reply.evt.other_rx_sector, (int )reply.evt.other_tx_sector, reply.evt.rx_goodput, reply.evt.tx_goodput); ldv_52804: i = i + 1; ldv_52806: ; if ((unsigned int )i <= 7U) { goto ldv_52805; } else { } return (0); } } static int wil_bf_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_bf_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_bf = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_bf_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_read_file_ssid(struct file *file , char *user_buf , size_t count , loff_t *ppos ) { struct wil6210_priv *wil ; struct wireless_dev *wdev ; ssize_t tmp ; { wil = (struct wil6210_priv *)file->private_data; wdev = wil->wdev; tmp = simple_read_from_buffer((void *)user_buf, count, ppos, (void const *)(& wdev->ssid), (size_t )wdev->ssid_len); return (tmp); } } static ssize_t wil_write_file_ssid(struct file *file , char const *buf , size_t count , loff_t *ppos ) { struct wil6210_priv *wil ; struct wireless_dev *wdev ; struct net_device *ndev ; bool tmp ; ssize_t tmp___0 ; { wil = (struct wil6210_priv *)file->private_data; wdev = wil->wdev; ndev = (wil->wdev)->netdev; if (*ppos != 0LL) { wil_err(wil, "Unable to set SSID substring from [%d]\n", (int )*ppos); return (-22L); } else { } if (count > 32UL) { wil_err(wil, "SSID too long, len = %d\n", (int )count); return (-22L); } else { } tmp = netif_running((struct net_device const *)ndev); if ((int )tmp) { wil_err(wil, "Unable to change SSID on running interface\n"); return (-22L); } else { } wdev->ssid_len = (u8 )count; tmp___0 = simple_write_to_buffer((void *)(& wdev->ssid), (size_t )wdev->ssid_len, ppos, (void const *)buf, count); return (tmp___0); } } static struct file_operations const fops_ssid = {0, 0, & wil_read_file_ssid, & wil_write_file_ssid, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void print_temp(struct seq_file *s , char const *prefix , u32 t ) { { switch (t) { case 0U: ; case 4294967295U: seq_printf(s, "%s N/A\n", prefix); goto ldv_52838; default: seq_printf(s, "%s %d.%03d\n", prefix, t / 1000U, t % 1000U); goto ldv_52838; } ldv_52838: ; return; } } static int wil_temp_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; u32 t_m ; u32 t_r ; int rc ; int tmp ; { wil = (struct wil6210_priv *)s->private; tmp = wmi_get_temperature(wil, & t_m, & t_r); rc = tmp; if (rc != 0) { seq_puts(s, "Failed\n"); return (0); } else { } print_temp(s, "T_mac =", t_m); print_temp(s, "T_radio =", t_r); return (0); } } static int wil_temp_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_temp_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_temp = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_temp_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int wil_freq_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; struct wireless_dev *wdev ; u16 freq ; { wil = (struct wil6210_priv *)s->private; wdev = wil->wdev; freq = (unsigned long )wdev->chandef.chan != (unsigned long )((struct ieee80211_channel *)0) ? (wdev->chandef.chan)->center_freq : 0U; seq_printf(s, "Freq = %d\n", (int )freq); return (0); } } static int wil_freq_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_freq_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_freq = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_freq_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int wil_link_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; struct station_info sinfo ; int i ; int rc ; struct wil_sta_info *p ; char *status ; { wil = (struct wil6210_priv *)s->private; i = 0; goto ldv_52882; ldv_52881: p = (struct wil_sta_info *)(& wil->sta) + (unsigned long )i; status = (char *)"unknown"; switch ((unsigned int )p->status) { case 0U: status = (char *)"unused "; goto ldv_52878; case 1U: status = (char *)"pending "; goto ldv_52878; case 2U: status = (char *)"connected"; goto ldv_52878; } ldv_52878: seq_printf(s, "[%d] %pM %s\n", i, (u8 *)(& p->addr), status); if ((unsigned int )p->status == 2U) { rc = wil_cid_fill_sinfo(wil, i, & sinfo); if (rc != 0) { return (rc); } else { } seq_printf(s, " Tx_mcs = %d\n", (int )sinfo.txrate.mcs); seq_printf(s, " Rx_mcs = %d\n", (int )sinfo.rxrate.mcs); seq_printf(s, " SQ = %d\n", (int )sinfo.signal); } else { } i = i + 1; ldv_52882: ; if ((unsigned int )i <= 7U) { goto ldv_52881; } else { } return (0); } } static int wil_link_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_link_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_link = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_link_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int wil_info_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; struct net_device *ndev ; int is_ac ; int tmp ; int rx ; int tmp___0 ; int tx ; int tmp___1 ; ulong rxf_old ; ulong txf_old ; ulong rxf ; ulong txf ; unsigned int i ; struct netdev_queue *txq ; struct netdev_queue *tmp___2 ; unsigned long state ; { wil = (struct wil6210_priv *)s->private; ndev = (wil->wdev)->netdev; tmp = power_supply_is_system_supplied(); is_ac = tmp; tmp___0 = atomic_xchg(& wil->isr_count_rx, 0); rx = tmp___0; tmp___1 = atomic_xchg(& wil->isr_count_tx, 0); tx = tmp___1; rxf = ndev->stats.rx_packets; txf = ndev->stats.tx_packets; seq_printf(s, "AC powered : %d\n", is_ac); seq_printf(s, "Rx irqs:packets : %8d : %8ld\n", rx, rxf - rxf_old); seq_printf(s, "Tx irqs:packets : %8d : %8ld\n", tx, txf - txf_old); rxf_old = rxf; txf_old = txf; i = 0U; goto ldv_52906; ldv_52905: tmp___2 = netdev_get_tx_queue((struct net_device const *)ndev, i); txq = tmp___2; state = txq->state; seq_printf(s, "Tx queue[%i] state : 0x%lx%s%s%s\n", i, state, (int )state & 1 ? (char *)" DRV_XOFF" : (char *)"", (state & 2UL) != 0UL ? (char *)" STACK_XOFF" : (char *)"", (state & 4UL) != 0UL ? (char *)" FROZEN" : (char *)""); i = i + 1U; ldv_52906: ; if (ndev->num_tx_queues > i) { goto ldv_52905; } else { } return (0); } } static int wil_info_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_info_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_info = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_info_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static ssize_t wil_read_file_recovery(struct file *file , char *user_buf , size_t count , loff_t *ppos ) { struct wil6210_priv *wil ; char buf[80U] ; int n ; char const *sstate[3U] ; int __min1 ; int __min2 ; ssize_t tmp ; { wil = (struct wil6210_priv *)file->private_data; sstate[0] = "idle"; sstate[1] = "pending"; sstate[2] = "running"; n = snprintf((char *)(& buf), 80UL, "mode = %s\nstate = %s\n", (int )no_fw_recovery ? (char *)"manual" : (char *)"auto", sstate[wil->recovery_state]); __min1 = n; __min2 = 80; n = __min1 < __min2 ? __min1 : __min2; tmp = simple_read_from_buffer((void *)user_buf, count, ppos, (void const *)(& buf), (size_t )n); return (tmp); } } static ssize_t wil_write_file_recovery(struct file *file , char const *buf_ , size_t count , loff_t *ppos ) { struct wil6210_priv *wil ; char run_command[4U] ; char buf[5U] ; ssize_t rc ; int tmp ; { wil = (struct wil6210_priv *)file->private_data; run_command[0] = 'r'; run_command[1] = 'u'; run_command[2] = 'n'; run_command[3] = '\000'; if (wil->recovery_state != 1U) { wil_err(wil, "No recovery pending\n"); return (-22L); } else { } if (*ppos != 0LL) { wil_err(wil, "Offset [%d]\n", (int )*ppos); return (-22L); } else { } if (count > 5UL) { wil_err(wil, "Input too long, len = %d\n", (int )count); return (-22L); } else { } rc = simple_write_to_buffer((void *)(& buf), 4UL, ppos, (void const *)buf_, count); if (rc < 0L) { return (rc); } else { } buf[rc] = 0; tmp = strcmp((char const *)(& buf), (char const *)(& run_command)); if (tmp == 0) { wil_set_recovery_state(wil, 2); } else { wil_err(wil, "Bad recovery command \"%s\"\n", (char *)(& buf)); } return (rc); } } static struct file_operations const fops_recovery = {0, 0, & wil_read_file_recovery, & wil_write_file_recovery, 0, 0, 0, 0, 0, 0, 0, 0, & simple_open, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void wil_print_rxtid(struct seq_file *s , struct wil_tid_ampdu_rx *r ) { int i ; u16 index ; { index = (u16 )((((int )r->head_seq_num - (int )r->ssn) & 4095) % (int )r->buf_size); seq_printf(s, "([%2d] %3d TU) 0x%03x [", (int )r->buf_size, (int )r->timeout, (int )r->head_seq_num); i = 0; goto ldv_52944; ldv_52943: ; if ((int )index == i) { seq_printf(s, "%c", (unsigned long )*(r->reorder_buf + (unsigned long )i) != (unsigned long )((struct sk_buff *)0) ? 79 : 124); } else { seq_printf(s, "%c", (unsigned long )*(r->reorder_buf + (unsigned long )i) != (unsigned long )((struct sk_buff *)0) ? 42 : 95); } i = i + 1; ldv_52944: ; if ((int )r->buf_size > i) { goto ldv_52943; } else { } seq_printf(s, "] last drop 0x%03x\n", (int )r->ssn_last_drop); return; } } static int wil_sta_debugfs_show(struct seq_file *s , void *data ) { struct wil6210_priv *wil ; int i ; int tid ; int mcs ; struct wil_sta_info *p ; char *status ; struct wil_tid_ampdu_rx *r ; { wil = (struct wil6210_priv *)s->private; i = 0; goto ldv_52972; ldv_52971: p = (struct wil_sta_info *)(& wil->sta) + (unsigned long )i; status = (char *)"unknown"; switch ((unsigned int )p->status) { case 0U: status = (char *)"unused "; goto ldv_52959; case 1U: status = (char *)"pending "; goto ldv_52959; case 2U: status = (char *)"connected"; goto ldv_52959; } ldv_52959: seq_printf(s, "[%d] %pM %s\n", i, (u8 *)(& p->addr), status); if ((unsigned int )p->status == 2U) { spin_lock_bh(& p->tid_rx_lock); tid = 0; goto ldv_52964; ldv_52963: r = p->tid_rx[tid]; if ((unsigned long )r != (unsigned long )((struct wil_tid_ampdu_rx *)0)) { seq_printf(s, "[%2d] ", tid); wil_print_rxtid(s, r); } else { } tid = tid + 1; ldv_52964: ; if (tid <= 15) { goto ldv_52963; } else { } spin_unlock_bh(& p->tid_rx_lock); seq_puts(s, "Rx/MCS:"); mcs = 0; goto ldv_52969; ldv_52968: seq_printf(s, " %lld", p->stats.rx_per_mcs[mcs]); mcs = mcs + 1; ldv_52969: ; if ((unsigned int )mcs <= 12U) { goto ldv_52968; } else { } seq_puts(s, "\n"); } else { } i = i + 1; ldv_52972: ; if ((unsigned int )i <= 7U) { goto ldv_52971; } else { } return (0); } } static int wil_sta_seq_open(struct inode *inode , struct file *file ) { int tmp ; { tmp = single_open(file, & wil_sta_debugfs_show, inode->i_private); return (tmp); } } static struct file_operations const fops_sta = {0, & seq_lseek, & seq_read, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_sta_seq_open, 0, & single_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void wil6210_debugfs_init_blobs(struct wil6210_priv *wil , struct dentry *dbg ) { int i ; char name[32U] ; struct debugfs_blob_wrapper *blob ; struct fw_map const *map ; { i = 0; goto ldv_52991; ldv_52990: blob = (struct debugfs_blob_wrapper *)(& wil->blobs) + (unsigned long )i; map = (struct fw_map const *)(& fw_mapping) + (unsigned long )i; if ((unsigned long )map->name == (unsigned long )((char const */* const */)0)) { goto ldv_52989; } else { } blob->data = wil->csr + ((unsigned long )map->host + 0xffffffffff780000UL); blob->size = (unsigned long )((unsigned int )map->to - (unsigned int )map->from); snprintf((char *)(& name), 32UL, "blob_%s", map->name); wil_debugfs_create_ioblob((char const *)(& name), 292, dbg, blob); ldv_52989: i = i + 1; ldv_52991: ; if ((unsigned int )i <= 7U) { goto ldv_52990; } else { } return; } } static struct __anonstruct_dbg_files_378 const dbg_files[19U] = { {"mbox", 292U, & fops_mbox}, {"vrings", 292U, & fops_vring}, {"stations", 292U, & fops_sta}, {"desc", 292U, & fops_txdesc}, {"bf", 292U, & fops_bf}, {"ssid", 420U, & fops_ssid}, {"mem_val", 292U, & fops_memread}, {"reset", 128U, & fops_reset}, {"rxon", 128U, & fops_rxon}, {"tx_mgmt", 128U, & fops_txmgmt}, {"wmi_send", 128U, & fops_wmi}, {"back", 420U, & fops_back}, {"pmccfg", 420U, & fops_pmccfg}, {"pmcdata", 292U, & fops_pmcdata}, {"temp", 292U, & fops_temp}, {"freq", 292U, & fops_freq}, {"link", 292U, & fops_link}, {"info", 292U, & fops_info}, {"recovery", 420U, & fops_recovery}}; static void wil6210_debugfs_init_files(struct wil6210_priv *wil , struct dentry *dbg ) { int i ; { i = 0; goto ldv_53006; ldv_53005: debugfs_create_file(dbg_files[i].name, (int )dbg_files[i].mode, dbg, (void *)wil, dbg_files[i].fops); i = i + 1; ldv_53006: ; if ((unsigned int )i <= 18U) { goto ldv_53005; } else { } return; } } static struct __anonstruct_dbg_icr_380 const dbg_icr[4U] = { {"USER_ICR", 2892U}, {"DMA_EP_TX_ICR", 7092U}, {"DMA_EP_RX_ICR", 7120U}, {"DMA_EP_MISC_ICR", 7148U}}; static void wil6210_debugfs_init_isr(struct wil6210_priv *wil , struct dentry *dbg ) { int i ; { i = 0; goto ldv_53020; ldv_53019: wil6210_debugfs_create_ISR(wil, dbg_icr[i].name, dbg, dbg_icr[i].icr_off); i = i + 1; ldv_53020: ; if ((unsigned int )i <= 3U) { goto ldv_53019; } else { } return; } } static struct dbg_off const dbg_wil_off[7U] = { {"privacy", 292U, 172UL, 0}, {"status[0]", 420U, 32UL, 2}, {"fw_version", 292U, 40UL, 0}, {"hw_version", 292U, 44UL, 1}, {"recovery_count", 292U, 60UL, 0}, {"ap_isolate", 292U, 180UL, 0}}; static struct dbg_off const dbg_wil_regs[3U] = { {"RGF_MAC_MTRL_COUNTER_0", 292U, 27304UL, 3}, {"RGF_USER_USAGE_1", 292U, 4UL, 3}}; static struct dbg_off const dbg_statics[5U] = { {"desc_index", 420U, (unsigned long )(& dbg_txdesc_index), 0}, {"vring_index", 420U, (unsigned long )(& dbg_vring_index), 0}, {"mem_addr", 420U, (unsigned long )(& mem_addr), 0}, {"vring_idle_trsh", 420U, (unsigned long )(& vring_idle_trsh), 0}}; int wil6210_debugfs_init(struct wil6210_priv *wil ) { struct dentry *dbg ; struct dentry *tmp ; bool tmp___0 ; { tmp = debugfs_create_dir("wil6210", ((wil->wdev)->wiphy)->debugfsdir); wil->debug = tmp; dbg = tmp; tmp___0 = IS_ERR_OR_NULL((void const *)dbg); if ((int )tmp___0) { return (-19); } else { } wil_pmc_init(wil); wil6210_debugfs_init_files(wil, dbg); wil6210_debugfs_init_isr(wil, dbg); wil6210_debugfs_init_blobs(wil, dbg); wil6210_debugfs_init_offset(wil, dbg, (void *)wil, (struct dbg_off const *)(& dbg_wil_off)); wil6210_debugfs_init_offset(wil, dbg, wil->csr, (struct dbg_off const *)(& dbg_wil_regs)); wil6210_debugfs_init_offset(wil, dbg, (void *)0, (struct dbg_off const *)(& dbg_statics)); wil6210_debugfs_create_pseudo_ISR(wil, dbg); wil6210_debugfs_create_ITR_CNT(wil, dbg); return (0); } } void wil6210_debugfs_remove(struct wil6210_priv *wil ) { { debugfs_remove_recursive(wil->debug); wil->debug = (struct dentry *)0; wil_pmc_free(wil, 0); return; } } int ldv_retval_20 ; extern int ldv_release_43(void) ; int ldv_retval_18 ; int ldv_retval_2 ; extern int ldv_release_44(void) ; int ldv_retval_5 ; int ldv_retval_0 ; int ldv_retval_23 ; int ldv_retval_11 ; int ldv_retval_1 ; extern int ldv_release_42(void) ; int ldv_retval_25 ; int ldv_retval_22 ; int ldv_retval_15 ; extern int ldv_release_41(void) ; extern int ldv_release_47(void) ; int ldv_retval_16 ; extern int ldv_release_32(void) ; extern int ldv_release_46(void) ; int ldv_retval_24 ; extern int ldv_release_40(void) ; int ldv_retval_8 ; int ldv_retval_7 ; int ldv_retval_19 ; int ldv_retval_14 ; int ldv_retval_17 ; int ldv_retval_6 ; int ldv_retval_21 ; int ldv_retval_13 ; int ldv_retval_10 ; extern int ldv_release_45(void) ; extern int ldv_release_37(void) ; void ldv_file_operations_41(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_txmgmt_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_txmgmt_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_40(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_wmi_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_wmi_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_50(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_iomem_x32_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_iomem_x32_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_51(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_mbox_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_mbox_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_34(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_link_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_link_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_39(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_txdesc_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_txdesc_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_31(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_sta_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_sta_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_42(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_pmcdata_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_pmcdata_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_33(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_info_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_info_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_48(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_memread_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_memread_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_49(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); wil_fops_ulong_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); wil_fops_ulong_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_32(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_recovery_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_recovery_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_45(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_rxon_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_rxon_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_43(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_pmccfg_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_pmccfg_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_38(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_bf_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_bf_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_35(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_freq_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_freq_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_46(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_reset_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_reset_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_44(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_back_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_back_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_37(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_ssid_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_ssid_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_36(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_temp_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_temp_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_52(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_vring_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_vring_group2 = (struct file *)tmp___0; return; } } void ldv_file_operations_47(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(1000UL); fops_ioblob_group1 = (struct inode *)tmp; tmp___0 = ldv_init_zalloc(504UL); fops_ioblob_group2 = (struct file *)tmp___0; return; } } void ldv_main_exported_35(void) { loff_t *ldvarg69 ; void *tmp ; loff_t ldvarg68 ; char *ldvarg71 ; void *tmp___0 ; int ldvarg67 ; size_t ldvarg70 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg69 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg71 = (char *)tmp___0; ldv_memset((void *)(& ldvarg68), 0, 8UL); ldv_memset((void *)(& ldvarg67), 0, 4UL); ldv_memset((void *)(& ldvarg70), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_35 == 1) { ldv_retval_8 = wil_freq_seq_open(fops_freq_group1, fops_freq_group2); if (ldv_retval_8 == 0) { ldv_state_variable_35 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53149; case 1: ; if (ldv_state_variable_35 == 2) { single_release(fops_freq_group1, fops_freq_group2); ldv_state_variable_35 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53149; case 2: ; if (ldv_state_variable_35 == 2) { seq_read(fops_freq_group2, ldvarg71, ldvarg70, ldvarg69); ldv_state_variable_35 = 2; } else { } goto ldv_53149; case 3: ; if (ldv_state_variable_35 == 2) { seq_lseek(fops_freq_group2, ldvarg68, ldvarg67); ldv_state_variable_35 = 2; } else { } goto ldv_53149; default: ldv_stop(); } ldv_53149: ; return; } } void ldv_main_exported_33(void) { loff_t *ldvarg2 ; void *tmp ; int ldvarg0 ; size_t ldvarg3 ; char *ldvarg4 ; void *tmp___0 ; loff_t ldvarg1 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg2 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg4 = (char *)tmp___0; ldv_memset((void *)(& ldvarg0), 0, 4UL); ldv_memset((void *)(& ldvarg3), 0, 8UL); ldv_memset((void *)(& ldvarg1), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_33 == 1) { ldv_retval_0 = wil_info_seq_open(fops_info_group1, fops_info_group2); if (ldv_retval_0 == 0) { ldv_state_variable_33 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53163; case 1: ; if (ldv_state_variable_33 == 2) { single_release(fops_info_group1, fops_info_group2); ldv_state_variable_33 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53163; case 2: ; if (ldv_state_variable_33 == 2) { seq_read(fops_info_group2, ldvarg4, ldvarg3, ldvarg2); ldv_state_variable_33 = 2; } else { } goto ldv_53163; case 3: ; if (ldv_state_variable_33 == 2) { seq_lseek(fops_info_group2, ldvarg1, ldvarg0); ldv_state_variable_33 = 2; } else { } goto ldv_53163; default: ldv_stop(); } ldv_53163: ; return; } } void ldv_main_exported_32(void) { size_t ldvarg6 ; loff_t *ldvarg5 ; void *tmp ; size_t ldvarg9 ; char *ldvarg10 ; void *tmp___0 ; char *ldvarg7 ; void *tmp___1 ; loff_t *ldvarg8 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg5 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg10 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg7 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg8 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg6), 0, 8UL); ldv_memset((void *)(& ldvarg9), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_32 == 1) { ldv_retval_1 = simple_open(fops_recovery_group1, fops_recovery_group2); if (ldv_retval_1 == 0) { ldv_state_variable_32 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53178; case 1: ; if (ldv_state_variable_32 == 1) { wil_write_file_recovery(fops_recovery_group2, (char const *)ldvarg10, ldvarg9, ldvarg8); ldv_state_variable_32 = 1; } else { } if (ldv_state_variable_32 == 2) { wil_write_file_recovery(fops_recovery_group2, (char const *)ldvarg10, ldvarg9, ldvarg8); ldv_state_variable_32 = 2; } else { } goto ldv_53178; case 2: ; if (ldv_state_variable_32 == 2) { wil_read_file_recovery(fops_recovery_group2, ldvarg7, ldvarg6, ldvarg5); ldv_state_variable_32 = 2; } else { } goto ldv_53178; case 3: ; if (ldv_state_variable_32 == 2) { ldv_release_32(); ldv_state_variable_32 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53178; default: ldv_stop(); } ldv_53178: ; return; } } void ldv_main_exported_48(void) { loff_t *ldvarg75 ; void *tmp ; loff_t ldvarg74 ; size_t ldvarg76 ; int ldvarg73 ; char *ldvarg77 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg75 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg77 = (char *)tmp___0; ldv_memset((void *)(& ldvarg74), 0, 8UL); ldv_memset((void *)(& ldvarg76), 0, 8UL); ldv_memset((void *)(& ldvarg73), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_48 == 1) { ldv_retval_10 = wil_memread_seq_open(fops_memread_group1, fops_memread_group2); if (ldv_retval_10 == 0) { ldv_state_variable_48 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53192; case 1: ; if (ldv_state_variable_48 == 2) { single_release(fops_memread_group1, fops_memread_group2); ldv_state_variable_48 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53192; case 2: ; if (ldv_state_variable_48 == 2) { seq_read(fops_memread_group2, ldvarg77, ldvarg76, ldvarg75); ldv_state_variable_48 = 2; } else { } goto ldv_53192; case 3: ; if (ldv_state_variable_48 == 2) { seq_lseek(fops_memread_group2, ldvarg74, ldvarg73); ldv_state_variable_48 = 2; } else { } goto ldv_53192; default: ldv_stop(); } ldv_53192: ; return; } } void ldv_main_exported_42(void) { char *ldvarg82 ; void *tmp ; int ldvarg78 ; loff_t *ldvarg80 ; void *tmp___0 ; loff_t ldvarg79 ; size_t ldvarg81 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg82 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg80 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg78), 0, 4UL); ldv_memset((void *)(& ldvarg79), 0, 8UL); ldv_memset((void *)(& ldvarg81), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_42 == 1) { ldv_retval_11 = simple_open(fops_pmcdata_group1, fops_pmcdata_group2); if (ldv_retval_11 == 0) { ldv_state_variable_42 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53206; case 1: ; if (ldv_state_variable_42 == 2) { wil_pmc_read(fops_pmcdata_group2, ldvarg82, ldvarg81, ldvarg80); ldv_state_variable_42 = 2; } else { } goto ldv_53206; case 2: ; if (ldv_state_variable_42 == 2) { wil_pmc_llseek(fops_pmcdata_group2, ldvarg79, ldvarg78); ldv_state_variable_42 = 2; } else { } goto ldv_53206; case 3: ; if (ldv_state_variable_42 == 2) { ldv_release_42(); ldv_state_variable_42 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53206; default: ldv_stop(); } ldv_53206: ; return; } } void ldv_main_exported_46(void) { size_t ldvarg86 ; char *ldvarg87 ; void *tmp ; loff_t *ldvarg85 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg87 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg85 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg86), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_46 == 1) { ldv_retval_13 = simple_open(fops_reset_group1, fops_reset_group2); if (ldv_retval_13 == 0) { ldv_state_variable_46 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53218; case 1: ; if (ldv_state_variable_46 == 1) { wil_write_file_reset(fops_reset_group2, (char const *)ldvarg87, ldvarg86, ldvarg85); ldv_state_variable_46 = 1; } else { } if (ldv_state_variable_46 == 2) { wil_write_file_reset(fops_reset_group2, (char const *)ldvarg87, ldvarg86, ldvarg85); ldv_state_variable_46 = 2; } else { } goto ldv_53218; case 2: ; if (ldv_state_variable_46 == 2) { ldv_release_46(); ldv_state_variable_46 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53218; default: ldv_stop(); } ldv_53218: ; return; } } void ldv_main_exported_44(void) { size_t ldvarg28 ; char *ldvarg29 ; void *tmp ; size_t ldvarg25 ; char *ldvarg26 ; void *tmp___0 ; loff_t *ldvarg27 ; void *tmp___1 ; loff_t *ldvarg24 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg29 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg26 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(8UL); ldvarg27 = (loff_t *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg24 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg28), 0, 8UL); ldv_memset((void *)(& ldvarg25), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_44 == 1) { ldv_retval_2 = simple_open(fops_back_group1, fops_back_group2); if (ldv_retval_2 == 0) { ldv_state_variable_44 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53232; case 1: ; if (ldv_state_variable_44 == 1) { wil_write_back(fops_back_group2, (char const *)ldvarg29, ldvarg28, ldvarg27); ldv_state_variable_44 = 1; } else { } if (ldv_state_variable_44 == 2) { wil_write_back(fops_back_group2, (char const *)ldvarg29, ldvarg28, ldvarg27); ldv_state_variable_44 = 2; } else { } goto ldv_53232; case 2: ; if (ldv_state_variable_44 == 2) { wil_read_back(fops_back_group2, ldvarg26, ldvarg25, ldvarg24); ldv_state_variable_44 = 2; } else { } goto ldv_53232; case 3: ; if (ldv_state_variable_44 == 2) { ldv_release_44(); ldv_state_variable_44 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53232; default: ldv_stop(); } ldv_53232: ; return; } } void ldv_main_exported_50(void) { size_t ldvarg99 ; size_t ldvarg96 ; char *ldvarg97 ; void *tmp ; loff_t *ldvarg98 ; void *tmp___0 ; int ldvarg93 ; char *ldvarg100 ; void *tmp___1 ; loff_t ldvarg94 ; loff_t *ldvarg95 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg97 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg98 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg100 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg95 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg99), 0, 8UL); ldv_memset((void *)(& ldvarg96), 0, 8UL); ldv_memset((void *)(& ldvarg93), 0, 4UL); ldv_memset((void *)(& ldvarg94), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_50 == 1) { ldv_retval_14 = fops_iomem_x32_open(fops_iomem_x32_group1, fops_iomem_x32_group2); if (ldv_retval_14 == 0) { ldv_state_variable_50 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53249; case 1: ; if (ldv_state_variable_50 == 2) { simple_attr_release(fops_iomem_x32_group1, fops_iomem_x32_group2); ldv_state_variable_50 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53249; case 2: ; if (ldv_state_variable_50 == 1) { simple_attr_write(fops_iomem_x32_group2, (char const *)ldvarg100, ldvarg99, ldvarg98); ldv_state_variable_50 = 1; } else { } if (ldv_state_variable_50 == 2) { simple_attr_write(fops_iomem_x32_group2, (char const *)ldvarg100, ldvarg99, ldvarg98); ldv_state_variable_50 = 2; } else { } goto ldv_53249; case 3: ; if (ldv_state_variable_50 == 2) { simple_attr_read(fops_iomem_x32_group2, ldvarg97, ldvarg96, ldvarg95); ldv_state_variable_50 = 2; } else { } goto ldv_53249; case 4: ; if (ldv_state_variable_50 == 2) { generic_file_llseek(fops_iomem_x32_group2, ldvarg94, ldvarg93); ldv_state_variable_50 = 2; } else { } goto ldv_53249; default: ldv_stop(); } ldv_53249: ; return; } } void ldv_main_exported_39(void) { loff_t *ldvarg103 ; void *tmp ; char *ldvarg105 ; void *tmp___0 ; int ldvarg101 ; loff_t ldvarg102 ; size_t ldvarg104 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg103 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg105 = (char *)tmp___0; ldv_memset((void *)(& ldvarg101), 0, 4UL); ldv_memset((void *)(& ldvarg102), 0, 8UL); ldv_memset((void *)(& ldvarg104), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_39 == 1) { ldv_retval_15 = wil_txdesc_seq_open(fops_txdesc_group1, fops_txdesc_group2); if (ldv_retval_15 == 0) { ldv_state_variable_39 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53264; case 1: ; if (ldv_state_variable_39 == 2) { single_release(fops_txdesc_group1, fops_txdesc_group2); ldv_state_variable_39 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53264; case 2: ; if (ldv_state_variable_39 == 2) { seq_read(fops_txdesc_group2, ldvarg105, ldvarg104, ldvarg103); ldv_state_variable_39 = 2; } else { } goto ldv_53264; case 3: ; if (ldv_state_variable_39 == 2) { seq_lseek(fops_txdesc_group2, ldvarg102, ldvarg101); ldv_state_variable_39 = 2; } else { } goto ldv_53264; default: ldv_stop(); } ldv_53264: ; return; } } void ldv_main_exported_36(void) { size_t ldvarg109 ; loff_t ldvarg107 ; int ldvarg106 ; loff_t *ldvarg108 ; void *tmp ; char *ldvarg110 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg108 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg110 = (char *)tmp___0; ldv_memset((void *)(& ldvarg109), 0, 8UL); ldv_memset((void *)(& ldvarg107), 0, 8UL); ldv_memset((void *)(& ldvarg106), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_36 == 1) { ldv_retval_16 = wil_temp_seq_open(fops_temp_group1, fops_temp_group2); if (ldv_retval_16 == 0) { ldv_state_variable_36 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53278; case 1: ; if (ldv_state_variable_36 == 2) { single_release(fops_temp_group1, fops_temp_group2); ldv_state_variable_36 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53278; case 2: ; if (ldv_state_variable_36 == 2) { seq_read(fops_temp_group2, ldvarg110, ldvarg109, ldvarg108); ldv_state_variable_36 = 2; } else { } goto ldv_53278; case 3: ; if (ldv_state_variable_36 == 2) { seq_lseek(fops_temp_group2, ldvarg107, ldvarg106); ldv_state_variable_36 = 2; } else { } goto ldv_53278; default: ldv_stop(); } ldv_53278: ; return; } } void ldv_main_exported_40(void) { loff_t *ldvarg46 ; void *tmp ; size_t ldvarg47 ; char *ldvarg48 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg46 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg48 = (char *)tmp___0; ldv_memset((void *)(& ldvarg47), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_40 == 1) { ldv_retval_5 = simple_open(fops_wmi_group1, fops_wmi_group2); if (ldv_retval_5 == 0) { ldv_state_variable_40 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53290; case 1: ; if (ldv_state_variable_40 == 1) { wil_write_file_wmi(fops_wmi_group2, (char const *)ldvarg48, ldvarg47, ldvarg46); ldv_state_variable_40 = 1; } else { } if (ldv_state_variable_40 == 2) { wil_write_file_wmi(fops_wmi_group2, (char const *)ldvarg48, ldvarg47, ldvarg46); ldv_state_variable_40 = 2; } else { } goto ldv_53290; case 2: ; if (ldv_state_variable_40 == 2) { ldv_release_40(); ldv_state_variable_40 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53290; default: ldv_stop(); } ldv_53290: ; return; } } void ldv_main_exported_51(void) { char *ldvarg115 ; void *tmp ; size_t ldvarg114 ; loff_t *ldvarg113 ; void *tmp___0 ; loff_t ldvarg112 ; int ldvarg111 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg115 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg113 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg114), 0, 8UL); ldv_memset((void *)(& ldvarg112), 0, 8UL); ldv_memset((void *)(& ldvarg111), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_51 == 1) { ldv_retval_17 = wil_mbox_seq_open(fops_mbox_group1, fops_mbox_group2); if (ldv_retval_17 == 0) { ldv_state_variable_51 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53303; case 1: ; if (ldv_state_variable_51 == 2) { single_release(fops_mbox_group1, fops_mbox_group2); ldv_state_variable_51 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53303; case 2: ; if (ldv_state_variable_51 == 2) { seq_read(fops_mbox_group2, ldvarg115, ldvarg114, ldvarg113); ldv_state_variable_51 = 2; } else { } goto ldv_53303; case 3: ; if (ldv_state_variable_51 == 2) { seq_lseek(fops_mbox_group2, ldvarg112, ldvarg111); ldv_state_variable_51 = 2; } else { } goto ldv_53303; default: ldv_stop(); } ldv_53303: ; return; } } void ldv_main_exported_41(void) { char *ldvarg118 ; void *tmp ; size_t ldvarg117 ; loff_t *ldvarg116 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg118 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg116 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg117), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_41 == 1) { ldv_retval_18 = simple_open(fops_txmgmt_group1, fops_txmgmt_group2); if (ldv_retval_18 == 0) { ldv_state_variable_41 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53315; case 1: ; if (ldv_state_variable_41 == 1) { wil_write_file_txmgmt(fops_txmgmt_group2, (char const *)ldvarg118, ldvarg117, ldvarg116); ldv_state_variable_41 = 1; } else { } if (ldv_state_variable_41 == 2) { wil_write_file_txmgmt(fops_txmgmt_group2, (char const *)ldvarg118, ldvarg117, ldvarg116); ldv_state_variable_41 = 2; } else { } goto ldv_53315; case 2: ; if (ldv_state_variable_41 == 2) { ldv_release_41(); ldv_state_variable_41 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53315; default: ldv_stop(); } ldv_53315: ; return; } } void ldv_main_exported_47(void) { int ldvarg119 ; loff_t ldvarg120 ; size_t ldvarg122 ; loff_t *ldvarg121 ; void *tmp ; char *ldvarg123 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg121 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg123 = (char *)tmp___0; ldv_memset((void *)(& ldvarg119), 0, 4UL); ldv_memset((void *)(& ldvarg120), 0, 8UL); ldv_memset((void *)(& ldvarg122), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_47 == 1) { ldv_retval_19 = simple_open(fops_ioblob_group1, fops_ioblob_group2); if (ldv_retval_19 == 0) { ldv_state_variable_47 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53328; case 1: ; if (ldv_state_variable_47 == 2) { wil_read_file_ioblob(fops_ioblob_group2, ldvarg123, ldvarg122, ldvarg121); ldv_state_variable_47 = 2; } else { } goto ldv_53328; case 2: ; if (ldv_state_variable_47 == 2) { default_llseek(fops_ioblob_group2, ldvarg120, ldvarg119); ldv_state_variable_47 = 2; } else { } goto ldv_53328; case 3: ; if (ldv_state_variable_47 == 2) { ldv_release_47(); ldv_state_variable_47 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53328; default: ldv_stop(); } ldv_53328: ; return; } } void ldv_main_exported_52(void) { loff_t *ldvarg126 ; void *tmp ; char *ldvarg128 ; void *tmp___0 ; loff_t ldvarg125 ; int ldvarg124 ; size_t ldvarg127 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg126 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg128 = (char *)tmp___0; ldv_memset((void *)(& ldvarg125), 0, 8UL); ldv_memset((void *)(& ldvarg124), 0, 4UL); ldv_memset((void *)(& ldvarg127), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_52 == 1) { ldv_retval_20 = wil_vring_seq_open(fops_vring_group1, fops_vring_group2); if (ldv_retval_20 == 0) { ldv_state_variable_52 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53342; case 1: ; if (ldv_state_variable_52 == 2) { single_release(fops_vring_group1, fops_vring_group2); ldv_state_variable_52 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53342; case 2: ; if (ldv_state_variable_52 == 2) { seq_read(fops_vring_group2, ldvarg128, ldvarg127, ldvarg126); ldv_state_variable_52 = 2; } else { } goto ldv_53342; case 3: ; if (ldv_state_variable_52 == 2) { seq_lseek(fops_vring_group2, ldvarg125, ldvarg124); ldv_state_variable_52 = 2; } else { } goto ldv_53342; default: ldv_stop(); } ldv_53342: ; return; } } void ldv_main_exported_38(void) { size_t ldvarg132 ; loff_t ldvarg130 ; char *ldvarg133 ; void *tmp ; int ldvarg129 ; loff_t *ldvarg131 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg133 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg131 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg132), 0, 8UL); ldv_memset((void *)(& ldvarg130), 0, 8UL); ldv_memset((void *)(& ldvarg129), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_38 == 1) { ldv_retval_21 = wil_bf_seq_open(fops_bf_group1, fops_bf_group2); if (ldv_retval_21 == 0) { ldv_state_variable_38 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53356; case 1: ; if (ldv_state_variable_38 == 2) { single_release(fops_bf_group1, fops_bf_group2); ldv_state_variable_38 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53356; case 2: ; if (ldv_state_variable_38 == 2) { seq_read(fops_bf_group2, ldvarg133, ldvarg132, ldvarg131); ldv_state_variable_38 = 2; } else { } goto ldv_53356; case 3: ; if (ldv_state_variable_38 == 2) { seq_lseek(fops_bf_group2, ldvarg130, ldvarg129); ldv_state_variable_38 = 2; } else { } goto ldv_53356; default: ldv_stop(); } ldv_53356: ; return; } } void ldv_main_exported_34(void) { loff_t ldvarg135 ; int ldvarg134 ; size_t ldvarg137 ; char *ldvarg138 ; void *tmp ; loff_t *ldvarg136 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(1UL); ldvarg138 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg136 = (loff_t *)tmp___0; ldv_memset((void *)(& ldvarg135), 0, 8UL); ldv_memset((void *)(& ldvarg134), 0, 4UL); ldv_memset((void *)(& ldvarg137), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_34 == 1) { ldv_retval_22 = wil_link_seq_open(fops_link_group1, fops_link_group2); if (ldv_retval_22 == 0) { ldv_state_variable_34 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53370; case 1: ; if (ldv_state_variable_34 == 2) { single_release(fops_link_group1, fops_link_group2); ldv_state_variable_34 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53370; case 2: ; if (ldv_state_variable_34 == 2) { seq_read(fops_link_group2, ldvarg138, ldvarg137, ldvarg136); ldv_state_variable_34 = 2; } else { } goto ldv_53370; case 3: ; if (ldv_state_variable_34 == 2) { seq_lseek(fops_link_group2, ldvarg135, ldvarg134); ldv_state_variable_34 = 2; } else { } goto ldv_53370; default: ldv_stop(); } ldv_53370: ; return; } } void ldv_main_exported_49(void) { loff_t ldvarg52 ; char *ldvarg55 ; void *tmp ; loff_t *ldvarg53 ; void *tmp___0 ; char *ldvarg58 ; void *tmp___1 ; size_t ldvarg54 ; size_t ldvarg57 ; loff_t *ldvarg56 ; void *tmp___2 ; int ldvarg51 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg55 = (char *)tmp; tmp___0 = ldv_init_zalloc(8UL); ldvarg53 = (loff_t *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg58 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg56 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg52), 0, 8UL); ldv_memset((void *)(& ldvarg54), 0, 8UL); ldv_memset((void *)(& ldvarg57), 0, 8UL); ldv_memset((void *)(& ldvarg51), 0, 4UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_49 == 1) { ldv_retval_6 = wil_fops_ulong_open(wil_fops_ulong_group1, wil_fops_ulong_group2); if (ldv_retval_6 == 0) { ldv_state_variable_49 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53387; case 1: ; if (ldv_state_variable_49 == 2) { simple_attr_release(wil_fops_ulong_group1, wil_fops_ulong_group2); ldv_state_variable_49 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53387; case 2: ; if (ldv_state_variable_49 == 1) { simple_attr_write(wil_fops_ulong_group2, (char const *)ldvarg58, ldvarg57, ldvarg56); ldv_state_variable_49 = 1; } else { } if (ldv_state_variable_49 == 2) { simple_attr_write(wil_fops_ulong_group2, (char const *)ldvarg58, ldvarg57, ldvarg56); ldv_state_variable_49 = 2; } else { } goto ldv_53387; case 3: ; if (ldv_state_variable_49 == 2) { simple_attr_read(wil_fops_ulong_group2, ldvarg55, ldvarg54, ldvarg53); ldv_state_variable_49 = 2; } else { } goto ldv_53387; case 4: ; if (ldv_state_variable_49 == 2) { generic_file_llseek(wil_fops_ulong_group2, ldvarg52, ldvarg51); ldv_state_variable_49 = 2; } else { } goto ldv_53387; default: ldv_stop(); } ldv_53387: ; return; } } void ldv_main_exported_37(void) { size_t ldvarg148 ; loff_t *ldvarg144 ; void *tmp ; char *ldvarg149 ; void *tmp___0 ; char *ldvarg146 ; void *tmp___1 ; size_t ldvarg145 ; loff_t *ldvarg147 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(8UL); ldvarg144 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg149 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(1UL); ldvarg146 = (char *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg147 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg148), 0, 8UL); ldv_memset((void *)(& ldvarg145), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_37 == 1) { ldv_retval_24 = simple_open(fops_ssid_group1, fops_ssid_group2); if (ldv_retval_24 == 0) { ldv_state_variable_37 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53403; case 1: ; if (ldv_state_variable_37 == 1) { wil_write_file_ssid(fops_ssid_group2, (char const *)ldvarg149, ldvarg148, ldvarg147); ldv_state_variable_37 = 1; } else { } if (ldv_state_variable_37 == 2) { wil_write_file_ssid(fops_ssid_group2, (char const *)ldvarg149, ldvarg148, ldvarg147); ldv_state_variable_37 = 2; } else { } goto ldv_53403; case 2: ; if (ldv_state_variable_37 == 2) { wil_read_file_ssid(fops_ssid_group2, ldvarg146, ldvarg145, ldvarg144); ldv_state_variable_37 = 2; } else { } goto ldv_53403; case 3: ; if (ldv_state_variable_37 == 2) { ldv_release_37(); ldv_state_variable_37 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53403; default: ldv_stop(); } ldv_53403: ; return; } } void ldv_main_exported_45(void) { loff_t *ldvarg141 ; void *tmp ; size_t ldvarg142 ; char *ldvarg143 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg141 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg143 = (char *)tmp___0; ldv_memset((void *)(& ldvarg142), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_45 == 1) { ldv_retval_23 = simple_open(fops_rxon_group1, fops_rxon_group2); if (ldv_retval_23 == 0) { ldv_state_variable_45 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53415; case 1: ; if (ldv_state_variable_45 == 1) { wil_write_file_rxon(fops_rxon_group2, (char const *)ldvarg143, ldvarg142, ldvarg141); ldv_state_variable_45 = 1; } else { } if (ldv_state_variable_45 == 2) { wil_write_file_rxon(fops_rxon_group2, (char const *)ldvarg143, ldvarg142, ldvarg141); ldv_state_variable_45 = 2; } else { } goto ldv_53415; case 2: ; if (ldv_state_variable_45 == 2) { ldv_release_45(); ldv_state_variable_45 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53415; default: ldv_stop(); } ldv_53415: ; return; } } void ldv_main_exported_43(void) { char *ldvarg152 ; void *tmp ; char *ldvarg155 ; void *tmp___0 ; size_t ldvarg151 ; loff_t *ldvarg153 ; void *tmp___1 ; size_t ldvarg154 ; loff_t *ldvarg150 ; void *tmp___2 ; int tmp___3 ; { tmp = ldv_init_zalloc(1UL); ldvarg152 = (char *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg155 = (char *)tmp___0; tmp___1 = ldv_init_zalloc(8UL); ldvarg153 = (loff_t *)tmp___1; tmp___2 = ldv_init_zalloc(8UL); ldvarg150 = (loff_t *)tmp___2; ldv_memset((void *)(& ldvarg151), 0, 8UL); ldv_memset((void *)(& ldvarg154), 0, 8UL); tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_43 == 1) { ldv_retval_25 = simple_open(fops_pmccfg_group1, fops_pmccfg_group2); if (ldv_retval_25 == 0) { ldv_state_variable_43 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53429; case 1: ; if (ldv_state_variable_43 == 1) { wil_write_pmccfg(fops_pmccfg_group2, (char const *)ldvarg155, ldvarg154, ldvarg153); ldv_state_variable_43 = 1; } else { } if (ldv_state_variable_43 == 2) { wil_write_pmccfg(fops_pmccfg_group2, (char const *)ldvarg155, ldvarg154, ldvarg153); ldv_state_variable_43 = 2; } else { } goto ldv_53429; case 2: ; if (ldv_state_variable_43 == 2) { wil_read_pmccfg(fops_pmccfg_group2, ldvarg152, ldvarg151, ldvarg150); ldv_state_variable_43 = 2; } else { } goto ldv_53429; case 3: ; if (ldv_state_variable_43 == 2) { ldv_release_43(); ldv_state_variable_43 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53429; default: ldv_stop(); } ldv_53429: ; return; } } void ldv_main_exported_31(void) { int ldvarg62 ; loff_t *ldvarg64 ; void *tmp ; char *ldvarg66 ; void *tmp___0 ; loff_t ldvarg63 ; size_t ldvarg65 ; int tmp___1 ; { tmp = ldv_init_zalloc(8UL); ldvarg64 = (loff_t *)tmp; tmp___0 = ldv_init_zalloc(1UL); ldvarg66 = (char *)tmp___0; ldv_memset((void *)(& ldvarg62), 0, 4UL); ldv_memset((void *)(& ldvarg63), 0, 8UL); ldv_memset((void *)(& ldvarg65), 0, 8UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_31 == 1) { ldv_retval_7 = wil_sta_seq_open(fops_sta_group1, fops_sta_group2); if (ldv_retval_7 == 0) { ldv_state_variable_31 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_53443; case 1: ; if (ldv_state_variable_31 == 2) { single_release(fops_sta_group1, fops_sta_group2); ldv_state_variable_31 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_53443; case 2: ; if (ldv_state_variable_31 == 2) { seq_read(fops_sta_group2, ldvarg66, ldvarg65, ldvarg64); ldv_state_variable_31 = 2; } else { } goto ldv_53443; case 3: ; if (ldv_state_variable_31 == 2) { seq_lseek(fops_sta_group2, ldvarg63, ldvarg62); ldv_state_variable_31 = 2; } else { } goto ldv_53443; default: ldv_stop(); } ldv_53443: ; return; } } __inline static bool IS_ERR_OR_NULL(void const *ptr ) { bool tmp ; { tmp = ldv_is_err_or_null(ptr); return (tmp); } } bool ldv_queue_work_on_229(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_230(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_231(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_232(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_233(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_234(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_235(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_236(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_237(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_238(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_239(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_240(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_241(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static void __read_once_size(void const volatile *p , void *res , int size ) { { switch (size) { case 1: *((__u8 *)res) = *((__u8 volatile *)p); goto ldv_880; case 2: *((__u16 *)res) = *((__u16 volatile *)p); goto ldv_880; case 4: *((__u32 *)res) = *((__u32 volatile *)p); goto ldv_880; case 8: *((__u64 *)res) = *((__u64 volatile *)p); goto ldv_880; default: __asm__ volatile ("": : : "memory"); __builtin_memcpy(res, (void const *)p, (unsigned long )size); __asm__ volatile ("": : : "memory"); } ldv_880: ; return; } } extern struct pv_irq_ops pv_irq_ops ; extern void __bad_percpu_size(void) ; __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 *)"./arch/x86/include/asm/paravirt.h"), "i" (831), "i" (12UL)); ldv_4801: ; goto ldv_4801; } 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" (43UL), [paravirt_opptr] "i" (& pv_irq_ops.save_fl.func), [paravirt_clobber] "i" (1): "memory", "cc"); __ret = __eax; return (__ret); } } __inline static int arch_irqs_disabled_flags(unsigned long flags ) { { return ((flags & 512UL) == 0UL); } } extern int debug_locks ; extern int lock_is_held(struct lockdep_map * ) ; extern void lockdep_rcu_suspicious(char const * , int const , char const * ) ; int ldv_mutex_trylock_267(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_265(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_268(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_269(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_273(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_277(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_279(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_264(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_266(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_270(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_272(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_276(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_278(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_wmi_mutex_of_wil6210_priv(struct mutex *lock ) ; void ldv_mutex_unlock_wmi_mutex_of_wil6210_priv(struct mutex *lock ) ; extern int __preempt_count ; __inline static int preempt_count(void) { int pfo_ret__ ; { switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (__preempt_count)); goto ldv_6654; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6654; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6654; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6654; default: __bad_percpu_size(); } ldv_6654: ; return (pfo_ret__ & 2147483647); } } __inline static void __preempt_count_add(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (val)); } goto ldv_6711; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6711; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6711; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (val)); } goto ldv_6711; default: __bad_percpu_size(); } ldv_6711: ; return; } } __inline static void __preempt_count_sub(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (- val)); } goto ldv_6723; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6723; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6723; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (- val)); } goto ldv_6723; default: __bad_percpu_size(); } ldv_6723: ; return; } } __inline static int static_key_count(struct static_key *key ) { int tmp ; { tmp = atomic_read((atomic_t const *)(& key->enabled)); return (tmp); } } __inline static bool static_key_false(struct static_key *key ) { int tmp ; long tmp___0 ; { tmp = static_key_count(key); tmp___0 = ldv__builtin_expect(tmp > 0, 0L); if (tmp___0 != 0L) { return (1); } else { } return (0); } } extern unsigned long _raw_spin_lock_irqsave(raw_spinlock_t * ) ; extern void _raw_spin_unlock_irqrestore(raw_spinlock_t * , unsigned long ) ; __inline static void spin_unlock_irqrestore(spinlock_t *lock , unsigned long flags ) { { _raw_spin_unlock_irqrestore(& lock->__annonCompField17.rlock, flags); return; } } int ldv_del_timer_sync_274(struct timer_list *ldv_func_arg1 ) ; int ldv_del_timer_sync_275(struct timer_list *ldv_func_arg1 ) ; extern void complete(struct completion * ) ; extern bool rcu_is_watching(void) ; extern bool rcu_lockdep_current_cpu_online(void) ; extern struct lockdep_map rcu_sched_lock_map ; extern int debug_lockdep_rcu_enabled(void) ; __inline static int rcu_read_lock_sched_held(void) { int lockdep_opinion ; int tmp ; bool tmp___0 ; int tmp___1 ; bool tmp___2 ; int tmp___3 ; int tmp___4 ; unsigned long _flags ; int tmp___5 ; int tmp___6 ; { lockdep_opinion = 0; tmp = debug_lockdep_rcu_enabled(); if (tmp == 0) { return (1); } else { } tmp___0 = rcu_is_watching(); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { return (0); } else { } tmp___2 = rcu_lockdep_current_cpu_online(); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { return (0); } else { } if (debug_locks != 0) { lockdep_opinion = lock_is_held(& rcu_sched_lock_map); } else { } if (lockdep_opinion != 0) { tmp___6 = 1; } else { tmp___4 = preempt_count(); if (tmp___4 != 0) { tmp___6 = 1; } else { _flags = arch_local_save_flags(); tmp___5 = arch_irqs_disabled_flags(_flags); if (tmp___5 != 0) { tmp___6 = 1; } else { tmp___6 = 0; } } } return (tmp___6); } } __inline static void rcu_read_lock_sched_notrace(void) { { __preempt_count_add(1); __asm__ volatile ("": : : "memory"); return; } } __inline static void rcu_read_unlock_sched_notrace(void) { { __asm__ volatile ("": : : "memory"); __preempt_count_sub(1); return; } } bool ldv_queue_work_on_259(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_261(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_260(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_263(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_262(struct workqueue_struct *ldv_func_arg1 ) ; __inline static bool queue_work___1(struct workqueue_struct *wq , struct work_struct *work ) { bool tmp ; { tmp = ldv_queue_work_on_259(8192, wq, work); return (tmp); } } extern struct sk_buff *__alloc_skb(unsigned int , gfp_t , int , int ) ; __inline static struct sk_buff *alloc_skb(unsigned int size , gfp_t priority ) { struct sk_buff *tmp ; { tmp = __alloc_skb(size, priority, 0, -1); return (tmp); } } extern unsigned char *skb_put(struct sk_buff * , unsigned int ) ; int ldv_request_threaded_irq_271(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; extern int netif_rx_ni(struct sk_buff * ) ; extern __be16 eth_type_trans(struct sk_buff * , struct net_device * ) ; __inline static int ieee80211_is_probe_resp(__le16 fc ) { { return (((int )fc & 252) == 80); } } __inline static int ieee80211_is_beacon(__le16 fc ) { { return (((int )fc & 252) == 128); } } extern int ieee80211_channel_to_frequency(int , enum ieee80211_band ) ; extern struct ieee80211_channel *__ieee80211_get_channel(struct wiphy * , int ) ; __inline static struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy , int freq ) { struct ieee80211_channel *tmp ; { tmp = __ieee80211_get_channel(wiphy, freq); return (tmp); } } extern struct cfg80211_bss *cfg80211_inform_bss_width_frame(struct wiphy * , struct ieee80211_channel * , enum nl80211_bss_scan_width , struct ieee80211_mgmt * , size_t , s32 , gfp_t ) ; __inline static struct cfg80211_bss *cfg80211_inform_bss_frame(struct wiphy *wiphy , struct ieee80211_channel *rx_channel , struct ieee80211_mgmt *mgmt , size_t len , s32 signal , gfp_t gfp ) { struct cfg80211_bss *tmp ; { tmp = cfg80211_inform_bss_width_frame(wiphy, rx_channel, 0, mgmt, len, signal, gfp); return (tmp); } } extern void cfg80211_new_sta(struct net_device * , u8 const * , struct station_info * , gfp_t ) ; extern bool cfg80211_rx_mgmt(struct wireless_dev * , int , int , u8 const * , size_t , u32 ) ; int agg_wsize ; bool rx_align_2 ; __inline static u32 wil_mtu2macbuf(u32 mtu ) { { return ((mtu + 69U) & 4294967288U); } } __inline static void parse_cidxtid(u8 cidxtid , u8 *cid , u8 *tid ) { { *cid = (unsigned int )cidxtid & 15U; *tid = (u8 )((int )cidxtid >> 4); return; } } void wmi_recv_cmd(struct wil6210_priv *wil ) ; int wmi_get_ssid(struct wil6210_priv *wil , u8 *ssid_len , void *ssid ) ; int wmi_get_channel(struct wil6210_priv *wil , int *channel ) ; int wmi_rx_chain_add(struct wil6210_priv *wil , struct vring *vring ) ; int wmi_p2p_cfg(struct wil6210_priv *wil , int channel ) ; int wmi_addba_rx_resp(struct wil6210_priv *wil , u8 cid , u8 tid , u8 token , u16 status , bool amsdu , u16 agg_wsize___0 , u16 timeout ) ; int wil_addba_rx_request(struct wil6210_priv *wil , u8 cidxtid , u8 dialog_token , __le16 ba_param_set , __le16 ba_timeout , __le16 ba_seq_ctrl ) ; int wil_addba_tx_request(struct wil6210_priv *wil , u8 ringid , u16 wsize ) ; struct tracepoint __tracepoint_wil6210_wmi_cmd ; __inline static void trace_wil6210_wmi_cmd(struct wil6210_mbox_hdr_wmi *wmi , void *buf , u16 buf_len ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_361 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_363 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_wmi_cmd.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_wmi_cmd.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 69, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_49508: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , struct wil6210_mbox_hdr_wmi * , void * , u16 ))it_func))(__data, wmi, buf, (int )buf_len); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_49508; } else { } } else { } rcu_read_unlock_sched_notrace(); } else { } rcu_read_lock_sched_notrace(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_wmi_cmd.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 69, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace(); return; } } struct tracepoint __tracepoint_wil6210_wmi_event ; __inline static void trace_wil6210_wmi_event(struct wil6210_mbox_hdr_wmi *wmi , void *buf , u16 buf_len ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_365 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_367 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_wmi_event.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_wmi_event.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 74, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_49569: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , struct wil6210_mbox_hdr_wmi * , void * , u16 ))it_func))(__data, wmi, buf, (int )buf_len); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_49569; } else { } } else { } rcu_read_unlock_sched_notrace(); } else { } rcu_read_lock_sched_notrace(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_wmi_event.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 74, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace(); return; } } static uint max_assoc_sta = 8U; struct fw_map const fw_mapping[8U] = { {0U, 262144U, 9175040U, "fw_code"}, {8388608U, 8421376U, 9437184U, "fw_data"}, {8650752U, 8781824U, 9469952U, "fw_peri"}, {8912896U, 8953856U, 8912896U, "rgf"}, {8953856U, 8957952U, 8953856U, "AGC_tbl"}, {8957952U, 8962048U, 8957952U, "rgf_ext"}, {8962048U, 8962560U, 8962048U, "mac_rgf_ext"}, {9175040U, 9736192U, 9175040U, "upper"}}; static u32 wmi_addr_remap(u32 x ) { uint i ; { i = 0U; goto ldv_50251; ldv_50250: ; if ((u32 )fw_mapping[i].from <= x && (u32 )fw_mapping[i].to > x) { return (((u32 )fw_mapping[i].host + x) - (u32 )fw_mapping[i].from); } else { } i = i + 1U; ldv_50251: ; if (i <= 7U) { goto ldv_50250; } else { } return (0U); } } void *wmi_buffer(struct wil6210_priv *wil , __le32 ptr_ ) { u32 off ; u32 ptr ; { ptr = ptr_; if ((ptr & 3U) != 0U) { return ((void *)0); } else { } ptr = wmi_addr_remap(ptr); if (ptr <= 8912895U) { return ((void *)0); } else { } off = ptr - 8912896U; if (off > 2097148U) { return ((void *)0); } else { } return (wil->csr + (unsigned long )off); } } void *wmi_addr(struct wil6210_priv *wil , u32 ptr ) { u32 off ; { if ((ptr & 3U) != 0U) { return ((void *)0); } else { } if (ptr <= 8912895U) { return ((void *)0); } else { } off = ptr - 8912896U; if (off > 2097148U) { return ((void *)0); } else { } return (wil->csr + (unsigned long )off); } } int wmi_read_hdr(struct wil6210_priv *wil , __le32 ptr , struct wil6210_mbox_hdr *hdr ) { void *src ; void *tmp ; { tmp = wmi_buffer(wil, ptr); src = tmp; if ((unsigned long )src == (unsigned long )((void *)0)) { return (-22); } else { } wil_memcpy_fromio_32((void *)hdr, (void const volatile *)src, 8UL); return (0); } } static int __wmi_send(struct wil6210_priv *wil , u16 cmdid , void *buf , u16 len ) { struct __anonstruct_cmd_414 cmd ; struct wil6210_mbox_ring *r ; struct wil6210_mbox_ring_desc d_head ; u32 next_head ; void *dst ; void *head ; void *tmp ; uint retry ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; struct _ddebug descriptor___2 ; long tmp___4 ; u32 tmp___5 ; { cmd.hdr.seq = (unsigned short)0; cmd.hdr.len = (unsigned int )len + 8U; cmd.hdr.type = 0U; cmd.hdr.flags = 0U; cmd.hdr.reserved = (unsigned char)0; cmd.wmi.mid = 0U; cmd.wmi.reserved = (unsigned char)0; cmd.wmi.id = cmdid; cmd.wmi.timestamp = 0U; r = & wil->mbox_ctl.tx; tmp = wmi_addr(wil, r->head); head = tmp; if ((unsigned long )len + 16UL > (unsigned long )r->entry_size) { wil_err(wil, "WMI size too large: %d bytes, max is %d\n", (int )((unsigned int )len + 16U), (int )r->entry_size); return (-34); } else { } __might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c", 204, 0); tmp___0 = constant_test_bit(0L, (unsigned long const volatile *)(& wil->status)); if (tmp___0 == 0) { wil_err(wil, "WMI: cannot send command while FW not ready\n"); return (-11); } else { } if ((unsigned long )head == (unsigned long )((void *)0)) { wil_err(wil, "WMI head is garbage: 0x%08x\n", r->head); return (-22); } else { } retry = 5U; goto ldv_50288; ldv_50287: wil_memcpy_fromio_32((void *)(& d_head), (void const volatile *)head, 8UL); if (d_head.sync == 0U) { goto ldv_50286; } else { } msleep(20U); retry = retry - 1U; ldv_50288: ; if (retry != 0U) { goto ldv_50287; } else { } ldv_50286: ; if (d_head.sync != 0U) { wil_err(wil, "WMI head busy\n"); return (-16); } else { } next_head = r->base + (u32 )(((unsigned long )(r->head - r->base) + 8UL) % (unsigned long )r->size); descriptor.modname = "wil6210"; descriptor.function = "__wmi_send"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Head 0x%08x -> 0x%08x\n"; descriptor.lineno = 228U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Head 0x%08x -> 0x%08x\n", r->head, next_head); } else { } wil_dbg_trace(wil, "DBG[ WMI]Head 0x%08x -> 0x%08x\n", r->head, next_head); retry = 5U; goto ldv_50293; ldv_50292: r->tail = ioread32(wil->csr + 708U); if (r->tail != next_head) { goto ldv_50291; } else { } msleep(20U); retry = retry - 1U; ldv_50293: ; if (retry != 0U) { goto ldv_50292; } else { } ldv_50291: ; if (r->tail == next_head) { wil_err(wil, "WMI ring full\n"); return (-16); } else { } dst = wmi_buffer(wil, d_head.addr); if ((unsigned long )dst == (unsigned long )((void *)0)) { wil_err(wil, "invalid WMI buffer: 0x%08x\n", d_head.addr); return (-22); } else { } wil->wmi_seq = (u16 )((int )wil->wmi_seq + 1); cmd.hdr.seq = wil->wmi_seq; descriptor___0.modname = "wil6210"; descriptor___0.function = "__wmi_send"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[ WMI]WMI command 0x%04x [%d]\n"; descriptor___0.lineno = 249U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]WMI command 0x%04x [%d]\n", (int )cmdid, (int )len); } else { } wil_dbg_trace(wil, "DBG[ WMI]WMI command 0x%04x [%d]\n", (int )cmdid, (int )len); descriptor___1.modname = "wil6210"; descriptor___1.function = "__wmi_send"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___1.format = "DBG[ WMI]Cmd "; descriptor___1.lineno = 251U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { print_hex_dump("\017", "DBG[ WMI]Cmd ", 2, 16, 1, (void const *)(& cmd), 16UL, 1); } else { } descriptor___2.modname = "wil6210"; descriptor___2.function = "__wmi_send"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___2.format = "DBG[ WMI]cmd "; descriptor___2.lineno = 253U; descriptor___2.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___4 != 0L) { print_hex_dump("\017", "DBG[ WMI]cmd ", 2, 16, 1, (void const *)buf, (size_t )len, 1); } else { } wil_memcpy_toio_32((void volatile *)dst, (void const *)(& cmd), 16UL); wil_memcpy_toio_32((void volatile *)dst + 16U, (void const *)buf, (size_t )len); iowrite32(1U, wil->csr + ((unsigned long )r->head + 0xffffffffff780000UL)); tmp___5 = next_head; r->head = tmp___5; iowrite32(tmp___5, wil->csr + 712U); trace_wil6210_wmi_cmd(& cmd.wmi, buf, (int )len); iowrite32(262144U, wil->csr + 2904UL); return (0); } } int wmi_send(struct wil6210_priv *wil , u16 cmdid , void *buf , u16 len ) { int rc ; { ldv_mutex_lock_272(& wil->wmi_mutex); rc = __wmi_send(wil, (int )cmdid, buf, (int )len); ldv_mutex_unlock_273(& wil->wmi_mutex); return (rc); } } static void wmi_evt_ready(struct wil6210_priv *wil , int id , void *d , int len ) { struct wireless_dev *wdev ; struct wmi_ready_event *evt ; { wdev = wil->wdev; evt = (struct wmi_ready_event *)d; wil->fw_version = evt->sw_version; wil->n_mids = evt->numof_additional_mids; wil_info(wil, "FW ver. %d; MAC %pM; %d MID\'s\n", wil->fw_version, (u8 *)(& evt->mac), (int )wil->n_mids); snprintf((char *)(& (wdev->wiphy)->fw_version), 32UL, "%d", wil->fw_version); return; } } static void wmi_evt_fw_ready(struct wil6210_priv *wil , int id , void *d , int len ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_fw_ready"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]WMI: got FW ready event\n"; descriptor.lineno = 301U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]WMI: got FW ready event\n"); } else { } wil_dbg_trace(wil, "DBG[ WMI]WMI: got FW ready event\n"); wil_set_recovery_state(wil, 0); set_bit(0L, (unsigned long volatile *)(& wil->status)); complete(& wil->wmi_ready); return; } } static void wmi_evt_rx_mgmt(struct wil6210_priv *wil , int id , void *d , int len ) { struct wmi_rx_mgmt_packet_event *data ; struct wiphy *wiphy ; struct ieee80211_mgmt *rx_mgmt_frame ; int ch_no ; u32 freq ; int tmp ; struct ieee80211_channel *channel ; struct ieee80211_channel *tmp___0 ; s32 signal ; __le16 fc ; u32 d_len ; u16 d_status ; struct _ddebug descriptor ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; struct cfg80211_bss *bss ; u64 tsf ; u16 cap ; u16 bi ; u8 const *ie_buf ; size_t ie_len ; struct _ddebug descriptor___2 ; long tmp___4 ; struct _ddebug descriptor___3 ; long tmp___5 ; struct _ddebug descriptor___4 ; long tmp___6 ; struct _ddebug descriptor___5 ; long tmp___7 ; struct _ddebug descriptor___6 ; long tmp___8 ; int tmp___9 ; int tmp___10 ; { data = (struct wmi_rx_mgmt_packet_event *)d; wiphy = (wil->wdev)->wiphy; rx_mgmt_frame = (struct ieee80211_mgmt *)(& data->payload); ch_no = (int )data->info.channel + 1; tmp = ieee80211_channel_to_frequency(ch_no, 2); freq = (u32 )tmp; tmp___0 = ieee80211_get_channel(wiphy, (int )freq); channel = tmp___0; signal = (s32 )data->info.sqi; fc = rx_mgmt_frame->frame_control; d_len = data->info.len; d_status = data->info.status; descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_rx_mgmt"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]MGMT: channel %d MCS %d SNR %d SQI %d%%\n"; descriptor.lineno = 326U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]MGMT: channel %d MCS %d SNR %d SQI %d%%\n", (int )data->info.channel, (int )data->info.mcs, (int )data->info.snr, (int )data->info.sqi); } else { } wil_dbg_trace(wil, "DBG[ WMI]MGMT: channel %d MCS %d SNR %d SQI %d%%\n", (int )data->info.channel, (int )data->info.mcs, (int )data->info.snr, (int )data->info.sqi); descriptor___0.modname = "wil6210"; descriptor___0.function = "wmi_evt_rx_mgmt"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[ WMI]status 0x%04x len %d fc 0x%04x\n"; descriptor___0.lineno = 328U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]status 0x%04x len %d fc 0x%04x\n", (int )d_status, d_len, (int )fc); } else { } wil_dbg_trace(wil, "DBG[ WMI]status 0x%04x len %d fc 0x%04x\n", (int )d_status, d_len, (int )fc); descriptor___1.modname = "wil6210"; descriptor___1.function = "wmi_evt_rx_mgmt"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___1.format = "DBG[ WMI]qid %d mid %d cid %d\n"; descriptor___1.lineno = 330U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]qid %d mid %d cid %d\n", (int )data->info.qid, (int )data->info.mid, (int )data->info.cid); } else { } wil_dbg_trace(wil, "DBG[ WMI]qid %d mid %d cid %d\n", (int )data->info.qid, (int )data->info.mid, (int )data->info.cid); if ((unsigned long )channel == (unsigned long )((struct ieee80211_channel *)0)) { wil_err(wil, "Frame on unsupported channel\n"); return; } else { } tmp___9 = ieee80211_is_beacon((int )fc); if (tmp___9 != 0) { goto _L; } else { tmp___10 = ieee80211_is_probe_resp((int )fc); if (tmp___10 != 0) { _L: /* CIL Label */ tsf = rx_mgmt_frame->u.beacon.timestamp; cap = rx_mgmt_frame->u.beacon.capab_info; bi = rx_mgmt_frame->u.beacon.beacon_int; ie_buf = (u8 const *)(& rx_mgmt_frame->u.beacon.variable); ie_len = (unsigned long )d_len - 36UL; descriptor___2.modname = "wil6210"; descriptor___2.function = "wmi_evt_rx_mgmt"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___2.format = "DBG[ WMI]Capability info : 0x%04x\n"; descriptor___2.lineno = 345U; descriptor___2.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Capability info : 0x%04x\n", (int )cap); } else { } wil_dbg_trace(wil, "DBG[ WMI]Capability info : 0x%04x\n", (int )cap); descriptor___3.modname = "wil6210"; descriptor___3.function = "wmi_evt_rx_mgmt"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___3.format = "DBG[ WMI]TSF : 0x%016llx\n"; descriptor___3.lineno = 346U; descriptor___3.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]TSF : 0x%016llx\n", tsf); } else { } wil_dbg_trace(wil, "DBG[ WMI]TSF : 0x%016llx\n", tsf); descriptor___4.modname = "wil6210"; descriptor___4.function = "wmi_evt_rx_mgmt"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___4.format = "DBG[ WMI]Beacon interval : %d\n"; descriptor___4.lineno = 347U; descriptor___4.flags = 0U; tmp___6 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___6 != 0L) { __dynamic_netdev_dbg(& descriptor___4, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Beacon interval : %d\n", (int )bi); } else { } wil_dbg_trace(wil, "DBG[ WMI]Beacon interval : %d\n", (int )bi); descriptor___5.modname = "wil6210"; descriptor___5.function = "wmi_evt_rx_mgmt"; descriptor___5.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___5.format = "DBG[ WMI]IE "; descriptor___5.lineno = 349U; descriptor___5.flags = 0U; tmp___7 = ldv__builtin_expect((long )descriptor___5.flags & 1L, 0L); if (tmp___7 != 0L) { print_hex_dump("\017", "DBG[ WMI]IE ", 2, 16, 1, (void const *)ie_buf, ie_len, 1); } else { } bss = cfg80211_inform_bss_frame(wiphy, channel, rx_mgmt_frame, (size_t )d_len, signal, 208U); if ((unsigned long )bss != (unsigned long )((struct cfg80211_bss *)0)) { descriptor___6.modname = "wil6210"; descriptor___6.function = "wmi_evt_rx_mgmt"; descriptor___6.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___6.format = "DBG[ WMI]Added BSS %pM\n"; descriptor___6.lineno = 355U; descriptor___6.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___6.flags & 1L, 0L); if (tmp___8 != 0L) { __dynamic_netdev_dbg(& descriptor___6, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Added BSS %pM\n", (u8 *)(& rx_mgmt_frame->bssid)); } else { } wil_dbg_trace(wil, "DBG[ WMI]Added BSS %pM\n", (u8 *)(& rx_mgmt_frame->bssid)); cfg80211_put_bss(wiphy, bss); } else { wil_err(wil, "cfg80211_inform_bss_frame() failed\n"); } } else { cfg80211_rx_mgmt(wil->wdev, (int )freq, signal, (u8 const *)rx_mgmt_frame, (size_t )d_len, 0U); } } return; } } static void wmi_evt_scan_complete(struct wil6210_priv *wil , int id , void *d , int len ) { struct wmi_scan_complete_event *data ; bool aborted ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; { if ((unsigned long )wil->scan_request != (unsigned long )((struct cfg80211_scan_request *)0)) { data = (struct wmi_scan_complete_event *)d; aborted = data->status != 0U; descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_scan_complete"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]SCAN_COMPLETE(0x%08x)\n"; descriptor.lineno = 373U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]SCAN_COMPLETE(0x%08x)\n", data->status); } else { } wil_dbg_trace(wil, "DBG[ WMI]SCAN_COMPLETE(0x%08x)\n", data->status); descriptor___0.modname = "wil6210"; descriptor___0.function = "wmi_evt_scan_complete"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[MISC]Complete scan_request 0x%p aborted %d\n"; descriptor___0.lineno = 375U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Complete scan_request 0x%p aborted %d\n", wil->scan_request, (int )aborted); } else { } wil_dbg_trace(wil, "DBG[MISC]Complete scan_request 0x%p aborted %d\n", wil->scan_request, (int )aborted); ldv_del_timer_sync_274(& wil->scan_timer); cfg80211_scan_done(wil->scan_request, (int )aborted); wil->scan_request = (struct cfg80211_scan_request *)0; } else { wil_err(wil, "SCAN_COMPLETE while not scanning\n"); } return; } } static void wmi_evt_connect(struct wil6210_priv *wil , int id , void *d , int len ) { struct net_device *ndev ; struct wireless_dev *wdev ; struct wmi_connect_event *evt ; int ch ; struct station_info sinfo ; u8 *assoc_req_ie ; u8 *assoc_resp_ie ; size_t assoc_req_ielen ; size_t assoc_resp_ielen ; size_t assoc_req_ie_offset ; size_t assoc_resp_ie_offset ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; int tmp___1 ; int tmp___2 ; { ndev = (wil->wdev)->netdev; wdev = wil->wdev; evt = (struct wmi_connect_event *)d; assoc_req_ie_offset = 4UL; assoc_resp_ie_offset = 6UL; if ((unsigned int )len <= 22U) { wil_err(wil, "Connect event too short : %d bytes\n", len); return; } else { } if ((unsigned long )len != (((unsigned long )evt->beacon_ie_len + (unsigned long )evt->assoc_req_len) + (unsigned long )evt->assoc_resp_len) + 23UL) { wil_err(wil, "Connect event corrupted : %d != %d + %d + %d + %d\n", len, 23, (int )evt->beacon_ie_len, (int )evt->assoc_req_len, (int )evt->assoc_resp_len); return; } else { } if ((unsigned int )evt->cid > 7U) { wil_err(wil, "Connect CID invalid : %d\n", (int )evt->cid); return; } else { } ch = (int )evt->channel + 1; descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_connect"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Connect %pM channel [%d] cid %d\n"; descriptor.lineno = 418U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Connect %pM channel [%d] cid %d\n", (u8 *)(& evt->bssid), ch, (int )evt->cid); } else { } wil_dbg_trace(wil, "DBG[ WMI]Connect %pM channel [%d] cid %d\n", (u8 *)(& evt->bssid), ch, (int )evt->cid); descriptor___0.modname = "wil6210"; descriptor___0.function = "wmi_evt_connect"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[ WMI]connect AI : "; descriptor___0.lineno = 420U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { print_hex_dump("\017", "DBG[ WMI]connect AI : ", 2, 16, 1, (void const *)(& evt->assoc_info), (unsigned long )len - 23UL, 1); } else { } assoc_req_ie = (u8 *)(& evt->assoc_info) + ((unsigned long )evt->beacon_ie_len + assoc_req_ie_offset); assoc_req_ielen = (unsigned long )evt->assoc_req_len - assoc_req_ie_offset; if ((unsigned long )evt->assoc_req_len <= assoc_req_ie_offset) { assoc_req_ie = (u8 *)0U; assoc_req_ielen = 0UL; } else { } assoc_resp_ie = (u8 *)(& evt->assoc_info) + ((unsigned long )((int )evt->beacon_ie_len + (int )evt->assoc_req_len) + assoc_resp_ie_offset); assoc_resp_ielen = (unsigned long )evt->assoc_resp_len - assoc_resp_ie_offset; if ((unsigned long )evt->assoc_resp_len <= assoc_resp_ie_offset) { assoc_resp_ie = (u8 *)0U; assoc_resp_ielen = 0UL; } else { } if ((unsigned int )wdev->iftype == 2U || (unsigned int )wdev->iftype == 8U) { tmp___1 = constant_test_bit(1L, (unsigned long const volatile *)(& wil->status)); if (tmp___1 == 0) { wil_err(wil, "Not in connecting state\n"); return; } else { } ldv_del_timer_sync_275(& wil->connect_timer); cfg80211_connect_result(ndev, (u8 const *)(& evt->bssid), (u8 const *)assoc_req_ie, assoc_req_ielen, (u8 const *)assoc_resp_ie, assoc_resp_ielen, 0, 208U); } else if ((unsigned int )wdev->iftype == 3U || (unsigned int )wdev->iftype == 9U) { memset((void *)(& sinfo), 0, 840UL); tmp___2 = wil->sinfo_gen; wil->sinfo_gen = wil->sinfo_gen + 1; sinfo.generation = tmp___2; if ((unsigned long )assoc_req_ie != (unsigned long )((u8 *)0U)) { sinfo.assoc_req_ies = (u8 const *)assoc_req_ie; sinfo.assoc_req_ies_len = assoc_req_ielen; } else { } cfg80211_new_sta(ndev, (u8 const *)(& evt->bssid), & sinfo, 208U); } else { } clear_bit(1L, (unsigned long volatile *)(& wil->status)); set_bit(2L, (unsigned long volatile *)(& wil->status)); ether_addr_copy((u8 *)(& wil->sta[(int )evt->cid].addr), (u8 const *)(& evt->bssid)); wil->sta[(int )evt->cid].status = 1; wil->pending_connect_cid = (int )evt->cid; queue_work___1(wil->wq_service, & wil->connect_worker); return; } } static void wmi_evt_disconnect(struct wil6210_priv *wil , int id , void *d , int len ) { struct wmi_disconnect_event *evt ; u16 reason_code ; struct _ddebug descriptor ; long tmp ; { evt = (struct wmi_disconnect_event *)d; reason_code = evt->protocol_reason_status; descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_disconnect"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Disconnect %pM reason [proto %d wmi %d]\n"; descriptor.lineno = 484U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Disconnect %pM reason [proto %d wmi %d]\n", (u8 *)(& evt->bssid), (int )reason_code, (int )evt->disconnect_reason); } else { } wil_dbg_trace(wil, "DBG[ WMI]Disconnect %pM reason [proto %d wmi %d]\n", (u8 *)(& evt->bssid), (int )reason_code, (int )evt->disconnect_reason); wil->sinfo_gen = wil->sinfo_gen + 1; ldv_mutex_lock_276(& wil->mutex); wil6210_disconnect(wil, (u8 const *)(& evt->bssid), (int )reason_code, 1); ldv_mutex_unlock_277(& wil->mutex); return; } } static void wmi_evt_eapol_rx(struct wil6210_priv *wil , int id , void *d , int len ) { struct net_device *ndev ; struct wmi_eapol_rx_event *evt ; u16 eapol_len ; int sz ; struct sk_buff *skb ; struct ethhdr *eth ; int cid ; struct wil_net_stats *stats ; struct _ddebug descriptor ; long tmp ; unsigned char *tmp___0 ; unsigned char *tmp___1 ; int tmp___2 ; long tmp___3 ; { ndev = (wil->wdev)->netdev; evt = (struct wmi_eapol_rx_event *)d; eapol_len = evt->eapol_len; sz = (int )eapol_len + 14; stats = (struct wil_net_stats *)0; descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_eapol_rx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]EAPOL len %d from %pM\n"; descriptor.lineno = 510U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]EAPOL len %d from %pM\n", (int )eapol_len, (u8 *)(& evt->src_mac)); } else { } wil_dbg_trace(wil, "DBG[ WMI]EAPOL len %d from %pM\n", (int )eapol_len, (u8 *)(& evt->src_mac)); cid = wil_find_cid(wil, (u8 const *)(& evt->src_mac)); if (cid >= 0) { stats = & wil->sta[cid].stats; } else { } if ((unsigned int )eapol_len > 196U) { wil_err(wil, "EAPOL too large\n"); return; } else { } skb = alloc_skb((unsigned int )sz, 208U); if ((unsigned long )skb == (unsigned long )((struct sk_buff *)0)) { wil_err(wil, "Failed to allocate skb\n"); return; } else { } tmp___0 = skb_put(skb, 14U); eth = (struct ethhdr *)tmp___0; ether_addr_copy((u8 *)(& eth->h_dest), (u8 const *)ndev->dev_addr); ether_addr_copy((u8 *)(& eth->h_source), (u8 const *)(& evt->src_mac)); eth->h_proto = 36488U; tmp___1 = skb_put(skb, (unsigned int )eapol_len); memcpy((void *)tmp___1, (void const *)(& evt->eapol), (size_t )eapol_len); skb->protocol = eth_type_trans(skb, ndev); tmp___2 = netif_rx_ni(skb); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 1L); if (tmp___3 != 0L) { ndev->stats.rx_packets = ndev->stats.rx_packets + 1UL; ndev->stats.rx_bytes = ndev->stats.rx_bytes + (unsigned long )sz; if ((unsigned long )stats != (unsigned long )((struct wil_net_stats *)0)) { stats->rx_packets = stats->rx_packets + 1UL; stats->rx_bytes = stats->rx_bytes + (unsigned long )sz; } else { } } else { ndev->stats.rx_dropped = ndev->stats.rx_dropped + 1UL; if ((unsigned long )stats != (unsigned long )((struct wil_net_stats *)0)) { stats->rx_dropped = stats->rx_dropped + 1UL; } else { } } return; } } static void wmi_evt_vring_en(struct wil6210_priv *wil , int id , void *d , int len ) { struct wmi_vring_en_event *evt ; u8 vri ; struct _ddebug descriptor ; long tmp ; { evt = (struct wmi_vring_en_event *)d; vri = evt->vring_index; descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_vring_en"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Enable vring %d\n"; descriptor.lineno = 552U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Enable vring %d\n", (int )vri); } else { } wil_dbg_trace(wil, "DBG[ WMI]Enable vring %d\n", (int )vri); if ((unsigned int )vri > 23U) { wil_err(wil, "Enable for invalid vring %d\n", (int )vri); return; } else { } wil->vring_tx_data[(int )vri].dot1x_open = 1; if ((int )vri == wil->bcast_vring) { return; } else { } if (agg_wsize >= 0) { wil_addba_tx_request(wil, (int )vri, (int )((u16 )agg_wsize)); } else { } return; } } static void wmi_evt_ba_status(struct wil6210_priv *wil , int id , void *d , int len ) { struct wmi_vring_ba_status_event *evt ; struct vring_tx_data *txdata ; struct _ddebug descriptor ; long tmp ; { evt = (struct wmi_vring_ba_status_event *)d; descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_ba_status"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]BACK[%d] %s {%d} timeout %d AMSDU%s\n"; descriptor.lineno = 575U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]BACK[%d] %s {%d} timeout %d AMSDU%s\n", (int )evt->ringid, (unsigned int )evt->status == 0U ? (char *)"OK" : (char *)"N/A", (int )evt->agg_wsize, (int )evt->ba_timeout, (unsigned int )evt->amsdu != 0U ? (char *)"+" : (char *)"-"); } else { } wil_dbg_trace(wil, "DBG[ WMI]BACK[%d] %s {%d} timeout %d AMSDU%s\n", (int )evt->ringid, (unsigned int )evt->status == 0U ? (char *)"OK" : (char *)"N/A", (int )evt->agg_wsize, (int )evt->ba_timeout, (unsigned int )evt->amsdu != 0U ? (char *)"+" : (char *)"-"); if ((unsigned int )evt->ringid > 23U) { wil_err(wil, "invalid ring id %d\n", (int )evt->ringid); return; } else { } if ((unsigned int )evt->status != 0U) { evt->ba_timeout = 0U; evt->agg_wsize = 0U; evt->amsdu = 0U; } else { } txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )evt->ringid; txdata->agg_timeout = evt->ba_timeout; txdata->agg_wsize = evt->agg_wsize; txdata->agg_amsdu = evt->amsdu; txdata->addba_in_progress = 0; return; } } static void wmi_evt_addba_rx_req(struct wil6210_priv *wil , int id , void *d , int len ) { struct wmi_rcp_addba_req_event *evt ; { evt = (struct wmi_rcp_addba_req_event *)d; wil_addba_rx_request(wil, (int )evt->cidxtid, (int )evt->dialog_token, (int )evt->ba_param_set, (int )evt->ba_timeout, (int )evt->ba_seq_ctrl); return; } } static void wmi_evt_delba(struct wil6210_priv *wil , int id , void *d , int len ) { struct wmi_delba_event *evt ; u8 cid ; u8 tid ; u16 reason ; struct wil_sta_info *sta ; struct wil_tid_ampdu_rx *r ; struct _ddebug descriptor ; long tmp ; int i ; struct vring_tx_data *txdata ; struct _ddebug descriptor___0 ; long tmp___0 ; { evt = (struct wmi_delba_event *)d; reason = evt->reason; __might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c", 615, 0); parse_cidxtid((int )evt->cidxtid, & cid, & tid); descriptor.modname = "wil6210"; descriptor.function = "wmi_evt_delba"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]DELBA CID %d TID %d from %s reason %d\n"; descriptor.lineno = 620U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]DELBA CID %d TID %d from %s reason %d\n", (int )cid, (int )tid, (unsigned int )evt->from_initiator != 0U ? (char *)"originator" : (char *)"recipient", (int )reason); } else { } wil_dbg_trace(wil, "DBG[ WMI]DELBA CID %d TID %d from %s reason %d\n", (int )cid, (int )tid, (unsigned int )evt->from_initiator != 0U ? (char *)"originator" : (char *)"recipient", (int )reason); if ((unsigned int )evt->from_initiator == 0U) { i = 0; goto ldv_50458; ldv_50457: ; if ((int )wil->vring2cid_tid[i][0] == (int )cid && (int )wil->vring2cid_tid[i][1] == (int )tid) { txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )i; descriptor___0.modname = "wil6210"; descriptor___0.function = "wmi_evt_delba"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[ WMI]DELBA Tx vring %d\n"; descriptor___0.lineno = 630U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]DELBA Tx vring %d\n", i); } else { } wil_dbg_trace(wil, "DBG[ WMI]DELBA Tx vring %d\n", i); txdata->agg_timeout = 0U; txdata->agg_wsize = 0U; txdata->addba_in_progress = 0; goto ldv_50456; } else { } i = i + 1; ldv_50458: ; if ((unsigned int )i <= 23U) { goto ldv_50457; } else { } ldv_50456: ; if ((unsigned int )i > 23U) { wil_err(wil, "DELBA: unable to find Tx vring\n"); } else { } return; } else { } sta = (struct wil_sta_info *)(& wil->sta) + (unsigned long )cid; spin_lock_bh(& sta->tid_rx_lock); r = sta->tid_rx[(int )tid]; sta->tid_rx[(int )tid] = (struct wil_tid_ampdu_rx *)0; wil_tid_ampdu_rx_free(wil, r); spin_unlock_bh(& sta->tid_rx_lock); return; } } static struct __anonstruct_wmi_evt_handlers_418 const wmi_evt_handlers[11U] = { {4097, & wmi_evt_ready}, {6145, & wmi_evt_fw_ready}, {6208, & wmi_evt_rx_mgmt}, {4106, & wmi_evt_scan_complete}, {4098, & wmi_evt_connect}, {4099, & wmi_evt_disconnect}, {36866, & wmi_evt_eapol_rx}, {6179, & wmi_evt_ba_status}, {6180, & wmi_evt_addba_rx_req}, {6182, & wmi_evt_delba}, {6245, & wmi_evt_vring_en}}; void wmi_recv_cmd(struct wil6210_priv *wil ) { struct wil6210_mbox_ring_desc d_tail ; struct wil6210_mbox_hdr hdr ; struct wil6210_mbox_ring *r ; struct pending_wmi_event *evt ; u8 *cmd ; void *src ; ulong flags ; unsigned int n ; int tmp ; u16 len ; bool q ; struct _ddebug descriptor ; long tmp___0 ; int tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; void *tmp___3 ; void *tmp___4 ; struct wil6210_mbox_hdr_wmi *wmi ; u16 id ; u32 tstamp ; struct _ddebug descriptor___1 ; long tmp___5 ; struct _ddebug descriptor___2 ; long tmp___6 ; raw_spinlock_t *tmp___7 ; struct _ddebug descriptor___3 ; long tmp___8 ; struct _ddebug descriptor___4 ; long tmp___9 ; { r = & wil->mbox_ctl.rx; tmp = constant_test_bit(4L, (unsigned long const volatile *)(& wil->status)); if (tmp == 0) { wil_err(wil, "Reset in progress. Cannot handle WMI event\n"); return; } else { } n = 0U; ldv_50495: r->head = ioread32(wil->csr + 728U); if (r->tail == r->head) { goto ldv_50482; } else { } descriptor.modname = "wil6210"; descriptor.function = "wmi_recv_cmd"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Mbox head %08x tail %08x\n"; descriptor.lineno = 704U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Mbox head %08x tail %08x\n", r->head, r->tail); } else { } wil_dbg_trace(wil, "DBG[ WMI]Mbox head %08x tail %08x\n", r->head, r->tail); wil_memcpy_fromio_32((void *)(& d_tail), (void const volatile *)(wil->csr + ((unsigned long )r->tail + 0xffffffffff780000UL)), 8UL); if (d_tail.sync == 0U) { wil_err(wil, "Mbox evt not owned by FW?\n"); goto ldv_50482; } else { } tmp___1 = wmi_read_hdr(wil, d_tail.addr, & hdr); if (tmp___1 != 0) { wil_err(wil, "Mbox evt at 0x%08x?\n", d_tail.addr); goto ldv_50482; } else { } len = hdr.len; descriptor___0.modname = "wil6210"; descriptor___0.function = "wmi_recv_cmd"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[ WMI]Mbox evt %04x %04x %04x %02x\n"; descriptor___0.lineno = 722U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Mbox evt %04x %04x %04x %02x\n", (int )hdr.seq, (int )len, (int )hdr.type, (int )hdr.flags); } else { } wil_dbg_trace(wil, "DBG[ WMI]Mbox evt %04x %04x %04x %02x\n", (int )hdr.seq, (int )len, (int )hdr.type, (int )hdr.flags); tmp___3 = wmi_buffer(wil, d_tail.addr); src = tmp___3 + 8UL; tmp___4 = kmalloc(((unsigned long )len + 27UL) & 0xfffffffffffffffcUL, 208U); evt = (struct pending_wmi_event *)tmp___4; if ((unsigned long )evt == (unsigned long )((struct pending_wmi_event *)0)) { goto ldv_50482; } else { } evt->event.hdr = hdr; cmd = (u8 *)(& evt->event.wmi); wil_memcpy_fromio_32((void *)cmd, (void const volatile *)src, (size_t )len); iowrite32(0U, wil->csr + ((unsigned long )r->tail + 0xffffffffff780000UL)); if ((unsigned int )hdr.type == 0U && (unsigned int )len > 7U) { wmi = & evt->event.wmi; id = wmi->id; tstamp = wmi->timestamp; descriptor___1.modname = "wil6210"; descriptor___1.function = "wmi_recv_cmd"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___1.format = "DBG[ WMI]WMI event 0x%04x MID %d @%d msec\n"; descriptor___1.lineno = 747U; descriptor___1.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]WMI event 0x%04x MID %d @%d msec\n", (int )id, (int )wmi->mid, tstamp); } else { } wil_dbg_trace(wil, "DBG[ WMI]WMI event 0x%04x MID %d @%d msec\n", (int )id, (int )wmi->mid, tstamp); trace_wil6210_wmi_event(wmi, (void *)wmi + 1U, (int )((unsigned int )len - 8U)); } else { } descriptor___2.modname = "wil6210"; descriptor___2.function = "wmi_recv_cmd"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___2.format = "DBG[ WMI]evt "; descriptor___2.lineno = 752U; descriptor___2.flags = 0U; tmp___6 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___6 != 0L) { print_hex_dump("\017", "DBG[ WMI]evt ", 2, 16, 1, (void const *)(& evt->event.hdr), (unsigned long )len + 8UL, 1); } else { } r->tail = r->base + (u32 )(((unsigned long )(r->tail - r->base) + 8UL) % (unsigned long )r->size); iowrite32(r->tail, wil->csr + 724U); tmp___7 = spinlock_check(& wil->wmi_ev_lock); flags = _raw_spin_lock_irqsave(tmp___7); list_add_tail(& evt->list, & wil->pending_wmi_ev); spin_unlock_irqrestore(& wil->wmi_ev_lock, flags); q = queue_work___1(wil->wmi_wq, & wil->wmi_event_worker); descriptor___3.modname = "wil6210"; descriptor___3.function = "wmi_recv_cmd"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___3.format = "DBG[ WMI]queue_work -> %d\n"; descriptor___3.lineno = 765U; descriptor___3.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___8 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]queue_work -> %d\n", (int )q); } else { } wil_dbg_trace(wil, "DBG[ WMI]queue_work -> %d\n", (int )q); n = n + 1U; goto ldv_50495; ldv_50482: descriptor___4.modname = "wil6210"; descriptor___4.function = "wmi_recv_cmd"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___4.format = "DBG[ WMI]%s -> %d events queued\n"; descriptor___4.lineno = 768U; descriptor___4.flags = 0U; tmp___9 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___9 != 0L) { __dynamic_netdev_dbg(& descriptor___4, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]%s -> %d events queued\n", "wmi_recv_cmd", n); } else { } wil_dbg_trace(wil, "DBG[ WMI]%s -> %d events queued\n", "wmi_recv_cmd", n); return; } } int wmi_call(struct wil6210_priv *wil , u16 cmdid , void *buf , u16 len , u16 reply_id , void *reply , u8 reply_size , int to_msec ) { int rc ; int remain ; unsigned long tmp ; unsigned long tmp___0 ; struct _ddebug descriptor ; unsigned int tmp___1 ; long tmp___2 ; unsigned int tmp___3 ; { ldv_mutex_lock_278(& wil->wmi_mutex); rc = __wmi_send(wil, (int )cmdid, buf, (int )len); if (rc != 0) { goto out; } else { } wil->reply_id = reply_id; wil->reply_buf = reply; wil->reply_size = (u16 )reply_size; tmp = msecs_to_jiffies((unsigned int const )to_msec); tmp___0 = wait_for_completion_timeout(& wil->wmi_call, tmp); remain = (int )tmp___0; if (remain == 0) { wil_err(wil, "wmi_call(0x%04x->0x%04x) timeout %d msec\n", (int )cmdid, (int )reply_id, to_msec); rc = -62; } else { descriptor.modname = "wil6210"; descriptor.function = "wmi_call"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]wmi_call(0x%04x->0x%04x) completed in %d msec\n"; descriptor.lineno = 796U; descriptor.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___2 != 0L) { tmp___1 = jiffies_to_msecs((unsigned long const )remain); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]wmi_call(0x%04x->0x%04x) completed in %d msec\n", (int )cmdid, (int )reply_id, (unsigned int )to_msec - tmp___1); } else { } tmp___3 = jiffies_to_msecs((unsigned long const )remain); wil_dbg_trace(wil, "DBG[ WMI]wmi_call(0x%04x->0x%04x) completed in %d msec\n", (int )cmdid, (int )reply_id, (unsigned int )to_msec - tmp___3); } wil->reply_id = 0U; wil->reply_buf = (void *)0; wil->reply_size = 0U; out: ldv_mutex_unlock_279(& wil->wmi_mutex); return (rc); } } int wmi_echo(struct wil6210_priv *wil ) { struct wmi_echo_cmd cmd ; int tmp ; { cmd.value = 305419896U; tmp = wmi_call(wil, 2051, (void *)(& cmd), 4, 6147, (void *)0, 0, 50); return (tmp); } } int wmi_set_mac_address(struct wil6210_priv *wil , void *addr ) { struct wmi_set_mac_address_cmd cmd ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { ether_addr_copy((u8 *)(& cmd.mac), (u8 const *)addr); descriptor.modname = "wil6210"; descriptor.function = "wmi_set_mac_address"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Set MAC %pM\n"; descriptor.lineno = 823U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Set MAC %pM\n", addr); } else { } wil_dbg_trace(wil, "DBG[ WMI]Set MAC %pM\n", addr); tmp___0 = wmi_send(wil, 61443, (void *)(& cmd), 8); return (tmp___0); } } int wmi_pcp_start(struct wil6210_priv *wil , int bi , u8 wmi_nettype , u8 chan , u8 hidden_ssid ) { int rc ; struct wmi_pcp_start_cmd cmd ; struct __anonstruct_reply_420 reply ; { cmd.bcon_interval = (unsigned short )bi; cmd.pcp_max_assoc_sta = (unsigned char )max_assoc_sta; cmd.hidden_ssid = hidden_ssid; cmd.reserved0[0] = (unsigned char)0; cmd.reserved0[1] = (unsigned char)0; cmd.reserved0[2] = (unsigned char)0; cmd.reserved0[3] = (unsigned char)0; cmd.reserved0[4] = (unsigned char)0; cmd.reserved0[5] = (unsigned char)0; cmd.reserved0[6] = (unsigned char)0; cmd.reserved0[7] = (unsigned char)0; cmd.network_type = wmi_nettype; cmd.channel = (unsigned int )chan + 255U; cmd.disable_sec_offload = 1U; cmd.disable_sec = (unsigned char)0; if (wil->privacy == 0U) { cmd.disable_sec = 1U; } else { } if ((unsigned int )cmd.pcp_max_assoc_sta > 8U || (unsigned int )cmd.pcp_max_assoc_sta == 0U) { wil_info(wil, "Requested connection limit %u, valid values are 1 - %d. Setting to %d\n", max_assoc_sta, 8, 8); cmd.pcp_max_assoc_sta = 8U; } else { } rc = wmi_call(wil, 2328, (void *)(& cmd), 16, 6424, (void *)(& reply), 12, 5000); if (rc != 0) { return (rc); } else { } if ((unsigned int )reply.evt.status != 0U) { rc = -22; } else { } return (rc); } } int wmi_pcp_stop(struct wil6210_priv *wil ) { int tmp ; { tmp = wmi_call(wil, 2329, (void *)0, 0, 6425, (void *)0, 0, 20); return (tmp); } } int wmi_set_ssid(struct wil6210_priv *wil , u8 ssid_len , void const *ssid ) { struct wmi_set_ssid_cmd cmd ; int tmp ; { cmd.ssid_len = (unsigned int )ssid_len; cmd.ssid[0] = (unsigned char)0; cmd.ssid[1] = (unsigned char)0; cmd.ssid[2] = (unsigned char)0; cmd.ssid[3] = (unsigned char)0; cmd.ssid[4] = (unsigned char)0; cmd.ssid[5] = (unsigned char)0; cmd.ssid[6] = (unsigned char)0; cmd.ssid[7] = (unsigned char)0; cmd.ssid[8] = (unsigned char)0; cmd.ssid[9] = (unsigned char)0; cmd.ssid[10] = (unsigned char)0; cmd.ssid[11] = (unsigned char)0; cmd.ssid[12] = (unsigned char)0; cmd.ssid[13] = (unsigned char)0; cmd.ssid[14] = (unsigned char)0; cmd.ssid[15] = (unsigned char)0; cmd.ssid[16] = (unsigned char)0; cmd.ssid[17] = (unsigned char)0; cmd.ssid[18] = (unsigned char)0; cmd.ssid[19] = (unsigned char)0; cmd.ssid[20] = (unsigned char)0; cmd.ssid[21] = (unsigned char)0; cmd.ssid[22] = (unsigned char)0; cmd.ssid[23] = (unsigned char)0; cmd.ssid[24] = (unsigned char)0; cmd.ssid[25] = (unsigned char)0; cmd.ssid[26] = (unsigned char)0; cmd.ssid[27] = (unsigned char)0; cmd.ssid[28] = (unsigned char)0; cmd.ssid[29] = (unsigned char)0; cmd.ssid[30] = (unsigned char)0; cmd.ssid[31] = (unsigned char)0; if ((unsigned int )ssid_len > 32U) { return (-22); } else { } memcpy((void *)(& cmd.ssid), ssid, (size_t )ssid_len); tmp = wmi_send(wil, 2087, (void *)(& cmd), 36); return (tmp); } } int wmi_get_ssid(struct wil6210_priv *wil , u8 *ssid_len , void *ssid ) { int rc ; struct __anonstruct_reply_422 reply ; int len ; { rc = wmi_call(wil, 2088, (void *)0, 0, 6184, (void *)(& reply), 44, 20); if (rc != 0) { return (rc); } else { } len = (int )reply.cmd.ssid_len; if ((unsigned int )len > 32U) { return (-22); } else { } *ssid_len = (u8 )len; memcpy(ssid, (void const *)(& reply.cmd.ssid), (size_t )len); return (0); } } int wmi_set_channel(struct wil6210_priv *wil , int channel ) { struct wmi_set_pcp_channel_cmd cmd ; int tmp ; { cmd.channel = (unsigned int )((unsigned char )channel) + 255U; cmd.reserved[0] = (unsigned char)0; cmd.reserved[1] = (unsigned char)0; cmd.reserved[2] = (unsigned char)0; tmp = wmi_send(wil, 2089, (void *)(& cmd), 4); return (tmp); } } int wmi_get_channel(struct wil6210_priv *wil , int *channel ) { int rc ; struct __anonstruct_reply_424 reply ; { rc = wmi_call(wil, 2090, (void *)0, 0, 6186, (void *)(& reply), 12, 20); if (rc != 0) { return (rc); } else { } if ((unsigned int )reply.cmd.channel > 3U) { return (-22); } else { } *channel = (int )reply.cmd.channel + 1; return (0); } } int wmi_p2p_cfg(struct wil6210_priv *wil , int channel ) { struct wmi_p2p_cfg_cmd cmd ; int tmp ; { cmd.discovery_mode = 0U; cmd.channel = (unsigned int )((unsigned char )channel) + 255U; cmd.bcon_interval = (unsigned short)0; tmp = wmi_send(wil, 2320, (void *)(& cmd), 4); return (tmp); } } int wmi_del_cipher_key(struct wil6210_priv *wil , u8 key_index , void const *mac_addr , int key_usage ) { struct wmi_delete_cipher_key_cmd cmd ; int tmp ; { cmd.key_index = key_index; cmd.mac[0] = (unsigned char)0; cmd.mac[1] = (unsigned char)0; cmd.mac[2] = (unsigned char)0; cmd.mac[3] = (unsigned char)0; cmd.mac[4] = (unsigned char)0; cmd.mac[5] = (unsigned char)0; if ((unsigned long )mac_addr != (unsigned long )((void const *)0)) { memcpy((void *)(& cmd.mac), mac_addr, 6UL); } else { } tmp = wmi_send(wil, 23, (void *)(& cmd), 7); return (tmp); } } int wmi_add_cipher_key(struct wil6210_priv *wil , u8 key_index , void const *mac_addr , int key_len , void const *key , int key_usage ) { struct wmi_add_cipher_key_cmd cmd ; int tmp ; { cmd.key_index = key_index; cmd.key_type = (unsigned char)0; cmd.key_usage = (unsigned char )key_usage; cmd.key_len = (unsigned char )key_len; cmd.key_rsc[0] = (unsigned char)0; cmd.key_rsc[1] = (unsigned char)0; cmd.key_rsc[2] = (unsigned char)0; cmd.key_rsc[3] = (unsigned char)0; cmd.key_rsc[4] = (unsigned char)0; cmd.key_rsc[5] = (unsigned char)0; cmd.key_rsc[6] = (unsigned char)0; cmd.key_rsc[7] = (unsigned char)0; cmd.key[0] = (unsigned char)0; cmd.key[1] = (unsigned char)0; cmd.key[2] = (unsigned char)0; cmd.key[3] = (unsigned char)0; cmd.key[4] = (unsigned char)0; cmd.key[5] = (unsigned char)0; cmd.key[6] = (unsigned char)0; cmd.key[7] = (unsigned char)0; cmd.key[8] = (unsigned char)0; cmd.key[9] = (unsigned char)0; cmd.key[10] = (unsigned char)0; cmd.key[11] = (unsigned char)0; cmd.key[12] = (unsigned char)0; cmd.key[13] = (unsigned char)0; cmd.key[14] = (unsigned char)0; cmd.key[15] = (unsigned char)0; cmd.key[16] = (unsigned char)0; cmd.key[17] = (unsigned char)0; cmd.key[18] = (unsigned char)0; cmd.key[19] = (unsigned char)0; cmd.key[20] = (unsigned char)0; cmd.key[21] = (unsigned char)0; cmd.key[22] = (unsigned char)0; cmd.key[23] = (unsigned char)0; cmd.key[24] = (unsigned char)0; cmd.key[25] = (unsigned char)0; cmd.key[26] = (unsigned char)0; cmd.key[27] = (unsigned char)0; cmd.key[28] = (unsigned char)0; cmd.key[29] = (unsigned char)0; cmd.key[30] = (unsigned char)0; cmd.key[31] = (unsigned char)0; cmd.key_op_ctrl = (unsigned char)0; cmd.mac[0] = (unsigned char)0; cmd.mac[1] = (unsigned char)0; cmd.mac[2] = (unsigned char)0; cmd.mac[3] = (unsigned char)0; cmd.mac[4] = (unsigned char)0; cmd.mac[5] = (unsigned char)0; if ((unsigned long )key == (unsigned long )((void const *)0) || (unsigned int )key_len > 32U) { return (-22); } else { } memcpy((void *)(& cmd.key), key, (size_t )key_len); if ((unsigned long )mac_addr != (unsigned long )((void const *)0)) { memcpy((void *)(& cmd.mac), mac_addr, 6UL); } else { } tmp = wmi_send(wil, 22, (void *)(& cmd), 51); return (tmp); } } int wmi_set_ie(struct wil6210_priv *wil , u8 type , u16 ie_len , void const *ie ) { int rc ; u16 len ; struct wmi_set_appie_cmd *cmd ; void *tmp ; { len = (unsigned int )ie_len + 4U; tmp = kzalloc((size_t )len, 208U); cmd = (struct wmi_set_appie_cmd *)tmp; if ((unsigned long )cmd == (unsigned long )((struct wmi_set_appie_cmd *)0)) { return (-12); } else { } if ((unsigned long )ie == (unsigned long )((void const *)0)) { ie_len = 0U; } else { } cmd->mgmt_frm_type = type; cmd->ie_len = ie_len; memcpy((void *)(& cmd->ie_info), ie, (size_t )ie_len); rc = wmi_send(wil, 63, (void *)cmd, (int )len); kfree((void const *)cmd); return (rc); } } int wmi_rxon(struct wil6210_priv *wil , bool on ) { int rc ; struct __anonstruct_reply_426 reply ; { wil_info(wil, "%s(%s)\n", "wmi_rxon", (int )on ? (char *)"on" : (char *)"off"); if ((int )on) { rc = wmi_call(wil, 2324, (void *)0, 0, 6420, (void *)(& reply), 12, 100); if (rc == 0 && (unsigned int )reply.evt.status != 0U) { rc = -22; } else { } } else { rc = wmi_call(wil, 2327, (void *)0, 0, 6423, (void *)0, 0, 20); } return (rc); } } int wmi_rx_chain_add(struct wil6210_priv *wil , struct vring *vring ) { struct wireless_dev *wdev ; struct net_device *ndev ; struct wmi_cfg_rx_chain_cmd cmd ; u32 tmp ; struct __anonstruct_evt_428 evt ; int rc ; struct ieee80211_channel *ch ; struct _ddebug descriptor ; long tmp___0 ; { wdev = wil->wdev; ndev = (wil->wdev)->netdev; tmp = wil_mtu2macbuf(mtu_max); cmd.action = 0U; cmd.rx_sw_ring.ring_mem_base = vring->pa; cmd.rx_sw_ring.ring_size = vring->size; cmd.rx_sw_ring.max_mpdu_size = (unsigned short )tmp; cmd.mid = 0U; cmd.decap_trans_type = 0U; cmd.l2_802_3_offload_ctrl = (unsigned char)0; cmd.l2_nwifi_offload_ctrl = (unsigned char)0; cmd.vlan_id = (unsigned char)0; cmd.nwifi_ds_trans_type = (unsigned char)0; cmd.l3_l4_ctrl = (unsigned char)0; cmd.ring_ctrl = (unsigned char)0; cmd.prefetch_thrsh = (unsigned short)0; cmd.wb_thrsh = (unsigned short)0; cmd.itr_value = 0U; cmd.host_thrsh = rx_ring_overflow_thrsh; cmd.reorder_type = 1U; cmd.reserved = (unsigned char)0; cmd.sniffer_cfg.mode = 0U; cmd.sniffer_cfg.phy_info_mode = 0U; cmd.sniffer_cfg.phy_support = 0U; cmd.sniffer_cfg.channel = (unsigned char)0; cmd.sniffer_cfg.reserved[0] = (unsigned char)0; cmd.sniffer_cfg.reserved[1] = (unsigned char)0; cmd.sniffer_cfg.reserved[2] = (unsigned char)0; if ((unsigned int )wdev->iftype == 6U) { ch = wdev->preset_chandef.chan; cmd.sniffer_cfg.mode = 1U; if ((unsigned long )ch != (unsigned long )((struct ieee80211_channel *)0)) { cmd.sniffer_cfg.channel = (unsigned int )((u8 )ch->hw_value) + 255U; } else { } cmd.sniffer_cfg.phy_info_mode = (unsigned int )ndev->type == 803U; cmd.sniffer_cfg.phy_support = (wil->monitor_flags & 8U) == 0U; } else { cmd.l3_l4_ctrl = (u8 )((unsigned int )cmd.l3_l4_ctrl | 2U); } if ((int )rx_align_2) { cmd.l2_802_3_offload_ctrl = (u8 )((unsigned int )cmd.l2_802_3_offload_ctrl | 2U); } else { } rc = wmi_call(wil, 2080, (void *)(& cmd), 52, 6176, (void *)(& evt), 16, 2000); if (rc != 0) { return (rc); } else { } vring->hwtail = evt.evt.rx_ring_tail_ptr; descriptor.modname = "wil6210"; descriptor.function = "wmi_rx_chain_add"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[MISC]Rx init: status %d tail 0x%08x\n"; descriptor.lineno = 1096U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Rx init: status %d tail 0x%08x\n", evt.evt.status, vring->hwtail); } else { } wil_dbg_trace(wil, "DBG[MISC]Rx init: status %d tail 0x%08x\n", evt.evt.status, vring->hwtail); if (evt.evt.status != 1U) { rc = -22; } else { } return (rc); } } int wmi_get_temperature(struct wil6210_priv *wil , u32 *t_bb , u32 *t_rf ) { int rc ; struct wmi_temp_sense_cmd cmd ; struct __anonstruct_reply_430 reply ; { cmd.measure_baseband_en = (unsigned long )t_bb != (unsigned long )((u32 *)0U); cmd.measure_rf_en = (unsigned long )t_rf != (unsigned long )((u32 *)0U); cmd.measure_mode = 2U; rc = wmi_call(wil, 2062, (void *)(& cmd), 12, 6158, (void *)(& reply), 16, 100); if (rc != 0) { return (rc); } else { } if ((unsigned long )t_bb != (unsigned long )((u32 *)0U)) { *t_bb = reply.evt.baseband_t1000; } else { } if ((unsigned long )t_rf != (unsigned long )((u32 *)0U)) { *t_rf = reply.evt.rf_t1000; } else { } return (0); } } int wmi_disconnect_sta(struct wil6210_priv *wil , u8 const *mac , u16 reason ) { struct wmi_disconnect_sta_cmd cmd ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { cmd.dst_mac[0] = (unsigned char)0; cmd.dst_mac[1] = (unsigned char)0; cmd.dst_mac[2] = (unsigned char)0; cmd.dst_mac[3] = (unsigned char)0; cmd.dst_mac[4] = (unsigned char)0; cmd.dst_mac[5] = (unsigned char)0; cmd.disconnect_reason = reason; ether_addr_copy((u8 *)(& cmd.dst_mac), mac); descriptor.modname = "wil6210"; descriptor.function = "wmi_disconnect_sta"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]%s(%pM, reason %d)\n"; descriptor.lineno = 1138U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]%s(%pM, reason %d)\n", "wmi_disconnect_sta", mac, (int )reason); } else { } wil_dbg_trace(wil, "DBG[ WMI]%s(%pM, reason %d)\n", "wmi_disconnect_sta", mac, (int )reason); tmp___0 = wmi_send(wil, 4, (void *)(& cmd), 8); return (tmp___0); } } int wmi_addba(struct wil6210_priv *wil , u8 ringid , u8 size , u16 timeout ) { struct wmi_vring_ba_en_cmd cmd ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { cmd.ringid = ringid; cmd.agg_max_wsize = size; cmd.ba_timeout = timeout; cmd.amsdu = 0U; descriptor.modname = "wil6210"; descriptor.function = "wmi_addba"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]%s(ring %d size %d timeout %d)\n"; descriptor.lineno = 1153U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]%s(ring %d size %d timeout %d)\n", "wmi_addba", (int )ringid, (int )size, (int )timeout); } else { } wil_dbg_trace(wil, "DBG[ WMI]%s(ring %d size %d timeout %d)\n", "wmi_addba", (int )ringid, (int )size, (int )timeout); tmp___0 = wmi_send(wil, 2083, (void *)(& cmd), 5); return (tmp___0); } } int wmi_delba_tx(struct wil6210_priv *wil , u8 ringid , u16 reason ) { struct wmi_vring_ba_dis_cmd cmd ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { cmd.ringid = ringid; cmd.reserved = (unsigned char)0; cmd.reason = reason; descriptor.modname = "wil6210"; descriptor.function = "wmi_delba_tx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]%s(ring %d reason %d)\n"; descriptor.lineno = 1166U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]%s(ring %d reason %d)\n", "wmi_delba_tx", (int )ringid, (int )reason); } else { } wil_dbg_trace(wil, "DBG[ WMI]%s(ring %d reason %d)\n", "wmi_delba_tx", (int )ringid, (int )reason); tmp___0 = wmi_send(wil, 2084, (void *)(& cmd), 4); return (tmp___0); } } int wmi_delba_rx(struct wil6210_priv *wil , u8 cidxtid , u16 reason ) { struct wmi_rcp_delba_cmd cmd ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { cmd.cidxtid = cidxtid; cmd.reserved = (unsigned char)0; cmd.reason = reason; descriptor.modname = "wil6210"; descriptor.function = "wmi_delba_rx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]%s(CID %d TID %d reason %d)\n"; descriptor.lineno = 1179U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]%s(CID %d TID %d reason %d)\n", "wmi_delba_rx", (int )cidxtid & 15, ((int )cidxtid >> 4) & 15, (int )reason); } else { } wil_dbg_trace(wil, "DBG[ WMI]%s(CID %d TID %d reason %d)\n", "wmi_delba_rx", (int )cidxtid & 15, ((int )cidxtid >> 4) & 15, (int )reason); tmp___0 = wmi_send(wil, 2086, (void *)(& cmd), 4); return (tmp___0); } } int wmi_addba_rx_resp(struct wil6210_priv *wil , u8 cid , u8 tid , u8 token , u16 status , bool amsdu , u16 agg_wsize___0 , u16 timeout ) { int rc ; struct wmi_rcp_addba_resp_cmd cmd ; u8 tmp ; struct __anonstruct_reply_432 reply ; struct _ddebug descriptor ; long tmp___0 ; { tmp = mk_cidxtid((int )cid, (int )tid); cmd.cidxtid = tmp; cmd.dialog_token = token; cmd.status_code = status; cmd.ba_param_set = (unsigned short )((((int )amsdu ? 1 : 0) | (int )((short )((int )tid << 2))) | (int )((short )((int )agg_wsize___0 << 6))); cmd.ba_timeout = timeout; descriptor.modname = "wil6210"; descriptor.function = "wmi_addba_rx_resp"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]ADDBA response for CID %d TID %d size %d timeout %d status %d AMSDU%s\n"; descriptor.lineno = 1208U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]ADDBA response for CID %d TID %d size %d timeout %d status %d AMSDU%s\n", (int )cid, (int )tid, (int )agg_wsize___0, (int )timeout, (int )status, (int )amsdu ? (char *)"+" : (char *)"-"); } else { } wil_dbg_trace(wil, "DBG[ WMI]ADDBA response for CID %d TID %d size %d timeout %d status %d AMSDU%s\n", (int )cid, (int )tid, (int )agg_wsize___0, (int )timeout, (int )status, (int )amsdu ? (char *)"+" : (char *)"-"); rc = wmi_call(wil, 2085, (void *)(& cmd), 8, 6181, (void *)(& reply), 12, 100); if (rc != 0) { return (rc); } else { } if ((unsigned int )reply.evt.status != 0U) { wil_err(wil, "ADDBA response failed with status %d\n", (int )reply.evt.status); rc = -22; } else { } return (rc); } } void wmi_event_flush(struct wil6210_priv *wil ) { struct pending_wmi_event *evt ; struct pending_wmi_event *t ; struct _ddebug descriptor ; long tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { descriptor.modname = "wil6210"; descriptor.function = "wmi_event_flush"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]%s()\n"; descriptor.lineno = 1229U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]%s()\n", "wmi_event_flush"); } else { } wil_dbg_trace(wil, "DBG[ WMI]%s()\n", "wmi_event_flush"); __mptr = (struct list_head const *)wil->pending_wmi_ev.next; evt = (struct pending_wmi_event *)__mptr; __mptr___0 = (struct list_head const *)evt->list.next; t = (struct pending_wmi_event *)__mptr___0; goto ldv_50701; ldv_50700: list_del(& evt->list); kfree((void const *)evt); evt = t; __mptr___1 = (struct list_head const *)t->list.next; t = (struct pending_wmi_event *)__mptr___1; ldv_50701: ; if ((unsigned long )(& evt->list) != (unsigned long )(& wil->pending_wmi_ev)) { goto ldv_50700; } else { } return; } } static bool wmi_evt_call_handler(struct wil6210_priv *wil , int id , void *d , int len ) { uint i ; { i = 0U; goto ldv_50713; ldv_50712: ; if ((int )wmi_evt_handlers[i].eventid == id) { (*(wmi_evt_handlers[i].handler))(wil, id, d, len); return (1); } else { } i = i + 1U; ldv_50713: ; if (i <= 10U) { goto ldv_50712; } else { } return (0); } } static void wmi_event_handle(struct wil6210_priv *wil , struct wil6210_mbox_hdr *hdr ) { u16 len ; struct wil6210_mbox_hdr_wmi *wmi ; void *evt_data ; u16 id ; struct _ddebug descriptor ; long tmp ; u16 _min1 ; u16 _min2 ; struct _ddebug descriptor___0 ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; { len = hdr->len; if ((unsigned int )hdr->type == 0U && (unsigned int )len > 7U) { wmi = (struct wil6210_mbox_hdr_wmi *)hdr + 1U; evt_data = (void *)wmi + 1U; id = wmi->id; descriptor.modname = "wil6210"; descriptor.function = "wmi_event_handle"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Handle WMI 0x%04x (reply_id 0x%04x)\n"; descriptor.lineno = 1264U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Handle WMI 0x%04x (reply_id 0x%04x)\n", (int )id, (int )wil->reply_id); } else { } wil_dbg_trace(wil, "DBG[ WMI]Handle WMI 0x%04x (reply_id 0x%04x)\n", (int )id, (int )wil->reply_id); if ((unsigned int )wil->reply_id != 0U && (int )wil->reply_id == (int )id) { if ((unsigned long )wil->reply_buf != (unsigned long )((void *)0)) { _min1 = len; _min2 = wil->reply_size; memcpy(wil->reply_buf, (void const *)wmi, (size_t )((int )_min1 < (int )_min2 ? _min1 : _min2)); } else { wmi_evt_call_handler(wil, (int )id, evt_data, (int )((unsigned int )len - 8U)); } descriptor___0.modname = "wil6210"; descriptor___0.function = "wmi_event_handle"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[ WMI]Complete WMI 0x%04x\n"; descriptor___0.lineno = 1274U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Complete WMI 0x%04x\n", (int )id); } else { } wil_dbg_trace(wil, "DBG[ WMI]Complete WMI 0x%04x\n", (int )id); complete(& wil->wmi_call); return; } else { } tmp___1 = wmi_evt_call_handler(wil, (int )id, evt_data, (int )((unsigned int )len - 8U)); if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { wil_err(wil, "Unhandled event 0x%04x\n", (int )id); } else { } } else { wil_err(wil, "Unknown event type\n"); print_hex_dump("\v", "evt?? ", 2, 16, 1, (void const *)hdr, (unsigned long )len + 8UL, 1); } return; } } static struct list_head *next_wmi_ev(struct wil6210_priv *wil ) { ulong flags ; struct list_head *ret ; raw_spinlock_t *tmp ; int tmp___0 ; { ret = (struct list_head *)0; tmp = spinlock_check(& wil->wmi_ev_lock); flags = _raw_spin_lock_irqsave(tmp); tmp___0 = list_empty((struct list_head const *)(& wil->pending_wmi_ev)); if (tmp___0 == 0) { ret = wil->pending_wmi_ev.next; list_del(ret); } else { } spin_unlock_irqrestore(& wil->wmi_ev_lock, flags); return (ret); } } void wmi_event_worker(struct work_struct *work ) { struct wil6210_priv *wil ; struct work_struct const *__mptr ; struct pending_wmi_event *evt ; struct list_head *lh ; struct _ddebug descriptor ; long tmp ; struct list_head const *__mptr___0 ; struct _ddebug descriptor___0 ; long tmp___0 ; { __mptr = (struct work_struct const *)work; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffffd90UL; descriptor.modname = "wil6210"; descriptor.function = "wmi_event_worker"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor.format = "DBG[ WMI]Start %s\n"; descriptor.lineno = 1321U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Start %s\n", "wmi_event_worker"); } else { } wil_dbg_trace(wil, "DBG[ WMI]Start %s\n", "wmi_event_worker"); goto ldv_50750; ldv_50749: __mptr___0 = (struct list_head const *)lh; evt = (struct pending_wmi_event *)__mptr___0; wmi_event_handle(wil, & evt->event.hdr); kfree((void const *)evt); ldv_50750: lh = next_wmi_ev(wil); if ((unsigned long )lh != (unsigned long )((struct list_head *)0)) { goto ldv_50749; } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wmi_event_worker"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/wmi.c"; descriptor___0.format = "DBG[ WMI]Finished %s\n"; descriptor___0.lineno = 1327U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]Finished %s\n", "wmi_event_worker"); } else { } wil_dbg_trace(wil, "DBG[ WMI]Finished %s\n", "wmi_event_worker"); return; } } bool ldv_queue_work_on_259(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_260(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_261(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_262(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_263(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_264(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_265(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_266(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_267(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_268(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_269(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_270(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_271(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_mutex_lock_272(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_wmi_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_273(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_wmi_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_del_timer_sync_274(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_14(ldv_func_arg1); return (ldv_func_res); } } int ldv_del_timer_sync_275(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___6 ldv_func_res ; int tmp ; { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; disable_suitable_timer_14(ldv_func_arg1); return (ldv_func_res); } } void ldv_mutex_lock_276(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_277(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_278(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_wmi_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_279(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_wmi_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; __inline static int test_and_set_bit(long nr , unsigned long volatile *addr ) { char c ; { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; bts %2, %0; setc %1": "+m" (*addr), "=qm" (c): "Ir" (nr): "memory"); return ((int )((signed char )c) != 0); } } __inline static unsigned long arch_local_save_flags___0(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 *)"./arch/x86/include/asm/paravirt.h"), "i" (831), "i" (12UL)); ldv_4801: ; goto ldv_4801; } 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" (43UL), [paravirt_opptr] "i" (& pv_irq_ops.save_fl.func), [paravirt_clobber] "i" (1): "memory", "cc"); __ret = __eax; return (__ret); } } int ldv_mutex_trylock_314(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_311(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_315(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_316(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_310(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_313(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_317(struct mutex *ldv_func_arg1 ) ; __inline static int preempt_count___0(void) { int pfo_ret__ ; { switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (__preempt_count)); goto ldv_6630; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6630; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6630; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6630; default: __bad_percpu_size(); } ldv_6630: ; return (pfo_ret__ & 2147483647); } } __inline static void __preempt_count_add___0(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (val)); } goto ldv_6687; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6687; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6687; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (val)); } goto ldv_6687; default: __bad_percpu_size(); } ldv_6687: ; return; } } __inline static void __preempt_count_sub___0(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (- val)); } goto ldv_6699; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6699; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6699; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (- val)); } goto ldv_6699; default: __bad_percpu_size(); } ldv_6699: ; return; } } __inline static int rcu_read_lock_sched_held___0(void) { int lockdep_opinion ; int tmp ; bool tmp___0 ; int tmp___1 ; bool tmp___2 ; int tmp___3 ; int tmp___4 ; unsigned long _flags ; int tmp___5 ; int tmp___6 ; { lockdep_opinion = 0; tmp = debug_lockdep_rcu_enabled(); if (tmp == 0) { return (1); } else { } tmp___0 = rcu_is_watching(); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { return (0); } else { } tmp___2 = rcu_lockdep_current_cpu_online(); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { return (0); } else { } if (debug_locks != 0) { lockdep_opinion = lock_is_held(& rcu_sched_lock_map); } else { } if (lockdep_opinion != 0) { tmp___6 = 1; } else { tmp___4 = preempt_count___0(); if (tmp___4 != 0) { tmp___6 = 1; } else { _flags = arch_local_save_flags___0(); tmp___5 = arch_irqs_disabled_flags(_flags); if (tmp___5 != 0) { tmp___6 = 1; } else { tmp___6 = 0; } } } return (tmp___6); } } __inline static void rcu_read_lock_sched_notrace___0(void) { { __preempt_count_add___0(1); __asm__ volatile ("": : : "memory"); return; } } __inline static void rcu_read_unlock_sched_notrace___0(void) { { __asm__ volatile ("": : : "memory"); __preempt_count_sub___0(1); return; } } bool ldv_queue_work_on_305(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_307(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_306(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_309(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_308(struct workqueue_struct *ldv_func_arg1 ) ; void activate_suitable_irq_4(int line , void *data ) ; int ldv_irq_3(int state , int line , void *data ) ; void disable_suitable_irq_2(int line , void *data ) ; void activate_suitable_irq_3(int line , void *data ) ; int reg_check_1(irqreturn_t (*handler)(int , void * ) ) ; void choose_interrupt_4(void) ; int ldv_irq_6(int state , int line , void *data ) ; void choose_interrupt_5(void) ; void disable_suitable_irq_5(int line , void *data ) ; void activate_suitable_irq_2(int line , void *data ) ; int ldv_irq_5(int state , int line , void *data ) ; void choose_interrupt_1(void) ; int reg_check_2(irqreturn_t (*handler)(int , void * ) ) ; int reg_check_3(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) ; int ldv_irq_4(int state , int line , void *data ) ; void choose_interrupt_6(void) ; void disable_suitable_irq_6(int line , void *data ) ; void activate_suitable_irq_5(int line , void *data ) ; void disable_suitable_irq_1(int line , void *data ) ; void activate_suitable_irq_1(int line , void *data ) ; int reg_check_4(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) ; int ldv_irq_2(int state , int line , void *data ) ; void choose_interrupt_2(void) ; void disable_suitable_irq_4(int line , void *data ) ; void disable_suitable_irq_3(int line , void *data ) ; int ldv_irq_1(int state , int line , void *data ) ; void choose_interrupt_3(void) ; int reg_check_5(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) ; int ldv_request_threaded_irq_312(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; int ldv_request_threaded_irq_320(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; int ldv_request_threaded_irq_323(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; __inline static int request_irq(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) { int tmp ; { tmp = ldv_request_threaded_irq_312(irq, handler, (irqreturn_t (*)(int , void * ))0, flags, name, dev); return (tmp); } } __inline static int ldv_request_irq_318(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) ; __inline static int ldv_request_irq_319(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) ; extern void free_irq(unsigned int , void * ) ; void ldv_free_irq_321(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; void ldv_free_irq_322(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; void ldv_free_irq_324(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; void ldv_free_irq_325(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; void ldv_free_irq_326(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; extern int kobject_uevent_env(struct kobject * , enum kobject_action , char ** ) ; extern void __napi_schedule(struct napi_struct * ) ; __inline static bool napi_disable_pending(struct napi_struct *n ) { int tmp ; { tmp = constant_test_bit(1L, (unsigned long const volatile *)(& n->state)); return (tmp != 0); } } __inline static bool napi_schedule_prep(struct napi_struct *n ) { bool tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { tmp = napi_disable_pending(n); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { tmp___1 = test_and_set_bit(0L, (unsigned long volatile *)(& n->state)); if (tmp___1 == 0) { tmp___2 = 1; } else { tmp___2 = 0; } } else { tmp___2 = 0; } return ((bool )tmp___2); } } __inline static void napi_schedule(struct napi_struct *n ) { bool tmp ; { tmp = napi_schedule_prep(n); if ((int )tmp) { __napi_schedule(n); } else { } return; } } void wil_err_ratelimited(struct wil6210_priv *wil , char const *fmt , ...) ; struct tracepoint __tracepoint_wil6210_irq_pseudo ; __inline static void trace_wil6210_irq_pseudo(u32 x ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_375 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_377 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_irq_pseudo.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_pseudo.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___0(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 124, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48761: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u32 ))it_func))(__data, x); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48761; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_pseudo.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___0(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 124, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } struct tracepoint __tracepoint_wil6210_irq_rx ; __inline static void trace_wil6210_irq_rx(u32 x ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_379 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_381 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_irq_rx.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_rx.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___0(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 141, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48812: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u32 ))it_func))(__data, x); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48812; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_rx.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___0(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 141, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } struct tracepoint __tracepoint_wil6210_irq_tx ; __inline static void trace_wil6210_irq_tx(u32 x ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_383 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_385 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_irq_tx.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_tx.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___0(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 146, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48863: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u32 ))it_func))(__data, x); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48863; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_tx.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___0(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 146, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } struct tracepoint __tracepoint_wil6210_irq_misc ; __inline static void trace_wil6210_irq_misc(u32 x ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_387 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_389 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_irq_misc.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_misc.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___0(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 151, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48914: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u32 ))it_func))(__data, x); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48914; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_misc.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___0(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 151, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } struct tracepoint __tracepoint_wil6210_irq_misc_thread ; __inline static void trace_wil6210_irq_misc_thread(u32 x ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_391 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_393 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_irq_misc_thread.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_misc_thread.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___0(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 156, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48965: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u32 ))it_func))(__data, x); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48965; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_irq_misc_thread.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___0(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 156, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } __inline static void wil_icr_clear(u32 x , void *addr ) { { return; } } __inline static u32 wil_ioread32_and_clear(void *addr ) { u32 x ; unsigned int tmp ; { tmp = ioread32(addr); x = tmp; wil_icr_clear(x, addr); return (x); } } static void wil6210_mask_irq_tx(struct wil6210_priv *wil ) { { iowrite32(4294967295U, wil->csr + 7112U); return; } } static void wil6210_mask_irq_rx(struct wil6210_priv *wil ) { { iowrite32(4294967295U, wil->csr + 7140U); return; } } static void wil6210_mask_irq_misc(struct wil6210_priv *wil ) { { iowrite32(4294967295U, wil->csr + 7168U); return; } } static void wil6210_mask_irq_pseudo(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil6210_mask_irq_pseudo"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]%s()\n"; descriptor.lineno = 100U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]%s()\n", "wil6210_mask_irq_pseudo"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]%s()\n", "wil6210_mask_irq_pseudo"); iowrite32(4294967295U, wil->csr + 7276UL); clear_bit(5L, (unsigned long volatile *)(& wil->status)); return; } } void wil6210_unmask_irq_tx(struct wil6210_priv *wil ) { { iowrite32(3U, wil->csr + 7116U); return; } } void wil6210_unmask_irq_rx(struct wil6210_priv *wil ) { { iowrite32(3U, wil->csr + 7144U); return; } } static void wil6210_unmask_irq_misc(struct wil6210_priv *wil ) { { iowrite32(2952790016U, wil->csr + 7172U); return; } } static void wil6210_unmask_irq_pseudo(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil6210_unmask_irq_pseudo"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]%s()\n"; descriptor.lineno = 131U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]%s()\n", "wil6210_unmask_irq_pseudo"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]%s()\n", "wil6210_unmask_irq_pseudo"); set_bit(5L, (unsigned long volatile *)(& wil->status)); iowrite32(4294967288U, wil->csr + 7276UL); return; } } void wil_mask_irq(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_mask_irq"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]%s()\n"; descriptor.lineno = 141U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]%s()\n", "wil_mask_irq"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]%s()\n", "wil_mask_irq"); wil6210_mask_irq_tx(wil); wil6210_mask_irq_rx(wil); wil6210_mask_irq_misc(wil); wil6210_mask_irq_pseudo(wil); return; } } void wil_unmask_irq(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_unmask_irq"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]%s()\n"; descriptor.lineno = 151U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]%s()\n", "wil_unmask_irq"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]%s()\n", "wil_unmask_irq"); iowrite32(4294967295U, wil->csr + 7120UL); iowrite32(4294967295U, wil->csr + 7092UL); iowrite32(4294967295U, wil->csr + 7148UL); wil6210_unmask_irq_pseudo(wil); wil6210_unmask_irq_tx(wil); wil6210_unmask_irq_rx(wil); wil6210_unmask_irq_misc(wil); return; } } void wil_configure_interrupt_moderation(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_configure_interrupt_moderation"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]%s()\n"; descriptor.lineno = 171U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]%s()\n", "wil_configure_interrupt_moderation"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]%s()\n", "wil_configure_interrupt_moderation"); if ((unsigned int )(wil->wdev)->iftype == 6U) { return; } else { } iowrite32(8U, wil->csr + 7484UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(wil->tx_max_burst_duration, wil->csr + 7476UL); __asm__ volatile ("sfence": : : "memory"); wil_info(wil, "set ITR_TX_CNT_TRSH = %d usec\n", wil->tx_max_burst_duration); iowrite32(3U, wil->csr + 7484UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(8U, wil->csr + 7528UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(wil->tx_interframe_timeout, wil->csr + 7520UL); __asm__ volatile ("sfence": : : "memory"); wil_info(wil, "set ITR_TX_IDL_CNT_TRSH = %d usec\n", wil->tx_interframe_timeout); iowrite32(3U, wil->csr + 7528UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(8U, wil->csr + 7500UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(wil->rx_max_burst_duration, wil->csr + 7492UL); __asm__ volatile ("sfence": : : "memory"); wil_info(wil, "set ITR_RX_CNT_TRSH = %d usec\n", wil->rx_max_burst_duration); iowrite32(3U, wil->csr + 7500UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(8U, wil->csr + 7516UL); __asm__ volatile ("sfence": : : "memory"); iowrite32(wil->rx_interframe_timeout, wil->csr + 7508UL); __asm__ volatile ("sfence": : : "memory"); wil_info(wil, "set ITR_RX_IDL_CNT_TRSH = %d usec\n", wil->rx_interframe_timeout); iowrite32(3U, wil->csr + 7516UL); __asm__ volatile ("sfence": : : "memory"); return; } } static irqreturn_t wil6210_irq_rx(int irq , void *cookie ) { struct wil6210_priv *wil ; u32 isr ; u32 tmp ; bool need_unmask ; struct _ddebug descriptor ; long tmp___0 ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; long tmp___3 ; struct _ddebug descriptor___1 ; long tmp___4 ; int tmp___5 ; long tmp___6 ; int tmp___7 ; long tmp___8 ; long tmp___9 ; long tmp___10 ; long tmp___11 ; { wil = (struct wil6210_priv *)cookie; tmp = wil_ioread32_and_clear(wil->csr + 7124U); isr = tmp; need_unmask = 1; trace_wil6210_irq_rx(isr); descriptor.modname = "wil6210"; descriptor.function = "wil6210_irq_rx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]ISR RX 0x%08x\n"; descriptor.lineno = 227U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]ISR RX 0x%08x\n", isr); } else { } wil_dbg_trace(wil, "DBG[ IRQ]ISR RX 0x%08x\n", isr); tmp___1 = ldv__builtin_expect(isr == 0U, 0L); if (tmp___1 != 0L) { wil_err(wil, "spurious IRQ: RX\n"); return (0); } else { } wil6210_mask_irq_rx(wil); tmp___9 = ldv__builtin_expect(((unsigned long )isr & 3UL) != 0UL, 1L); if (tmp___9 != 0L) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil6210_irq_rx"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor___0.format = "DBG[ IRQ]RX done\n"; descriptor___0.lineno = 244U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]RX done\n"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]RX done\n"); tmp___3 = ldv__builtin_expect(((unsigned long )isr & 2UL) != 0UL, 0L); if (tmp___3 != 0L) { wil_err_ratelimited(wil, "Received \"Rx buffer is in risk of overflow\" interrupt\n"); } else { } isr = isr & 4294967292U; tmp___7 = constant_test_bit(4L, (unsigned long const volatile *)(& wil->status)); tmp___8 = ldv__builtin_expect(tmp___7 != 0, 1L); if (tmp___8 != 0L) { tmp___5 = constant_test_bit(6L, (unsigned long const volatile *)(& wil->status)); tmp___6 = ldv__builtin_expect(tmp___5 != 0, 1L); if (tmp___6 != 0L) { descriptor___1.modname = "wil6210"; descriptor___1.function = "wil6210_irq_rx"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor___1.format = "DBG[TXRX]NAPI(Rx) schedule\n"; descriptor___1.lineno = 254U; descriptor___1.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]NAPI(Rx) schedule\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]NAPI(Rx) schedule\n"); need_unmask = 0; napi_schedule(& wil->napi_rx); } else { wil_err(wil, "Got Rx interrupt while stopping interface\n"); } } else { wil_err(wil, "Got Rx interrupt while in reset\n"); } } else { } tmp___10 = ldv__builtin_expect(isr != 0U, 0L); if (tmp___10 != 0L) { wil_err(wil, "un-handled RX ISR bits 0x%08x\n", isr); } else { } atomic_inc(& wil->isr_count_rx); tmp___11 = ldv__builtin_expect((long )need_unmask, 0L); if (tmp___11 != 0L) { wil6210_unmask_irq_rx(wil); } else { } return (1); } } static irqreturn_t wil6210_irq_tx(int irq , void *cookie ) { struct wil6210_priv *wil ; u32 isr ; u32 tmp ; bool need_unmask ; struct _ddebug descriptor ; long tmp___0 ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; int tmp___4 ; long tmp___5 ; long tmp___6 ; long tmp___7 ; long tmp___8 ; { wil = (struct wil6210_priv *)cookie; tmp = wil_ioread32_and_clear(wil->csr + 7096U); isr = tmp; need_unmask = 1; trace_wil6210_irq_tx(isr); descriptor.modname = "wil6210"; descriptor.function = "wil6210_irq_tx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]ISR TX 0x%08x\n"; descriptor.lineno = 288U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]ISR TX 0x%08x\n", isr); } else { } wil_dbg_trace(wil, "DBG[ IRQ]ISR TX 0x%08x\n", isr); tmp___1 = ldv__builtin_expect(isr == 0U, 0L); if (tmp___1 != 0L) { wil_err(wil, "spurious IRQ: TX\n"); return (0); } else { } wil6210_mask_irq_tx(wil); tmp___6 = ldv__builtin_expect((long )((int )isr) & 1L, 1L); if (tmp___6 != 0L) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil6210_irq_tx"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor___0.format = "DBG[ IRQ]TX done\n"; descriptor___0.lineno = 298U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]TX done\n"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]TX done\n"); isr = isr & 4294967294U; isr = isr & 4261412864U; tmp___4 = constant_test_bit(4L, (unsigned long const volatile *)(& wil->status)); tmp___5 = ldv__builtin_expect(tmp___4 != 0, 1L); if (tmp___5 != 0L) { descriptor___1.modname = "wil6210"; descriptor___1.function = "wil6210_irq_tx"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor___1.format = "DBG[TXRX]NAPI(Tx) schedule\n"; descriptor___1.lineno = 303U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]NAPI(Tx) schedule\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]NAPI(Tx) schedule\n"); need_unmask = 0; napi_schedule(& wil->napi_tx); } else { wil_err(wil, "Got Tx interrupt while in reset\n"); } } else { } tmp___7 = ldv__builtin_expect(isr != 0U, 0L); if (tmp___7 != 0L) { wil_err(wil, "un-handled TX ISR bits 0x%08x\n", isr); } else { } atomic_inc(& wil->isr_count_tx); tmp___8 = ldv__builtin_expect((long )need_unmask, 0L); if (tmp___8 != 0L) { wil6210_unmask_irq_tx(wil); } else { } return (1); } } static void wil_notify_fw_error(struct wil6210_priv *wil ) { struct device *dev ; char *envp[3U] ; { dev = & ((wil->wdev)->netdev)->dev; envp[0] = (char *)"SOURCE=wil6210"; envp[1] = (char *)"EVENT=FW_ERROR"; envp[2] = (char *)0; wil_err(wil, "Notify about firmware error\n"); kobject_uevent_env(& dev->kobj, 2, (char **)(& envp)); return; } } static void wil_cache_mbox_regs(struct wil6210_priv *wil ) { { wil_memcpy_fromio_32((void *)(& wil->mbox_ctl), (void const volatile *)wil->csr + 700U, 32UL); wil_mbox_ring_le2cpus(& wil->mbox_ctl.rx); wil_mbox_ring_le2cpus(& wil->mbox_ctl.tx); return; } } static irqreturn_t wil6210_irq_misc(int irq , void *cookie ) { struct wil6210_priv *wil ; u32 isr ; u32 tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; { wil = (struct wil6210_priv *)cookie; tmp = wil_ioread32_and_clear(wil->csr + 7152U); isr = tmp; trace_wil6210_irq_misc(isr); descriptor.modname = "wil6210"; descriptor.function = "wil6210_irq_misc"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]ISR MISC 0x%08x\n"; descriptor.lineno = 353U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]ISR MISC 0x%08x\n", isr); } else { } wil_dbg_trace(wil, "DBG[ IRQ]ISR MISC 0x%08x\n", isr); if (isr == 0U) { wil_err(wil, "spurious IRQ: MISC\n"); return (0); } else { } wil6210_mask_irq_misc(wil); if ((int )isr < 0) { wil_err(wil, "Firmware error detected\n"); clear_bit(0L, (unsigned long volatile *)(& wil->status)); } else { } if (((unsigned long )isr & 268435456UL) != 0UL) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil6210_irq_misc"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor___0.format = "DBG[ IRQ]IRQ: FW ready\n"; descriptor___0.lineno = 373U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]IRQ: FW ready\n"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]IRQ: FW ready\n"); wil_cache_mbox_regs(wil); set_bit(4L, (unsigned long volatile *)(& wil->status)); isr = isr & 4026531839U; } else { } wil->isr_misc = isr; if (isr != 0U) { return (2); } else { wil6210_unmask_irq_misc(wil); return (1); } } } static irqreturn_t wil6210_irq_misc_thread(int irq , void *cookie ) { struct wil6210_priv *wil ; u32 isr ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; { wil = (struct wil6210_priv *)cookie; isr = wil->isr_misc; trace_wil6210_irq_misc_thread(isr); descriptor.modname = "wil6210"; descriptor.function = "wil6210_irq_misc_thread"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]Thread ISR MISC 0x%08x\n"; descriptor.lineno = 399U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]Thread ISR MISC 0x%08x\n", isr); } else { } wil_dbg_trace(wil, "DBG[ IRQ]Thread ISR MISC 0x%08x\n", isr); if ((int )isr < 0) { wil_notify_fw_error(wil); isr = isr & 2147483647U; wil_fw_error_recovery(wil); } else { } if (((unsigned long )isr & 536870912UL) != 0UL) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil6210_irq_misc_thread"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor___0.format = "DBG[ IRQ]MBOX event\n"; descriptor___0.lineno = 408U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]MBOX event\n"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]MBOX event\n"); wmi_recv_cmd(wil); isr = isr & 3758096383U; } else { } if (isr != 0U) { descriptor___1.modname = "wil6210"; descriptor___1.function = "wil6210_irq_misc_thread"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor___1.format = "DBG[ IRQ]un-handled MISC ISR bits 0x%08x\n"; descriptor___1.lineno = 414U; descriptor___1.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]un-handled MISC ISR bits 0x%08x\n", isr); } else { } wil_dbg_trace(wil, "DBG[ IRQ]un-handled MISC ISR bits 0x%08x\n", isr); } else { } wil->isr_misc = 0U; wil6210_unmask_irq_misc(wil); return (1); } } static irqreturn_t wil6210_thread_irq(int irq , void *cookie ) { struct wil6210_priv *wil ; struct _ddebug descriptor ; long tmp ; { wil = (struct wil6210_priv *)cookie; descriptor.modname = "wil6210"; descriptor.function = "wil6210_thread_irq"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]Thread IRQ\n"; descriptor.lineno = 430U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]Thread IRQ\n"); } else { } wil_dbg_trace(wil, "DBG[ IRQ]Thread IRQ\n"); if (wil->isr_misc != 0U) { wil6210_irq_misc_thread(irq, cookie); } else { } wil6210_unmask_irq_pseudo(wil); return (1); } } static int wil6210_debug_irq_mask(struct wil6210_priv *wil , u32 pseudo_cause ) { u32 icm_rx ; u32 tmp ; u32 icr_rx ; u32 tmp___0 ; u32 imv_rx ; unsigned int tmp___1 ; u32 icm_tx ; u32 tmp___2 ; u32 icr_tx ; u32 tmp___3 ; u32 imv_tx ; unsigned int tmp___4 ; u32 icm_misc ; u32 tmp___5 ; u32 icr_misc ; u32 tmp___6 ; u32 imv_misc ; unsigned int tmp___7 ; int tmp___8 ; { tmp___8 = constant_test_bit(5L, (unsigned long const volatile *)(& wil->status)); if (tmp___8 == 0) { tmp = wil_ioread32_and_clear(wil->csr + 7128U); icm_rx = tmp; tmp___0 = wil_ioread32_and_clear(wil->csr + 7124U); icr_rx = tmp___0; tmp___1 = ioread32(wil->csr + 7136U); imv_rx = tmp___1; tmp___2 = wil_ioread32_and_clear(wil->csr + 7100U); icm_tx = tmp___2; tmp___3 = wil_ioread32_and_clear(wil->csr + 7096U); icr_tx = tmp___3; tmp___4 = ioread32(wil->csr + 7108U); imv_tx = tmp___4; tmp___5 = wil_ioread32_and_clear(wil->csr + 7156U); icm_misc = tmp___5; tmp___6 = wil_ioread32_and_clear(wil->csr + 7152U); icr_misc = tmp___6; tmp___7 = ioread32(wil->csr + 7164U); imv_misc = tmp___7; wil_err(wil, "IRQ when it should be masked: pseudo 0x%08x\nRx icm:icr:imv 0x%08x 0x%08x 0x%08x\nTx icm:icr:imv 0x%08x 0x%08x 0x%08x\nMisc icm:icr:imv 0x%08x 0x%08x 0x%08x\n", pseudo_cause, icm_rx, icr_rx, imv_rx, icm_tx, icr_tx, imv_tx, icm_misc, icr_misc, imv_misc); return (-22); } else { } return (0); } } static irqreturn_t wil6210_hardirq(int irq , void *cookie ) { irqreturn_t rc ; struct wil6210_priv *wil ; u32 pseudo_cause ; unsigned int tmp ; long tmp___0 ; int tmp___1 ; long tmp___2 ; struct _ddebug descriptor ; long tmp___3 ; irqreturn_t tmp___4 ; irqreturn_t tmp___5 ; irqreturn_t tmp___6 ; { rc = 1; wil = (struct wil6210_priv *)cookie; tmp = ioread32(wil->csr + 7272UL); pseudo_cause = tmp; tmp___0 = ldv__builtin_expect((long )(pseudo_cause == 0U || (pseudo_cause & 255U) == 255U), 0L); if (tmp___0 != 0L) { return (0); } else { } tmp___1 = wil6210_debug_irq_mask(wil, pseudo_cause); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); if (tmp___2 != 0L) { return (0); } else { } trace_wil6210_irq_pseudo(pseudo_cause); descriptor.modname = "wil6210"; descriptor.function = "wil6210_hardirq"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[ IRQ]Pseudo IRQ 0x%08x\n"; descriptor.lineno = 508U; descriptor.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ IRQ]Pseudo IRQ 0x%08x\n", pseudo_cause); } else { } wil_dbg_trace(wil, "DBG[ IRQ]Pseudo IRQ 0x%08x\n", pseudo_cause); wil6210_mask_irq_pseudo(wil); if ((int )pseudo_cause & 1) { tmp___4 = wil6210_irq_rx(irq, cookie); if ((unsigned int )tmp___4 == 2U) { rc = 2; } else { } } else { } if (((unsigned long )pseudo_cause & 2UL) != 0UL) { tmp___5 = wil6210_irq_tx(irq, cookie); if ((unsigned int )tmp___5 == 2U) { rc = 2; } else { } } else { } if (((unsigned long )pseudo_cause & 4UL) != 0UL) { tmp___6 = wil6210_irq_misc(irq, cookie); if ((unsigned int )tmp___6 == 2U) { rc = 2; } else { } } else { } if ((unsigned int )rc != 2U) { wil6210_unmask_irq_pseudo(wil); } else { } return (rc); } } static int wil6210_request_3msi(struct wil6210_priv *wil , int irq ) { int rc ; { rc = ldv_request_irq_318((unsigned int )irq, & wil6210_irq_tx, 128UL, "wil6210_tx", (void *)wil); if (rc != 0) { return (rc); } else { } rc = ldv_request_irq_319((unsigned int )(irq + 1), & wil6210_irq_rx, 128UL, "wil6210_rx", (void *)wil); if (rc != 0) { goto free0; } else { } rc = ldv_request_threaded_irq_320((unsigned int )(irq + 2), & wil6210_irq_misc, & wil6210_irq_misc_thread, 128UL, "wil6210_misc", (void *)wil); if (rc != 0) { goto free1; } else { } return (0); free1: ldv_free_irq_321((unsigned int )(irq + 1), (void *)wil); free0: ldv_free_irq_322((unsigned int )irq, (void *)wil); return (rc); } } __inline static void wil_clear32(void *addr ) { u32 x ; unsigned int tmp ; { tmp = ioread32(addr); x = tmp; iowrite32(x, addr); return; } } void wil6210_clear_irq(struct wil6210_priv *wil ) { { wil_clear32(wil->csr + 7124U); wil_clear32(wil->csr + 7096U); wil_clear32(wil->csr + 7152U); __asm__ volatile ("sfence": : : "memory"); return; } } int wil6210_init_irq(struct wil6210_priv *wil , int irq ) { int rc ; struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil6210_init_irq"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[MISC]%s() n_msi=%d\n"; descriptor.lineno = 603U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s() n_msi=%d\n", "wil6210_init_irq", wil->n_msi); } else { } wil_dbg_trace(wil, "DBG[MISC]%s() n_msi=%d\n", "wil6210_init_irq", wil->n_msi); if (wil->n_msi == 3) { rc = wil6210_request_3msi(wil, irq); } else { rc = ldv_request_threaded_irq_323((unsigned int )irq, & wil6210_hardirq, & wil6210_thread_irq, wil->n_msi != 0 ? 0UL : 128UL, "wil6210", (void *)wil); } return (rc); } } void wil6210_fini_irq(struct wil6210_priv *wil , int irq ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil6210_fini_irq"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/interrupt.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 617U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil6210_fini_irq"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil6210_fini_irq"); wil_mask_irq(wil); ldv_free_irq_324((unsigned int )irq, (void *)wil); if (wil->n_msi == 3) { ldv_free_irq_325((unsigned int )(irq + 1), (void *)wil); ldv_free_irq_326((unsigned int )(irq + 2), (void *)wil); } else { } return; } } void activate_suitable_irq_4(int line , void *data ) { { if (ldv_irq_4_0 == 0) { ldv_irq_line_4_0 = line; ldv_irq_data_4_0 = data; ldv_irq_4_0 = 1; return; } else { } if (ldv_irq_4_1 == 0) { ldv_irq_line_4_1 = line; ldv_irq_data_4_1 = data; ldv_irq_4_1 = 1; return; } else { } if (ldv_irq_4_2 == 0) { ldv_irq_line_4_2 = line; ldv_irq_data_4_2 = data; ldv_irq_4_2 = 1; return; } else { } if (ldv_irq_4_3 == 0) { ldv_irq_line_4_3 = line; ldv_irq_data_4_3 = data; ldv_irq_4_3 = 1; return; } else { } return; } } int ldv_irq_3(int state , int line , void *data ) { irqreturn_t irq_retval ; int tmp ; int tmp___0 ; { tmp = __VERIFIER_nondet_int(); irq_retval = (irqreturn_t )tmp; if (state != 0) { tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (state == 1) { LDV_IN_INTERRUPT = 2; irq_retval = wil6210_irq_misc(line, data); LDV_IN_INTERRUPT = 1; if ((unsigned int )irq_retval == 2U) { state = 2; } else { state = 1; } return (state); } else { } goto ldv_49352; case 1: ; if (state == 2) { wil6210_irq_misc_thread(line, data); state = 1; return (state); } else { } goto ldv_49352; default: ldv_stop(); } ldv_49352: ; } else { } return (state); } } void disable_suitable_irq_2(int line , void *data ) { { if (ldv_irq_2_0 != 0 && line == ldv_irq_line_2_0) { ldv_irq_2_0 = 0; return; } else { } if (ldv_irq_2_1 != 0 && line == ldv_irq_line_2_1) { ldv_irq_2_1 = 0; return; } else { } if (ldv_irq_2_2 != 0 && line == ldv_irq_line_2_2) { ldv_irq_2_2 = 0; return; } else { } if (ldv_irq_2_3 != 0 && line == ldv_irq_line_2_3) { ldv_irq_2_3 = 0; return; } else { } return; } } void activate_suitable_irq_3(int line , void *data ) { { if (ldv_irq_3_0 == 0) { ldv_irq_line_3_0 = line; ldv_irq_data_3_0 = data; ldv_irq_3_0 = 1; return; } else { } if (ldv_irq_3_1 == 0) { ldv_irq_line_3_1 = line; ldv_irq_data_3_1 = data; ldv_irq_3_1 = 1; return; } else { } if (ldv_irq_3_2 == 0) { ldv_irq_line_3_2 = line; ldv_irq_data_3_2 = data; ldv_irq_3_2 = 1; return; } else { } if (ldv_irq_3_3 == 0) { ldv_irq_line_3_3 = line; ldv_irq_data_3_3 = data; ldv_irq_3_3 = 1; return; } else { } return; } } int reg_check_1(irqreturn_t (*handler)(int , void * ) ) { { if ((unsigned long )handler == (unsigned long )(& wil6210_irq_tx)) { return (1); } else { } return (0); } } void choose_interrupt_4(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ldv_irq_4_0 = ldv_irq_4(ldv_irq_4_0, ldv_irq_line_4_0, ldv_irq_data_4_0); goto ldv_49372; case 1: ldv_irq_4_0 = ldv_irq_4(ldv_irq_4_1, ldv_irq_line_4_1, ldv_irq_data_4_1); goto ldv_49372; case 2: ldv_irq_4_0 = ldv_irq_4(ldv_irq_4_2, ldv_irq_line_4_2, ldv_irq_data_4_2); goto ldv_49372; case 3: ldv_irq_4_0 = ldv_irq_4(ldv_irq_4_3, ldv_irq_line_4_3, ldv_irq_data_4_3); goto ldv_49372; default: ldv_stop(); } ldv_49372: ; return; } } int ldv_irq_6(int state , int line , void *data ) { irqreturn_t irq_retval ; int tmp ; int tmp___0 ; { tmp = __VERIFIER_nondet_int(); irq_retval = (irqreturn_t )tmp; if (state != 0) { tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (state == 1) { LDV_IN_INTERRUPT = 2; irq_retval = wil6210_hardirq(line, data); LDV_IN_INTERRUPT = 1; if ((unsigned int )irq_retval == 2U) { state = 2; } else { state = 1; } return (state); } else { } goto ldv_49384; case 1: ; if (state == 2) { wil6210_thread_irq(line, data); state = 1; return (state); } else { } goto ldv_49384; default: ldv_stop(); } ldv_49384: ; } else { } return (state); } } void activate_suitable_irq_6(int line , void *data ) { { if (ldv_irq_6_0 == 0) { ldv_irq_line_6_0 = line; ldv_irq_data_6_0 = data; ldv_irq_6_0 = 1; return; } else { } if (ldv_irq_6_1 == 0) { ldv_irq_line_6_1 = line; ldv_irq_data_6_1 = data; ldv_irq_6_1 = 1; return; } else { } if (ldv_irq_6_2 == 0) { ldv_irq_line_6_2 = line; ldv_irq_data_6_2 = data; ldv_irq_6_2 = 1; return; } else { } if (ldv_irq_6_3 == 0) { ldv_irq_line_6_3 = line; ldv_irq_data_6_3 = data; ldv_irq_6_3 = 1; return; } else { } return; } } void choose_interrupt_5(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ldv_irq_5_0 = ldv_irq_5(ldv_irq_5_0, ldv_irq_line_5_0, ldv_irq_data_5_0); goto ldv_49395; case 1: ldv_irq_5_0 = ldv_irq_5(ldv_irq_5_1, ldv_irq_line_5_1, ldv_irq_data_5_1); goto ldv_49395; case 2: ldv_irq_5_0 = ldv_irq_5(ldv_irq_5_2, ldv_irq_line_5_2, ldv_irq_data_5_2); goto ldv_49395; case 3: ldv_irq_5_0 = ldv_irq_5(ldv_irq_5_3, ldv_irq_line_5_3, ldv_irq_data_5_3); goto ldv_49395; default: ldv_stop(); } ldv_49395: ; return; } } void disable_suitable_irq_5(int line , void *data ) { { if (ldv_irq_5_0 != 0 && line == ldv_irq_line_5_0) { ldv_irq_5_0 = 0; return; } else { } if (ldv_irq_5_1 != 0 && line == ldv_irq_line_5_1) { ldv_irq_5_1 = 0; return; } else { } if (ldv_irq_5_2 != 0 && line == ldv_irq_line_5_2) { ldv_irq_5_2 = 0; return; } else { } if (ldv_irq_5_3 != 0 && line == ldv_irq_line_5_3) { ldv_irq_5_3 = 0; return; } else { } return; } } void activate_suitable_irq_2(int line , void *data ) { { if (ldv_irq_2_0 == 0) { ldv_irq_line_2_0 = line; ldv_irq_data_2_0 = data; ldv_irq_2_0 = 1; return; } else { } if (ldv_irq_2_1 == 0) { ldv_irq_line_2_1 = line; ldv_irq_data_2_1 = data; ldv_irq_2_1 = 1; return; } else { } if (ldv_irq_2_2 == 0) { ldv_irq_line_2_2 = line; ldv_irq_data_2_2 = data; ldv_irq_2_2 = 1; return; } else { } if (ldv_irq_2_3 == 0) { ldv_irq_line_2_3 = line; ldv_irq_data_2_3 = data; ldv_irq_2_3 = 1; return; } else { } return; } } int ldv_irq_5(int state , int line , void *data ) { irqreturn_t irq_retval ; int tmp ; int tmp___0 ; { tmp = __VERIFIER_nondet_int(); irq_retval = (irqreturn_t )tmp; if (state != 0) { tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (state == 1) { LDV_IN_INTERRUPT = 2; irq_retval = wil6210_hardirq(line, data); LDV_IN_INTERRUPT = 1; if ((unsigned int )irq_retval == 2U) { state = 2; } else { state = 1; } return (state); } else { } goto ldv_49415; case 1: ; if (state == 2) { wil6210_thread_irq(line, data); state = 1; return (state); } else { } goto ldv_49415; default: ldv_stop(); } ldv_49415: ; } else { } return (state); } } void choose_interrupt_1(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ldv_irq_1_0 = ldv_irq_1(ldv_irq_1_0, ldv_irq_line_1_0, ldv_irq_data_1_0); goto ldv_49422; case 1: ldv_irq_1_0 = ldv_irq_1(ldv_irq_1_1, ldv_irq_line_1_1, ldv_irq_data_1_1); goto ldv_49422; case 2: ldv_irq_1_0 = ldv_irq_1(ldv_irq_1_2, ldv_irq_line_1_2, ldv_irq_data_1_2); goto ldv_49422; case 3: ldv_irq_1_0 = ldv_irq_1(ldv_irq_1_3, ldv_irq_line_1_3, ldv_irq_data_1_3); goto ldv_49422; default: ldv_stop(); } ldv_49422: ; return; } } int reg_check_2(irqreturn_t (*handler)(int , void * ) ) { { if ((unsigned long )handler == (unsigned long )(& wil6210_irq_rx)) { return (1); } else { } return (0); } } int reg_check_3(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) { { if ((unsigned long )handler == (unsigned long )(& wil6210_irq_misc) && (unsigned long )thread_fn == (unsigned long )(& wil6210_irq_misc_thread)) { return (1); } else { } return (0); } } int reg_check_6(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) { { if ((unsigned long )handler == (unsigned long )(& wil6210_hardirq) && (unsigned long )thread_fn == (unsigned long )(& wil6210_thread_irq)) { return (1); } else { } return (0); } } int ldv_irq_4(int state , int line , void *data ) { irqreturn_t irq_retval ; int tmp ; int tmp___0 ; { tmp = __VERIFIER_nondet_int(); irq_retval = (irqreturn_t )tmp; if (state != 0) { tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (state == 1) { LDV_IN_INTERRUPT = 2; irq_retval = wil6210_irq_misc(line, data); LDV_IN_INTERRUPT = 1; if ((unsigned int )irq_retval == 2U) { state = 2; } else { state = 1; } return (state); } else { } goto ldv_49455; case 1: ; if (state == 2) { wil6210_irq_misc_thread(line, data); state = 1; return (state); } else { } goto ldv_49455; default: ldv_stop(); } ldv_49455: ; } else { } return (state); } } void choose_interrupt_6(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ldv_irq_6_0 = ldv_irq_6(ldv_irq_6_0, ldv_irq_line_6_0, ldv_irq_data_6_0); goto ldv_49462; case 1: ldv_irq_6_0 = ldv_irq_6(ldv_irq_6_1, ldv_irq_line_6_1, ldv_irq_data_6_1); goto ldv_49462; case 2: ldv_irq_6_0 = ldv_irq_6(ldv_irq_6_2, ldv_irq_line_6_2, ldv_irq_data_6_2); goto ldv_49462; case 3: ldv_irq_6_0 = ldv_irq_6(ldv_irq_6_3, ldv_irq_line_6_3, ldv_irq_data_6_3); goto ldv_49462; default: ldv_stop(); } ldv_49462: ; return; } } void disable_suitable_irq_6(int line , void *data ) { { if (ldv_irq_6_0 != 0 && line == ldv_irq_line_6_0) { ldv_irq_6_0 = 0; return; } else { } if (ldv_irq_6_1 != 0 && line == ldv_irq_line_6_1) { ldv_irq_6_1 = 0; return; } else { } if (ldv_irq_6_2 != 0 && line == ldv_irq_line_6_2) { ldv_irq_6_2 = 0; return; } else { } if (ldv_irq_6_3 != 0 && line == ldv_irq_line_6_3) { ldv_irq_6_3 = 0; return; } else { } return; } } void activate_suitable_irq_5(int line , void *data ) { { if (ldv_irq_5_0 == 0) { ldv_irq_line_5_0 = line; ldv_irq_data_5_0 = data; ldv_irq_5_0 = 1; return; } else { } if (ldv_irq_5_1 == 0) { ldv_irq_line_5_1 = line; ldv_irq_data_5_1 = data; ldv_irq_5_1 = 1; return; } else { } if (ldv_irq_5_2 == 0) { ldv_irq_line_5_2 = line; ldv_irq_data_5_2 = data; ldv_irq_5_2 = 1; return; } else { } if (ldv_irq_5_3 == 0) { ldv_irq_line_5_3 = line; ldv_irq_data_5_3 = data; ldv_irq_5_3 = 1; return; } else { } return; } } void disable_suitable_irq_1(int line , void *data ) { { if (ldv_irq_1_0 != 0 && line == ldv_irq_line_1_0) { ldv_irq_1_0 = 0; return; } else { } if (ldv_irq_1_1 != 0 && line == ldv_irq_line_1_1) { ldv_irq_1_1 = 0; return; } else { } if (ldv_irq_1_2 != 0 && line == ldv_irq_line_1_2) { ldv_irq_1_2 = 0; return; } else { } if (ldv_irq_1_3 != 0 && line == ldv_irq_line_1_3) { ldv_irq_1_3 = 0; return; } else { } return; } } void activate_suitable_irq_1(int line , void *data ) { { if (ldv_irq_1_0 == 0) { ldv_irq_line_1_0 = line; ldv_irq_data_1_0 = data; ldv_irq_1_0 = 1; return; } else { } if (ldv_irq_1_1 == 0) { ldv_irq_line_1_1 = line; ldv_irq_data_1_1 = data; ldv_irq_1_1 = 1; return; } else { } if (ldv_irq_1_2 == 0) { ldv_irq_line_1_2 = line; ldv_irq_data_1_2 = data; ldv_irq_1_2 = 1; return; } else { } if (ldv_irq_1_3 == 0) { ldv_irq_line_1_3 = line; ldv_irq_data_1_3 = data; ldv_irq_1_3 = 1; return; } else { } return; } } int reg_check_4(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) { { if ((unsigned long )handler == (unsigned long )(& wil6210_irq_misc) && (unsigned long )thread_fn == (unsigned long )(& wil6210_irq_misc_thread)) { return (1); } else { } return (0); } } int ldv_irq_2(int state , int line , void *data ) { irqreturn_t irq_retval ; int tmp ; int tmp___0 ; { tmp = __VERIFIER_nondet_int(); irq_retval = (irqreturn_t )tmp; if (state != 0) { tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (state == 1) { LDV_IN_INTERRUPT = 2; irq_retval = wil6210_irq_rx(line, data); LDV_IN_INTERRUPT = 1; return (state); } else { } goto ldv_49498; default: ldv_stop(); } ldv_49498: ; } else { } return (state); } } void choose_interrupt_2(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ldv_irq_2_0 = ldv_irq_2(ldv_irq_2_0, ldv_irq_line_2_0, ldv_irq_data_2_0); goto ldv_49504; case 1: ldv_irq_2_0 = ldv_irq_2(ldv_irq_2_1, ldv_irq_line_2_1, ldv_irq_data_2_1); goto ldv_49504; case 2: ldv_irq_2_0 = ldv_irq_2(ldv_irq_2_2, ldv_irq_line_2_2, ldv_irq_data_2_2); goto ldv_49504; case 3: ldv_irq_2_0 = ldv_irq_2(ldv_irq_2_3, ldv_irq_line_2_3, ldv_irq_data_2_3); goto ldv_49504; default: ldv_stop(); } ldv_49504: ; return; } } void disable_suitable_irq_4(int line , void *data ) { { if (ldv_irq_4_0 != 0 && line == ldv_irq_line_4_0) { ldv_irq_4_0 = 0; return; } else { } if (ldv_irq_4_1 != 0 && line == ldv_irq_line_4_1) { ldv_irq_4_1 = 0; return; } else { } if (ldv_irq_4_2 != 0 && line == ldv_irq_line_4_2) { ldv_irq_4_2 = 0; return; } else { } if (ldv_irq_4_3 != 0 && line == ldv_irq_line_4_3) { ldv_irq_4_3 = 0; return; } else { } return; } } void disable_suitable_irq_3(int line , void *data ) { { if (ldv_irq_3_0 != 0 && line == ldv_irq_line_3_0) { ldv_irq_3_0 = 0; return; } else { } if (ldv_irq_3_1 != 0 && line == ldv_irq_line_3_1) { ldv_irq_3_1 = 0; return; } else { } if (ldv_irq_3_2 != 0 && line == ldv_irq_line_3_2) { ldv_irq_3_2 = 0; return; } else { } if (ldv_irq_3_3 != 0 && line == ldv_irq_line_3_3) { ldv_irq_3_3 = 0; return; } else { } return; } } int ldv_irq_1(int state , int line , void *data ) { irqreturn_t irq_retval ; int tmp ; int tmp___0 ; { tmp = __VERIFIER_nondet_int(); irq_retval = (irqreturn_t )tmp; if (state != 0) { tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (state == 1) { LDV_IN_INTERRUPT = 2; irq_retval = wil6210_irq_tx(line, data); LDV_IN_INTERRUPT = 1; return (state); } else { } goto ldv_49524; default: ldv_stop(); } ldv_49524: ; } else { } return (state); } } void choose_interrupt_3(void) { int tmp ; { tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ldv_irq_3_0 = ldv_irq_3(ldv_irq_3_0, ldv_irq_line_3_0, ldv_irq_data_3_0); goto ldv_49530; case 1: ldv_irq_3_0 = ldv_irq_3(ldv_irq_3_1, ldv_irq_line_3_1, ldv_irq_data_3_1); goto ldv_49530; case 2: ldv_irq_3_0 = ldv_irq_3(ldv_irq_3_2, ldv_irq_line_3_2, ldv_irq_data_3_2); goto ldv_49530; case 3: ldv_irq_3_0 = ldv_irq_3(ldv_irq_3_3, ldv_irq_line_3_3, ldv_irq_data_3_3); goto ldv_49530; default: ldv_stop(); } ldv_49530: ; return; } } int reg_check_5(irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) ) { { if ((unsigned long )handler == (unsigned long )(& wil6210_hardirq) && (unsigned long )thread_fn == (unsigned long )(& wil6210_thread_irq)) { return (1); } else { } return (0); } } bool ldv_queue_work_on_305(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_306(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_307(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_308(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_309(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_310(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_311(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_312(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___3 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_mutex_lock_313(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_314(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___4 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_315(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_316(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_317(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } __inline static int ldv_request_irq_318(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_irq(irq, handler, flags, name, dev); ldv_func_res = tmp; tmp___0 = reg_check_2(handler); if (tmp___0 != 0 && ldv_func_res == 0) { activate_suitable_irq_2((int )irq, dev); } else { } return (ldv_func_res); } } __inline static int ldv_request_irq_319(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) { ldv_func_ret_type___6 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_irq(irq, handler, flags, name, dev); ldv_func_res = tmp; tmp___0 = reg_check_2(handler); if (tmp___0 != 0 && ldv_func_res == 0) { activate_suitable_irq_2((int )irq, dev); } else { } return (ldv_func_res); } } int ldv_request_threaded_irq_320(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___18 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_free_irq_321(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { free_irq(ldv_func_arg1, ldv_func_arg2); disable_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg2); return; } } void ldv_free_irq_322(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { free_irq(ldv_func_arg1, ldv_func_arg2); disable_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg2); return; } } int ldv_request_threaded_irq_323(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___19 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_free_irq_324(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { free_irq(ldv_func_arg1, ldv_func_arg2); disable_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg2); return; } } void ldv_free_irq_325(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { free_irq(ldv_func_arg1, ldv_func_arg2); disable_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg2); return; } } void ldv_free_irq_326(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { free_irq(ldv_func_arg1, ldv_func_arg2); disable_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg2); return; } } void __builtin_prefetch(void const * , ...) ; __inline static long ldv__builtin_expect(long exp , long c ) ; extern unsigned long __phys_addr(unsigned long ) ; extern void *__memmove(void * , void const * , size_t ) ; __inline static u64 paravirt_read_tsc___0(void) { u64 __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_cpu_ops.read_tsc == (unsigned long )((u64 (*)(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 *)"./arch/x86/include/asm/paravirt.h"), "i" (179), "i" (12UL)); ldv_4012: ; goto ldv_4012; } else { } __asm__ volatile ("771:\n\tcall *%c6;\n772:\n.pushsection .parainstructions,\"a\"\n .balign 8 \n .quad 771b\n .byte %c5\n .byte 772b-771b\n .short %c7\n.popsection\n": "=D" (__edi), "=S" (__esi), "=d" (__edx), "=c" (__ecx), "=a" (__eax): [paravirt_typenum] "i" (34UL), [paravirt_opptr] "i" (& pv_cpu_ops.read_tsc), [paravirt_clobber] "i" (511): "memory", "cc", "r8", "r9", "r10", "r11"); __ret = (unsigned long long )__eax; return (__ret); } } __inline static unsigned long arch_local_save_flags___1(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 *)"./arch/x86/include/asm/paravirt.h"), "i" (831), "i" (12UL)); ldv_4801: ; goto ldv_4801; } 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" (43UL), [paravirt_opptr] "i" (& pv_irq_ops.save_fl.func), [paravirt_clobber] "i" (1): "memory", "cc"); __ret = __eax; return (__ret); } } __inline static int ldv_mutex_is_locked_366(struct mutex *lock ) ; int ldv_mutex_trylock_361(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_359(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_362(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_363(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_358(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_360(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_364(struct mutex *ldv_func_arg1 ) ; __inline static int preempt_count___1(void) { int pfo_ret__ ; { switch (4UL) { case 1UL: __asm__ ("movb %%gs:%1,%0": "=q" (pfo_ret__): "m" (__preempt_count)); goto ldv_6635; case 2UL: __asm__ ("movw %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6635; case 4UL: __asm__ ("movl %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6635; case 8UL: __asm__ ("movq %%gs:%1,%0": "=r" (pfo_ret__): "m" (__preempt_count)); goto ldv_6635; default: __bad_percpu_size(); } ldv_6635: ; return (pfo_ret__ & 2147483647); } } __inline static void __preempt_count_add___1(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (val)); } goto ldv_6692; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6692; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6692; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (val)); } goto ldv_6692; default: __bad_percpu_size(); } ldv_6692: ; return; } } __inline static void __preempt_count_sub___1(int val ) { int pao_ID__ ; { pao_ID__ = 0; switch (4UL) { case 1UL: ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%0": "+m" (__preempt_count): "qi" (- val)); } goto ldv_6704; case 2UL: ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6704; case 4UL: ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6704; case 8UL: ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%0": "+m" (__preempt_count): "re" (- val)); } goto ldv_6704; default: __bad_percpu_size(); } ldv_6704: ; return; } } extern void _raw_spin_lock(raw_spinlock_t * ) ; extern void _raw_spin_unlock(raw_spinlock_t * ) ; __inline static void spin_lock(spinlock_t *lock ) { { _raw_spin_lock(& lock->__annonCompField17.rlock); return; } } __inline static void spin_unlock(spinlock_t *lock ) { { _raw_spin_unlock(& lock->__annonCompField17.rlock); return; } } __inline static cycles_t get_cycles___0(void) { unsigned long long ret ; { ret = 0ULL; ret = paravirt_read_tsc___0(); return (ret); } } __inline static int rcu_read_lock_sched_held___1(void) { int lockdep_opinion ; int tmp ; bool tmp___0 ; int tmp___1 ; bool tmp___2 ; int tmp___3 ; int tmp___4 ; unsigned long _flags ; int tmp___5 ; int tmp___6 ; { lockdep_opinion = 0; tmp = debug_lockdep_rcu_enabled(); if (tmp == 0) { return (1); } else { } tmp___0 = rcu_is_watching(); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { return (0); } else { } tmp___2 = rcu_lockdep_current_cpu_online(); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { return (0); } else { } if (debug_locks != 0) { lockdep_opinion = lock_is_held(& rcu_sched_lock_map); } else { } if (lockdep_opinion != 0) { tmp___6 = 1; } else { tmp___4 = preempt_count___1(); if (tmp___4 != 0) { tmp___6 = 1; } else { _flags = arch_local_save_flags___1(); tmp___5 = arch_irqs_disabled_flags(_flags); if (tmp___5 != 0) { tmp___6 = 1; } else { tmp___6 = 0; } } } return (tmp___6); } } __inline static void rcu_read_lock_sched_notrace___1(void) { { __preempt_count_add___1(1); __asm__ volatile ("": : : "memory"); return; } } __inline static void rcu_read_unlock_sched_notrace___1(void) { { __asm__ volatile ("": : : "memory"); __preempt_count_sub___1(1); return; } } bool ldv_queue_work_on_353(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_355(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_354(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_357(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_356(struct workqueue_struct *ldv_func_arg1 ) ; __inline static void *kmalloc_array(size_t n , size_t size , gfp_t flags ) { void *tmp ; { if (size != 0UL && 0xffffffffffffffffUL / size < n) { return ((void *)0); } else { } tmp = __kmalloc(n * size, flags); return (tmp); } } __inline static void *kcalloc(size_t n , size_t size , gfp_t flags ) { void *tmp ; { tmp = kmalloc_array(n, size, flags | 32768U); return (tmp); } } __inline static void kmemcheck_mark_initialized(void *address , unsigned int n ) { { return; } } __inline static int valid_dma_direction(int dma_direction ) { { return ((dma_direction == 0 || dma_direction == 1) || dma_direction == 2); } } extern void debug_dma_map_page(struct device * , struct page * , size_t , size_t , int , dma_addr_t , bool ) ; extern void debug_dma_mapping_error(struct device * , dma_addr_t ) ; extern void debug_dma_unmap_page(struct device * , dma_addr_t , size_t , int , bool ) ; 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_25646: ; goto ldv_25646; } else { } tmp___2 = __phys_addr((unsigned long )ptr); addr = (*(ops->map_page))(dev, (struct page *)-24189255811072L + (tmp___2 >> 12), (unsigned long )ptr & 4095UL, size, dir, attrs); tmp___3 = __phys_addr((unsigned long )ptr); debug_dma_map_page(dev, (struct page *)-24189255811072L + (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_25655: ; goto ldv_25655; } 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" (84), "i" (12UL)); ldv_25690: ; goto ldv_25690; } else { } addr = (*(ops->map_page))(dev, page, offset, size, dir, (struct dma_attrs *)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" (96), "i" (12UL)); ldv_25698: ; goto ldv_25698; } 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, (struct dma_attrs *)0); } else { } debug_dma_unmap_page(dev, addr, size, (int )dir, 0); return; } } __inline static int dma_mapping_error(struct device *dev , dma_addr_t dma_addr ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; int tmp___0 ; { tmp = get_dma_ops(dev); ops = tmp; debug_dma_mapping_error(dev, dma_addr); if ((unsigned long )ops->mapping_error != (unsigned long )((int (*)(struct device * , dma_addr_t ))0)) { tmp___0 = (*(ops->mapping_error))(dev, dma_addr); return (tmp___0); } else { } return (dma_addr == 0ULL); } } extern void *dma_alloc_attrs(struct device * , size_t , dma_addr_t * , gfp_t , struct dma_attrs * ) ; extern void dma_free_attrs(struct device * , size_t , void * , dma_addr_t , struct dma_attrs * ) ; extern struct sk_buff *skb_copy(struct sk_buff const * , gfp_t ) ; extern int pskb_expand_head(struct sk_buff * , int , int , gfp_t ) ; __inline static bool skb_is_nonlinear(struct sk_buff const *skb ) { { return ((unsigned int )skb->data_len != 0U); } } __inline static unsigned char *skb_tail_pointer(struct sk_buff const *skb ) { { return ((unsigned char *)skb->head + (unsigned long )skb->tail); } } extern unsigned char *skb_push(struct sk_buff * , unsigned int ) ; extern unsigned char *skb_pull(struct sk_buff * , unsigned int ) ; __inline static unsigned int skb_headroom(struct sk_buff const *skb ) { { return ((unsigned int )((long )skb->data) - (unsigned int )((long )skb->head)); } } __inline static int skb_tailroom(struct sk_buff const *skb ) { bool tmp ; { tmp = skb_is_nonlinear(skb); return ((int )tmp ? 0 : (int )((unsigned int )skb->end - (unsigned int )skb->tail)); } } __inline static void skb_reserve(struct sk_buff *skb , int len ) { { skb->data = skb->data + (unsigned long )len; skb->tail = skb->tail + (sk_buff_data_t )len; return; } } __inline static unsigned char *skb_transport_header(struct sk_buff const *skb ) { { return ((unsigned char *)skb->head + (unsigned long )skb->transport_header); } } __inline static unsigned char *skb_network_header(struct sk_buff const *skb ) { { return ((unsigned char *)skb->head + (unsigned long )skb->network_header); } } __inline static void skb_reset_network_header(struct sk_buff *skb ) { { skb->network_header = (int )((__u16 )((long )skb->data)) - (int )((__u16 )((long )skb->head)); return; } } __inline static void skb_reset_mac_header(struct sk_buff *skb ) { { skb->mac_header = (int )((__u16 )((long )skb->data)) - (int )((__u16 )((long )skb->head)); return; } } __inline static u32 skb_network_header_len(struct sk_buff const *skb ) { { return ((u32 )((int )skb->transport_header - (int )skb->network_header)); } } extern void skb_trim(struct sk_buff * , unsigned int ) ; __inline static void skb_orphan(struct sk_buff *skb ) { long tmp ; { if ((unsigned long )skb->destructor != (unsigned long )((void (*)(struct sk_buff * ))0)) { (*(skb->destructor))(skb); skb->destructor = (void (*)(struct sk_buff * ))0; skb->sk = (struct sock *)0; } else { tmp = ldv__builtin_expect((unsigned long )skb->sk != (unsigned long )((struct sock *)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 *)"include/linux/skbuff.h"), "i" (2106), "i" (12UL)); ldv_27185: ; goto ldv_27185; } else { } } return; } } extern struct sk_buff *__netdev_alloc_skb(struct net_device * , unsigned int , gfp_t ) ; __inline static struct sk_buff *netdev_alloc_skb(struct net_device *dev , unsigned int length ) { struct sk_buff *tmp ; { tmp = __netdev_alloc_skb(dev, length, 32U); return (tmp); } } __inline static struct sk_buff *dev_alloc_skb(unsigned int length ) { struct sk_buff *tmp ; { tmp = netdev_alloc_skb((struct net_device *)0, length); return (tmp); } } __inline static dma_addr_t skb_frag_dma_map(struct device *dev , skb_frag_t const *frag , size_t offset , size_t size , enum dma_data_direction dir ) { struct page *tmp ; dma_addr_t tmp___0 ; { tmp = skb_frag_page(frag); tmp___0 = dma_map_page(dev, tmp, (size_t )frag->page_offset + offset, size, dir); return (tmp___0); } } extern void skb_complete_wifi_ack(struct sk_buff * , bool ) ; int ldv_request_threaded_irq_365(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; __inline static void napi_synchronize(struct napi_struct const *n ) { int tmp ; { goto ldv_41314; ldv_41313: msleep(1U); ldv_41314: tmp = constant_test_bit(0L, (unsigned long const volatile *)(& n->state)); if (tmp != 0) { goto ldv_41313; } else { } return; } } extern int dev_queue_xmit_sk(struct sock * , struct sk_buff * ) ; __inline static int dev_queue_xmit(struct sk_buff *skb ) { int tmp ; { tmp = dev_queue_xmit_sk(skb->sk, skb); return (tmp); } } __inline static void netif_tx_wake_all_queues___0(struct net_device *dev ) { unsigned int i ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { i = 0U; goto ldv_42388; ldv_42387: tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; netif_tx_wake_queue(txq); i = i + 1U; ldv_42388: ; if (dev->num_tx_queues > i) { goto ldv_42387; } else { } return; } } extern void __dev_kfree_skb_any(struct sk_buff * , enum skb_free_reason ) ; __inline static void dev_kfree_skb_any(struct sk_buff *skb ) { { __dev_kfree_skb_any(skb, 1); return; } } __inline static void dev_consume_skb_any(struct sk_buff *skb ) { { __dev_kfree_skb_any(skb, 0); return; } } extern gro_result_t napi_gro_receive(struct napi_struct * , struct sk_buff * ) ; __inline static bool is_unicast_ether_addr(u8 const *addr ) { bool tmp ; int tmp___0 ; { tmp = is_multicast_ether_addr(addr); if ((int )tmp != 0) { tmp___0 = 0; } else { tmp___0 = 1; } return ((bool )tmp___0); } } __inline static struct iphdr *ip_hdr(struct sk_buff const *skb ) { unsigned char *tmp ; { tmp = skb_network_header(skb); return ((struct iphdr *)tmp); } } __inline static struct tcphdr *tcp_hdr(struct sk_buff const *skb ) { unsigned char *tmp ; { tmp = skb_transport_header(skb); return ((struct tcphdr *)tmp); } } __inline static unsigned int tcp_hdrlen(struct sk_buff const *skb ) { struct tcphdr *tmp ; { tmp = tcp_hdr(skb); return ((unsigned int )((int )tmp->doff * 4)); } } __inline static struct ipv6hdr *ipv6_hdr(struct sk_buff const *skb ) { unsigned char *tmp ; { tmp = skb_network_header(skb); return ((struct ipv6hdr *)tmp); } } __inline static void *wiphy_priv___1(struct wiphy *wiphy ) { long tmp ; { tmp = ldv__builtin_expect((unsigned long )wiphy == (unsigned long )((struct wiphy *)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 *)"include/net/cfg80211.h"), "i" (3259), "i" (12UL)); ldv_53541: ; goto ldv_53541; } else { } return ((void *)(& wiphy->priv)); } } __inline static void *wdev_priv___0(struct wireless_dev *wdev ) { long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )wdev == (unsigned long )((struct wireless_dev *)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 *)"include/net/cfg80211.h"), "i" (3512), "i" (12UL)); ldv_53626: ; goto ldv_53626; } else { } tmp___0 = wiphy_priv___1(wdev->wiphy); return (tmp___0); } } bool rx_align_2 ; __inline static u32 WIL_GET_BITS(u32 x , int b0 , int b1 ) { { return ((x >> b0) & (u32 )((1 << ((b1 - b0) + 1)) + -1)); } } __inline static dma_addr_t wil_desc_addr(struct vring_dma_addr *addr ) { { return ((unsigned long long )addr->addr_low | ((unsigned long long )addr->addr_high << 32)); } } __inline static void wil_desc_addr_set(struct vring_dma_addr *addr , dma_addr_t pa ) { { addr->addr_low = (unsigned int )pa; addr->addr_high = (unsigned short )(pa >> 32ULL); return; } } __inline static int wil_rxdesc_cid(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->mac.d0, 4, 6); return ((int )tmp); } } __inline static int wil_rxdesc_ftype(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->mac.d0, 10, 11); return ((int )tmp); } } __inline static int wil_rxdesc_mcs(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->mac.d1, 21, 24); return ((int )tmp); } } __inline static int wil_rxdesc_phy_length(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->dma.d0, 16, 29); return ((int )tmp); } } __inline static struct vring_rx_desc *wil_skb_rxdesc(struct sk_buff *skb ) { { return ((struct vring_rx_desc *)(& skb->cb)); } } void wil_netif_rx_any(struct sk_buff *skb , struct net_device *ndev ) ; void wil_rx_reorder(struct wil6210_priv *wil , struct sk_buff *skb ) ; struct tracepoint __tracepoint_wil6210_rx ; __inline static void trace_wil6210_rx(u16 index , struct vring_rx_desc *d ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_450 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_452 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_rx.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___1(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_rx.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___1(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 187, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_56131: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u16 , struct vring_rx_desc * ))it_func))(__data, (int )index, d); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_56131; } else { } } else { } rcu_read_unlock_sched_notrace___1(); } else { } rcu_read_lock_sched_notrace___1(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_rx.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___1(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 187, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___1(); return; } } struct tracepoint __tracepoint_wil6210_tx ; __inline static void trace_wil6210_tx(u8 vring , u16 index , unsigned int len , u8 frags ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_454 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_456 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_tx.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___1(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_tx.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___1(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 206, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_56191: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u8 , u16 , unsigned int , u8 ))it_func))(__data, (int )vring, (int )index, len, (int )frags); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_56191; } else { } } else { } rcu_read_unlock_sched_notrace___1(); } else { } rcu_read_lock_sched_notrace___1(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_tx.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___1(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 206, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___1(); return; } } struct tracepoint __tracepoint_wil6210_tx_done ; __inline static void trace_wil6210_tx_done(u8 vring , u16 index , unsigned int len , u8 err ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_458 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_460 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_tx_done.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___1(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_tx_done.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___1(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 226, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_56257: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , u8 , u16 , unsigned int , u8 ))it_func))(__data, (int )vring, (int )index, len, (int )err); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_56257; } else { } } else { } rcu_read_unlock_sched_notrace___1(); } else { } rcu_read_lock_sched_notrace___1(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_tx_done.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___1(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 226, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___1(); return; } } static bool rtap_include_phy_info ; __inline static uint wil_rx_snaplen(void) { { return ((int )rx_align_2 ? 6U : 0U); } } __inline static int wil_vring_is_empty(struct vring *vring ) { { return (vring->swhead == vring->swtail); } } __inline static u32 wil_vring_next_tail(struct vring *vring ) { { return ((vring->swtail + 1U) % (u32 )vring->size); } } __inline static void wil_vring_advance_head(struct vring *vring , int n ) { { vring->swhead = (vring->swhead + (u32 )n) % (u32 )vring->size; return; } } __inline static int wil_vring_used_tx(struct vring *vring ) { u32 swhead ; u32 swtail ; { swhead = vring->swhead; swtail = vring->swtail; return ((int )((((u32 )vring->size + swhead) - swtail) % (u32 )vring->size)); } } __inline static int wil_vring_avail_tx(struct vring *vring ) { int tmp ; { tmp = wil_vring_used_tx(vring); return (((int )vring->size - tmp) + -1); } } __inline static int wil_vring_wmark_low(struct vring *vring ) { { return ((int )((unsigned int )vring->size / 8U)); } } __inline static int wil_vring_wmark_high(struct vring *vring ) { { return ((int )((unsigned int )vring->size / 4U)); } } __inline static bool wil_val_in_range(int val , int min , int max ) { { return ((bool )(val >= min && val < max)); } } static int wil_vring_alloc(struct wil6210_priv *wil , struct vring *vring ) { struct device *dev ; struct device *tmp ; size_t sz ; uint i ; struct _ddebug descriptor ; long tmp___0 ; void *tmp___1 ; void *tmp___2 ; struct vring_tx_desc volatile *_d ; struct _ddebug descriptor___0 ; long tmp___3 ; { tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; sz = (unsigned long )vring->size * 32UL; descriptor.modname = "wil6210"; descriptor.function = "wil_vring_alloc"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 103U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_vring_alloc"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_vring_alloc"); vring->swhead = 0U; vring->swtail = 0U; tmp___1 = kcalloc((size_t )vring->size, 16UL, 208U); vring->ctx = (struct wil_ctx *)tmp___1; if ((unsigned long )vring->ctx == (unsigned long )((struct wil_ctx *)0)) { vring->va = (union vring_desc volatile *)0; return (-12); } else { } tmp___2 = dma_alloc_attrs(dev, sz, & vring->pa, 208U, (struct dma_attrs *)0); vring->va = (union vring_desc volatile *)tmp___2; if ((unsigned long )vring->va == (unsigned long )((union vring_desc volatile *)0)) { kfree((void const *)vring->ctx); vring->ctx = (struct wil_ctx *)0; return (-12); } else { } i = 0U; goto ldv_56384; ldv_56383: _d = & (vring->va + (unsigned long )i)->tx; _d->dma.status = 1U; i = i + 1U; ldv_56384: ; if ((uint )vring->size > i) { goto ldv_56383; } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_vring_alloc"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[MISC]vring[%d] 0x%p:%pad 0x%p\n"; descriptor___0.lineno = 134U; descriptor___0.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]vring[%d] 0x%p:%pad 0x%p\n", (int )vring->size, vring->va, & vring->pa, vring->ctx); } else { } wil_dbg_trace(wil, "DBG[MISC]vring[%d] 0x%p:%pad 0x%p\n", (int )vring->size, vring->va, & vring->pa, vring->ctx); return (0); } } static void wil_txdesc_unmap(struct device *dev , struct vring_tx_desc *d , struct wil_ctx *ctx ) { dma_addr_t pa ; dma_addr_t tmp ; u16 dmalen ; { tmp = wil_desc_addr(& d->dma.addr); pa = tmp; dmalen = d->dma.length; switch ((int )ctx->mapped_as) { case 1: dma_unmap_single_attrs(dev, pa, (size_t )dmalen, 1, (struct dma_attrs *)0); goto ldv_56395; case 2: dma_unmap_page(dev, pa, (size_t )dmalen, 1); goto ldv_56395; default: ; goto ldv_56395; } ldv_56395: ; return; } } static void wil_vring_free(struct wil6210_priv *wil , struct vring *vring , int tx ) { struct device *dev ; struct device *tmp ; size_t sz ; int vring_index ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; dma_addr_t pa ; u16 dmalen ; struct wil_ctx *ctx ; struct vring_tx_desc dd ; struct vring_tx_desc *d ; struct vring_tx_desc volatile *_d ; struct vring_rx_desc dd___0 ; struct vring_rx_desc *d___0 ; struct vring_rx_desc volatile *_d___0 ; int tmp___2 ; { tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; sz = (unsigned long )vring->size * 32UL; if (tx != 0) { vring_index = (int )(((long )vring - (long )(& wil->vring_tx)) / 40L); descriptor.modname = "wil6210"; descriptor.function = "wil_vring_free"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[MISC]free Tx vring %d [%d] 0x%p:%pad 0x%p\n"; descriptor.lineno = 168U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]free Tx vring %d [%d] 0x%p:%pad 0x%p\n", vring_index, (int )vring->size, vring->va, & vring->pa, vring->ctx); } else { } wil_dbg_trace(wil, "DBG[MISC]free Tx vring %d [%d] 0x%p:%pad 0x%p\n", vring_index, (int )vring->size, vring->va, & vring->pa, vring->ctx); } else { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_vring_free"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[MISC]free Rx vring [%d] 0x%p:%pad 0x%p\n"; descriptor___0.lineno = 172U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]free Rx vring [%d] 0x%p:%pad 0x%p\n", (int )vring->size, vring->va, & vring->pa, vring->ctx); } else { } wil_dbg_trace(wil, "DBG[MISC]free Rx vring [%d] 0x%p:%pad 0x%p\n", (int )vring->size, vring->va, & vring->pa, vring->ctx); } goto ldv_56419; ldv_56418: ; if (tx != 0) { d = & dd; _d = & (vring->va + (unsigned long )vring->swtail)->tx; ctx = vring->ctx + (unsigned long )vring->swtail; *d = *_d; wil_txdesc_unmap(dev, d, ctx); if ((unsigned long )ctx->skb != (unsigned long )((struct sk_buff *)0)) { dev_kfree_skb_any(ctx->skb); } else { } vring->swtail = wil_vring_next_tail(vring); } else { d___0 = & dd___0; _d___0 = & (vring->va + (unsigned long )vring->swhead)->rx; ctx = vring->ctx + (unsigned long )vring->swhead; *d___0 = *_d___0; pa = wil_desc_addr(& d___0->dma.addr); dmalen = d___0->dma.length; dma_unmap_single_attrs(dev, pa, (size_t )dmalen, 2, (struct dma_attrs *)0); kfree_skb(ctx->skb); wil_vring_advance_head(vring, 1); } ldv_56419: tmp___2 = wil_vring_is_empty(vring); if (tmp___2 == 0) { goto ldv_56418; } else { } dma_free_attrs(dev, sz, (void *)vring->va, vring->pa, (struct dma_attrs *)0); kfree((void const *)vring->ctx); vring->pa = 0ULL; vring->va = (union vring_desc volatile *)0; vring->ctx = (struct wil_ctx *)0; return; } } static int wil_vring_alloc_skb(struct wil6210_priv *wil , struct vring *vring , u32 i , int headroom ) { struct device *dev ; struct device *tmp ; unsigned int sz ; uint tmp___0 ; struct vring_rx_desc dd ; struct vring_rx_desc *d ; struct vring_rx_desc volatile *_d ; dma_addr_t pa ; struct sk_buff *skb ; struct sk_buff *tmp___1 ; long tmp___2 ; int tmp___3 ; long tmp___4 ; { tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; tmp___0 = wil_rx_snaplen(); sz = (tmp___0 + mtu_max) + 14U; d = & dd; _d = & (vring->va + (unsigned long )i)->rx; tmp___1 = dev_alloc_skb(sz + (unsigned int )headroom); skb = tmp___1; tmp___2 = ldv__builtin_expect((unsigned long )skb == (unsigned long )((struct sk_buff *)0), 0L); if (tmp___2 != 0L) { return (-12); } else { } skb_reserve(skb, headroom); skb_put(skb, sz); pa = dma_map_single_attrs(dev, (void *)skb->data, (size_t )skb->len, 2, (struct dma_attrs *)0); tmp___3 = dma_mapping_error(dev, pa); tmp___4 = ldv__builtin_expect(tmp___3 != 0, 0L); if (tmp___4 != 0L) { kfree_skb(skb); return (-12); } else { } d->dma.d0 = 1536U; wil_desc_addr_set(& d->dma.addr, pa); d->dma.status = 0U; d->dma.length = (unsigned short )sz; *_d = *d; (vring->ctx + (unsigned long )i)->skb = skb; return (0); } } static void wil_rx_add_radiotap_header(struct wil6210_priv *wil , struct sk_buff *skb ) { struct wireless_dev *wdev ; struct vring_rx_desc *d ; struct vring_rx_desc *tmp ; struct wil6210_rtap_vendor *rtap_vendor ; int rtap_len ; int phy_length ; char phy_data[128U] ; struct ieee80211_channel *ch ; int len ; int __min1 ; int __min2 ; int tmp___0 ; void *p ; unsigned char *tmp___1 ; void *pa ; int tmp___2 ; unsigned int tmp___3 ; int tmp___4 ; unsigned char *tmp___5 ; int tmp___6 ; { wdev = wil->wdev; tmp = wil_skb_rxdesc(skb); d = tmp; rtap_len = 18; phy_length = 0; ch = wdev->preset_chandef.chan; if ((int )rtap_include_phy_info) { rtap_len = 56; if (((unsigned long )d->dma.status & 64UL) != 0UL) { __min1 = 136; tmp___0 = wil_rxdesc_phy_length(d); __min2 = tmp___0; len = __min1 < __min2 ? __min1 : __min2; if (len > 8) { tmp___1 = skb_tail_pointer((struct sk_buff const *)skb); p = (void *)tmp___1; pa = (void *)(((unsigned long )p + 7UL) & 0xfffffffffffffff8UL); tmp___2 = skb_tailroom((struct sk_buff const *)skb); if ((long )tmp___2 >= (long )len + ((long )pa - (long )p)) { phy_length = len + -8; memcpy((void *)(& phy_data), (void const *)pa, (size_t )phy_length); } else { } } else { } } else { } rtap_len = rtap_len + phy_length; } else { } tmp___3 = skb_headroom((struct sk_buff const *)skb); if (tmp___3 < (unsigned int )rtap_len) { tmp___4 = pskb_expand_head(skb, rtap_len, 0, 32U); if (tmp___4 != 0) { wil_err(wil, "Unable to expand headrom to %d\n", rtap_len); return; } else { } } else { } tmp___5 = skb_push(skb, (unsigned int )rtap_len); rtap_vendor = (struct wil6210_rtap_vendor *)tmp___5; memset((void *)rtap_vendor, 0, (size_t )rtap_len); rtap_vendor->rtap.rthdr.it_version = 0U; rtap_vendor->rtap.rthdr.it_len = (unsigned short )rtap_len; rtap_vendor->rtap.rthdr.it_present = 524298U; if (((unsigned long )d->dma.status & 4UL) != 0UL) { rtap_vendor->rtap.flags = (u8 )((unsigned int )rtap_vendor->rtap.flags | 64U); } else { } rtap_vendor->rtap.chnl_freq = (unsigned long )ch != (unsigned long )((struct ieee80211_channel *)0) ? ch->center_freq : 58320U; rtap_vendor->rtap.chnl_flags = 0U; rtap_vendor->rtap.mcs_present = 2U; rtap_vendor->rtap.mcs_flags = 0U; tmp___6 = wil_rxdesc_mcs(d); rtap_vendor->rtap.mcs_index = (u8 )tmp___6; if ((int )rtap_include_phy_info) { rtap_vendor->rtap.rthdr.it_present = rtap_vendor->rtap.rthdr.it_present | 1073741824U; rtap_vendor->vendor_oui[0] = 4U; rtap_vendor->vendor_oui[1] = 206U; rtap_vendor->vendor_oui[2] = 20U; rtap_vendor->vendor_ns = 1U; rtap_vendor->vendor_skip = (unsigned int )((unsigned short )phy_length) + 32U; memcpy((void *)(& rtap_vendor->vendor_data), (void const *)d, 32UL); memcpy((void *)(& rtap_vendor->vendor_data) + 32U, (void const *)(& phy_data), (size_t )phy_length); } else { } return; } } static struct sk_buff *wil_vring_reap_rx(struct wil6210_priv *wil , struct vring *vring ) { struct device *dev ; struct device *tmp ; struct net_device *ndev ; struct vring_rx_desc volatile *_d ; struct vring_rx_desc *d ; struct sk_buff *skb ; dma_addr_t pa ; unsigned int snaplen ; uint tmp___0 ; unsigned int sz ; u16 dmalen ; u8 ftype ; int cid ; int i ; struct wil_net_stats *stats ; int tmp___1 ; long tmp___2 ; long tmp___3 ; struct _ddebug descriptor ; long tmp___4 ; struct _ddebug descriptor___0 ; long tmp___5 ; long tmp___6 ; struct _ddebug descriptor___1 ; unsigned int tmp___7 ; long tmp___8 ; int tmp___9 ; int tmp___10 ; struct _ddebug descriptor___2 ; long tmp___11 ; long tmp___12 ; long tmp___13 ; long tmp___14 ; long tmp___15 ; { tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; ndev = (wil->wdev)->netdev; tmp___0 = wil_rx_snaplen(); snaplen = tmp___0; sz = (mtu_max + snaplen) + 14U; i = (int )vring->swhead; tmp___1 = wil_vring_is_empty(vring); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); if (tmp___2 != 0L) { return ((struct sk_buff *)0); } else { } _d = & (vring->va + (unsigned long )i)->rx; tmp___3 = ldv__builtin_expect(((unsigned long )_d->dma.status & 1UL) == 0UL, 0L); if (tmp___3 != 0L) { return ((struct sk_buff *)0); } else { } skb = (vring->ctx + (unsigned long )i)->skb; (vring->ctx + (unsigned long )i)->skb = (struct sk_buff *)0; wil_vring_advance_head(vring, 1); if ((unsigned long )skb == (unsigned long )((struct sk_buff *)0)) { wil_err(wil, "No Rx skb at [%d]\n", i); return ((struct sk_buff *)0); } else { } d = wil_skb_rxdesc(skb); *d = *_d; pa = wil_desc_addr(& d->dma.addr); dma_unmap_single_attrs(dev, pa, (size_t )sz, 2, (struct dma_attrs *)0); dmalen = d->dma.length; trace_wil6210_rx((int )((u16 )i), d); descriptor.modname = "wil6210"; descriptor.function = "wil_vring_reap_rx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]Rx[%3d] : %d bytes\n"; descriptor.lineno = 411U; descriptor.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Rx[%3d] : %d bytes\n", i, (int )dmalen); } else { } wil_dbg_trace(wil, "DBG[TXRX]Rx[%3d] : %d bytes\n", i, (int )dmalen); descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_vring_reap_rx"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]Rx "; descriptor___0.lineno = 413U; descriptor___0.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___5 != 0L) { print_hex_dump("\017", "DBG[TXRX]Rx ", 0, 32, 4, (void const *)d, 32UL, 0); } else { } tmp___6 = ldv__builtin_expect((unsigned int )dmalen > sz, 0L); if (tmp___6 != 0L) { wil_err(wil, "Rx size too large: %d bytes!\n", (int )dmalen); kfree_skb(skb); return ((struct sk_buff *)0); } else { } skb_trim(skb, (unsigned int )dmalen); __builtin_prefetch((void const *)skb->data); descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_vring_reap_rx"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___1.format = "DBG[TXRX]Rx "; descriptor___1.lineno = 425U; descriptor___1.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___8 != 0L) { tmp___7 = skb_headlen((struct sk_buff const *)skb); print_hex_dump("\017", "DBG[TXRX]Rx ", 2, 16, 1, (void const *)skb->data, (size_t )tmp___7, 0); } else { } cid = wil_rxdesc_cid(d); stats = & wil->sta[cid].stats; tmp___9 = wil_rxdesc_mcs(d); stats->last_mcs_rx = (u16 )tmp___9; if ((unsigned int )stats->last_mcs_rx <= 12U) { stats->rx_per_mcs[(int )stats->last_mcs_rx] = stats->rx_per_mcs[(int )stats->last_mcs_rx] + 1ULL; } else { } if ((unsigned int )ndev->type == 803U) { wil_rx_add_radiotap_header(wil, skb); } else { } if ((unsigned int )ndev->type != 1U) { return (skb); } else { } tmp___10 = wil_rxdesc_ftype(d); ftype = (int )((u8 )tmp___10) << 2U; tmp___12 = ldv__builtin_expect((unsigned int )ftype != 8U, 0L); if (tmp___12 != 0L) { descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_vring_reap_rx"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___2.format = "DBG[TXRX]Non-data frame ftype 0x%08x\n"; descriptor___2.lineno = 447U; descriptor___2.flags = 0U; tmp___11 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___11 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Non-data frame ftype 0x%08x\n", (int )ftype); } else { } wil_dbg_trace(wil, "DBG[TXRX]Non-data frame ftype 0x%08x\n", (int )ftype); kfree_skb(skb); return ((struct sk_buff *)0); } else { } tmp___13 = ldv__builtin_expect(skb->len < snaplen + 14U, 0L); if (tmp___13 != 0L) { wil_err(wil, "Short frame, len = %d\n", skb->len); kfree_skb(skb); return ((struct sk_buff *)0); } else { } tmp___15 = ldv__builtin_expect(((unsigned long )d->dma.status & 32UL) != 0UL, 1L); if (tmp___15 != 0L) { tmp___14 = ldv__builtin_expect(((unsigned long )d->dma.error & 32UL) == 0UL, 1L); if (tmp___14 != 0L) { skb->ip_summed = 1U; } else { } } else { } if (snaplen != 0U) { __memmove((void *)skb->data + (unsigned long )snaplen, (void const *)skb->data, 12UL); skb_pull(skb, snaplen); } else { } return (skb); } } static int wil_rx_refill(struct wil6210_priv *wil , int count ) { struct net_device *ndev ; struct vring *v ; u32 next_tail ; int rc ; int headroom ; long tmp ; int tmp___0 ; int tmp___1 ; { ndev = (wil->wdev)->netdev; v = & wil->vring_rx; rc = 0; headroom = (unsigned int )ndev->type == 803U ? 128 : 0; goto ldv_56500; ldv_56499: rc = wil_vring_alloc_skb(wil, v, v->swtail, headroom); tmp = ldv__builtin_expect(rc != 0, 0L); if (tmp != 0L) { wil_err(wil, "Error %d in wil_rx_refill[%d]\n", rc, v->swtail); goto ldv_56498; } else { } v->swtail = next_tail; ldv_56500: next_tail = wil_vring_next_tail(v); if (v->swhead != next_tail) { tmp___0 = count; count = count - 1; if (tmp___0 > 0) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } if (tmp___1 != 0) { goto ldv_56499; } else { } ldv_56498: iowrite32(v->swtail, wil->csr + ((unsigned long )v->hwtail + 0xffffffffff780000UL)); return (rc); } } void wil_netif_rx_any(struct sk_buff *skb , struct net_device *ndev ) { gro_result_t rc ; struct wil6210_priv *wil ; void *tmp ; struct wireless_dev *wdev ; unsigned int len ; struct vring_rx_desc *d ; struct vring_rx_desc *tmp___0 ; int cid ; int tmp___1 ; struct ethhdr *eth ; int mcast ; bool tmp___2 ; struct wil_net_stats *stats ; struct sk_buff *xmit_skb ; char const *gro_res_str[5U] ; int xmit_cid ; int tmp___3 ; struct _ddebug descriptor ; long tmp___4 ; struct _ddebug descriptor___0 ; long tmp___5 ; struct _ddebug descriptor___1 ; long tmp___6 ; long tmp___7 ; { rc = 3; tmp = wdev_priv___0(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; wdev = wil->wdev; len = skb->len; tmp___0 = wil_skb_rxdesc(skb); d = tmp___0; tmp___1 = wil_rxdesc_cid(d); cid = tmp___1; eth = (struct ethhdr *)skb->data; tmp___2 = is_multicast_ether_addr((u8 const *)(& eth->h_dest)); mcast = (int )tmp___2; stats = & wil->sta[cid].stats; xmit_skb = (struct sk_buff *)0; gro_res_str[0] = "GRO_MERGED"; gro_res_str[1] = "GRO_MERGED_FREE"; gro_res_str[2] = "GRO_HELD"; gro_res_str[3] = "GRO_NORMAL"; gro_res_str[4] = "GRO_DROP"; skb_orphan(skb); if ((unsigned int )wdev->iftype == 3U && wil->ap_isolate == 0U) { if (mcast != 0) { xmit_skb = skb_copy((struct sk_buff const *)skb, 32U); } else { tmp___3 = wil_find_cid(wil, (u8 const *)(& eth->h_dest)); xmit_cid = tmp___3; if (xmit_cid >= 0) { xmit_skb = skb; skb = (struct sk_buff *)0; } else { } } } else { } if ((unsigned long )xmit_skb != (unsigned long )((struct sk_buff *)0)) { xmit_skb->dev = ndev; xmit_skb->priority = xmit_skb->priority + 256U; xmit_skb->protocol = 256U; skb_reset_network_header(xmit_skb); skb_reset_mac_header(xmit_skb); descriptor.modname = "wil6210"; descriptor.function = "wil_netif_rx_any"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]Rx -> Tx %d bytes\n"; descriptor.lineno = 576U; descriptor.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Rx -> Tx %d bytes\n", len); } else { } wil_dbg_trace(wil, "DBG[TXRX]Rx -> Tx %d bytes\n", len); dev_queue_xmit(xmit_skb); } else { } if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { skb->protocol = eth_type_trans(skb, ndev); rc = napi_gro_receive(& wil->napi_rx, skb); descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_netif_rx_any"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]Rx complete %d bytes => %s\n"; descriptor___0.lineno = 585U; descriptor___0.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Rx complete %d bytes => %s\n", len, gro_res_str[(unsigned int )rc]); } else { } wil_dbg_trace(wil, "DBG[TXRX]Rx complete %d bytes => %s\n", len, gro_res_str[(unsigned int )rc]); } else { } tmp___7 = ldv__builtin_expect((unsigned int )rc == 4U, 0L); if (tmp___7 != 0L) { ndev->stats.rx_dropped = ndev->stats.rx_dropped + 1UL; stats->rx_dropped = stats->rx_dropped + 1UL; descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_netif_rx_any"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___1.format = "DBG[TXRX]Rx drop %d bytes\n"; descriptor___1.lineno = 591U; descriptor___1.flags = 0U; tmp___6 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___6 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Rx drop %d bytes\n", len); } else { } wil_dbg_trace(wil, "DBG[TXRX]Rx drop %d bytes\n", len); } else { ndev->stats.rx_packets = ndev->stats.rx_packets + 1UL; stats->rx_packets = stats->rx_packets + 1UL; ndev->stats.rx_bytes = ndev->stats.rx_bytes + (unsigned long )len; stats->rx_bytes = stats->rx_bytes + (unsigned long )len; if (mcast != 0) { ndev->stats.multicast = ndev->stats.multicast + 1UL; } else { } } return; } } void wil_rx_handle(struct wil6210_priv *wil , int *quota ) { struct net_device *ndev ; struct vring *v ; struct sk_buff *skb ; long tmp ; struct _ddebug descriptor ; long tmp___0 ; { ndev = (wil->wdev)->netdev; v = & wil->vring_rx; tmp = ldv__builtin_expect((unsigned long )v->va == (unsigned long )((union vring_desc volatile *)0), 0L); if (tmp != 0L) { wil_err(wil, "Rx IRQ while Rx not yet initialized\n"); return; } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_rx_handle"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]%s()\n"; descriptor.lineno = 617U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]%s()\n", "wil_rx_handle"); } else { } wil_dbg_trace(wil, "DBG[TXRX]%s()\n", "wil_rx_handle"); goto ldv_56531; ldv_56530: *quota = *quota - 1; if ((unsigned int )(wil->wdev)->iftype == 6U) { skb->dev = ndev; skb_reset_mac_header(skb); skb->ip_summed = 1U; skb->pkt_type = 3U; skb->protocol = 1024U; wil_netif_rx_any(skb, ndev); } else { wil_rx_reorder(wil, skb); } ldv_56531: ; if (*quota > 0) { skb = wil_vring_reap_rx(wil, v); if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { goto ldv_56530; } else { goto ldv_56532; } } else { } ldv_56532: wil_rx_refill(wil, (int )v->size); return; } } int wil_rx_init(struct wil6210_priv *wil , u16 size ) { struct vring *vring ; int rc ; struct _ddebug descriptor ; long tmp ; { vring = & wil->vring_rx; descriptor.modname = "wil6210"; descriptor.function = "wil_rx_init"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 640U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_rx_init"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_rx_init"); if ((unsigned long )vring->va != (unsigned long )((union vring_desc volatile *)0)) { wil_err(wil, "Rx ring already allocated\n"); return (-22); } else { } vring->size = size; rc = wil_vring_alloc(wil, vring); if (rc != 0) { return (rc); } else { } rc = wmi_rx_chain_add(wil, vring); if (rc != 0) { goto err_free; } else { } rc = wil_rx_refill(wil, (int )vring->size); if (rc != 0) { goto err_free; } else { } return (0); err_free: wil_vring_free(wil, vring, 0); return (rc); } } void wil_rx_fini(struct wil6210_priv *wil ) { struct vring *vring ; struct _ddebug descriptor ; long tmp ; { vring = & wil->vring_rx; descriptor.modname = "wil6210"; descriptor.function = "wil_rx_fini"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 671U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_rx_fini"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_rx_fini"); if ((unsigned long )vring->va != (unsigned long )((union vring_desc volatile *)0)) { wil_vring_free(wil, vring, 0); } else { } return; } } int wil_vring_init_tx(struct wil6210_priv *wil , int id , int size , int cid , int tid ) { int rc ; struct wmi_vring_cfg_cmd cmd ; u32 tmp ; u8 tmp___0 ; struct __anonstruct_reply_463 reply ; struct vring *vring ; struct vring_tx_data *txdata ; struct _ddebug descriptor ; long tmp___1 ; struct lock_class_key __key ; { tmp = wil_mtu2macbuf(mtu_max); tmp___0 = mk_cidxtid((int )((u8 )cid), (int )((u8 )tid)); cmd.action = 0U; cmd.vring_cfg.tx_sw_ring.ring_mem_base = 0ULL; cmd.vring_cfg.tx_sw_ring.ring_size = (unsigned short )size; cmd.vring_cfg.tx_sw_ring.max_mpdu_size = (unsigned short )tmp; cmd.vring_cfg.ringid = (unsigned char )id; cmd.vring_cfg.cidxtid = tmp___0; cmd.vring_cfg.encap_trans_type = 0U; cmd.vring_cfg.ds_cfg = (unsigned char)0; cmd.vring_cfg.nwifi_ds_trans_type = (unsigned char)0; cmd.vring_cfg.mac_ctrl = 0U; cmd.vring_cfg.to_resolution = 0U; cmd.vring_cfg.agg_max_wsize = 0U; cmd.vring_cfg.schd_params.priority = 0U; cmd.vring_cfg.schd_params.timeslot_us = 4095U; vring = (struct vring *)(& wil->vring_tx) + (unsigned long )id; txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )id; descriptor.modname = "wil6210"; descriptor.function = "wil_vring_init_tx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[MISC]%s() max_mpdu_size %d\n"; descriptor.lineno = 709U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s() max_mpdu_size %d\n", "wil_vring_init_tx", (int )cmd.vring_cfg.tx_sw_ring.max_mpdu_size); } else { } wil_dbg_trace(wil, "DBG[MISC]%s() max_mpdu_size %d\n", "wil_vring_init_tx", (int )cmd.vring_cfg.tx_sw_ring.max_mpdu_size); if ((unsigned long )vring->va != (unsigned long )((union vring_desc volatile *)0)) { wil_err(wil, "Tx ring [%d] already allocated\n", id); rc = -22; goto out; } else { } memset((void *)txdata, 0, 112UL); spinlock_check(& txdata->lock); __raw_spin_lock_init(& txdata->lock.__annonCompField17.rlock, "&(&txdata->lock)->rlock", & __key); vring->size = (u16 )size; rc = wil_vring_alloc(wil, vring); if (rc != 0) { goto out; } else { } wil->vring2cid_tid[id][0] = (u8 )cid; wil->vring2cid_tid[id][1] = (u8 )tid; cmd.vring_cfg.tx_sw_ring.ring_mem_base = vring->pa; if (wil->privacy == 0U) { txdata->dot1x_open = 1; } else { } rc = wmi_call(wil, 2081, (void *)(& cmd), 28, 6177, (void *)(& reply), 16, 100); if (rc != 0) { goto out_free; } else { } if ((unsigned int )reply.cmd.status != 0U) { wil_err(wil, "Tx config failed, status 0x%02x\n", (int )reply.cmd.status); rc = -22; goto out_free; } else { } vring->hwtail = reply.cmd.tx_vring_tail_ptr; txdata->enabled = 1; if ((int )txdata->dot1x_open && agg_wsize >= 0) { wil_addba_tx_request(wil, (int )((u8 )id), (int )((u16 )agg_wsize)); } else { } return (0); out_free: txdata->dot1x_open = 0; txdata->enabled = 0; wil_vring_free(wil, vring, 1); out: ; return (rc); } } int wil_vring_init_bcast(struct wil6210_priv *wil , int id , int size ) { int rc ; struct wmi_bcast_vring_cfg_cmd cmd ; u32 tmp ; struct __anonstruct_reply_465 reply ; struct vring *vring ; struct vring_tx_data *txdata ; struct _ddebug descriptor ; long tmp___0 ; struct lock_class_key __key ; { tmp = wil_mtu2macbuf(mtu_max); cmd.action = 0U; cmd.vring_cfg.tx_sw_ring.ring_mem_base = 0ULL; cmd.vring_cfg.tx_sw_ring.ring_size = (unsigned short )size; cmd.vring_cfg.tx_sw_ring.max_mpdu_size = (unsigned short )tmp; cmd.vring_cfg.ringid = (unsigned char )id; cmd.vring_cfg.encap_trans_type = 0U; cmd.vring_cfg.ds_cfg = (unsigned char)0; cmd.vring_cfg.nwifi_ds_trans_type = (unsigned char)0; vring = (struct vring *)(& wil->vring_tx) + (unsigned long )id; txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )id; descriptor.modname = "wil6210"; descriptor.function = "wil_vring_init_bcast"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[MISC]%s() max_mpdu_size %d\n"; descriptor.lineno = 781U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s() max_mpdu_size %d\n", "wil_vring_init_bcast", (int )cmd.vring_cfg.tx_sw_ring.max_mpdu_size); } else { } wil_dbg_trace(wil, "DBG[MISC]%s() max_mpdu_size %d\n", "wil_vring_init_bcast", (int )cmd.vring_cfg.tx_sw_ring.max_mpdu_size); if ((unsigned long )vring->va != (unsigned long )((union vring_desc volatile *)0)) { wil_err(wil, "Tx ring [%d] already allocated\n", id); rc = -22; goto out; } else { } memset((void *)txdata, 0, 112UL); spinlock_check(& txdata->lock); __raw_spin_lock_init(& txdata->lock.__annonCompField17.rlock, "&(&txdata->lock)->rlock", & __key); vring->size = (u16 )size; rc = wil_vring_alloc(wil, vring); if (rc != 0) { goto out; } else { } wil->vring2cid_tid[id][0] = 8U; wil->vring2cid_tid[id][1] = 0U; cmd.vring_cfg.tx_sw_ring.ring_mem_base = vring->pa; if (wil->privacy == 0U) { txdata->dot1x_open = 1; } else { } rc = wmi_call(wil, 2082, (void *)(& cmd), 20, 6177, (void *)(& reply), 16, 100); if (rc != 0) { goto out_free; } else { } if ((unsigned int )reply.cmd.status != 0U) { wil_err(wil, "Tx config failed, status 0x%02x\n", (int )reply.cmd.status); rc = -22; goto out_free; } else { } vring->hwtail = reply.cmd.tx_vring_tail_ptr; txdata->enabled = 1; return (0); out_free: txdata->enabled = 0; txdata->dot1x_open = 0; wil_vring_free(wil, vring, 1); out: ; return (rc); } } void wil_vring_fini_tx(struct wil6210_priv *wil , int id ) { struct vring *vring ; struct vring_tx_data *txdata ; int __ret_warn_on ; int tmp ; long tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; int tmp___2 ; { vring = (struct vring *)(& wil->vring_tx) + (unsigned long )id; txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )id; tmp = ldv_mutex_is_locked_366(& wil->mutex); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { warn_slowpath_null("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c", 833); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); if ((unsigned long )vring->va == (unsigned long )((union vring_desc volatile *)0)) { return; } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_vring_fini_tx"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[MISC]%s() id=%d\n"; descriptor.lineno = 838U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s() id=%d\n", "wil_vring_fini_tx", id); } else { } wil_dbg_trace(wil, "DBG[MISC]%s() id=%d\n", "wil_vring_fini_tx", id); spin_lock_bh(& txdata->lock); txdata->dot1x_open = 0; txdata->enabled = 0; spin_unlock_bh(& txdata->lock); tmp___2 = constant_test_bit(6L, (unsigned long const volatile *)(& wil->status)); if (tmp___2 != 0) { napi_synchronize((struct napi_struct const *)(& wil->napi_tx)); } else { } wil_vring_free(wil, vring, 1); memset((void *)txdata, 0, 112UL); return; } } static struct vring *wil_find_tx_ucast(struct wil6210_priv *wil , struct sk_buff *skb ) { int i ; struct ethhdr *eth ; int cid ; int tmp ; struct vring *v ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; { eth = (struct ethhdr *)skb->data; tmp = wil_find_cid(wil, (u8 const *)(& eth->h_dest)); cid = tmp; if (cid < 0) { return ((struct vring *)0); } else { } i = 0; goto ldv_56611; ldv_56610: ; if (! wil->vring_tx_data[i].dot1x_open && (unsigned int )skb->protocol != 36488U) { goto ldv_56605; } else { } if ((int )wil->vring2cid_tid[i][0] == cid) { v = (struct vring *)(& wil->vring_tx) + (unsigned long )i; descriptor.modname = "wil6210"; descriptor.function = "wil_find_tx_ucast"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]%s(%pM) -> [%d]\n"; descriptor.lineno = 871U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]%s(%pM) -> [%d]\n", "wil_find_tx_ucast", (unsigned char *)(& eth->h_dest), i); } else { } wil_dbg_trace(wil, "DBG[TXRX]%s(%pM) -> [%d]\n", "wil_find_tx_ucast", (unsigned char *)(& eth->h_dest), i); if ((unsigned long )v->va != (unsigned long )((union vring_desc volatile *)0)) { return (v); } else { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_find_tx_ucast"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]vring[%d] not valid\n"; descriptor___0.lineno = 875U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]vring[%d] not valid\n", i); } else { } wil_dbg_trace(wil, "DBG[TXRX]vring[%d] not valid\n", i); return ((struct vring *)0); } } else { } ldv_56605: i = i + 1; ldv_56611: ; if ((unsigned int )i <= 23U) { goto ldv_56610; } else { } return ((struct vring *)0); } } static int wil_tx_vring(struct wil6210_priv *wil , struct vring *vring , struct sk_buff *skb ) ; static struct vring *wil_find_tx_vring_sta(struct wil6210_priv *wil , struct sk_buff *skb ) { struct vring *v ; int i ; u8 cid ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; { i = 0; goto ldv_56628; ldv_56627: v = (struct vring *)(& wil->vring_tx) + (unsigned long )i; if ((unsigned long )v->va == (unsigned long )((union vring_desc volatile *)0)) { goto ldv_56624; } else { } cid = wil->vring2cid_tid[i][0]; if ((unsigned int )cid > 7U) { goto ldv_56624; } else { } if (! wil->vring_tx_data[i].dot1x_open && (unsigned int )skb->protocol != 36488U) { goto ldv_56624; } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_find_tx_vring_sta"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]Tx -> ring %d\n"; descriptor.lineno = 911U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Tx -> ring %d\n", i); } else { } wil_dbg_trace(wil, "DBG[TXRX]Tx -> ring %d\n", i); return (v); ldv_56624: i = i + 1; ldv_56628: ; if (i <= 23) { goto ldv_56627; } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_find_tx_vring_sta"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]Tx while no vrings active?\n"; descriptor___0.lineno = 916U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Tx while no vrings active?\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]Tx while no vrings active?\n"); return ((struct vring *)0); } } static struct vring *wil_find_tx_bcast_1(struct wil6210_priv *wil , struct sk_buff *skb ) { struct vring *v ; int i ; { i = wil->bcast_vring; if (i < 0) { return ((struct vring *)0); } else { } v = (struct vring *)(& wil->vring_tx) + (unsigned long )i; if ((unsigned long )v->va == (unsigned long )((union vring_desc volatile *)0)) { return ((struct vring *)0); } else { } if (! wil->vring_tx_data[i].dot1x_open && (unsigned int )skb->protocol != 36488U) { return ((struct vring *)0); } else { } return (v); } } static void wil_set_da_for_vring(struct wil6210_priv *wil , struct sk_buff *skb , int vring_index ) { struct ethhdr *eth ; int cid ; { eth = (struct ethhdr *)skb->data; cid = (int )wil->vring2cid_tid[vring_index][0]; ether_addr_copy((u8 *)(& eth->h_dest), (u8 const *)(& wil->sta[cid].addr)); return; } } static struct vring *wil_find_tx_bcast_2(struct wil6210_priv *wil , struct sk_buff *skb ) { struct vring *v ; struct vring *v2 ; struct sk_buff *skb2 ; int i ; u8 cid ; struct ethhdr *eth ; char *src ; int tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; int tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; { eth = (struct ethhdr *)skb->data; src = (char *)(& eth->h_source); i = 0; goto ldv_56658; ldv_56657: v = (struct vring *)(& wil->vring_tx) + (unsigned long )i; if ((unsigned long )v->va == (unsigned long )((union vring_desc volatile *)0)) { goto ldv_56655; } else { } cid = wil->vring2cid_tid[i][0]; if ((unsigned int )cid > 7U) { goto ldv_56655; } else { } if (! wil->vring_tx_data[i].dot1x_open && (unsigned int )skb->protocol != 36488U) { goto ldv_56655; } else { } tmp = memcmp((void const *)(& wil->sta[(int )cid].addr), (void const *)src, 6UL); if (tmp == 0) { goto ldv_56655; } else { } goto found; ldv_56655: i = i + 1; ldv_56658: ; if (i <= 23) { goto ldv_56657; } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_find_tx_bcast_2"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]Tx while no vrings active?\n"; descriptor.lineno = 989U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Tx while no vrings active?\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]Tx while no vrings active?\n"); return ((struct vring *)0); found: descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_find_tx_bcast_2"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]BCAST -> ring %d\n"; descriptor___0.lineno = 994U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]BCAST -> ring %d\n", i); } else { } wil_dbg_trace(wil, "DBG[TXRX]BCAST -> ring %d\n", i); wil_set_da_for_vring(wil, skb, i); i = i + 1; goto ldv_56666; ldv_56665: v2 = (struct vring *)(& wil->vring_tx) + (unsigned long )i; if ((unsigned long )v2->va == (unsigned long )((union vring_desc volatile *)0)) { goto ldv_56663; } else { } cid = wil->vring2cid_tid[i][0]; if ((unsigned int )cid > 7U) { goto ldv_56663; } else { } if (! wil->vring_tx_data[i].dot1x_open && (unsigned int )skb->protocol != 36488U) { goto ldv_56663; } else { } tmp___2 = memcmp((void const *)(& wil->sta[(int )cid].addr), (void const *)src, 6UL); if (tmp___2 == 0) { goto ldv_56663; } else { } skb2 = skb_copy((struct sk_buff const *)skb, 32U); if ((unsigned long )skb2 != (unsigned long )((struct sk_buff *)0)) { descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_find_tx_bcast_2"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___1.format = "DBG[TXRX]BCAST DUP -> ring %d\n"; descriptor___1.lineno = 1014U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]BCAST DUP -> ring %d\n", i); } else { } wil_dbg_trace(wil, "DBG[TXRX]BCAST DUP -> ring %d\n", i); wil_set_da_for_vring(wil, skb2, i); wil_tx_vring(wil, v2, skb2); } else { wil_err(wil, "skb_copy failed\n"); } ldv_56663: i = i + 1; ldv_56666: ; if (i <= 23) { goto ldv_56665; } else { } return (v); } } static struct vring *wil_find_tx_bcast(struct wil6210_priv *wil , struct sk_buff *skb ) { struct wireless_dev *wdev ; struct vring *tmp ; struct vring *tmp___0 ; { wdev = wil->wdev; if ((unsigned int )wdev->iftype != 3U) { tmp = wil_find_tx_bcast_2(wil, skb); return (tmp); } else { } tmp___0 = wil_find_tx_bcast_1(wil, skb); return (tmp___0); } } static int wil_tx_desc_map(struct vring_tx_desc *d , dma_addr_t pa , u32 len , int vring_index ) { { wil_desc_addr_set(& d->dma.addr, pa); d->dma.ip_length = 0U; d->dma.b11 = 0U; d->dma.error = 0U; d->dma.status = 0U; d->dma.length = (unsigned short )len; d->dma.d0 = (u32 )(vring_index << 16); d->mac.d[0] = 0U; d->mac.d[1] = 0U; d->mac.d[2] = 0U; d->mac.ucode_cmd = 0U; d->mac.d[2] = 1310720U; return (0); } } __inline static void wil_tx_desc_set_nr_frags(struct vring_tx_desc *d , int nr_frags ) { { d->mac.d[2] = d->mac.d[2] | (u32 )(nr_frags + 1); return; } } static int wil_tx_desc_offload_cksum_set(struct wil6210_priv *wil , struct vring_tx_desc *d , struct sk_buff *skb ) { int protocol ; struct iphdr *tmp ; struct ipv6hdr *tmp___0 ; unsigned int tmp___1 ; u32 tmp___2 ; { if ((unsigned int )*((unsigned char *)skb + 145UL) != 6U) { return (0); } else { } d->dma.b11 = 14U; switch ((int )skb->protocol) { case 8: tmp = ip_hdr((struct sk_buff const *)skb); protocol = (int )tmp->protocol; d->dma.b11 = (u8 )((unsigned int )d->dma.b11 | 128U); goto ldv_56690; case 56710: tmp___0 = ipv6_hdr((struct sk_buff const *)skb); protocol = (int )tmp___0->nexthdr; goto ldv_56690; default: ; return (-22); } ldv_56690: ; switch (protocol) { case 6: d->dma.d0 = d->dma.d0 | 2147483648U; tmp___1 = tcp_hdrlen((struct sk_buff const *)skb); d->dma.d0 = d->dma.d0 | (tmp___1 & 255U); goto ldv_56694; case 17: d->dma.d0 = d->dma.d0 | 8U; goto ldv_56694; default: ; return (-22); } ldv_56694: tmp___2 = skb_network_header_len((struct sk_buff const *)skb); d->dma.ip_length = (u8 )tmp___2; d->dma.d0 = d->dma.d0 | 32768U; d->dma.d0 = d->dma.d0 | 2097152U; return (0); } } static int __wil_tx_vring(struct wil6210_priv *wil , struct vring *vring , struct sk_buff *skb ) { struct device *dev ; struct device *tmp ; struct vring_tx_desc dd ; struct vring_tx_desc *d ; struct vring_tx_desc volatile *_d ; u32 swhead ; int avail ; int tmp___0 ; int nr_frags ; unsigned char *tmp___1 ; uint f ; int vring_index ; struct vring_tx_data *txdata ; uint i ; dma_addr_t pa ; int used ; bool mcast ; uint len ; unsigned int tmp___2 ; struct _ddebug descriptor ; long tmp___3 ; long tmp___4 ; long tmp___5 ; unsigned int tmp___6 ; struct _ddebug descriptor___0 ; unsigned int tmp___7 ; long tmp___8 ; unsigned int tmp___9 ; struct _ddebug descriptor___1 ; unsigned int tmp___10 ; long tmp___11 ; int tmp___12 ; long tmp___13 ; long tmp___14 ; long tmp___15 ; int tmp___16 ; long tmp___17 ; struct skb_frag_struct const *frag ; unsigned char *tmp___18 ; int len___0 ; unsigned int tmp___19 ; struct _ddebug descriptor___2 ; long tmp___20 ; struct _ddebug descriptor___3 ; long tmp___21 ; unsigned int tmp___22 ; int tmp___23 ; long tmp___24 ; struct _ddebug descriptor___4 ; long tmp___25 ; struct _ddebug descriptor___5 ; long tmp___26 ; cycles_t tmp___27 ; struct _ddebug descriptor___6 ; long tmp___28 ; bool tmp___29 ; struct _ddebug descriptor___7 ; long tmp___30 ; struct wil_ctx *ctx ; { tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; d = & dd; swhead = vring->swhead; tmp___0 = wil_vring_avail_tx(vring); avail = tmp___0; tmp___1 = skb_end_pointer((struct sk_buff const *)skb); nr_frags = (int )((struct skb_shared_info *)tmp___1)->nr_frags; f = 0U; vring_index = (int )(((long )vring - (long )(& wil->vring_tx)) / 40L); txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )vring_index; i = swhead; mcast = wil->bcast_vring == vring_index; tmp___2 = skb_headlen((struct sk_buff const *)skb); len = tmp___2; descriptor.modname = "wil6210"; descriptor.function = "__wil_tx_vring"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]%s()\n"; descriptor.lineno = 1131U; descriptor.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]%s()\n", "__wil_tx_vring"); } else { } wil_dbg_trace(wil, "DBG[TXRX]%s()\n", "__wil_tx_vring"); tmp___4 = ldv__builtin_expect(txdata->enabled == 0, 0L); if (tmp___4 != 0L) { return (-22); } else { } tmp___5 = ldv__builtin_expect(nr_frags + 1 > avail, 0L); if (tmp___5 != 0L) { wil_err_ratelimited(wil, "Tx ring[%2d] full. No space for %d fragments\n", vring_index, nr_frags + 1); return (-12); } else { } _d = & (vring->va + (unsigned long )i)->tx; tmp___6 = skb_headlen((struct sk_buff const *)skb); pa = dma_map_single_attrs(dev, (void *)skb->data, (size_t )tmp___6, 1, (struct dma_attrs *)0); descriptor___0.modname = "wil6210"; descriptor___0.function = "__wil_tx_vring"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]Tx[%2d] skb %d bytes 0x%p -> %pad\n"; descriptor___0.lineno = 1147U; descriptor___0.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___8 != 0L) { tmp___7 = skb_headlen((struct sk_buff const *)skb); __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Tx[%2d] skb %d bytes 0x%p -> %pad\n", vring_index, tmp___7, skb->data, & pa); } else { } tmp___9 = skb_headlen((struct sk_buff const *)skb); wil_dbg_trace(wil, "DBG[TXRX]Tx[%2d] skb %d bytes 0x%p -> %pad\n", vring_index, tmp___9, skb->data, & pa); descriptor___1.modname = "wil6210"; descriptor___1.function = "__wil_tx_vring"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___1.format = "DBG[TXRX]Tx "; descriptor___1.lineno = 1149U; descriptor___1.flags = 0U; tmp___11 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___11 != 0L) { tmp___10 = skb_headlen((struct sk_buff const *)skb); print_hex_dump("\017", "DBG[TXRX]Tx ", 2, 16, 1, (void const *)skb->data, (size_t )tmp___10, 0); } else { } tmp___12 = dma_mapping_error(dev, pa); tmp___13 = ldv__builtin_expect(tmp___12 != 0, 0L); if (tmp___13 != 0L) { return (-22); } else { } (vring->ctx + (unsigned long )i)->mapped_as = 1U; wil_tx_desc_map(d, pa, len, vring_index); tmp___15 = ldv__builtin_expect((long )mcast, 0L); if (tmp___15 != 0L) { d->mac.d[0] = d->mac.d[0] | 134217728U; tmp___14 = ldv__builtin_expect(len > 1024U, 0L); if (tmp___14 != 0L) { d->mac.d[0] = d->mac.d[0] | 4194304U; } else { } } else { } tmp___16 = wil_tx_desc_offload_cksum_set(wil, d, skb); tmp___17 = ldv__builtin_expect(tmp___16 != 0, 0L); if (tmp___17 != 0L) { wil_err(wil, "Tx[%2d] Failed to set cksum, drop packet\n", vring_index); goto dma_error; } else { } (vring->ctx + (unsigned long )i)->nr_frags = (u8 )nr_frags; wil_tx_desc_set_nr_frags(d, nr_frags); goto ldv_56727; ldv_56726: tmp___18 = skb_end_pointer((struct sk_buff const *)skb); frag = (struct skb_frag_struct const *)(& ((struct skb_shared_info *)tmp___18)->frags) + (unsigned long )f; tmp___19 = skb_frag_size(frag); len___0 = (int )tmp___19; *_d = *d; descriptor___2.modname = "wil6210"; descriptor___2.function = "__wil_tx_vring"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___2.format = "DBG[TXRX]Tx[%2d] desc[%4d]\n"; descriptor___2.lineno = 1178U; descriptor___2.flags = 0U; tmp___20 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___20 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Tx[%2d] desc[%4d]\n", vring_index, i); } else { } wil_dbg_trace(wil, "DBG[TXRX]Tx[%2d] desc[%4d]\n", vring_index, i); descriptor___3.modname = "wil6210"; descriptor___3.function = "__wil_tx_vring"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___3.format = "DBG[TXRX]TxD "; descriptor___3.lineno = 1180U; descriptor___3.flags = 0U; tmp___21 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___21 != 0L) { print_hex_dump("\017", "DBG[TXRX]TxD ", 0, 32, 4, (void const *)d, 32UL, 0); } else { } i = ((swhead + f) + 1U) % (u32 )vring->size; _d = & (vring->va + (unsigned long )i)->tx; tmp___22 = skb_frag_size(frag); pa = skb_frag_dma_map(dev, frag, 0UL, (size_t )tmp___22, 1); tmp___23 = dma_mapping_error(dev, pa); tmp___24 = ldv__builtin_expect(tmp___23 != 0, 0L); if (tmp___24 != 0L) { goto dma_error; } else { } (vring->ctx + (unsigned long )i)->mapped_as = 2U; wil_tx_desc_map(d, pa, (u32 )len___0, vring_index); wil_tx_desc_offload_cksum_set(wil, d, skb); f = f + 1U; ldv_56727: ; if ((uint )nr_frags > f) { goto ldv_56726; } else { } d->dma.d0 = d->dma.d0 | 256U; d->dma.d0 = d->dma.d0 | 512U; d->dma.d0 = d->dma.d0 | 1024U; *_d = *d; descriptor___4.modname = "wil6210"; descriptor___4.function = "__wil_tx_vring"; descriptor___4.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___4.format = "DBG[TXRX]Tx[%2d] desc[%4d]\n"; descriptor___4.lineno = 1200U; descriptor___4.flags = 0U; tmp___25 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___25 != 0L) { __dynamic_netdev_dbg(& descriptor___4, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Tx[%2d] desc[%4d]\n", vring_index, i); } else { } wil_dbg_trace(wil, "DBG[TXRX]Tx[%2d] desc[%4d]\n", vring_index, i); descriptor___5.modname = "wil6210"; descriptor___5.function = "__wil_tx_vring"; descriptor___5.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___5.format = "DBG[TXRX]TxD "; descriptor___5.lineno = 1202U; descriptor___5.flags = 0U; tmp___26 = ldv__builtin_expect((long )descriptor___5.flags & 1L, 0L); if (tmp___26 != 0L) { print_hex_dump("\017", "DBG[TXRX]TxD ", 0, 32, 4, (void const *)d, 32UL, 0); } else { } (vring->ctx + (unsigned long )i)->skb = skb_get(skb); used = wil_vring_used_tx(vring); tmp___29 = wil_val_in_range((int )vring_idle_trsh, used, (used + nr_frags) + 1); if ((int )tmp___29) { tmp___27 = get_cycles___0(); txdata->idle = txdata->idle + (tmp___27 - txdata->last_idle); descriptor___6.modname = "wil6210"; descriptor___6.function = "__wil_tx_vring"; descriptor___6.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___6.format = "DBG[TXRX]Ring[%2d] not idle %d -> %d\n"; descriptor___6.lineno = 1216U; descriptor___6.flags = 0U; tmp___28 = ldv__builtin_expect((long )descriptor___6.flags & 1L, 0L); if (tmp___28 != 0L) { __dynamic_netdev_dbg(& descriptor___6, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Ring[%2d] not idle %d -> %d\n", vring_index, used, (used + nr_frags) + 1); } else { } wil_dbg_trace(wil, "DBG[TXRX]Ring[%2d] not idle %d -> %d\n", vring_index, used, (used + nr_frags) + 1); } else { } wil_vring_advance_head(vring, nr_frags + 1); descriptor___7.modname = "wil6210"; descriptor___7.function = "__wil_tx_vring"; descriptor___7.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___7.format = "DBG[TXRX]Tx[%2d] swhead %d -> %d\n"; descriptor___7.lineno = 1222U; descriptor___7.flags = 0U; tmp___30 = ldv__builtin_expect((long )descriptor___7.flags & 1L, 0L); if (tmp___30 != 0L) { __dynamic_netdev_dbg(& descriptor___7, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Tx[%2d] swhead %d -> %d\n", vring_index, swhead, vring->swhead); } else { } wil_dbg_trace(wil, "DBG[TXRX]Tx[%2d] swhead %d -> %d\n", vring_index, swhead, vring->swhead); trace_wil6210_tx((int )((u8 )vring_index), (int )((u16 )swhead), skb->len, (int )((u8 )nr_frags)); iowrite32(vring->swhead, wil->csr + ((unsigned long )vring->hwtail + 0xffffffffff780000UL)); return (0); dma_error: nr_frags = (int )(f + 1U); f = 0U; goto ldv_56735; ldv_56734: i = (swhead + f) % (u32 )vring->size; ctx = vring->ctx + (unsigned long )i; _d = & (vring->va + (unsigned long )i)->tx; *d = *_d; _d->dma.status = 1U; wil_txdesc_unmap(dev, d, ctx); if ((unsigned long )ctx->skb != (unsigned long )((struct sk_buff *)0)) { dev_kfree_skb_any(ctx->skb); } else { } memset((void *)ctx, 0, 16UL); f = f + 1U; ldv_56735: ; if ((uint )nr_frags > f) { goto ldv_56734; } else { } return (-22); } } static int wil_tx_vring(struct wil6210_priv *wil , struct vring *vring , struct sk_buff *skb ) { int vring_index ; struct vring_tx_data *txdata ; int rc ; { vring_index = (int )(((long )vring - (long )(& wil->vring_tx)) / 40L); txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )vring_index; spin_lock(& txdata->lock); rc = __wil_tx_vring(wil, vring, skb); spin_unlock(& txdata->lock); return (rc); } } netdev_tx_t wil_start_xmit(struct sk_buff *skb , struct net_device *ndev ) { struct wil6210_priv *wil ; void *tmp ; struct ethhdr *eth ; bool bcast ; bool tmp___0 ; struct vring *vring ; bool pr_once_fw ; int rc ; struct _ddebug descriptor ; long tmp___1 ; int tmp___2 ; long tmp___3 ; int tmp___4 ; long tmp___5 ; long tmp___6 ; struct vring *tmp___7 ; struct vring *tmp___8 ; struct _ddebug descriptor___0 ; long tmp___9 ; long tmp___10 ; struct _ddebug descriptor___1 ; long tmp___11 ; int tmp___12 ; int tmp___13 ; long tmp___14 ; { tmp = wdev_priv___0(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; eth = (struct ethhdr *)skb->data; tmp___0 = is_multicast_ether_addr((u8 const *)(& eth->h_dest)); bcast = tmp___0; descriptor.modname = "wil6210"; descriptor.function = "wil_start_xmit"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]%s()\n"; descriptor.lineno = 1271U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]%s()\n", "wil_start_xmit"); } else { } wil_dbg_trace(wil, "DBG[TXRX]%s()\n", "wil_start_xmit"); tmp___2 = constant_test_bit(0L, (unsigned long const volatile *)(& wil->status)); tmp___3 = ldv__builtin_expect(tmp___2 == 0, 0L); if (tmp___3 != 0L) { if (! pr_once_fw) { wil_err(wil, "FW not ready\n"); pr_once_fw = 1; } else { } goto drop; } else { } tmp___4 = constant_test_bit(2L, (unsigned long const volatile *)(& wil->status)); tmp___5 = ldv__builtin_expect(tmp___4 == 0, 0L); if (tmp___5 != 0L) { wil_err(wil, "FW not connected\n"); goto drop; } else { } tmp___6 = ldv__builtin_expect((unsigned int )(wil->wdev)->iftype == 6U, 0L); if (tmp___6 != 0L) { wil_err(wil, "Xmit in monitor mode not supported\n"); goto drop; } else { } pr_once_fw = 0; if ((unsigned int )(wil->wdev)->iftype == 2U) { vring = wil_find_tx_vring_sta(wil, skb); } else if ((int )bcast) { tmp___7 = wil_find_tx_bcast(wil, skb); vring = tmp___7; } else { tmp___8 = wil_find_tx_ucast(wil, skb); vring = tmp___8; } tmp___10 = ldv__builtin_expect((unsigned long )vring == (unsigned long )((struct vring *)0), 0L); if (tmp___10 != 0L) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_start_xmit"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]No Tx VRING found for %pM\n"; descriptor___0.lineno = 1298U; descriptor___0.flags = 0U; tmp___9 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___9 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]No Tx VRING found for %pM\n", (unsigned char *)(& eth->h_dest)); } else { } wil_dbg_trace(wil, "DBG[TXRX]No Tx VRING found for %pM\n", (unsigned char *)(& eth->h_dest)); goto drop; } else { } rc = wil_tx_vring(wil, vring, skb); tmp___12 = wil_vring_avail_tx(vring); tmp___13 = wil_vring_wmark_low(vring); tmp___14 = ldv__builtin_expect(tmp___12 < tmp___13, 0L); if (tmp___14 != 0L) { netif_tx_stop_all_queues((wil->wdev)->netdev); descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_start_xmit"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___1.format = "DBG[TXRX]netif_tx_stop : ring full\n"; descriptor___1.lineno = 1307U; descriptor___1.flags = 0U; tmp___11 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___11 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]netif_tx_stop : ring full\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]netif_tx_stop : ring full\n"); } else { } switch (rc) { case 0: dev_kfree_skb_any(skb); return (0); case -12: ; return (16); default: ; goto ldv_56763; } ldv_56763: ; drop: ndev->stats.tx_dropped = ndev->stats.tx_dropped + 1UL; dev_kfree_skb_any(skb); return (1); } } __inline static bool wil_need_txstat(struct sk_buff *skb ) { struct ethhdr *eth ; bool tmp ; unsigned char *tmp___0 ; int tmp___1 ; { eth = (struct ethhdr *)skb->data; tmp = is_unicast_ether_addr((u8 const *)(& eth->h_dest)); if ((int )tmp && (unsigned long )skb->sk != (unsigned long )((struct sock *)0)) { tmp___0 = skb_end_pointer((struct sk_buff const *)skb); if (((int )((struct skb_shared_info *)tmp___0)->tx_flags & 16) != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } return ((bool )tmp___1); } } __inline static void wil_consume_skb(struct sk_buff *skb , bool acked ) { bool tmp ; long tmp___0 ; { tmp = wil_need_txstat(skb); tmp___0 = ldv__builtin_expect((long )tmp, 0L); if (tmp___0 != 0L) { skb_complete_wifi_ack(skb, (int )acked); } else if ((int )acked) { dev_consume_skb_any(skb); } else { dev_kfree_skb_any(skb); } return; } } int wil_tx_complete(struct wil6210_priv *wil , int ringid ) { struct net_device *ndev ; struct device *dev ; struct device *tmp ; struct vring *vring ; struct vring_tx_data *txdata ; int done ; int cid ; struct wil_net_stats *stats ; struct vring_tx_desc volatile *_d ; int used_before_complete ; int used_new ; long tmp___0 ; long tmp___1 ; struct _ddebug descriptor ; long tmp___2 ; int new_swtail ; struct wil_ctx *ctx ; int lf ; long tmp___3 ; struct vring_tx_desc dd ; struct vring_tx_desc *d ; u16 dmalen ; struct sk_buff *skb ; struct _ddebug descriptor___0 ; long tmp___4 ; struct _ddebug descriptor___1 ; long tmp___5 ; long tmp___6 ; int tmp___7 ; struct _ddebug descriptor___2 ; long tmp___8 ; bool tmp___9 ; struct _ddebug descriptor___3 ; long tmp___10 ; int tmp___11 ; int tmp___12 ; { ndev = (wil->wdev)->netdev; tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; vring = (struct vring *)(& wil->vring_tx) + (unsigned long )ringid; txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )ringid; done = 0; cid = (int )wil->vring2cid_tid[ringid][0]; stats = (struct wil_net_stats *)0; tmp___0 = ldv__builtin_expect((unsigned long )vring->va == (unsigned long )((union vring_desc volatile *)0), 0L); if (tmp___0 != 0L) { wil_err(wil, "Tx irq[%d]: vring not initialized\n", ringid); return (0); } else { } tmp___1 = ldv__builtin_expect(txdata->enabled == 0, 0L); if (tmp___1 != 0L) { wil_info(wil, "Tx irq[%d]: vring disabled\n", ringid); return (0); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_tx_complete"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor.format = "DBG[TXRX]%s(%d)\n"; descriptor.lineno = 1373U; descriptor.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]%s(%d)\n", "wil_tx_complete", ringid); } else { } wil_dbg_trace(wil, "DBG[TXRX]%s(%d)\n", "wil_tx_complete", ringid); used_before_complete = wil_vring_used_tx(vring); if (cid <= 7) { stats = & wil->sta[cid].stats; } else { } goto ldv_56802; ldv_56801: ctx = vring->ctx + (unsigned long )vring->swtail; lf = (int )((vring->swtail + (u32 )ctx->nr_frags) % (u32 )vring->size); _d = & (vring->va + (unsigned long )lf)->tx; tmp___3 = ldv__builtin_expect(((unsigned long )_d->dma.status & 1UL) == 0UL, 0L); if (tmp___3 != 0L) { goto ldv_56791; } else { } new_swtail = (lf + 1) % (int )vring->size; goto ldv_56799; ldv_56798: d = & dd; ctx = vring->ctx + (unsigned long )vring->swtail; skb = ctx->skb; _d = & (vring->va + (unsigned long )vring->swtail)->tx; *d = *_d; dmalen = d->dma.length; trace_wil6210_tx_done((int )((u8 )ringid), (int )((u16 )vring->swtail), (unsigned int )dmalen, (int )d->dma.error); descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_tx_complete"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___0.format = "DBG[TXRX]TxC[%2d][%3d] : %d bytes, status 0x%02x err 0x%02x\n"; descriptor___0.lineno = 1412U; descriptor___0.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]TxC[%2d][%3d] : %d bytes, status 0x%02x err 0x%02x\n", ringid, vring->swtail, (int )dmalen, (int )d->dma.status, (int )d->dma.error); } else { } wil_dbg_trace(wil, "DBG[TXRX]TxC[%2d][%3d] : %d bytes, status 0x%02x err 0x%02x\n", ringid, vring->swtail, (int )dmalen, (int )d->dma.status, (int )d->dma.error); descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_tx_complete"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___1.format = "DBG[TXRX]TxCD "; descriptor___1.lineno = 1414U; descriptor___1.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___5 != 0L) { print_hex_dump("\017", "DBG[TXRX]TxCD ", 0, 32, 4, (void const *)d, 32UL, 0); } else { } wil_txdesc_unmap(dev, d, ctx); if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { tmp___6 = ldv__builtin_expect((unsigned int )d->dma.error == 0U, 1L); if (tmp___6 != 0L) { ndev->stats.tx_packets = ndev->stats.tx_packets + 1UL; ndev->stats.tx_bytes = ndev->stats.tx_bytes + (unsigned long )skb->len; if ((unsigned long )stats != (unsigned long )((struct wil_net_stats *)0)) { stats->tx_packets = stats->tx_packets + 1UL; stats->tx_bytes = stats->tx_bytes + (unsigned long )skb->len; } else { } } else { ndev->stats.tx_errors = ndev->stats.tx_errors + 1UL; if ((unsigned long )stats != (unsigned long )((struct wil_net_stats *)0)) { stats->tx_errors = stats->tx_errors + 1UL; } else { } } wil_consume_skb(skb, (unsigned int )d->dma.error == 0U); } else { } memset((void *)ctx, 0, 16UL); vring->swtail = wil_vring_next_tail(vring); done = done + 1; ldv_56799: ; if (vring->swtail != (u32 )new_swtail) { goto ldv_56798; } else { } ldv_56802: tmp___7 = wil_vring_is_empty(vring); if (tmp___7 == 0) { goto ldv_56801; } else { } ldv_56791: used_new = wil_vring_used_tx(vring); tmp___9 = wil_val_in_range((int )vring_idle_trsh, used_new, used_before_complete); if ((int )tmp___9) { descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_tx_complete"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___2.format = "DBG[TXRX]Ring[%2d] idle %d -> %d\n"; descriptor___2.lineno = 1449U; descriptor___2.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___8 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]Ring[%2d] idle %d -> %d\n", ringid, used_before_complete, used_new); } else { } wil_dbg_trace(wil, "DBG[TXRX]Ring[%2d] idle %d -> %d\n", ringid, used_before_complete, used_new); txdata->last_idle = get_cycles___0(); } else { } tmp___11 = wil_vring_avail_tx(vring); tmp___12 = wil_vring_wmark_high(vring); if (tmp___11 > tmp___12) { descriptor___3.modname = "wil6210"; descriptor___3.function = "wil_tx_complete"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/txrx.c"; descriptor___3.format = "DBG[TXRX]netif_tx_wake : ring not full\n"; descriptor___3.lineno = 1454U; descriptor___3.flags = 0U; tmp___10 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___10 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]netif_tx_wake : ring not full\n"); } else { } wil_dbg_trace(wil, "DBG[TXRX]netif_tx_wake : ring not full\n"); netif_tx_wake_all_queues___0((wil->wdev)->netdev); } else { } return (done); } } bool ldv_queue_work_on_353(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_354(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_355(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_356(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_357(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_358(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_359(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_360(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_361(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_362(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_363(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_364(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_365(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } __inline static int ldv_mutex_is_locked_366(struct mutex *lock ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_is_locked(lock); ldv_func_res = tmp; tmp___0 = ldv_mutex_is_locked_mutex_of_wil6210_priv(lock); return (tmp___0); return (ldv_func_res); } } void ldv__builtin_va_end(__builtin_va_list * ) ; __inline static long ldv__builtin_expect(long exp , long c ) ; void ldv__builtin_va_start(__builtin_va_list * ) ; __inline static unsigned long arch_local_save_flags___2(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 *)"./arch/x86/include/asm/paravirt.h"), "i" (831), "i" (12UL)); ldv_4801: ; goto ldv_4801; } 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" (43UL), [paravirt_opptr] "i" (& pv_irq_ops.save_fl.func), [paravirt_clobber] "i" (1): "memory", "cc"); __ret = __eax; return (__ret); } } int ldv_mutex_trylock_393(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_391(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_394(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_395(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_390(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_392(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_396(struct mutex *ldv_func_arg1 ) ; __inline static int rcu_read_lock_sched_held___2(void) { int lockdep_opinion ; int tmp ; bool tmp___0 ; int tmp___1 ; bool tmp___2 ; int tmp___3 ; int tmp___4 ; unsigned long _flags ; int tmp___5 ; int tmp___6 ; { lockdep_opinion = 0; tmp = debug_lockdep_rcu_enabled(); if (tmp == 0) { return (1); } else { } tmp___0 = rcu_is_watching(); if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { return (0); } else { } tmp___2 = rcu_lockdep_current_cpu_online(); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { return (0); } else { } if (debug_locks != 0) { lockdep_opinion = lock_is_held(& rcu_sched_lock_map); } else { } if (lockdep_opinion != 0) { tmp___6 = 1; } else { tmp___4 = preempt_count___0(); if (tmp___4 != 0) { tmp___6 = 1; } else { _flags = arch_local_save_flags___2(); tmp___5 = arch_irqs_disabled_flags(_flags); if (tmp___5 != 0) { tmp___6 = 1; } else { tmp___6 = 0; } } } return (tmp___6); } } bool ldv_queue_work_on_385(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_387(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_386(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_389(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_388(struct workqueue_struct *ldv_func_arg1 ) ; extern int net_ratelimit(void) ; int ldv_request_threaded_irq_397(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; extern void netdev_err(struct net_device const * , char const * , ...) ; extern void netdev_info(struct net_device const * , char const * , ...) ; struct tracepoint __tracepoint_wil6210_log_err ; __inline static void trace_wil6210_log_err(struct va_format *vaf ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_363___0 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_365___0 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_log_err.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_log_err.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___2(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 96, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48492: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , struct va_format * ))it_func))(__data, vaf); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48492; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_log_err.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___2(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 96, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } struct tracepoint __tracepoint_wil6210_log_info ; __inline static void trace_wil6210_log_info(struct va_format *vaf ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_367___0 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_369 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_log_info.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_log_info.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___2(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 101, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48543: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , struct va_format * ))it_func))(__data, vaf); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48543; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_log_info.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___2(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 101, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } struct tracepoint __tracepoint_wil6210_log_dbg ; __inline static void trace_wil6210_log_dbg(struct va_format *vaf ) { struct tracepoint_func *it_func_ptr ; void *it_func ; void *__data ; struct tracepoint_func *________p1 ; struct tracepoint_func *_________p1 ; union __anonunion___u_371 __u ; bool __warned ; int tmp ; int tmp___0 ; bool tmp___1 ; struct tracepoint_func *________p1___0 ; struct tracepoint_func *_________p1___0 ; union __anonunion___u_373 __u___0 ; bool __warned___0 ; int tmp___2 ; int tmp___3 ; { tmp___1 = static_key_false(& __tracepoint_wil6210_log_dbg.key); if ((int )tmp___1) { rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_log_dbg.funcs), (void *)(& __u.__c), 8); _________p1 = __u.__val; ________p1 = _________p1; tmp = debug_lockdep_rcu_enabled(); if (tmp != 0 && ! __warned) { tmp___0 = rcu_read_lock_sched_held___2(); if (tmp___0 == 0) { __warned = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 106, "suspicious rcu_dereference_check() usage"); } else { } } else { } it_func_ptr = ________p1; if ((unsigned long )it_func_ptr != (unsigned long )((struct tracepoint_func *)0)) { ldv_48594: it_func = it_func_ptr->func; __data = it_func_ptr->data; (*((void (*)(void * , struct va_format * ))it_func))(__data, vaf); it_func_ptr = it_func_ptr + 1; if ((unsigned long )it_func_ptr->func != (unsigned long )((void *)0)) { goto ldv_48594; } else { } } else { } rcu_read_unlock_sched_notrace___0(); } else { } rcu_read_lock_sched_notrace___0(); __read_once_size((void const volatile *)(& __tracepoint_wil6210_log_dbg.funcs), (void *)(& __u___0.__c), 8); _________p1___0 = __u___0.__val; ________p1___0 = _________p1___0; tmp___2 = debug_lockdep_rcu_enabled(); if (tmp___2 != 0 && ! __warned___0) { tmp___3 = rcu_read_lock_sched_held___2(); if (tmp___3 == 0) { __warned___0 = 1; lockdep_rcu_suspicious("/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/trace.h", 106, "suspicious rcu_dereference_check() usage"); } else { } } else { } rcu_read_unlock_sched_notrace___0(); return; } } void wil_err(struct wil6210_priv *wil , char const *fmt , ...) { struct net_device *ndev ; struct va_format vaf ; va_list args ; { ndev = (wil->wdev)->netdev; vaf.fmt = fmt; vaf.va = 0; ldv__builtin_va_start((va_list *)(& args)); vaf.va = & args; netdev_err((struct net_device const *)ndev, "%pV", & vaf); trace_wil6210_log_err(& vaf); ldv__builtin_va_end((va_list *)(& args)); return; } } void wil_err_ratelimited(struct wil6210_priv *wil , char const *fmt , ...) { struct net_device *ndev ; struct va_format vaf ; va_list args ; int tmp ; { tmp = net_ratelimit(); if (tmp != 0) { ndev = (wil->wdev)->netdev; vaf.fmt = fmt; vaf.va = 0; ldv__builtin_va_start((va_list *)(& args)); vaf.va = & args; netdev_err((struct net_device const *)ndev, "%pV", & vaf); trace_wil6210_log_err(& vaf); ldv__builtin_va_end((va_list *)(& args)); } else { } return; } } void wil_info(struct wil6210_priv *wil , char const *fmt , ...) { struct net_device *ndev ; struct va_format vaf ; va_list args ; { ndev = (wil->wdev)->netdev; vaf.fmt = fmt; vaf.va = 0; ldv__builtin_va_start((va_list *)(& args)); vaf.va = & args; netdev_info((struct net_device const *)ndev, "%pV", & vaf); trace_wil6210_log_info(& vaf); ldv__builtin_va_end((va_list *)(& args)); return; } } void wil_dbg_trace(struct wil6210_priv *wil , char const *fmt , ...) { struct va_format vaf ; va_list args ; { vaf.fmt = fmt; vaf.va = 0; ldv__builtin_va_start((va_list *)(& args)); vaf.va = & args; trace_wil6210_log_dbg(& vaf); ldv__builtin_va_end((va_list *)(& args)); return; } } bool ldv_queue_work_on_385(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_386(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_387(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_388(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_389(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_390(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_391(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_392(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_393(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_394(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_395(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_396(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_397(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_423(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_421(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_424(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_425(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_429(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_431(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_433(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_435(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_437(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_439(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_420(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_422(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_426(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_428(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_430(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_432(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_434(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_436(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_438(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) ; void ldv_mutex_unlock_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) ; void ldv_mutex_lock_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) ; void ldv_mutex_unlock_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) ; bool ldv_queue_work_on_415(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_417(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_416(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_419(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_418(struct workqueue_struct *ldv_func_arg1 ) ; __inline static bool queue_work___2(struct workqueue_struct *wq , struct work_struct *work ) { bool tmp ; { tmp = ldv_queue_work_on_415(8192, wq, work); return (tmp); } } extern void consume_skb(struct sk_buff * ) ; int ldv_request_threaded_irq_427(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; __inline static int wil_rxdesc_tid(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->mac.d0, 0, 3); return ((int )tmp); } } __inline static int wil_rxdesc_mid(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->mac.d0, 8, 9); return ((int )tmp); } } __inline static int wil_rxdesc_seq(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->mac.d0, 16, 27); return ((int )tmp); } } __inline static int wil_rxdesc_mcast(struct vring_rx_desc *d ) { u32 tmp ; { tmp = WIL_GET_BITS(d->mac.d1, 13, 14); return ((int )tmp); } } struct wil_tid_ampdu_rx *wil_tid_ampdu_rx_alloc(struct wil6210_priv *wil , int size , u16 ssn ) ; __inline static int seq_less(u16 sq1 , u16 sq2 ) { { return ((((int )sq1 - (int )sq2) & 4095) > 2048); } } __inline static u16 seq_inc(u16 sq ) { { return ((unsigned int )((u16 )((unsigned int )sq + 1U)) & 4095U); } } __inline static u16 seq_sub(u16 sq1 , u16 sq2 ) { { return ((unsigned int )((u16 )((int )sq1 - (int )sq2)) & 4095U); } } __inline static int reorder_index(struct wil_tid_ampdu_rx *r , u16 seq ) { u16 tmp ; { tmp = seq_sub((int )seq, (int )r->ssn); return ((int )tmp % (int )r->buf_size); } } static void wil_release_reorder_frame(struct wil6210_priv *wil , struct wil_tid_ampdu_rx *r , int index ) { struct net_device *ndev ; struct sk_buff *skb ; { ndev = (wil->wdev)->netdev; skb = *(r->reorder_buf + (unsigned long )index); if ((unsigned long )skb == (unsigned long )((struct sk_buff *)0)) { goto no_frame; } else { } r->stored_mpdu_num = (u16 )((int )r->stored_mpdu_num - 1); *(r->reorder_buf + (unsigned long )index) = (struct sk_buff *)0; wil_netif_rx_any(skb, ndev); no_frame: r->head_seq_num = seq_inc((int )r->head_seq_num); return; } } static void wil_release_reorder_frames(struct wil6210_priv *wil , struct wil_tid_ampdu_rx *r , u16 hseq ) { int index ; int tmp ; { goto ldv_48385; ldv_48384: index = reorder_index(r, (int )r->head_seq_num); wil_release_reorder_frame(wil, r, index); ldv_48385: tmp = seq_less((int )r->head_seq_num, (int )hseq); if (tmp != 0 && (unsigned int )r->stored_mpdu_num != 0U) { goto ldv_48384; } else { } r->head_seq_num = hseq; return; } } static void wil_reorder_release(struct wil6210_priv *wil , struct wil_tid_ampdu_rx *r ) { int index ; int tmp ; { tmp = reorder_index(r, (int )r->head_seq_num); index = tmp; goto ldv_48393; ldv_48392: wil_release_reorder_frame(wil, r, index); index = reorder_index(r, (int )r->head_seq_num); ldv_48393: ; if ((unsigned long )*(r->reorder_buf + (unsigned long )index) != (unsigned long )((struct sk_buff *)0)) { goto ldv_48392; } else { } return; } } void wil_rx_reorder(struct wil6210_priv *wil , struct sk_buff *skb ) { struct net_device *ndev ; struct vring_rx_desc *d ; struct vring_rx_desc *tmp ; int tid ; int tmp___0 ; int cid ; int tmp___1 ; int mid ; int tmp___2 ; u16 seq ; int tmp___3 ; int mcast ; int tmp___4 ; struct wil_sta_info *sta ; struct wil_tid_ampdu_rx *r ; u16 hseq ; int index ; struct _ddebug descriptor ; long tmp___5 ; long tmp___6 ; int tmp___7 ; int tmp___8 ; u16 tmp___9 ; int tmp___10 ; { ndev = (wil->wdev)->netdev; tmp = wil_skb_rxdesc(skb); d = tmp; tmp___0 = wil_rxdesc_tid(d); tid = tmp___0; tmp___1 = wil_rxdesc_cid(d); cid = tmp___1; tmp___2 = wil_rxdesc_mid(d); mid = tmp___2; tmp___3 = wil_rxdesc_seq(d); seq = (u16 )tmp___3; tmp___4 = wil_rxdesc_mcast(d); mcast = tmp___4; sta = (struct wil_sta_info *)(& wil->sta) + (unsigned long )cid; descriptor.modname = "wil6210"; descriptor.function = "wil_rx_reorder"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/rx_reorder.c"; descriptor.format = "DBG[TXRX]MID %d CID %d TID %d Seq 0x%03x mcast %01x\n"; descriptor.lineno = 109U; descriptor.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[TXRX]MID %d CID %d TID %d Seq 0x%03x mcast %01x\n", mid, cid, tid, (int )seq, mcast); } else { } wil_dbg_trace(wil, "DBG[TXRX]MID %d CID %d TID %d Seq 0x%03x mcast %01x\n", mid, cid, tid, (int )seq, mcast); tmp___6 = ldv__builtin_expect(mcast != 0, 0L); if (tmp___6 != 0L) { wil_netif_rx_any(skb, ndev); return; } else { } spin_lock(& sta->tid_rx_lock); r = sta->tid_rx[tid]; if ((unsigned long )r == (unsigned long )((struct wil_tid_ampdu_rx *)0)) { wil_netif_rx_any(skb, ndev); goto out; } else { } hseq = r->head_seq_num; if ((int )r->first_time) { r->first_time = 0; if ((int )r->head_seq_num != (int )seq) { tmp___7 = seq_less((int )seq, (int )r->head_seq_num); if (tmp___7 != 0) { wil_err(wil, "Error: frame with early sequence 0x%03x, should be 0x%03x. Waiting...\n", (int )seq, (int )r->head_seq_num); r->first_time = 1; wil_netif_rx_any(skb, ndev); goto out; } else { } wil_err(wil, "Error: 1-st frame with wrong sequence 0x%03x, should be 0x%03x. Fixing...\n", (int )seq, (int )r->head_seq_num); r->head_seq_num = seq; r->ssn = seq; } else { } } else { } tmp___8 = seq_less((int )seq, (int )r->head_seq_num); if (tmp___8 != 0) { r->ssn_last_drop = seq; consume_skb(skb); goto out; } else { } tmp___10 = seq_less((int )seq, (int )r->head_seq_num + (int )r->buf_size); if (tmp___10 == 0) { tmp___9 = seq_sub((int )seq, (int )r->buf_size); hseq = seq_inc((int )tmp___9); wil_release_reorder_frames(wil, r, (int )hseq); } else { } index = reorder_index(r, (int )seq); if ((unsigned long )*(r->reorder_buf + (unsigned long )index) != (unsigned long )((struct sk_buff *)0)) { consume_skb(skb); goto out; } else { } if ((int )r->head_seq_num == (int )seq && (unsigned int )r->stored_mpdu_num == 0U) { r->head_seq_num = seq_inc((int )r->head_seq_num); wil_netif_rx_any(skb, ndev); goto out; } else { } *(r->reorder_buf + (unsigned long )index) = skb; *(r->reorder_time + (unsigned long )index) = jiffies; r->stored_mpdu_num = (u16 )((int )r->stored_mpdu_num + 1); wil_reorder_release(wil, r); out: spin_unlock(& sta->tid_rx_lock); return; } } struct wil_tid_ampdu_rx *wil_tid_ampdu_rx_alloc(struct wil6210_priv *wil , int size , u16 ssn ) { struct wil_tid_ampdu_rx *r ; void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = kzalloc(296UL, 208U); r = (struct wil_tid_ampdu_rx *)tmp; if ((unsigned long )r == (unsigned long )((struct wil_tid_ampdu_rx *)0)) { return ((struct wil_tid_ampdu_rx *)0); } else { } tmp___0 = kcalloc((size_t )size, 8UL, 208U); r->reorder_buf = (struct sk_buff **)tmp___0; tmp___1 = kcalloc((size_t )size, 8UL, 208U); r->reorder_time = (unsigned long *)tmp___1; if ((unsigned long )r->reorder_buf == (unsigned long )((struct sk_buff **)0) || (unsigned long )r->reorder_time == (unsigned long )((unsigned long *)0UL)) { kfree((void const *)r->reorder_buf); kfree((void const *)r->reorder_time); kfree((void const *)r); return ((struct wil_tid_ampdu_rx *)0); } else { } r->ssn = ssn; r->head_seq_num = ssn; r->buf_size = (u16 )size; r->stored_mpdu_num = 0U; r->first_time = 1; return (r); } } void wil_tid_ampdu_rx_free(struct wil6210_priv *wil , struct wil_tid_ampdu_rx *r ) { { if ((unsigned long )r == (unsigned long )((struct wil_tid_ampdu_rx *)0)) { return; } else { } wil_release_reorder_frames(wil, r, (int )r->head_seq_num + (int )r->buf_size); kfree((void const *)r->reorder_buf); kfree((void const *)r->reorder_time); kfree((void const *)r); return; } } static u16 wil_agg_size(struct wil6210_priv *wil , u16 req_agg_wsize ) { u16 max_agg_size ; u16 __min1 ; u16 __min2 ; u16 _min1 ; u16 _min2 ; { __min1 = 32U; __min2 = (u16 )(65536U / (mtu_max + 62U)); max_agg_size = (u16 )((int )__min1 < (int )__min2 ? __min1 : __min2); if ((unsigned int )req_agg_wsize == 0U) { return (max_agg_size); } else { } _min1 = max_agg_size; _min2 = req_agg_wsize; return ((u16 )((int )_min1 < (int )_min2 ? _min1 : _min2)); } } int wil_addba_rx_request(struct wil6210_priv *wil , u8 cidxtid , u8 dialog_token , __le16 ba_param_set , __le16 ba_timeout , __le16 ba_seq_ctrl ) { struct wil_back_rx *req ; void *tmp ; { tmp = kzalloc(24UL, 208U); req = (struct wil_back_rx *)tmp; if ((unsigned long )req == (unsigned long )((struct wil_back_rx *)0)) { return (-12); } else { } req->cidxtid = cidxtid; req->dialog_token = dialog_token; req->ba_param_set = ba_param_set; req->ba_timeout = ba_timeout; req->ba_seq_ctrl = ba_seq_ctrl; ldv_mutex_lock_428(& wil->back_rx_mutex); list_add_tail(& req->list, & wil->back_rx_pending); ldv_mutex_unlock_429(& wil->back_rx_mutex); queue_work___2(wil->wq_service, & wil->back_rx_worker); return (0); } } static void wil_back_rx_handle(struct wil6210_priv *wil , struct wil_back_rx *req ) { struct wil_sta_info *sta ; u8 cid ; u8 tid ; u16 agg_wsize___0 ; u16 req_agg_wsize ; u32 tmp ; bool agg_amsdu ; int ba_policy ; u16 agg_timeout ; u16 status ; u16 ssn ; struct wil_tid_ampdu_rx *r ; int rc ; struct _ddebug descriptor ; long tmp___0 ; { agg_wsize___0 = 0U; tmp = WIL_GET_BITS((u32 )req->ba_param_set, 6, 15); req_agg_wsize = (u16 )tmp; agg_amsdu = ((int )req->ba_param_set & 1) != 0; ba_policy = (int )req->ba_param_set & 2; agg_timeout = req->ba_timeout; status = 0U; ssn = (u16 )((int )req->ba_seq_ctrl >> 4); __might_sleep("/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/rx_reorder.c", 298, 0); parse_cidxtid((int )req->cidxtid, & cid, & tid); if ((unsigned int )cid > 7U) { wil_err(wil, "BACK: invalid CID %d\n", (int )cid); return; } else { } sta = (struct wil_sta_info *)(& wil->sta) + (unsigned long )cid; if ((unsigned int )sta->status != 2U) { wil_err(wil, "BACK: CID %d not connected\n", (int )cid); return; } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_back_rx_handle"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/rx_reorder.c"; descriptor.format = "DBG[ WMI]ADDBA request for CID %d %pM TID %d size %d timeout %d AMSDU%s policy %d token %d SSN 0x%03x\n"; descriptor.lineno = 316U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ WMI]ADDBA request for CID %d %pM TID %d size %d timeout %d AMSDU%s policy %d token %d SSN 0x%03x\n", (int )cid, (u8 *)(& sta->addr), (int )tid, (int )req_agg_wsize, (int )req->ba_timeout, (int )agg_amsdu ? (char *)"+" : (char *)"-", ba_policy != 0, (int )req->dialog_token, (int )ssn); } else { } wil_dbg_trace(wil, "DBG[ WMI]ADDBA request for CID %d %pM TID %d size %d timeout %d AMSDU%s policy %d token %d SSN 0x%03x\n", (int )cid, (u8 *)(& sta->addr), (int )tid, (int )req_agg_wsize, (int )req->ba_timeout, (int )agg_amsdu ? (char *)"+" : (char *)"-", ba_policy != 0, (int )req->dialog_token, (int )ssn); if (ba_policy != 0) { wil_err(wil, "BACK requested unsupported ba_policy == 1\n"); status = 38U; } else { } if ((unsigned int )status == 0U) { agg_wsize___0 = wil_agg_size(wil, (int )req_agg_wsize); } else { } rc = wmi_addba_rx_resp(wil, (int )cid, (int )tid, (int )req->dialog_token, (int )status, (int )agg_amsdu, (int )agg_wsize___0, (int )agg_timeout); if (rc != 0 || (unsigned int )status != 0U) { return; } else { } r = wil_tid_ampdu_rx_alloc(wil, (int )agg_wsize___0, (int )ssn); spin_lock_bh(& sta->tid_rx_lock); wil_tid_ampdu_rx_free(wil, sta->tid_rx[(int )tid]); sta->tid_rx[(int )tid] = r; spin_unlock_bh(& sta->tid_rx_lock); return; } } void wil_back_rx_flush(struct wil6210_priv *wil ) { struct wil_back_rx *evt ; struct wil_back_rx *t ; struct _ddebug descriptor ; long tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { descriptor.modname = "wil6210"; descriptor.function = "wil_back_rx_flush"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/rx_reorder.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 343U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_back_rx_flush"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_back_rx_flush"); ldv_mutex_lock_430(& wil->back_rx_mutex); __mptr = (struct list_head const *)wil->back_rx_pending.next; evt = (struct wil_back_rx *)__mptr; __mptr___0 = (struct list_head const *)evt->list.next; t = (struct wil_back_rx *)__mptr___0; goto ldv_48475; ldv_48474: list_del(& evt->list); kfree((void const *)evt); evt = t; __mptr___1 = (struct list_head const *)t->list.next; t = (struct wil_back_rx *)__mptr___1; ldv_48475: ; if ((unsigned long )(& evt->list) != (unsigned long )(& wil->back_rx_pending)) { goto ldv_48474; } else { } ldv_mutex_unlock_431(& wil->back_rx_mutex); return; } } static struct list_head *next_back_rx(struct wil6210_priv *wil ) { struct list_head *ret ; int tmp ; { ret = (struct list_head *)0; ldv_mutex_lock_432(& wil->back_rx_mutex); tmp = list_empty((struct list_head const *)(& wil->back_rx_pending)); if (tmp == 0) { ret = wil->back_rx_pending.next; list_del(ret); } else { } ldv_mutex_unlock_433(& wil->back_rx_mutex); return (ret); } } void wil_back_rx_worker(struct work_struct *work ) { struct wil6210_priv *wil ; struct work_struct const *__mptr ; struct wil_back_rx *evt ; struct list_head *lh ; struct list_head const *__mptr___0 ; { __mptr = (struct work_struct const *)work; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffff808UL; goto ldv_48492; ldv_48491: __mptr___0 = (struct list_head const *)lh; evt = (struct wil_back_rx *)__mptr___0; wil_back_rx_handle(wil, evt); kfree((void const *)evt); ldv_48492: lh = next_back_rx(wil); if ((unsigned long )lh != (unsigned long )((struct list_head *)0)) { goto ldv_48491; } else { } return; } } static void wil_back_tx_handle(struct wil6210_priv *wil , struct wil_back_tx *req ) { struct vring_tx_data *txdata ; int rc ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; { txdata = (struct vring_tx_data *)(& wil->vring_tx_data) + (unsigned long )req->ringid; if ((int )txdata->addba_in_progress) { descriptor.modname = "wil6210"; descriptor.function = "wil_back_tx_handle"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/rx_reorder.c"; descriptor.format = "DBG[MISC]ADDBA for vring[%d] already in progress\n"; descriptor.lineno = 396U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]ADDBA for vring[%d] already in progress\n", (int )req->ringid); } else { } wil_dbg_trace(wil, "DBG[MISC]ADDBA for vring[%d] already in progress\n", (int )req->ringid); return; } else { } if ((unsigned int )txdata->agg_wsize != 0U) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_back_tx_handle"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/rx_reorder.c"; descriptor___0.format = "DBG[MISC]ADDBA for vring[%d] already established wsize %d\n"; descriptor___0.lineno = 402U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]ADDBA for vring[%d] already established wsize %d\n", (int )req->ringid, (int )txdata->agg_wsize); } else { } wil_dbg_trace(wil, "DBG[MISC]ADDBA for vring[%d] already established wsize %d\n", (int )req->ringid, (int )txdata->agg_wsize); return; } else { } txdata->addba_in_progress = 1; rc = wmi_addba(wil, (int )req->ringid, (int )req->agg_wsize, (int )req->agg_timeout); if (rc != 0) { txdata->addba_in_progress = 0; } else { } return; } } static struct list_head *next_back_tx(struct wil6210_priv *wil ) { struct list_head *ret ; int tmp ; { ret = (struct list_head *)0; ldv_mutex_lock_434(& wil->back_tx_mutex); tmp = list_empty((struct list_head const *)(& wil->back_tx_pending)); if (tmp == 0) { ret = wil->back_tx_pending.next; list_del(ret); } else { } ldv_mutex_unlock_435(& wil->back_tx_mutex); return (ret); } } void wil_back_tx_worker(struct work_struct *work ) { struct wil6210_priv *wil ; struct work_struct const *__mptr ; struct wil_back_tx *evt ; struct list_head *lh ; struct list_head const *__mptr___0 ; { __mptr = (struct work_struct const *)work; wil = (struct wil6210_priv *)__mptr + 0xfffffffffffff708UL; goto ldv_48518; ldv_48517: __mptr___0 = (struct list_head const *)lh; evt = (struct wil_back_tx *)__mptr___0; wil_back_tx_handle(wil, evt); kfree((void const *)evt); ldv_48518: lh = next_back_tx(wil); if ((unsigned long )lh != (unsigned long )((struct list_head *)0)) { goto ldv_48517; } else { } return; } } void wil_back_tx_flush(struct wil6210_priv *wil ) { struct wil_back_tx *evt ; struct wil_back_tx *t ; struct _ddebug descriptor ; long tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { descriptor.modname = "wil6210"; descriptor.function = "wil_back_tx_flush"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/rx_reorder.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 446U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_back_tx_flush"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_back_tx_flush"); ldv_mutex_lock_436(& wil->back_tx_mutex); __mptr = (struct list_head const *)wil->back_tx_pending.next; evt = (struct wil_back_tx *)__mptr; __mptr___0 = (struct list_head const *)evt->list.next; t = (struct wil_back_tx *)__mptr___0; goto ldv_48534; ldv_48533: list_del(& evt->list); kfree((void const *)evt); evt = t; __mptr___1 = (struct list_head const *)t->list.next; t = (struct wil_back_tx *)__mptr___1; ldv_48534: ; if ((unsigned long )(& evt->list) != (unsigned long )(& wil->back_tx_pending)) { goto ldv_48533; } else { } ldv_mutex_unlock_437(& wil->back_tx_mutex); return; } } int wil_addba_tx_request(struct wil6210_priv *wil , u8 ringid , u16 wsize ) { struct wil_back_tx *req ; void *tmp ; u16 tmp___0 ; { tmp = kzalloc(24UL, 208U); req = (struct wil_back_tx *)tmp; if ((unsigned long )req == (unsigned long )((struct wil_back_tx *)0)) { return (-12); } else { } req->ringid = ringid; tmp___0 = wil_agg_size(wil, (int )wsize); req->agg_wsize = (u8 )tmp___0; req->agg_timeout = 0U; ldv_mutex_lock_438(& wil->back_tx_mutex); list_add_tail(& req->list, & wil->back_tx_pending); ldv_mutex_unlock_439(& wil->back_tx_mutex); queue_work___2(wil->wq_service, & wil->back_tx_worker); return (0); } } bool ldv_queue_work_on_415(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_416(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_417(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_418(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_419(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_420(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_421(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_422(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_423(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_424(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_425(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_426(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_427(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_mutex_lock_428(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_back_rx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_429(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_back_rx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_430(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_back_rx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_431(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_back_rx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_432(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_back_rx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_433(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_back_rx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_434(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_back_tx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_435(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_back_tx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_436(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_back_tx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_437(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_back_tx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_438(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_back_tx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_439(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_back_tx_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_477(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_475(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_478(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_479(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_474(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_476(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_480(struct mutex *ldv_func_arg1 ) ; bool ldv_queue_work_on_469(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_471(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_470(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_473(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_472(struct workqueue_struct *ldv_func_arg1 ) ; int ldv_request_threaded_irq_481(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; static void *wil_ioc_addr(struct wil6210_priv *wil , uint32_t addr , uint32_t size , enum wil_memio_op op ) { void *a ; u32 off ; { switch ((unsigned int )op & 65280U) { case 0U: a = wmi_buffer(wil, addr); goto ldv_48272; case 256U: a = wmi_addr(wil, addr); goto ldv_48272; case 512U: a = wmi_addr(wil, addr + 8912896U); goto ldv_48272; default: wil_err(wil, "Unsupported address mode, op = 0x%08x\n", (unsigned int )op); return ((void *)0); } ldv_48272: off = (u32 )((long )a) - (u32 )((long )wil->csr); if ((unsigned long )size >= 2097152UL - (unsigned long )off) { wil_err(wil, "Requested block does not fit into memory: off = 0x%08x size = 0x%08x\n", off, size); return ((void *)0); } else { } return (a); } } static int wil_ioc_memio_dword(struct wil6210_priv *wil , void *data ) { struct wil_memio io ; void *a ; bool need_copy ; unsigned long tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; unsigned long tmp___2 ; { need_copy = 0; tmp = copy_from_user((void *)(& io), (void const *)data, 12UL); if (tmp != 0UL) { return (-14); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_ioc_memio_dword"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ioctl.c"; descriptor.format = "DBG[IOC ]IO: addr = 0x%08x val = 0x%08x op = 0x%08x\n"; descriptor.lineno = 68U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[IOC ]IO: addr = 0x%08x val = 0x%08x op = 0x%08x\n", io.addr, io.val, io.op); } else { } wil_dbg_trace(wil, "DBG[IOC ]IO: addr = 0x%08x val = 0x%08x op = 0x%08x\n", io.addr, io.val, io.op); a = wil_ioc_addr(wil, io.addr, 4U, (enum wil_memio_op )io.op); if ((unsigned long )a == (unsigned long )((void *)0)) { wil_err(wil, "invalid address 0x%08x, op = 0x%08x\n", io.addr, io.op); return (-22); } else { } switch (io.op & 255U) { case 0U: io.val = ioread32(a); need_copy = 1; goto ldv_48286; case 1U: iowrite32(io.val, a); __asm__ volatile ("sfence": : : "memory"); goto ldv_48286; default: wil_err(wil, "Unsupported operation, op = 0x%08x\n", io.op); return (-22); } ldv_48286: ; if ((int )need_copy) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_ioc_memio_dword"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ioctl.c"; descriptor___0.format = "DBG[IOC ]IO done: addr = 0x%08x val = 0x%08x op = 0x%08x\n"; descriptor___0.lineno = 94U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[IOC ]IO done: addr = 0x%08x val = 0x%08x op = 0x%08x\n", io.addr, io.val, io.op); } else { } wil_dbg_trace(wil, "DBG[IOC ]IO done: addr = 0x%08x val = 0x%08x op = 0x%08x\n", io.addr, io.val, io.op); tmp___2 = copy_to_user(data, (void const *)(& io), 12UL); if (tmp___2 != 0UL) { return (-14); } else { } } else { } return (0); } } static int wil_ioc_memio_block(struct wil6210_priv *wil , void *data ) { struct wil_memio_block io ; void *block ; void *a ; int rc ; unsigned long tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; unsigned long tmp___2 ; unsigned long tmp___3 ; struct _ddebug descriptor___1 ; long tmp___4 ; { rc = 0; tmp = copy_from_user((void *)(& io), (void const *)data, 24UL); if (tmp != 0UL) { return (-14); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_ioc_memio_block"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ioctl.c"; descriptor.format = "DBG[IOC ]IO: addr = 0x%08x size = 0x%08x op = 0x%08x\n"; descriptor.lineno = 113U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[IOC ]IO: addr = 0x%08x size = 0x%08x op = 0x%08x\n", io.addr, io.size, io.op); } else { } wil_dbg_trace(wil, "DBG[IOC ]IO: addr = 0x%08x size = 0x%08x op = 0x%08x\n", io.addr, io.size, io.op); if ((io.size & 3U) != 0U) { wil_err(wil, "size is not multiple of 4: 0x%08x\n", io.size); return (-22); } else { } a = wil_ioc_addr(wil, io.addr, io.size, (enum wil_memio_op )io.op); if ((unsigned long )a == (unsigned long )((void *)0)) { wil_err(wil, "invalid address 0x%08x, op = 0x%08x\n", io.addr, io.op); return (-22); } else { } block = kmalloc((size_t )io.size, 131280U); if ((unsigned long )block == (unsigned long )((void *)0)) { return (-12); } else { } switch (io.op & 255U) { case 0U: wil_memcpy_fromio_32(block, (void const volatile *)a, (size_t )io.size); descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_ioc_memio_block"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ioctl.c"; descriptor___0.format = "DBG[IOC ]Read "; descriptor___0.lineno = 136U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { print_hex_dump("\017", "DBG[IOC ]Read ", 2, 16, 1, (void const *)block, (size_t )io.size, 1); } else { } tmp___2 = copy_to_user(io.block, (void const *)block, (unsigned long )io.size); if (tmp___2 != 0UL) { rc = -14; goto out_free; } else { } goto ldv_48303; case 1U: tmp___3 = copy_from_user(block, (void const *)io.block, (unsigned long )io.size); if (tmp___3 != 0UL) { rc = -14; goto out_free; } else { } wil_memcpy_toio_32((void volatile *)a, (void const *)block, (size_t )io.size); __asm__ volatile ("sfence": : : "memory"); descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_ioc_memio_block"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ioctl.c"; descriptor___1.format = "DBG[IOC ]Write "; descriptor___1.lineno = 149U; descriptor___1.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___4 != 0L) { print_hex_dump("\017", "DBG[IOC ]Write ", 2, 16, 1, (void const *)block, (size_t )io.size, 1); } else { } goto ldv_48303; default: wil_err(wil, "Unsupported operation, op = 0x%08x\n", io.op); rc = -22; goto ldv_48303; } ldv_48303: ; out_free: kfree((void const *)block); return (rc); } } int wil_ioctl(struct wil6210_priv *wil , void *data , int cmd ) { int tmp ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; { switch (cmd) { case 35314: tmp = wil_ioc_memio_dword(wil, data); return (tmp); case 35315: tmp___0 = wil_ioc_memio_block(wil, data); return (tmp___0); default: descriptor.modname = "wil6210"; descriptor.function = "wil_ioctl"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ioctl.c"; descriptor.format = "DBG[IOC ]Unsupported IOCTL 0x%04x\n"; descriptor.lineno = 170U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[IOC ]Unsupported IOCTL 0x%04x\n", cmd); } else { } wil_dbg_trace(wil, "DBG[IOC ]Unsupported IOCTL 0x%04x\n", cmd); return (-515); } } } bool ldv_queue_work_on_469(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_470(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_471(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_472(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_473(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_474(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_475(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_476(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_477(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_478(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_479(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_480(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_481(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_507(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_505(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_508(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_509(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_504(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_506(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_510(struct mutex *ldv_func_arg1 ) ; bool ldv_queue_work_on_499(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_501(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_500(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_503(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_502(struct workqueue_struct *ldv_func_arg1 ) ; extern int request_firmware(struct firmware const ** , char const * , struct device * ) ; extern void release_firmware(struct firmware const * ) ; extern u32 crc32_le(u32 , unsigned char const * , size_t ) ; extern void __const_udelay(unsigned long ) ; int ldv_request_threaded_irq_511(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; static void wil_memset_toio_32(void volatile *dst , u32 val , size_t count ) { u32 volatile *d ; u32 volatile *tmp ; { d = (u32 volatile *)dst; count = count + 4UL; goto ldv_49248; ldv_49247: tmp = d; d = d + 1; __writel(val, (void volatile *)tmp); count = count - 4UL; ldv_49248: ; if (count > 4UL) { goto ldv_49247; } else { } return; } } static int wil_fw_verify(struct wil6210_priv *wil , u8 const *data , size_t size ) { struct wil_fw_record_head const *hdr ; struct wil_fw_record_file_header fh ; struct wil_fw_record_file_header const *fh_ ; u32 crc ; u32 dlen ; { hdr = (struct wil_fw_record_head const *)data; if ((size & 3UL) != 0UL) { wil_err(wil, "ERR[ FW ]image size not aligned: %zu\n", size); return (-22); } else { } if (size <= 59UL) { wil_err(wil, "ERR[ FW ]file too short: %zu bytes\n", size); return (-22); } else { } if ((unsigned int )((unsigned short )hdr->type) != 6U) { wil_err(wil, "ERR[ FW ]no file header\n"); return (-22); } else { } fh_ = (struct wil_fw_record_file_header const *)hdr + 1U; dlen = fh_->data_len; if ((dlen & 3U) != 0U) { wil_err(wil, "ERR[ FW ]data length not aligned: %lu\n", (unsigned long )dlen); return (-22); } else { } if ((size_t )dlen > size) { wil_err(wil, "ERR[ FW ]file truncated at %zu/%lu\n", size, (unsigned long )dlen); return (-22); } else { } if (dlen <= 59U) { wil_err(wil, "ERR[ FW ]data length too short: %lu\n", (unsigned long )dlen); return (-22); } else { } if ((unsigned int )fh_->signature != 909259056U) { wil_err(wil, "ERR[ FW ]bad header signature: 0x%08x\n", fh_->signature); return (-22); } else { } if ((unsigned int )fh_->version > 1U) { wil_err(wil, "ERR[ FW ]unsupported header version: %d\n", fh_->version); return (-22); } else { } fh = *fh_; fh.crc = 0U; crc = crc32_le(4294967295U, (unsigned char const *)hdr, 8UL); crc = crc32_le(crc, (unsigned char const *)(& fh), 52UL); crc = crc32_le(crc, (unsigned char const *)fh_ + 1U, (unsigned long )dlen - 60UL); crc = ~ crc; if ((u32 )fh_->crc != crc) { wil_err(wil, "ERR[ FW ]checksum mismatch: calculated for %lu bytes 0x%08x != 0x%08x\n", (unsigned long )dlen, crc, fh_->crc); return (-22); } else { } return ((int )dlen); } } static int fw_handle_comment(struct wil6210_priv *wil , void const *data , size_t size ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "fw_handle_comment"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]"; descriptor.lineno = 124U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { print_hex_dump("\017", "DBG[ FW ]", 2, 16, 1, data, size, 1); } else { } return (0); } } static int fw_handle_data(struct wil6210_priv *wil , void const *data , size_t size ) { struct wil_fw_record_data const *d ; void *dst ; size_t s ; struct _ddebug descriptor ; long tmp ; { d = (struct wil_fw_record_data const *)data; s = size - 4UL; if (size <= 7UL) { wil_err(wil, "ERR[ FW ]data record too short: %zu\n", size); return (-22); } else { } dst = wmi_buffer(wil, d->addr); if ((unsigned long )dst == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad address: 0x%08x\n", d->addr); return (-22); } else { } descriptor.modname = "wil6210"; descriptor.function = "fw_handle_data"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]write [0x%08x] <== %zu bytes\n"; descriptor.lineno = 143U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]write [0x%08x] <== %zu bytes\n", d->addr, s); } else { } wil_dbg_trace(wil, "DBG[ FW ]write [0x%08x] <== %zu bytes\n", d->addr, s); wil_memcpy_toio_32((void volatile *)dst, (void const *)(& d->data), s); __asm__ volatile ("sfence": : : "memory"); return (0); } } static int fw_handle_fill(struct wil6210_priv *wil , void const *data , size_t size ) { struct wil_fw_record_fill const *d ; void *dst ; u32 v ; size_t s ; struct _ddebug descriptor ; long tmp ; { d = (struct wil_fw_record_fill const *)data; s = (unsigned long )d->size; if (size != 12UL) { wil_err(wil, "ERR[ FW ]bad size for fill record: %zu\n", size); return (-22); } else { } if (s <= 3UL) { wil_err(wil, "ERR[ FW ]fill size too short: %zu\n", s); return (-22); } else { } if ((s & 3UL) != 0UL) { wil_err(wil, "ERR[ FW ]fill size not aligned: %zu\n", s); return (-22); } else { } dst = wmi_buffer(wil, d->addr); if ((unsigned long )dst == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad address: 0x%08x\n", d->addr); return (-22); } else { } v = d->value; descriptor.modname = "wil6210"; descriptor.function = "fw_handle_fill"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]fill [0x%08x] <== 0x%08x, %zu bytes\n"; descriptor.lineno = 177U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]fill [0x%08x] <== 0x%08x, %zu bytes\n", d->addr, v, s); } else { } wil_dbg_trace(wil, "DBG[ FW ]fill [0x%08x] <== 0x%08x, %zu bytes\n", d->addr, v, s); wil_memset_toio_32((void volatile *)dst, v, s); __asm__ volatile ("sfence": : : "memory"); return (0); } } static int fw_handle_file_header(struct wil6210_priv *wil , void const *data , size_t size ) { struct wil_fw_record_file_header const *d ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; { d = (struct wil_fw_record_file_header const *)data; if (size != 52UL) { wil_err(wil, "ERR[ FW ]file header length incorrect: %zu\n", size); return (-22); } else { } descriptor.modname = "wil6210"; descriptor.function = "fw_handle_file_header"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]new file, ver. %d, %i bytes\n"; descriptor.lineno = 195U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]new file, ver. %d, %i bytes\n", d->version, d->data_len); } else { } wil_dbg_trace(wil, "DBG[ FW ]new file, ver. %d, %i bytes\n", d->version, d->data_len); descriptor___0.modname = "wil6210"; descriptor___0.function = "fw_handle_file_header"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor___0.format = "DBG[ FW ]"; descriptor___0.lineno = 197U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { print_hex_dump("\017", "DBG[ FW ]", 2, 16, 1, (void const *)(& d->comment), 32UL, 1); } else { } return (0); } } static int fw_handle_direct_write(struct wil6210_priv *wil , void const *data , size_t size ) { struct wil_fw_record_direct_write const *d ; struct wil_fw_data_dwrite const *block ; int n ; int i ; void *dst ; u32 m ; u32 v ; u32 x ; u32 y ; struct _ddebug descriptor ; long tmp ; { d = (struct wil_fw_record_direct_write const *)data; block = (struct wil_fw_data_dwrite const *)(& d->data); if (size % 12UL != 0UL) { wil_err(wil, "ERR[ FW ]record size not aligned on %zu: %zu\n", 12UL, size); return (-22); } else { } n = (int )(size / 12UL); i = 0; goto ldv_49314; ldv_49313: m = (block + (unsigned long )i)->mask; v = (block + (unsigned long )i)->value; dst = wmi_buffer(wil, (block + (unsigned long )i)->addr); if ((unsigned long )dst == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad address: 0x%08x\n", (block + (unsigned long )i)->addr); return (-22); } else { } x = ioread32(dst); y = (x & m) | (~ m & v); descriptor.modname = "wil6210"; descriptor.function = "fw_handle_direct_write"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]write [0x%08x] <== 0x%08x (old 0x%08x val 0x%08x mask 0x%08x)\n"; descriptor.lineno = 228U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]write [0x%08x] <== 0x%08x (old 0x%08x val 0x%08x mask 0x%08x)\n", (block + (unsigned long )i)->addr, y, x, v, m); } else { } wil_dbg_trace(wil, "DBG[ FW ]write [0x%08x] <== 0x%08x (old 0x%08x val 0x%08x mask 0x%08x)\n", (block + (unsigned long )i)->addr, y, x, v, m); iowrite32(y, dst); __asm__ volatile ("sfence": : : "memory"); i = i + 1; ldv_49314: ; if (i < n) { goto ldv_49313; } else { } return (0); } } static int gw_write(struct wil6210_priv *wil , void *gwa_addr , void *gwa_cmd , void *gwa_ctl , u32 gw_cmd , u32 a ) { unsigned int delay ; unsigned int tmp ; unsigned int tmp___0 ; { delay = 0U; iowrite32(a, gwa_addr); iowrite32(gw_cmd, gwa_cmd); __asm__ volatile ("sfence": : : "memory"); iowrite32(1073741824U, gwa_ctl); ldv_49325: __const_udelay(4295UL); tmp = delay; delay = delay + 1U; if (tmp > 100U) { wil_err(wil, "ERR[ FW ]gw timeout\n"); return (-22); } else { } tmp___0 = ioread32(gwa_ctl); if (((unsigned long )tmp___0 & 536870912UL) != 0UL) { goto ldv_49325; } else { } return (0); } } static int fw_handle_gateway_data(struct wil6210_priv *wil , void const *data , size_t size ) { struct wil_fw_record_gateway_data const *d ; struct wil_fw_data_gw const *block ; void *gwa_addr ; void *gwa_val ; void *gwa_cmd ; void *gwa_ctl ; u32 gw_cmd ; int n ; int i ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; int rc ; u32 a ; u32 v ; struct _ddebug descriptor___1 ; long tmp___1 ; { d = (struct wil_fw_record_gateway_data const *)data; block = (struct wil_fw_data_gw const *)(& d->data); if (size <= 27UL) { wil_err(wil, "ERR[ FW ]gateway record too short: %zu\n", size); return (-22); } else { } if (((size - 20UL) & 7UL) != 0UL) { wil_err(wil, "ERR[ FW ]gateway record data size not aligned on %zu: %zu\n", 8UL, size - 20UL); return (-22); } else { } n = (int )((size - 20UL) / 8UL); gw_cmd = d->command; descriptor.modname = "wil6210"; descriptor.function = "fw_handle_gateway_data"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]gw write record [%3d] blocks, cmd 0x%08x\n"; descriptor.lineno = 286U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]gw write record [%3d] blocks, cmd 0x%08x\n", n, gw_cmd); } else { } wil_dbg_trace(wil, "DBG[ FW ]gw write record [%3d] blocks, cmd 0x%08x\n", n, gw_cmd); gwa_addr = wmi_buffer(wil, d->gateway_addr_addr); if ((unsigned long )gwa_addr == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_addr_addr: 0x%08x\n", d->gateway_addr_addr); return (-22); } else { } gwa_val = wmi_buffer(wil, d->gateway_value_addr); if ((unsigned long )gwa_val == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_value_addr: 0x%08x\n", d->gateway_value_addr); return (-22); } else { } gwa_cmd = wmi_buffer(wil, d->gateway_cmd_addr); if ((unsigned long )gwa_cmd == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_cmd_addr: 0x%08x\n", d->gateway_cmd_addr); return (-22); } else { } gwa_ctl = wmi_buffer(wil, d->gateway_ctrl_address); if ((unsigned long )gwa_ctl == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_ctrl_address: 0x%08x\n", d->gateway_ctrl_address); return (-22); } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "fw_handle_gateway_data"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor___0.format = "DBG[ FW ]gw addresses: addr 0x%08x val 0x%08x cmd 0x%08x ctl 0x%08x\n"; descriptor___0.lineno = 298U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]gw addresses: addr 0x%08x val 0x%08x cmd 0x%08x ctl 0x%08x\n", d->gateway_addr_addr, d->gateway_value_addr, d->gateway_cmd_addr, d->gateway_ctrl_address); } else { } wil_dbg_trace(wil, "DBG[ FW ]gw addresses: addr 0x%08x val 0x%08x cmd 0x%08x ctl 0x%08x\n", d->gateway_addr_addr, d->gateway_value_addr, d->gateway_cmd_addr, d->gateway_ctrl_address); i = 0; goto ldv_49349; ldv_49348: a = (block + (unsigned long )i)->addr; v = (block + (unsigned long )i)->value; descriptor___1.modname = "wil6210"; descriptor___1.function = "fw_handle_gateway_data"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor___1.format = "DBG[ FW ] gw write[%3d] [0x%08x] <== 0x%08x\n"; descriptor___1.lineno = 306U; descriptor___1.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ] gw write[%3d] [0x%08x] <== 0x%08x\n", i, a, v); } else { } wil_dbg_trace(wil, "DBG[ FW ] gw write[%3d] [0x%08x] <== 0x%08x\n", i, a, v); iowrite32(v, gwa_val); rc = gw_write(wil, gwa_addr, gwa_cmd, gwa_ctl, gw_cmd, a); if (rc != 0) { return (rc); } else { } i = i + 1; ldv_49349: ; if (i < n) { goto ldv_49348; } else { } return (0); } } static int fw_handle_gateway_data4(struct wil6210_priv *wil , void const *data , size_t size ) { struct wil_fw_record_gateway_data4 const *d ; struct wil_fw_data_gw4 const *block ; void *gwa_addr ; void *gwa_val[4U] ; void *gwa_cmd ; void *gwa_ctl ; u32 gw_cmd ; int n ; int i ; int k ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; int rc ; u32 a ; u32 v[4U] ; struct _ddebug descriptor___2 ; long tmp___2 ; struct _ddebug descriptor___3 ; long tmp___3 ; { d = (struct wil_fw_record_gateway_data4 const *)data; block = (struct wil_fw_data_gw4 const *)(& d->data); if (size <= 51UL) { wil_err(wil, "ERR[ FW ]gateway4 record too short: %zu\n", size); return (-22); } else { } if ((size - 32UL) % 20UL != 0UL) { wil_err(wil, "ERR[ FW ]gateway4 record data size not aligned on %zu: %zu\n", 20UL, size - 32UL); return (-22); } else { } n = (int )((size - 32UL) / 20UL); gw_cmd = d->command; descriptor.modname = "wil6210"; descriptor.function = "fw_handle_gateway_data4"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]gw4 write record [%3d] blocks, cmd 0x%08x\n"; descriptor.lineno = 345U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]gw4 write record [%3d] blocks, cmd 0x%08x\n", n, gw_cmd); } else { } wil_dbg_trace(wil, "DBG[ FW ]gw4 write record [%3d] blocks, cmd 0x%08x\n", n, gw_cmd); gwa_addr = wmi_buffer(wil, d->gateway_addr_addr); if ((unsigned long )gwa_addr == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_addr_addr: 0x%08x\n", d->gateway_addr_addr); return (-22); } else { } k = 0; goto ldv_49373; ldv_49372: gwa_val[k] = wmi_buffer(wil, d->gateway_value_addr[k]); if ((unsigned long )gwa_val[k] == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_value_addr: 0x%08x\n", d->gateway_value_addr[k]); return (-22); } else { } k = k + 1; ldv_49373: ; if ((unsigned int )k <= 3U) { goto ldv_49372; } else { } gwa_cmd = wmi_buffer(wil, d->gateway_cmd_addr); if ((unsigned long )gwa_cmd == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_cmd_addr: 0x%08x\n", d->gateway_cmd_addr); return (-22); } else { } gwa_ctl = wmi_buffer(wil, d->gateway_ctrl_address); if ((unsigned long )gwa_ctl == (unsigned long )((void *)0)) { wil_err(wil, "ERR[ FW ]bad gateway_ctrl_address: 0x%08x\n", d->gateway_ctrl_address); return (-22); } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "fw_handle_gateway_data4"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor___0.format = "DBG[ FW ]gw4 addresses: addr 0x%08x cmd 0x%08x ctl 0x%08x\n"; descriptor___0.lineno = 357U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]gw4 addresses: addr 0x%08x cmd 0x%08x ctl 0x%08x\n", d->gateway_addr_addr, d->gateway_cmd_addr, d->gateway_ctrl_address); } else { } wil_dbg_trace(wil, "DBG[ FW ]gw4 addresses: addr 0x%08x cmd 0x%08x ctl 0x%08x\n", d->gateway_addr_addr, d->gateway_cmd_addr, d->gateway_ctrl_address); descriptor___1.modname = "wil6210"; descriptor___1.function = "fw_handle_gateway_data4"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor___1.format = "DBG[ FW ]val addresses: "; descriptor___1.lineno = 360U; descriptor___1.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___1 != 0L) { print_hex_dump("\017", "DBG[ FW ]val addresses: ", 0, 16, 4, (void const *)(& d->gateway_value_addr), 16UL, 0); } else { } i = 0; goto ldv_49395; ldv_49394: a = (block + (unsigned long )i)->addr; k = 0; goto ldv_49385; ldv_49384: v[k] = (block + (unsigned long )i)->value[k]; k = k + 1; ldv_49385: ; if ((unsigned int )k <= 3U) { goto ldv_49384; } else { } descriptor___2.modname = "wil6210"; descriptor___2.function = "fw_handle_gateway_data4"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor___2.format = "DBG[ FW ] gw4 write[%3d] [0x%08x] <==\n"; descriptor___2.lineno = 370U; descriptor___2.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ] gw4 write[%3d] [0x%08x] <==\n", i, a); } else { } wil_dbg_trace(wil, "DBG[ FW ] gw4 write[%3d] [0x%08x] <==\n", i, a); descriptor___3.modname = "wil6210"; descriptor___3.function = "fw_handle_gateway_data4"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor___3.format = "DBG[ FW ] val "; descriptor___3.lineno = 372U; descriptor___3.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___3 != 0L) { print_hex_dump("\017", "DBG[ FW ] val ", 0, 16, 4, (void const *)(& v), 16UL, 0); } else { } k = 0; goto ldv_49392; ldv_49391: iowrite32(v[k], gwa_val[k]); k = k + 1; ldv_49392: ; if ((unsigned int )k <= 3U) { goto ldv_49391; } else { } rc = gw_write(wil, gwa_addr, gwa_cmd, gwa_ctl, gw_cmd, a); if (rc != 0) { return (rc); } else { } i = i + 1; ldv_49395: ; if (i < n) { goto ldv_49394; } else { } return (0); } } static struct __anonstruct_wil_fw_handlers_370 const wil_fw_handlers[7U] = { {1, & fw_handle_comment}, {2, & fw_handle_data}, {3, & fw_handle_fill}, {6, & fw_handle_file_header}, {7, & fw_handle_direct_write}, {8, & fw_handle_gateway_data}, {9, & fw_handle_gateway_data4}}; static int wil_fw_handle_record(struct wil6210_priv *wil , int type , void const *data , size_t size ) { int i ; int tmp ; { i = 0; goto ldv_49414; ldv_49413: ; if ((int )wil_fw_handlers[i].type == type) { tmp = (*(wil_fw_handlers[i].handler))(wil, data, size); return (tmp); } else { } i = i + 1; ldv_49414: ; if ((unsigned int )i <= 6U) { goto ldv_49413; } else { } wil_err(wil, "ERR[ FW ]unknown record type: %d\n", type); return (-22); } } static int wil_fw_load(struct wil6210_priv *wil , void const *data , size_t size ) { int rc ; struct wil_fw_record_head const *hdr ; size_t s ; size_t hdr_sz ; { rc = 0; hdr = (struct wil_fw_record_head const *)data; ldv_49426: ; if (size <= 7UL) { goto ldv_49425; } else { } hdr_sz = (size_t )hdr->size; s = hdr_sz + 8UL; if (s > size) { goto ldv_49425; } else { } if ((hdr_sz & 3UL) != 0UL) { wil_err(wil, "ERR[ FW ]unaligned record size: %zu\n", hdr_sz); return (-22); } else { } rc = wil_fw_handle_record(wil, (int )hdr->type, (void const *)hdr + 1U, hdr_sz); if (rc != 0) { return (rc); } else { } hdr = hdr + s; size = size - s; goto ldv_49426; ldv_49425: ; if (size != 0UL) { wil_err(wil, "ERR[ FW ]unprocessed bytes: %zu\n", size); if (size > 7UL) { wil_err(wil, "ERR[ FW ]Stop at offset %ld record type %d [%zd bytes]\n", (long )hdr - (long )data, (int )hdr->type, hdr_sz); } else { } return (-22); } else { } return (rc); } } int wil_request_firmware(struct wil6210_priv *wil , char const *name ) { int rc ; int rc1 ; struct firmware const *fw ; size_t sz ; void const *d ; struct device *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wiphy_dev((wil->wdev)->wiphy); rc = request_firmware(& fw, name, tmp); if (rc != 0) { wil_err(wil, "ERR[ FW ]Failed to load firmware %s\n", name); return (rc); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_request_firmware"; descriptor.filename = "/work/ldvuser/mutilin/launch/inst/current/envs/linux-4.2-rc1.tar.xz/linux-4.2-rc1/drivers/net/wireless/ath/wil6210/fw_inc.c"; descriptor.format = "DBG[ FW ]Loading <%s>, %zu bytes\n"; descriptor.lineno = 477U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[ FW ]Loading <%s>, %zu bytes\n", name, fw->size); } else { } wil_dbg_trace(wil, "DBG[ FW ]Loading <%s>, %zu bytes\n", name, fw->size); sz = fw->size; d = (void const *)fw->data; goto ldv_49440; ldv_49439: rc1 = wil_fw_verify(wil, (u8 const *)d, sz); if (rc1 < 0) { rc = rc1; goto out; } else { } rc = wil_fw_load(wil, d, (size_t )rc1); if (rc < 0) { goto out; } else { } sz = sz - (size_t )rc1; d = d + (unsigned long )rc1; ldv_49440: ; if (sz != 0UL) { goto ldv_49439; } else { } out: release_firmware(fw); return (rc); } } bool ldv_queue_work_on_499(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_500(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_501(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_502(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_503(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_504(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_505(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_506(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_507(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_508(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_509(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_510(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_511(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_539(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_534(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_537(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_540(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_543(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_544(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_546(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_547(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_549(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_550(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_535(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_536(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_538(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_542(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_545(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_548(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_lock_of_pmc_ctx(struct mutex *lock ) ; void ldv_mutex_unlock_lock_of_pmc_ctx(struct mutex *lock ) ; bool ldv_queue_work_on_529(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_531(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_530(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_533(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_532(struct workqueue_struct *ldv_func_arg1 ) ; int ldv_request_threaded_irq_541(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; static int wil_is_pmc_allocated(struct pmc_ctx *pmc ) { { return ((unsigned long )pmc->pring_va != (unsigned long )((struct vring_tx_desc *)0)); } } void wil_pmc_init(struct wil6210_priv *wil ) { struct lock_class_key __key ; { memset((void *)(& wil->pmc), 0, 200UL); __mutex_init(& wil->pmc.lock, "&wil->pmc.lock", & __key); return; } } void wil_pmc_alloc(struct wil6210_priv *wil , int num_descriptors , int descriptor_size ) { u32 i ; struct pmc_ctx *pmc ; struct device *dev ; struct device *tmp ; struct wmi_pmc_cmd pmc_cmd ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; void *tmp___2 ; struct _ddebug descriptor___0 ; long tmp___3 ; void *tmp___4 ; struct _ddebug descriptor___1 ; long tmp___5 ; struct vring_tx_desc *_d ; struct vring_tx_desc dd ; struct vring_tx_desc *d ; int j ; long tmp___6 ; u32 *p ; struct _ddebug descriptor___2 ; long tmp___7 ; struct _ddebug descriptor___3 ; long tmp___8 ; { pmc = & wil->pmc; tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; pmc_cmd.op = 0U; pmc_cmd.reserved = (unsigned char)0; pmc_cmd.ring_size = (unsigned short)0; pmc_cmd.mem_base = 0ULL; ldv_mutex_lock_542(& pmc->lock); tmp___0 = wil_is_pmc_allocated(pmc); if (tmp___0 != 0) { wil_err(wil, "%s: OLD_ERROR pmc is already allocated\n", "wil_pmc_alloc"); goto no_release_err; } else { } pmc->num_descriptors = num_descriptors; pmc->descriptor_size = descriptor_size; descriptor.modname = "wil6210"; descriptor.function = "wil_pmc_alloc"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor.format = "DBG[MISC]%s: %d descriptors x %d bytes each\n"; descriptor.lineno = 70U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: %d descriptors x %d bytes each\n", "wil_pmc_alloc", num_descriptors, descriptor_size); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: %d descriptors x %d bytes each\n", "wil_pmc_alloc", num_descriptors, descriptor_size); tmp___2 = kcalloc((size_t )num_descriptors, 16UL, 208U); pmc->descriptors = (struct desc_alloc_info *)tmp___2; if ((unsigned long )pmc->descriptors == (unsigned long )((struct desc_alloc_info *)0)) { wil_err(wil, "%s: OLD_ERROR allocating pmc skb list\n", "wil_pmc_alloc"); goto no_release_err; } else { } descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_pmc_alloc"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___0.format = "DBG[MISC]%s: allocated descriptors info list %p\n"; descriptor___0.lineno = 83U; descriptor___0.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: allocated descriptors info list %p\n", "wil_pmc_alloc", pmc->descriptors); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: allocated descriptors info list %p\n", "wil_pmc_alloc", pmc->descriptors); tmp___4 = dma_alloc_attrs(dev, (unsigned long )num_descriptors * 32UL, & pmc->pring_pa, 208U, (struct dma_attrs *)0); pmc->pring_va = (struct vring_tx_desc *)tmp___4; descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_pmc_alloc"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___1.format = "DBG[MISC]%s: allocated pring %p => %pad. %zd x %d = total %zd bytes\n"; descriptor___1.lineno = 100U; descriptor___1.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: allocated pring %p => %pad. %zd x %d = total %zd bytes\n", "wil_pmc_alloc", pmc->pring_va, & pmc->pring_pa, 32UL, num_descriptors, (unsigned long )num_descriptors * 32UL); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: allocated pring %p => %pad. %zd x %d = total %zd bytes\n", "wil_pmc_alloc", pmc->pring_va, & pmc->pring_pa, 32UL, num_descriptors, (unsigned long )num_descriptors * 32UL); if ((unsigned long )pmc->pring_va == (unsigned long )((struct vring_tx_desc *)0)) { wil_err(wil, "%s: OLD_ERROR allocating pmc pring\n", "wil_pmc_alloc"); goto release_pmc_skb_list; } else { } i = 0U; goto ldv_49147; ldv_49146: _d = pmc->pring_va + (unsigned long )i; d = & dd; j = 0; (pmc->descriptors + (unsigned long )i)->va = dma_alloc_attrs(dev, (size_t )descriptor_size, & (pmc->descriptors + (unsigned long )i)->pa, 208U, (struct dma_attrs *)0); tmp___6 = ldv__builtin_expect((unsigned long )(pmc->descriptors + (unsigned long )i)->va == (unsigned long )((void *)0), 0L); if (tmp___6 != 0L) { wil_err(wil, "%s: OLD_ERROR allocating pmc descriptor %d", "wil_pmc_alloc", i); goto release_pmc_skbs; } else { } j = 0; goto ldv_49144; ldv_49143: p = (u32 *)(pmc->descriptors + (unsigned long )i)->va + (unsigned long )j; *p = (unsigned int )j | 2964979712U; j = j + 1; ldv_49144: ; if ((unsigned long )j < (unsigned long )descriptor_size / 4UL) { goto ldv_49143; } else { } d->dma.addr.addr_low = (unsigned int )(pmc->descriptors + (unsigned long )i)->pa; d->dma.addr.addr_high = (unsigned short )((pmc->descriptors + (unsigned long )i)->pa >> 32ULL); d->dma.status = 0U; d->dma.length = (unsigned short )descriptor_size; d->dma.d0 = 1536U; *_d = *d; i = i + 1U; ldv_49147: ; if ((u32 )num_descriptors > i) { goto ldv_49146; } else { } descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_pmc_alloc"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___2.format = "DBG[MISC]%s: allocated successfully\n"; descriptor___2.lineno = 144U; descriptor___2.flags = 0U; tmp___7 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___7 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: allocated successfully\n", "wil_pmc_alloc"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: allocated successfully\n", "wil_pmc_alloc"); pmc_cmd.op = 0U; pmc_cmd.ring_size = (unsigned short )pmc->num_descriptors; pmc_cmd.mem_base = pmc->pring_pa; descriptor___3.modname = "wil6210"; descriptor___3.function = "wil_pmc_alloc"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___3.format = "DBG[MISC]%s: send WMI_PMC_CMD with ALLOCATE op\n"; descriptor___3.lineno = 150U; descriptor___3.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___8 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: send WMI_PMC_CMD with ALLOCATE op\n", "wil_pmc_alloc"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: send WMI_PMC_CMD with ALLOCATE op\n", "wil_pmc_alloc"); pmc->last_cmd_status = wmi_send(wil, 61519, (void *)(& pmc_cmd), 12); if (pmc->last_cmd_status != 0) { wil_err(wil, "%s: WMI_PMC_CMD with ALLOCATE op failed with status %d", "wil_pmc_alloc", pmc->last_cmd_status); goto release_pmc_skbs; } else { } ldv_mutex_unlock_543(& pmc->lock); return; release_pmc_skbs: wil_err(wil, "%s: exit on error: Releasing skbs...\n", "wil_pmc_alloc"); i = 0U; goto ldv_49152; ldv_49151: dma_free_attrs(dev, (size_t )descriptor_size, (pmc->descriptors + (unsigned long )i)->va, (pmc->descriptors + (unsigned long )i)->pa, (struct dma_attrs *)0); (pmc->descriptors + (unsigned long )i)->va = (void *)0; i = i + 1U; ldv_49152: ; if ((unsigned long )(pmc->descriptors + (unsigned long )i)->va != (unsigned long )((void *)0) && (u32 )num_descriptors > i) { goto ldv_49151; } else { } wil_err(wil, "%s: exit on error: Releasing pring...\n", "wil_pmc_alloc"); dma_free_attrs(dev, (unsigned long )num_descriptors * 32UL, (void *)pmc->pring_va, pmc->pring_pa, (struct dma_attrs *)0); pmc->pring_va = (struct vring_tx_desc *)0; release_pmc_skb_list: wil_err(wil, "%s: exit on error: Releasing descriptors info list...\n", "wil_pmc_alloc"); kfree((void const *)pmc->descriptors); pmc->descriptors = (struct desc_alloc_info *)0; no_release_err: pmc->last_cmd_status = -12; ldv_mutex_unlock_544(& pmc->lock); return; } } void wil_pmc_free(struct wil6210_priv *wil , int send_pmc_cmd ) { struct pmc_ctx *pmc ; struct device *dev ; struct device *tmp ; struct wmi_pmc_cmd pmc_cmd ; struct _ddebug descriptor ; long tmp___0 ; int tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; size_t buf_size ; struct _ddebug descriptor___1 ; long tmp___3 ; int i ; struct _ddebug descriptor___2 ; long tmp___4 ; struct _ddebug descriptor___3 ; long tmp___5 ; { pmc = & wil->pmc; tmp = wiphy_dev((wil->wdev)->wiphy); dev = tmp; pmc_cmd.op = 0U; pmc_cmd.reserved = (unsigned char)0; pmc_cmd.ring_size = (unsigned short)0; pmc_cmd.mem_base = 0ULL; ldv_mutex_lock_545(& pmc->lock); pmc->last_cmd_status = 0; tmp___1 = wil_is_pmc_allocated(pmc); if (tmp___1 == 0) { descriptor.modname = "wil6210"; descriptor.function = "wil_pmc_free"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor.format = "DBG[MISC]%s: Error, can\'t free - not allocated\n"; descriptor.lineno = 212U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: Error, can\'t free - not allocated\n", "wil_pmc_free"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: Error, can\'t free - not allocated\n", "wil_pmc_free"); pmc->last_cmd_status = -1; ldv_mutex_unlock_546(& pmc->lock); return; } else { } if (send_pmc_cmd != 0) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_pmc_free"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___0.format = "DBG[MISC]%s: send WMI_PMC_CMD with RELEASE op\n"; descriptor___0.lineno = 220U; descriptor___0.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: send WMI_PMC_CMD with RELEASE op\n", "wil_pmc_free"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: send WMI_PMC_CMD with RELEASE op\n", "wil_pmc_free"); pmc_cmd.op = 1U; pmc->last_cmd_status = wmi_send(wil, 61519, (void *)(& pmc_cmd), 12); if (pmc->last_cmd_status != 0) { wil_err(wil, "%s WMI_PMC_CMD with RELEASE op failed, status %d", "wil_pmc_free", pmc->last_cmd_status); } else { } } else { } if ((unsigned long )pmc->pring_va != (unsigned long )((struct vring_tx_desc *)0)) { buf_size = (unsigned long )pmc->num_descriptors * 32UL; descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_pmc_free"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___1.format = "DBG[MISC]%s: free pring va %p\n"; descriptor___1.lineno = 241U; descriptor___1.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___3 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: free pring va %p\n", "wil_pmc_free", pmc->pring_va); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: free pring va %p\n", "wil_pmc_free", pmc->pring_va); dma_free_attrs(dev, buf_size, (void *)pmc->pring_va, pmc->pring_pa, (struct dma_attrs *)0); pmc->pring_va = (struct vring_tx_desc *)0; } else { pmc->last_cmd_status = -2; } if ((unsigned long )pmc->descriptors != (unsigned long )((struct desc_alloc_info *)0)) { i = 0; goto ldv_49168; ldv_49167: dma_free_attrs(dev, (size_t )pmc->descriptor_size, (pmc->descriptors + (unsigned long )i)->va, (pmc->descriptors + (unsigned long )i)->pa, (struct dma_attrs *)0); (pmc->descriptors + (unsigned long )i)->va = (void *)0; i = i + 1; ldv_49168: ; if ((unsigned long )(pmc->descriptors + (unsigned long )i)->va != (unsigned long )((void *)0) && pmc->num_descriptors > i) { goto ldv_49167; } else { } descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_pmc_free"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___2.format = "DBG[MISC]%s: free descriptor info %d/%d\n"; descriptor___2.lineno = 261U; descriptor___2.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___4 != 0L) { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: free descriptor info %d/%d\n", "wil_pmc_free", i, pmc->num_descriptors); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: free descriptor info %d/%d\n", "wil_pmc_free", i, pmc->num_descriptors); descriptor___3.modname = "wil6210"; descriptor___3.function = "wil_pmc_free"; descriptor___3.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___3.format = "DBG[MISC]%s: free pmc descriptors info list %p\n"; descriptor___3.lineno = 264U; descriptor___3.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___5 != 0L) { __dynamic_netdev_dbg(& descriptor___3, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: free pmc descriptors info list %p\n", "wil_pmc_free", pmc->descriptors); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: free pmc descriptors info list %p\n", "wil_pmc_free", pmc->descriptors); kfree((void const *)pmc->descriptors); pmc->descriptors = (struct desc_alloc_info *)0; } else { pmc->last_cmd_status = -2; } ldv_mutex_unlock_547(& pmc->lock); return; } } int wil_pmc_last_cmd_status(struct wil6210_priv *wil ) { struct _ddebug descriptor ; long tmp ; { descriptor.modname = "wil6210"; descriptor.function = "wil_pmc_last_cmd_status"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor.format = "DBG[MISC]%s: status %d\n"; descriptor.lineno = 281U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: status %d\n", "wil_pmc_last_cmd_status", wil->pmc.last_cmd_status); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: status %d\n", "wil_pmc_last_cmd_status", wil->pmc.last_cmd_status); return (wil->pmc.last_cmd_status); } } ssize_t wil_pmc_read(struct file *filp , char *buf , size_t count , loff_t *f_pos ) { struct wil6210_priv *wil ; struct pmc_ctx *pmc ; size_t retval ; unsigned long long idx ; loff_t offset ; size_t pmc_size ; int tmp ; struct _ddebug descriptor ; long tmp___0 ; uint32_t __base ; uint32_t __rem ; struct _ddebug descriptor___0 ; long tmp___1 ; struct _ddebug descriptor___1 ; long tmp___2 ; ssize_t tmp___3 ; { wil = (struct wil6210_priv *)filp->private_data; pmc = & wil->pmc; retval = 0UL; pmc_size = (size_t )(pmc->descriptor_size * pmc->num_descriptors); ldv_mutex_lock_548(& pmc->lock); tmp = wil_is_pmc_allocated(pmc); if (tmp == 0) { wil_err(wil, "%s: error, pmc is not allocated!\n", "wil_pmc_read"); pmc->last_cmd_status = -1; ldv_mutex_unlock_549(& pmc->lock); return (-1L); } else { } descriptor.modname = "wil6210"; descriptor.function = "wil_pmc_read"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor.format = "DBG[MISC]%s: size %u, pos %lld\n"; descriptor.lineno = 311U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: size %u, pos %lld\n", "wil_pmc_read", (unsigned int )count, *f_pos); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: size %u, pos %lld\n", "wil_pmc_read", (unsigned int )count, *f_pos); pmc->last_cmd_status = 0; idx = (unsigned long long )*f_pos; __base = (uint32_t )pmc->descriptor_size; __rem = (uint32_t )(idx % (unsigned long long )__base); idx = idx / (unsigned long long )__base; offset = (loff_t )((unsigned long long )*f_pos - (unsigned long long )pmc->descriptor_size * idx); if ((unsigned long long )*f_pos >= (unsigned long long )pmc_size) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_pmc_read"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___0.format = "DBG[MISC]%s: reached end of pmc buf: %lld >= %u\n"; descriptor___0.lineno = 321U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: reached end of pmc buf: %lld >= %u\n", "wil_pmc_read", *f_pos, (unsigned int )pmc_size); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: reached end of pmc buf: %lld >= %u\n", "wil_pmc_read", *f_pos, (unsigned int )pmc_size); pmc->last_cmd_status = -34; goto out; } else { } descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_pmc_read"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/pmc.c"; descriptor___1.format = "DBG[MISC]%s: read from pos %lld (descriptor %llu, offset %llu) %zu bytes\n"; descriptor___1.lineno = 328U; descriptor___1.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s: read from pos %lld (descriptor %llu, offset %llu) %zu bytes\n", "wil_pmc_read", *f_pos, idx, offset, count); } else { } wil_dbg_trace(wil, "DBG[MISC]%s: read from pos %lld (descriptor %llu, offset %llu) %zu bytes\n", "wil_pmc_read", *f_pos, idx, offset, count); tmp___3 = simple_read_from_buffer((void *)buf, count, & offset, (void const *)(pmc->descriptors + idx)->va, (size_t )pmc->descriptor_size); retval = (size_t )tmp___3; *f_pos = (loff_t )((unsigned long long )*f_pos + (unsigned long long )retval); out: ldv_mutex_unlock_550(& pmc->lock); return ((ssize_t )retval); } } loff_t wil_pmc_llseek(struct file *filp , loff_t off , int whence ) { loff_t newpos ; struct wil6210_priv *wil ; struct pmc_ctx *pmc ; size_t pmc_size ; { wil = (struct wil6210_priv *)filp->private_data; pmc = & wil->pmc; pmc_size = (size_t )(pmc->descriptor_size * pmc->num_descriptors); switch (whence) { case 0: newpos = off; goto ldv_49207; case 1: newpos = filp->f_pos + off; goto ldv_49207; case 2: newpos = (loff_t )pmc_size; goto ldv_49207; default: ; return (-22LL); } ldv_49207: ; if (newpos < 0LL) { return (-22LL); } else { } if ((unsigned long long )newpos > (unsigned long long )pmc_size) { newpos = (loff_t )pmc_size; } else { } filp->f_pos = newpos; return (newpos); } } bool ldv_queue_work_on_529(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_530(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_531(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_532(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_533(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_unlock_534(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_535(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_lock_536(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_537(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_538(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_539(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_540(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_541(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_mutex_lock_542(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock_of_pmc_ctx(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_543(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock_of_pmc_ctx(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_544(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock_of_pmc_ctx(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_545(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock_of_pmc_ctx(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_546(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock_of_pmc_ctx(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_547(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock_of_pmc_ctx(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_548(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock_of_pmc_ctx(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_549(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock_of_pmc_ctx(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_550(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock_of_pmc_ctx(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_mutex_trylock_585(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_583(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_586(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_587(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_582(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_584(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_588(struct mutex *ldv_func_arg1 ) ; bool ldv_queue_work_on_577(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_579(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_578(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_581(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_580(struct workqueue_struct *ldv_func_arg1 ) ; int ldv_request_threaded_irq_589(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; static char const __tpstrtab_wil6210_wmi_cmd[16U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'w', 'm', 'i', '_', 'c', 'm', 'd', '\000'}; struct tracepoint __tracepoint_wil6210_wmi_cmd = {(char const *)(& __tpstrtab_wil6210_wmi_cmd), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_wmi_event[18U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'w', 'm', 'i', '_', 'e', 'v', 'e', 'n', 't', '\000'}; struct tracepoint __tracepoint_wil6210_wmi_event = {(char const *)(& __tpstrtab_wil6210_wmi_event), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_log_err[16U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'l', 'o', 'g', '_', 'e', 'r', 'r', '\000'}; struct tracepoint __tracepoint_wil6210_log_err = {(char const *)(& __tpstrtab_wil6210_log_err), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_log_info[17U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'l', 'o', 'g', '_', 'i', 'n', 'f', 'o', '\000'}; struct tracepoint __tracepoint_wil6210_log_info = {(char const *)(& __tpstrtab_wil6210_log_info), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_log_dbg[16U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'l', 'o', 'g', '_', 'd', 'b', 'g', '\000'}; struct tracepoint __tracepoint_wil6210_log_dbg = {(char const *)(& __tpstrtab_wil6210_log_dbg), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_irq_pseudo[19U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'i', 'r', 'q', '_', 'p', 's', 'e', 'u', 'd', 'o', '\000'}; struct tracepoint __tracepoint_wil6210_irq_pseudo = {(char const *)(& __tpstrtab_wil6210_irq_pseudo), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_irq_rx[15U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'i', 'r', 'q', '_', 'r', 'x', '\000'}; struct tracepoint __tracepoint_wil6210_irq_rx = {(char const *)(& __tpstrtab_wil6210_irq_rx), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_irq_tx[15U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'i', 'r', 'q', '_', 't', 'x', '\000'}; struct tracepoint __tracepoint_wil6210_irq_tx = {(char const *)(& __tpstrtab_wil6210_irq_tx), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_irq_misc[17U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'i', 'r', 'q', '_', 'm', 'i', 's', 'c', '\000'}; struct tracepoint __tracepoint_wil6210_irq_misc = {(char const *)(& __tpstrtab_wil6210_irq_misc), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_irq_misc_thread[24U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'i', 'r', 'q', '_', 'm', 'i', 's', 'c', '_', 't', 'h', 'r', 'e', 'a', 'd', '\000'}; struct tracepoint __tracepoint_wil6210_irq_misc_thread = {(char const *)(& __tpstrtab_wil6210_irq_misc_thread), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_rx[11U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 'r', 'x', '\000'}; struct tracepoint __tracepoint_wil6210_rx = {(char const *)(& __tpstrtab_wil6210_rx), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_tx[11U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 't', 'x', '\000'}; struct tracepoint __tracepoint_wil6210_tx = {(char const *)(& __tpstrtab_wil6210_tx), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; static char const __tpstrtab_wil6210_tx_done[16U] = { 'w', 'i', 'l', '6', '2', '1', '0', '_', 't', 'x', '_', 'd', 'o', 'n', 'e', '\000'}; struct tracepoint __tracepoint_wil6210_tx_done = {(char const *)(& __tpstrtab_wil6210_tx_done), {{0}}, (void (*)(void))0, (void (*)(void))0, (struct tracepoint_func *)0}; __inline static bool seq_buf_has_overflowed(struct seq_buf *s ) { { return (s->len > s->size); } } __inline static bool trace_seq_has_overflowed(struct trace_seq *s ) { bool tmp ; int tmp___0 ; { if (s->full != 0) { tmp___0 = 1; } else { tmp = seq_buf_has_overflowed(& s->seq); if ((int )tmp) { tmp___0 = 1; } else { tmp___0 = 0; } } return ((bool )tmp___0); } } extern void trace_seq_printf(struct trace_seq * , char const * , ...) ; extern char const *trace_print_flags_seq(struct trace_seq * , char const * , unsigned long , struct trace_print_flags const * ) ; extern int trace_raw_output_prep(struct trace_iterator * , struct trace_event * ) ; __inline static enum print_line_t trace_handle_return(struct trace_seq *s ) { bool tmp ; { tmp = trace_seq_has_overflowed(s); return ((int )tmp ? 0 : 1); } } extern int trace_event_reg(struct trace_event_call * , enum trace_reg , void * ) ; extern int trace_event_raw_init(struct trace_event_call * ) ; extern int trace_define_field(struct trace_event_call * , char const * , char const * , int , int , int , int ) ; static enum print_line_t trace_raw_output_wil6210_wmi(struct trace_iterator *iter , int flags , struct trace_event *trace_event ) { struct trace_seq *s ; struct trace_seq *p ; struct trace_event_raw_wil6210_wmi *field ; int ret ; enum print_line_t tmp ; { s = & iter->seq; p = & iter->tmp_seq; field = (struct trace_event_raw_wil6210_wmi *)iter->ent; ret = trace_raw_output_prep(iter, trace_event); if (ret != 1) { return ((enum print_line_t )ret); } else { } trace_seq_printf(s, "MID %d id 0x%04x len %d timestamp %d\n", (int )field->mid, (int )field->id, (int )field->buf_len, field->timestamp); tmp = trace_handle_return(s); return (tmp); } } static enum print_line_t trace_raw_output_wil6210_log_event(struct trace_iterator *iter , int flags , struct trace_event *trace_event ) { struct trace_seq *s ; struct trace_seq *p ; struct trace_event_raw_wil6210_log_event *field ; int ret ; enum print_line_t tmp ; { s = & iter->seq; p = & iter->tmp_seq; field = (struct trace_event_raw_wil6210_log_event *)iter->ent; ret = trace_raw_output_prep(iter, trace_event); if (ret != 1) { return ((enum print_line_t )ret); } else { } trace_seq_printf(s, "%s\n", (char *)field + ((unsigned long )field->__data_loc_msg & 65535UL)); tmp = trace_handle_return(s); return (tmp); } } static enum print_line_t trace_raw_output_wil6210_irq_pseudo(struct trace_iterator *iter , int flags , struct trace_event *trace_event ) { struct trace_seq *s ; struct trace_seq *p ; struct trace_event_raw_wil6210_irq_pseudo *field ; int ret ; struct trace_print_flags __flags[4U] ; char const *tmp ; enum print_line_t tmp___0 ; { s = & iter->seq; p = & iter->tmp_seq; field = (struct trace_event_raw_wil6210_irq_pseudo *)iter->ent; ret = trace_raw_output_prep(iter, trace_event); if (ret != 1) { return ((enum print_line_t )ret); } else { } __flags[0].mask = 1UL; __flags[0].name = "Rx"; __flags[1].mask = 2UL; __flags[1].name = "Tx"; __flags[2].mask = 4UL; __flags[2].name = "Misc"; __flags[3].mask = 0xffffffffffffffffUL; __flags[3].name = (char const *)0; tmp = trace_print_flags_seq(p, "|", (unsigned long )field->x, (struct trace_print_flags const *)(& __flags)); trace_seq_printf(s, "cause 0x%08x : %s\n", field->x, tmp); tmp___0 = trace_handle_return(s); return (tmp___0); } } static enum print_line_t trace_raw_output_wil6210_irq(struct trace_iterator *iter , int flags , struct trace_event *trace_event ) { struct trace_seq *s ; struct trace_seq *p ; struct trace_event_raw_wil6210_irq *field ; int ret ; enum print_line_t tmp ; { s = & iter->seq; p = & iter->tmp_seq; field = (struct trace_event_raw_wil6210_irq *)iter->ent; ret = trace_raw_output_prep(iter, trace_event); if (ret != 1) { return ((enum print_line_t )ret); } else { } trace_seq_printf(s, "cause 0x%08x\n", field->x); tmp = trace_handle_return(s); return (tmp); } } static enum print_line_t trace_raw_output_wil6210_rx(struct trace_iterator *iter , int flags , struct trace_event *trace_event ) { struct trace_seq *s ; struct trace_seq *p ; struct trace_event_raw_wil6210_rx *field ; int ret ; enum print_line_t tmp ; { s = & iter->seq; p = & iter->tmp_seq; field = (struct trace_event_raw_wil6210_rx *)iter->ent; ret = trace_raw_output_prep(iter, trace_event); if (ret != 1) { return ((enum print_line_t )ret); } else { } trace_seq_printf(s, "index %d len %d mid %d cid %d tid %d mcs %d seq 0x%03x type 0x%1x subtype 0x%1x\n", (int )field->index, field->len, (int )field->mid, (int )field->cid, (int )field->tid, (int )field->mcs, (int )field->seq, (int )field->type, (int )field->subtype); tmp = trace_handle_return(s); return (tmp); } } static enum print_line_t trace_raw_output_wil6210_tx(struct trace_iterator *iter , int flags , struct trace_event *trace_event ) { struct trace_seq *s ; struct trace_seq *p ; struct trace_event_raw_wil6210_tx *field ; int ret ; enum print_line_t tmp ; { s = & iter->seq; p = & iter->tmp_seq; field = (struct trace_event_raw_wil6210_tx *)iter->ent; ret = trace_raw_output_prep(iter, trace_event); if (ret != 1) { return ((enum print_line_t )ret); } else { } trace_seq_printf(s, "vring %d index %d len %d frags %d\n", (int )field->vring, (int )field->index, field->len, (int )field->frags); tmp = trace_handle_return(s); return (tmp); } } static enum print_line_t trace_raw_output_wil6210_tx_done(struct trace_iterator *iter , int flags , struct trace_event *trace_event ) { struct trace_seq *s ; struct trace_seq *p ; struct trace_event_raw_wil6210_tx_done *field ; int ret ; enum print_line_t tmp ; { s = & iter->seq; p = & iter->tmp_seq; field = (struct trace_event_raw_wil6210_tx_done *)iter->ent; ret = trace_raw_output_prep(iter, trace_event); if (ret != 1) { return ((enum print_line_t )ret); } else { } trace_seq_printf(s, "vring %d index %d len %d err 0x%02x\n", (int )field->vring, (int )field->index, field->len, (int )field->err); tmp = trace_handle_return(s); return (tmp); } } static int trace_event_define_fields_wil6210_wmi(struct trace_event_call *event_call ) { int ret ; { ret = trace_define_field(event_call, "u8", "mid", 8, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u16", "id", 10, 2, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u32", "timestamp", 12, 4, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u16", "buf_len", 16, 2, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "__data_loc u8[]", "buf", 20, 4, 0, 0); return (ret); } } static int trace_event_define_fields_wil6210_log_event(struct trace_event_call *event_call ) { int ret ; { ret = trace_define_field(event_call, "__data_loc char[]", "msg", 8, 4, 1, 0); return (ret); } } static int trace_event_define_fields_wil6210_irq_pseudo(struct trace_event_call *event_call ) { int ret ; { ret = trace_define_field(event_call, "u32", "x", 8, 4, 0, 0); if (ret != 0) { return (ret); } else { } return (ret); } } static int trace_event_define_fields_wil6210_irq(struct trace_event_call *event_call ) { int ret ; { ret = trace_define_field(event_call, "u32", "x", 8, 4, 0, 0); if (ret != 0) { return (ret); } else { } return (ret); } } static int trace_event_define_fields_wil6210_rx(struct trace_event_call *event_call ) { int ret ; { ret = trace_define_field(event_call, "u16", "index", 8, 2, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "unsigned int", "len", 12, 4, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "mid", 16, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "cid", 17, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "tid", 18, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "type", 19, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "subtype", 20, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u16", "seq", 22, 2, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "mcs", 24, 1, 0, 0); if (ret != 0) { return (ret); } else { } return (ret); } } static int trace_event_define_fields_wil6210_tx(struct trace_event_call *event_call ) { int ret ; { ret = trace_define_field(event_call, "u8", "vring", 8, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "frags", 9, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u16", "index", 10, 2, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "unsigned int", "len", 12, 4, 0, 0); if (ret != 0) { return (ret); } else { } return (ret); } } static int trace_event_define_fields_wil6210_tx_done(struct trace_event_call *event_call ) { int ret ; { ret = trace_define_field(event_call, "u8", "vring", 8, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u8", "err", 9, 1, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "u16", "index", 10, 2, 0, 0); if (ret != 0) { return (ret); } else { } ret = trace_define_field(event_call, "unsigned int", "len", 12, 4, 0, 0); if (ret != 0) { return (ret); } else { } return (ret); } } void ldv_initialize_trace_event_class_22(void) { void *tmp ; { tmp = ldv_init_zalloc(144UL); event_class_wil6210_log_event_group0 = (struct trace_event_call *)tmp; return; } } void ldv_initialize_trace_event_class_19(void) { void *tmp ; { tmp = ldv_init_zalloc(144UL); event_class_wil6210_rx_group0 = (struct trace_event_call *)tmp; return; } } void ldv_initialize_trace_event_class_21(void) { void *tmp ; { tmp = ldv_init_zalloc(144UL); event_class_wil6210_irq_pseudo_group0 = (struct trace_event_call *)tmp; return; } } void ldv_initialize_trace_event_class_18(void) { void *tmp ; { tmp = ldv_init_zalloc(144UL); event_class_wil6210_tx_group0 = (struct trace_event_call *)tmp; return; } } void ldv_initialize_trace_event_class_17(void) { void *tmp ; { tmp = ldv_init_zalloc(144UL); event_class_wil6210_tx_done_group0 = (struct trace_event_call *)tmp; return; } } void ldv_initialize_trace_event_class_20(void) { void *tmp ; { tmp = ldv_init_zalloc(144UL); event_class_wil6210_irq_group0 = (struct trace_event_call *)tmp; return; } } void ldv_initialize_trace_event_class_23(void) { void *tmp ; { tmp = ldv_init_zalloc(144UL); event_class_wil6210_wmi_group0 = (struct trace_event_call *)tmp; return; } } void ldv_main_exported_27(void) { struct trace_event *ldvarg36 ; void *tmp ; struct trace_iterator *ldvarg35 ; void *tmp___0 ; int ldvarg37 ; int tmp___1 ; { tmp = ldv_init_zalloc(48UL); ldvarg36 = (struct trace_event *)tmp; tmp___0 = ldv_init_zalloc(8560UL); ldvarg35 = (struct trace_iterator *)tmp___0; ldv_memset((void *)(& ldvarg37), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_27 == 1) { trace_raw_output_wil6210_irq(ldvarg35, ldvarg37, ldvarg36); ldv_state_variable_27 = 1; } else { } goto ldv_53145; default: ldv_stop(); } ldv_53145: ; return; } } void ldv_main_exported_25(void) { struct trace_iterator *ldvarg38 ; void *tmp ; int ldvarg40 ; struct trace_event *ldvarg39 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8560UL); ldvarg38 = (struct trace_iterator *)tmp; tmp___0 = ldv_init_zalloc(48UL); ldvarg39 = (struct trace_event *)tmp___0; ldv_memset((void *)(& ldvarg40), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_25 == 1) { trace_raw_output_wil6210_tx(ldvarg38, ldvarg40, ldvarg39); ldv_state_variable_25 = 1; } else { } goto ldv_53154; default: ldv_stop(); } ldv_53154: ; return; } } void ldv_main_exported_28(void) { struct trace_event *ldvarg42 ; void *tmp ; int ldvarg43 ; struct trace_iterator *ldvarg41 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(48UL); ldvarg42 = (struct trace_event *)tmp; tmp___0 = ldv_init_zalloc(8560UL); ldvarg41 = (struct trace_iterator *)tmp___0; ldv_memset((void *)(& ldvarg43), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_28 == 1) { trace_raw_output_wil6210_irq_pseudo(ldvarg41, ldvarg43, ldvarg42); ldv_state_variable_28 = 1; } else { } goto ldv_53163; default: ldv_stop(); } ldv_53163: ; return; } } void ldv_main_exported_21(void) { enum trace_reg ldvarg12 ; void *ldvarg11 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg11 = tmp; ldv_memset((void *)(& ldvarg12), 0, 4UL); tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_21 == 1) { trace_event_reg(event_class_wil6210_irq_pseudo_group0, ldvarg12, ldvarg11); ldv_state_variable_21 = 1; } else { } goto ldv_53171; case 1: ; if (ldv_state_variable_21 == 1) { trace_event_raw_init(event_class_wil6210_irq_pseudo_group0); ldv_state_variable_21 = 1; } else { } goto ldv_53171; case 2: ; if (ldv_state_variable_21 == 1) { trace_event_define_fields_wil6210_irq_pseudo(event_class_wil6210_irq_pseudo_group0); ldv_state_variable_21 = 1; } else { } goto ldv_53171; default: ldv_stop(); } ldv_53171: ; return; } } void ldv_main_exported_26(void) { int ldvarg15 ; struct trace_iterator *ldvarg13 ; void *tmp ; struct trace_event *ldvarg14 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8560UL); ldvarg13 = (struct trace_iterator *)tmp; tmp___0 = ldv_init_zalloc(48UL); ldvarg14 = (struct trace_event *)tmp___0; ldv_memset((void *)(& ldvarg15), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_26 == 1) { trace_raw_output_wil6210_rx(ldvarg13, ldvarg15, ldvarg14); ldv_state_variable_26 = 1; } else { } goto ldv_53182; default: ldv_stop(); } ldv_53182: ; return; } } void ldv_main_exported_17(void) { void *ldvarg16 ; void *tmp ; enum trace_reg ldvarg17 ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg16 = tmp; ldv_memset((void *)(& ldvarg17), 0, 4UL); tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_17 == 1) { trace_event_reg(event_class_wil6210_tx_done_group0, ldvarg17, ldvarg16); ldv_state_variable_17 = 1; } else { } goto ldv_53190; case 1: ; if (ldv_state_variable_17 == 1) { trace_event_raw_init(event_class_wil6210_tx_done_group0); ldv_state_variable_17 = 1; } else { } goto ldv_53190; case 2: ; if (ldv_state_variable_17 == 1) { trace_event_define_fields_wil6210_tx_done(event_class_wil6210_tx_done_group0); ldv_state_variable_17 = 1; } else { } goto ldv_53190; default: ldv_stop(); } ldv_53190: ; return; } } void ldv_main_exported_20(void) { enum trace_reg ldvarg50 ; void *ldvarg49 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg49 = tmp; ldv_memset((void *)(& ldvarg50), 0, 4UL); tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_20 == 1) { trace_event_reg(event_class_wil6210_irq_group0, ldvarg50, ldvarg49); ldv_state_variable_20 = 1; } else { } goto ldv_53200; case 1: ; if (ldv_state_variable_20 == 1) { trace_event_raw_init(event_class_wil6210_irq_group0); ldv_state_variable_20 = 1; } else { } goto ldv_53200; case 2: ; if (ldv_state_variable_20 == 1) { trace_event_define_fields_wil6210_irq(event_class_wil6210_irq_group0); ldv_state_variable_20 = 1; } else { } goto ldv_53200; default: ldv_stop(); } ldv_53200: ; return; } } void ldv_main_exported_22(void) { void *ldvarg83 ; void *tmp ; enum trace_reg ldvarg84 ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg83 = tmp; ldv_memset((void *)(& ldvarg84), 0, 4UL); tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_22 == 1) { trace_event_reg(event_class_wil6210_log_event_group0, ldvarg84, ldvarg83); ldv_state_variable_22 = 1; } else { } goto ldv_53210; case 1: ; if (ldv_state_variable_22 == 1) { trace_event_raw_init(event_class_wil6210_log_event_group0); ldv_state_variable_22 = 1; } else { } goto ldv_53210; case 2: ; if (ldv_state_variable_22 == 1) { trace_event_define_fields_wil6210_log_event(event_class_wil6210_log_event_group0); ldv_state_variable_22 = 1; } else { } goto ldv_53210; default: ldv_stop(); } ldv_53210: ; return; } } void ldv_main_exported_18(void) { enum trace_reg ldvarg19 ; void *ldvarg18 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg18 = tmp; ldv_memset((void *)(& ldvarg19), 0, 4UL); tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_18 == 1) { trace_event_reg(event_class_wil6210_tx_group0, ldvarg19, ldvarg18); ldv_state_variable_18 = 1; } else { } goto ldv_53220; case 1: ; if (ldv_state_variable_18 == 1) { trace_event_raw_init(event_class_wil6210_tx_group0); ldv_state_variable_18 = 1; } else { } goto ldv_53220; case 2: ; if (ldv_state_variable_18 == 1) { trace_event_define_fields_wil6210_tx(event_class_wil6210_tx_group0); ldv_state_variable_18 = 1; } else { } goto ldv_53220; default: ldv_stop(); } ldv_53220: ; return; } } void ldv_main_exported_30(void) { int ldvarg22 ; struct trace_iterator *ldvarg20 ; void *tmp ; struct trace_event *ldvarg21 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8560UL); ldvarg20 = (struct trace_iterator *)tmp; tmp___0 = ldv_init_zalloc(48UL); ldvarg21 = (struct trace_event *)tmp___0; ldv_memset((void *)(& ldvarg22), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_30 == 1) { trace_raw_output_wil6210_wmi(ldvarg20, ldvarg22, ldvarg21); ldv_state_variable_30 = 1; } else { } goto ldv_53231; default: ldv_stop(); } ldv_53231: ; return; } } void ldv_main_exported_24(void) { struct trace_iterator *ldvarg59 ; void *tmp ; struct trace_event *ldvarg60 ; void *tmp___0 ; int ldvarg61 ; int tmp___1 ; { tmp = ldv_init_zalloc(8560UL); ldvarg59 = (struct trace_iterator *)tmp; tmp___0 = ldv_init_zalloc(48UL); ldvarg60 = (struct trace_event *)tmp___0; ldv_memset((void *)(& ldvarg61), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_24 == 1) { trace_raw_output_wil6210_tx_done(ldvarg59, ldvarg61, ldvarg60); ldv_state_variable_24 = 1; } else { } goto ldv_53240; default: ldv_stop(); } ldv_53240: ; return; } } void ldv_main_exported_19(void) { enum trace_reg ldvarg157 ; void *ldvarg156 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg156 = tmp; ldv_memset((void *)(& ldvarg157), 0, 4UL); tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_19 == 1) { trace_event_reg(event_class_wil6210_rx_group0, ldvarg157, ldvarg156); ldv_state_variable_19 = 1; } else { } goto ldv_53248; case 1: ; if (ldv_state_variable_19 == 1) { trace_event_raw_init(event_class_wil6210_rx_group0); ldv_state_variable_19 = 1; } else { } goto ldv_53248; case 2: ; if (ldv_state_variable_19 == 1) { trace_event_define_fields_wil6210_rx(event_class_wil6210_rx_group0); ldv_state_variable_19 = 1; } else { } goto ldv_53248; default: ldv_stop(); } ldv_53248: ; return; } } void ldv_main_exported_23(void) { enum trace_reg ldvarg89 ; void *ldvarg88 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(1UL); ldvarg88 = tmp; ldv_memset((void *)(& ldvarg89), 0, 4UL); tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_23 == 1) { trace_event_reg(event_class_wil6210_wmi_group0, ldvarg89, ldvarg88); ldv_state_variable_23 = 1; } else { } goto ldv_53258; case 1: ; if (ldv_state_variable_23 == 1) { trace_event_raw_init(event_class_wil6210_wmi_group0); ldv_state_variable_23 = 1; } else { } goto ldv_53258; case 2: ; if (ldv_state_variable_23 == 1) { trace_event_define_fields_wil6210_wmi(event_class_wil6210_wmi_group0); ldv_state_variable_23 = 1; } else { } goto ldv_53258; default: ldv_stop(); } ldv_53258: ; return; } } void ldv_main_exported_29(void) { struct trace_iterator *ldvarg90 ; void *tmp ; int ldvarg92 ; struct trace_event *ldvarg91 ; void *tmp___0 ; int tmp___1 ; { tmp = ldv_init_zalloc(8560UL); ldvarg90 = (struct trace_iterator *)tmp; tmp___0 = ldv_init_zalloc(48UL); ldvarg91 = (struct trace_event *)tmp___0; ldv_memset((void *)(& ldvarg92), 0, 4UL); tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_29 == 1) { trace_raw_output_wil6210_log_event(ldvarg90, ldvarg92, ldvarg91); ldv_state_variable_29 = 1; } else { } goto ldv_53269; default: ldv_stop(); } ldv_53269: ; return; } } bool ldv_queue_work_on_577(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_578(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_579(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_580(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_581(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_582(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_583(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_584(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_585(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_586(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_587(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_588(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_589(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } int ldv_mutex_trylock_615(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_613(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_616(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_612(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_614(struct mutex *ldv_func_arg1 ) ; bool ldv_queue_work_on_607(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_609(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_608(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_611(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_610(struct workqueue_struct *ldv_func_arg1 ) ; int wil_platform_modinit(void) { { return (0); } } void wil_platform_modexit(void) { { return; } } void *wil_platform_init(struct device *dev , struct wil_platform_ops *ops ) { void *handle ; { handle = (void *)ops; if ((unsigned long )ops == (unsigned long )((struct wil_platform_ops *)0)) { dev_err((struct device const *)dev, "Invalid parameter. Cannot init platform module\n"); return ((void *)0); } else { } return (handle); } } bool ldv_queue_work_on_607(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_608(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_609(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_610(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_611(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_612(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_613(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_614(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_615(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_616(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static long ldv__builtin_expect(long exp , long c ) ; int ldv_mutex_trylock_639(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_637(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_640(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_641(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_645(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_636(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_638(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_642(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_644(struct mutex *ldv_func_arg1 ) ; bool ldv_queue_work_on_631(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_work_on_633(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) ; bool ldv_queue_delayed_work_on_632(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; bool ldv_queue_delayed_work_on_635(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) ; void ldv_flush_workqueue_634(struct workqueue_struct *ldv_func_arg1 ) ; int ldv_request_threaded_irq_643(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) ; __inline static void *wiphy_priv___2(struct wiphy *wiphy ) { long tmp ; { tmp = ldv__builtin_expect((unsigned long )wiphy == (unsigned long )((struct wiphy *)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 *)"include/net/cfg80211.h"), "i" (3259), "i" (12UL)); ldv_49080: ; goto ldv_49080; } else { } return ((void *)(& wiphy->priv)); } } __inline static void *wdev_priv___1(struct wireless_dev *wdev ) { long tmp ; void *tmp___0 ; { tmp = ldv__builtin_expect((unsigned long )wdev == (unsigned long )((struct wireless_dev *)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 *)"include/net/cfg80211.h"), "i" (3512), "i" (12UL)); ldv_49165: ; goto ldv_49165; } else { } tmp___0 = wiphy_priv___2(wdev->wiphy); return (tmp___0); } } extern void cfg80211_get_drvinfo(struct net_device * , struct ethtool_drvinfo * ) ; static int wil_ethtoolops_begin(struct net_device *ndev ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wdev_priv___1(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; ldv_mutex_lock_644(& wil->mutex); descriptor.modname = "wil6210"; descriptor.function = "wil_ethtoolops_begin"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ethtool.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 30U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_ethtoolops_begin"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_ethtoolops_begin"); return (0); } } static void wil_ethtoolops_complete(struct net_device *ndev ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wdev_priv___1(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; descriptor.modname = "wil6210"; descriptor.function = "wil_ethtoolops_complete"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ethtool.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 39U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_ethtoolops_complete"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_ethtoolops_complete"); ldv_mutex_unlock_645(& wil->mutex); return; } } static int wil_ethtoolops_get_coalesce(struct net_device *ndev , struct ethtool_coalesce *cp ) { struct wil6210_priv *wil ; void *tmp ; u32 tx_itr_en ; u32 tx_itr_val ; u32 rx_itr_en ; u32 rx_itr_val ; struct _ddebug descriptor ; long tmp___0 ; { tmp = wdev_priv___1(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; tx_itr_val = 0U; rx_itr_val = 0U; descriptor.modname = "wil6210"; descriptor.function = "wil_ethtoolops_get_coalesce"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ethtool.c"; descriptor.format = "DBG[MISC]%s()\n"; descriptor.lineno = 51U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s()\n", "wil_ethtoolops_get_coalesce"); } else { } wil_dbg_trace(wil, "DBG[MISC]%s()\n", "wil_ethtoolops_get_coalesce"); tx_itr_en = ioread32(wil->csr + 7484UL); if ((int )tx_itr_en & 1) { tx_itr_val = ioread32(wil->csr + 7476UL); } else { } rx_itr_en = ioread32(wil->csr + 7500UL); if ((int )rx_itr_en & 1) { rx_itr_val = ioread32(wil->csr + 7492UL); } else { } cp->tx_coalesce_usecs = tx_itr_val; cp->rx_coalesce_usecs = rx_itr_val; return (0); } } static int wil_ethtoolops_set_coalesce(struct net_device *ndev , struct ethtool_coalesce *cp ) { struct wil6210_priv *wil ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; struct _ddebug descriptor___1 ; long tmp___2 ; struct _ddebug descriptor___2 ; long tmp___3 ; { tmp = wdev_priv___1(ndev->ieee80211_ptr); wil = (struct wil6210_priv *)tmp; descriptor.modname = "wil6210"; descriptor.function = "wil_ethtoolops_set_coalesce"; descriptor.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ethtool.c"; descriptor.format = "DBG[MISC]%s(rx %d usec, tx %d usec)\n"; descriptor.lineno = 78U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]%s(rx %d usec, tx %d usec)\n", "wil_ethtoolops_set_coalesce", cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); } else { } wil_dbg_trace(wil, "DBG[MISC]%s(rx %d usec, tx %d usec)\n", "wil_ethtoolops_set_coalesce", cp->rx_coalesce_usecs, cp->tx_coalesce_usecs); if ((unsigned int )(wil->wdev)->iftype == 6U) { descriptor___0.modname = "wil6210"; descriptor___0.function = "wil_ethtoolops_set_coalesce"; descriptor___0.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ethtool.c"; descriptor___0.format = "DBG[MISC]No IRQ coalescing in monitor mode\n"; descriptor___0.lineno = 81U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]No IRQ coalescing in monitor mode\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]No IRQ coalescing in monitor mode\n"); return (-22); } else { } if (cp->rx_coalesce_usecs > 5000000U || cp->tx_coalesce_usecs > 5000000U) { goto out_bad; } else { } wil->tx_max_burst_duration = cp->tx_coalesce_usecs; wil->rx_max_burst_duration = cp->rx_coalesce_usecs; wil_configure_interrupt_moderation(wil); return (0); out_bad: descriptor___1.modname = "wil6210"; descriptor___1.function = "wil_ethtoolops_set_coalesce"; descriptor___1.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ethtool.c"; descriptor___1.format = "DBG[MISC]Unsupported coalescing params. Raw command:\n"; descriptor___1.lineno = 100U; descriptor___1.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)(wil->wdev)->netdev, "DBG[MISC]Unsupported coalescing params. Raw command:\n"); } else { } wil_dbg_trace(wil, "DBG[MISC]Unsupported coalescing params. Raw command:\n"); descriptor___2.modname = "wil6210"; descriptor___2.function = "wil_ethtoolops_set_coalesce"; descriptor___2.filename = "/work/ldvuser/mutilin/launch/work/current--X--drivers/--X--defaultlinux-4.2-rc1.tar.xz--X--32_7a--X--cpachecker/linux-4.2-rc1.tar.xz/csd_deg_dscv/12257/dscv_tempdir/dscv/ri/32_7a/drivers/net/wireless/ath/wil6210/ethtool.c"; descriptor___2.format = "DBG[MISC] coal "; descriptor___2.lineno = 102U; descriptor___2.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___3 != 0L) { print_hex_dump("\017", "DBG[MISC] coal ", 2, 16, 4, (void const *)cp, 92UL, 0); } else { } return (-22); } } static struct ethtool_ops const wil_ethtool_ops = {0, 0, & cfg80211_get_drvinfo, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & wil_ethtoolops_get_coalesce, & wil_ethtoolops_set_coalesce, 0, 0, 0, 0, 0, 0, 0, 0, & wil_ethtoolops_begin, & wil_ethtoolops_complete, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; void wil_set_ethtoolops(struct net_device *ndev ) { { ndev->ethtool_ops = & wil_ethtool_ops; return; } } void ldv_initialize_ethtool_ops_16(void) { void *tmp ; void *tmp___0 ; { tmp = ldv_init_zalloc(92UL); wil_ethtool_ops_group0 = (struct ethtool_coalesce *)tmp; tmp___0 = ldv_init_zalloc(3008UL); wil_ethtool_ops_group1 = (struct net_device *)tmp___0; return; } } void ldv_main_exported_16(void) { struct ethtool_drvinfo *ldvarg23 ; void *tmp ; int tmp___0 ; { tmp = ldv_init_zalloc(196UL); ldvarg23 = (struct ethtool_drvinfo *)tmp; tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_16 == 1) { wil_ethtoolops_complete(wil_ethtool_ops_group1); ldv_state_variable_16 = 1; } else { } goto ldv_50437; case 1: ; if (ldv_state_variable_16 == 1) { cfg80211_get_drvinfo(wil_ethtool_ops_group1, ldvarg23); ldv_state_variable_16 = 1; } else { } goto ldv_50437; case 2: ; if (ldv_state_variable_16 == 1) { wil_ethtoolops_get_coalesce(wil_ethtool_ops_group1, wil_ethtool_ops_group0); ldv_state_variable_16 = 1; } else { } goto ldv_50437; case 3: ; if (ldv_state_variable_16 == 1) { wil_ethtoolops_set_coalesce(wil_ethtool_ops_group1, wil_ethtool_ops_group0); ldv_state_variable_16 = 1; } else { } goto ldv_50437; case 4: ; if (ldv_state_variable_16 == 1) { wil_ethtoolops_begin(wil_ethtool_ops_group1); ldv_state_variable_16 = 1; } else { } goto ldv_50437; default: ldv_stop(); } ldv_50437: ; return; } } bool ldv_queue_work_on_631(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } bool ldv_queue_delayed_work_on_632(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___0 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } bool ldv_queue_work_on_633(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct work_struct *ldv_func_arg3 ) { ldv_func_ret_type___1 ldv_func_res ; bool tmp ; { tmp = queue_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; activate_work_7(ldv_func_arg3, 2); return (ldv_func_res); } } void ldv_flush_workqueue_634(struct workqueue_struct *ldv_func_arg1 ) { { flush_workqueue(ldv_func_arg1); call_and_disable_all_7(2); return; } } bool ldv_queue_delayed_work_on_635(int ldv_func_arg1 , struct workqueue_struct *ldv_func_arg2 , struct delayed_work *ldv_func_arg3 , unsigned long ldv_func_arg4 ) { ldv_func_ret_type___2 ldv_func_res ; bool tmp ; { tmp = queue_delayed_work_on(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3, ldv_func_arg4); ldv_func_res = tmp; activate_work_7(& ldv_func_arg3->work, 2); return (ldv_func_res); } } void ldv_mutex_lock_636(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_637(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_638(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_639(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___3 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_640(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_641(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_i_mutex_of_inode(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_642(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_i_mutex_of_inode(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_request_threaded_irq_643(unsigned int ldv_func_arg1 , irqreturn_t (*handler)(int , void * ) , irqreturn_t (*thread_fn)(int , void * ) , unsigned long ldv_func_arg4 , char const *ldv_func_arg5 , void *ldv_func_arg6 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = request_threaded_irq(ldv_func_arg1, handler, thread_fn, ldv_func_arg4, ldv_func_arg5, ldv_func_arg6); ldv_func_res = tmp; tmp___0 = reg_check_6(handler, thread_fn); if (tmp___0 != 0 && ldv_func_res >= 0) { activate_suitable_irq_6((int )ldv_func_arg1, ldv_func_arg6); } else { } return (ldv_func_res); } } void ldv_mutex_lock_644(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_645(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_wil6210_priv(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static void ldv_error(void) { { ERROR: ; __VERIFIER_error(); } } __inline static int ldv_undef_int_negative(void) { int ret ; int tmp ; { tmp = ldv_undef_int(); ret = tmp; if (ret >= 0) { ldv_stop(); } else { } return (ret); } } bool ldv_is_err(void const *ptr ) { { return ((unsigned long )ptr > 2012UL); } } void *ldv_err_ptr(long error ) { { return ((void *)(2012L - error)); } } long ldv_ptr_err(void const *ptr ) { { return ((long )(2012UL - (unsigned long )ptr)); } } bool ldv_is_err_or_null(void const *ptr ) { bool tmp ; int tmp___0 ; { if ((unsigned long )ptr == (unsigned long )((void const *)0)) { tmp___0 = 1; } else { tmp = ldv_is_err(ptr); if ((int )tmp) { tmp___0 = 1; } else { tmp___0 = 0; } } return ((bool )tmp___0); } } static int ldv_mutex_back_rx_mutex_of_wil6210_priv = 1; int ldv_mutex_lock_interruptible_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_back_rx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_back_rx_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_back_rx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_back_rx_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_back_rx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } ldv_mutex_back_rx_mutex_of_wil6210_priv = 2; return; } } int ldv_mutex_trylock_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_back_rx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_back_rx_mutex_of_wil6210_priv = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_back_rx_mutex_of_wil6210_priv(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_back_rx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_back_rx_mutex_of_wil6210_priv = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_back_rx_mutex_of_wil6210_priv == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_back_rx_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_back_rx_mutex_of_wil6210_priv != 2) { ldv_error(); } else { } ldv_mutex_back_rx_mutex_of_wil6210_priv = 1; return; } } void ldv_usb_lock_device_back_rx_mutex_of_wil6210_priv(void) { { ldv_mutex_lock_back_rx_mutex_of_wil6210_priv((struct mutex *)0); return; } } int ldv_usb_trylock_device_back_rx_mutex_of_wil6210_priv(void) { int tmp ; { tmp = ldv_mutex_trylock_back_rx_mutex_of_wil6210_priv((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_back_rx_mutex_of_wil6210_priv(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_back_rx_mutex_of_wil6210_priv((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_back_rx_mutex_of_wil6210_priv(void) { { ldv_mutex_unlock_back_rx_mutex_of_wil6210_priv((struct mutex *)0); return; } } static int ldv_mutex_back_tx_mutex_of_wil6210_priv = 1; int ldv_mutex_lock_interruptible_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_back_tx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_back_tx_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_back_tx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_back_tx_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_back_tx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } ldv_mutex_back_tx_mutex_of_wil6210_priv = 2; return; } } int ldv_mutex_trylock_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_back_tx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_back_tx_mutex_of_wil6210_priv = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_back_tx_mutex_of_wil6210_priv(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_back_tx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_back_tx_mutex_of_wil6210_priv = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_back_tx_mutex_of_wil6210_priv == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_back_tx_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_back_tx_mutex_of_wil6210_priv != 2) { ldv_error(); } else { } ldv_mutex_back_tx_mutex_of_wil6210_priv = 1; return; } } void ldv_usb_lock_device_back_tx_mutex_of_wil6210_priv(void) { { ldv_mutex_lock_back_tx_mutex_of_wil6210_priv((struct mutex *)0); return; } } int ldv_usb_trylock_device_back_tx_mutex_of_wil6210_priv(void) { int tmp ; { tmp = ldv_mutex_trylock_back_tx_mutex_of_wil6210_priv((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_back_tx_mutex_of_wil6210_priv(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_back_tx_mutex_of_wil6210_priv((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_back_tx_mutex_of_wil6210_priv(void) { { ldv_mutex_unlock_back_tx_mutex_of_wil6210_priv((struct mutex *)0); return; } } static int ldv_mutex_i_mutex_of_inode = 1; int ldv_mutex_lock_interruptible_i_mutex_of_inode(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_i_mutex_of_inode = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_i_mutex_of_inode(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_i_mutex_of_inode = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_i_mutex_of_inode(struct mutex *lock ) { { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } ldv_mutex_i_mutex_of_inode = 2; return; } } int ldv_mutex_trylock_i_mutex_of_inode(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_i_mutex_of_inode = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_i_mutex_of_inode(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_i_mutex_of_inode = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_i_mutex_of_inode(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_i_mutex_of_inode == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_i_mutex_of_inode(struct mutex *lock ) { { if (ldv_mutex_i_mutex_of_inode != 2) { ldv_error(); } else { } ldv_mutex_i_mutex_of_inode = 1; return; } } void ldv_usb_lock_device_i_mutex_of_inode(void) { { ldv_mutex_lock_i_mutex_of_inode((struct mutex *)0); return; } } int ldv_usb_trylock_device_i_mutex_of_inode(void) { int tmp ; { tmp = ldv_mutex_trylock_i_mutex_of_inode((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_i_mutex_of_inode(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_i_mutex_of_inode((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_i_mutex_of_inode(void) { { ldv_mutex_unlock_i_mutex_of_inode((struct mutex *)0); return; } } static int ldv_mutex_lock = 1; int ldv_mutex_lock_interruptible_lock(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { 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) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_lock = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_lock(struct mutex *lock ) { { if (ldv_mutex_lock != 1) { ldv_error(); } else { } 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) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { 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) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_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 = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_lock(struct mutex *lock ) { { if (ldv_mutex_lock != 2) { ldv_error(); } else { } ldv_mutex_lock = 1; return; } } void ldv_usb_lock_device_lock(void) { { ldv_mutex_lock_lock((struct mutex *)0); return; } } int ldv_usb_trylock_device_lock(void) { int tmp ; { tmp = ldv_mutex_trylock_lock((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_lock(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_lock((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_lock(void) { { ldv_mutex_unlock_lock((struct mutex *)0); return; } } static int ldv_mutex_lock_of_pmc_ctx = 1; int ldv_mutex_lock_interruptible_lock_of_pmc_ctx(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock_of_pmc_ctx != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_lock_of_pmc_ctx = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_lock_of_pmc_ctx(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock_of_pmc_ctx != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_lock_of_pmc_ctx = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_lock_of_pmc_ctx(struct mutex *lock ) { { if (ldv_mutex_lock_of_pmc_ctx != 1) { ldv_error(); } else { } ldv_mutex_lock_of_pmc_ctx = 2; return; } } int ldv_mutex_trylock_lock_of_pmc_ctx(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_lock_of_pmc_ctx != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_lock_of_pmc_ctx = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_lock_of_pmc_ctx(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_lock_of_pmc_ctx != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_lock_of_pmc_ctx = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_lock_of_pmc_ctx(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock_of_pmc_ctx == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_lock_of_pmc_ctx(struct mutex *lock ) { { if (ldv_mutex_lock_of_pmc_ctx != 2) { ldv_error(); } else { } ldv_mutex_lock_of_pmc_ctx = 1; return; } } void ldv_usb_lock_device_lock_of_pmc_ctx(void) { { ldv_mutex_lock_lock_of_pmc_ctx((struct mutex *)0); return; } } int ldv_usb_trylock_device_lock_of_pmc_ctx(void) { int tmp ; { tmp = ldv_mutex_trylock_lock_of_pmc_ctx((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_lock_of_pmc_ctx(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_lock_of_pmc_ctx((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_lock_of_pmc_ctx(void) { { ldv_mutex_unlock_lock_of_pmc_ctx((struct mutex *)0); return; } } static int ldv_mutex_mutex_of_device = 1; int ldv_mutex_lock_interruptible_mutex_of_device(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { 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) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { 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) { ldv_error(); } else { } 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) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { 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) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_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 = ldv_undef_int(); if (nondetermined != 0) { 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) { ldv_error(); } else { } ldv_mutex_mutex_of_device = 1; return; } } void ldv_usb_lock_device_mutex_of_device(void) { { ldv_mutex_lock_mutex_of_device((struct mutex *)0); return; } } int ldv_usb_trylock_device_mutex_of_device(void) { int tmp ; { tmp = ldv_mutex_trylock_mutex_of_device((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_mutex_of_device(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_mutex_of_device((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_mutex_of_device(void) { { ldv_mutex_unlock_mutex_of_device((struct mutex *)0); return; } } static int ldv_mutex_mutex_of_wil6210_priv = 1; int ldv_mutex_lock_interruptible_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } ldv_mutex_mutex_of_wil6210_priv = 2; return; } } int ldv_mutex_trylock_mutex_of_wil6210_priv(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_mutex_of_wil6210_priv = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_mutex_of_wil6210_priv(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_mutex_of_wil6210_priv = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_wil6210_priv == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_mutex_of_wil6210_priv != 2) { ldv_error(); } else { } ldv_mutex_mutex_of_wil6210_priv = 1; return; } } void ldv_usb_lock_device_mutex_of_wil6210_priv(void) { { ldv_mutex_lock_mutex_of_wil6210_priv((struct mutex *)0); return; } } int ldv_usb_trylock_device_mutex_of_wil6210_priv(void) { int tmp ; { tmp = ldv_mutex_trylock_mutex_of_wil6210_priv((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_mutex_of_wil6210_priv(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_mutex_of_wil6210_priv((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_mutex_of_wil6210_priv(void) { { ldv_mutex_unlock_mutex_of_wil6210_priv((struct mutex *)0); return; } } static int ldv_mutex_probe_client_mutex_of_wil6210_priv = 1; int ldv_mutex_lock_interruptible_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_probe_client_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_probe_client_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_probe_client_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_probe_client_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_probe_client_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } ldv_mutex_probe_client_mutex_of_wil6210_priv = 2; return; } } int ldv_mutex_trylock_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_probe_client_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_probe_client_mutex_of_wil6210_priv = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_probe_client_mutex_of_wil6210_priv(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_probe_client_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_probe_client_mutex_of_wil6210_priv = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_probe_client_mutex_of_wil6210_priv == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_probe_client_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_probe_client_mutex_of_wil6210_priv != 2) { ldv_error(); } else { } ldv_mutex_probe_client_mutex_of_wil6210_priv = 1; return; } } void ldv_usb_lock_device_probe_client_mutex_of_wil6210_priv(void) { { ldv_mutex_lock_probe_client_mutex_of_wil6210_priv((struct mutex *)0); return; } } int ldv_usb_trylock_device_probe_client_mutex_of_wil6210_priv(void) { int tmp ; { tmp = ldv_mutex_trylock_probe_client_mutex_of_wil6210_priv((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_probe_client_mutex_of_wil6210_priv(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_probe_client_mutex_of_wil6210_priv((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_probe_client_mutex_of_wil6210_priv(void) { { ldv_mutex_unlock_probe_client_mutex_of_wil6210_priv((struct mutex *)0); return; } } static int ldv_mutex_wmi_mutex_of_wil6210_priv = 1; int ldv_mutex_lock_interruptible_wmi_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_wmi_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_wmi_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_wmi_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_wmi_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } nondetermined = ldv_undef_int(); if (nondetermined != 0) { ldv_mutex_wmi_mutex_of_wil6210_priv = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_wmi_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_wmi_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } ldv_mutex_wmi_mutex_of_wil6210_priv = 2; return; } } int ldv_mutex_trylock_wmi_mutex_of_wil6210_priv(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_wmi_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } is_mutex_held_by_another_thread = ldv_undef_int(); if (is_mutex_held_by_another_thread != 0) { return (0); } else { ldv_mutex_wmi_mutex_of_wil6210_priv = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_wmi_mutex_of_wil6210_priv(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_wmi_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } atomic_value_after_dec = ldv_undef_int(); if (atomic_value_after_dec == 0) { ldv_mutex_wmi_mutex_of_wil6210_priv = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_wmi_mutex_of_wil6210_priv(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_wmi_mutex_of_wil6210_priv == 1) { nondetermined = ldv_undef_int(); if (nondetermined != 0) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_wmi_mutex_of_wil6210_priv(struct mutex *lock ) { { if (ldv_mutex_wmi_mutex_of_wil6210_priv != 2) { ldv_error(); } else { } ldv_mutex_wmi_mutex_of_wil6210_priv = 1; return; } } void ldv_usb_lock_device_wmi_mutex_of_wil6210_priv(void) { { ldv_mutex_lock_wmi_mutex_of_wil6210_priv((struct mutex *)0); return; } } int ldv_usb_trylock_device_wmi_mutex_of_wil6210_priv(void) { int tmp ; { tmp = ldv_mutex_trylock_wmi_mutex_of_wil6210_priv((struct mutex *)0); return (tmp); } } int ldv_usb_lock_device_for_reset_wmi_mutex_of_wil6210_priv(void) { int tmp ; int tmp___0 ; { tmp___0 = ldv_undef_int(); if (tmp___0 != 0) { ldv_mutex_lock_wmi_mutex_of_wil6210_priv((struct mutex *)0); return (0); } else { tmp = ldv_undef_int_negative(); return (tmp); } } } void ldv_usb_unlock_device_wmi_mutex_of_wil6210_priv(void) { { ldv_mutex_unlock_wmi_mutex_of_wil6210_priv((struct mutex *)0); return; } } void ldv_check_final_state(void) { { if (ldv_mutex_back_rx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } if (ldv_mutex_back_tx_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } if (ldv_mutex_i_mutex_of_inode != 1) { ldv_error(); } else { } if (ldv_mutex_lock != 1) { ldv_error(); } else { } if (ldv_mutex_lock_of_pmc_ctx != 1) { ldv_error(); } else { } if (ldv_mutex_mutex_of_device != 1) { ldv_error(); } else { } if (ldv_mutex_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } if (ldv_mutex_probe_client_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } if (ldv_mutex_wmi_mutex_of_wil6210_priv != 1) { ldv_error(); } else { } return; } }