/* Generated by CIL v. 1.5.1 */ /* print_CIL_Input is false */ struct device; typedef signed char __s8; typedef unsigned char __u8; typedef short __s16; 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 short s16; typedef unsigned short u16; typedef int s32; typedef unsigned int u32; typedef long long s64; typedef unsigned long long u64; typedef long __kernel_long_t; typedef unsigned long __kernel_ulong_t; typedef int __kernel_pid_t; typedef unsigned int __kernel_uid32_t; typedef unsigned int __kernel_gid32_t; typedef __kernel_ulong_t __kernel_size_t; typedef __kernel_long_t __kernel_ssize_t; typedef 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 __be16; typedef __u32 __le32; typedef __u32 __be32; typedef __u64 __le64; typedef __u32 __wsum; 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 char u_char; typedef unsigned long u_long; 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; typedef u64 phys_addr_t; typedef phys_addr_t resource_size_t; struct __anonstruct_atomic_t_6 { int counter ; }; typedef struct __anonstruct_atomic_t_6 atomic_t; struct __anonstruct_atomic64_t_7 { long counter ; }; typedef struct __anonstruct_atomic64_t_7 atomic64_t; struct list_head { struct list_head *next ; struct list_head *prev ; }; struct hlist_node; struct hlist_head { struct hlist_node *first ; }; struct hlist_node { struct hlist_node *next ; struct hlist_node **pprev ; }; struct callback_head { struct callback_head *next ; void (*func)(struct callback_head * ) ; }; typedef u16 __ticket_t; typedef u32 __ticketpair_t; struct __raw_tickets { __ticket_t head ; __ticket_t tail ; }; union __anonunion____missing_field_name_8 { __ticketpair_t head_tail ; struct __raw_tickets tickets ; }; struct arch_spinlock { union __anonunion____missing_field_name_8 __annonCompField4 ; }; typedef struct arch_spinlock arch_spinlock_t; struct __anonstruct____missing_field_name_10 { u32 read ; s32 write ; }; union __anonunion_arch_rwlock_t_9 { s64 lock ; struct __anonstruct____missing_field_name_10 __annonCompField5 ; }; typedef union __anonunion_arch_rwlock_t_9 arch_rwlock_t; struct task_struct; struct lockdep_map; struct kernel_symbol { unsigned long value ; char const *name ; }; struct module; 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_12 { unsigned int a ; unsigned int b ; }; struct __anonstruct____missing_field_name_13 { u16 limit0 ; u16 base0 ; unsigned int base1 : 8 ; unsigned int type : 4 ; unsigned int s : 1 ; unsigned int dpl : 2 ; unsigned int p : 1 ; unsigned int limit : 4 ; unsigned int avl : 1 ; unsigned int l : 1 ; unsigned int d : 1 ; unsigned int g : 1 ; unsigned int base2 : 8 ; }; union __anonunion____missing_field_name_11 { struct __anonstruct____missing_field_name_12 __annonCompField6 ; struct __anonstruct____missing_field_name_13 __annonCompField7 ; }; struct desc_struct { union __anonunion____missing_field_name_11 __annonCompField8 ; }; typedef unsigned long pgdval_t; typedef unsigned long pgprotval_t; struct pgprot { pgprotval_t pgprot ; }; typedef struct pgprot pgprot_t; struct __anonstruct_pgd_t_15 { pgdval_t pgd ; }; typedef struct __anonstruct_pgd_t_15 pgd_t; struct page; typedef struct page *pgtable_t; struct file; struct seq_file; struct thread_struct; struct mm_struct; struct cpumask; typedef void (*ctor_fn_t)(void); struct _ddebug { char const *modname ; char const *function ; char const *filename ; char const *format ; unsigned int lineno : 18 ; unsigned int flags : 8 ; }; struct net_device; struct file_operations; struct completion; struct pid; 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_18 { struct pt_regs *regs ; struct kernel_vm86_regs *vm86 ; }; struct math_emu_info { long ___orig_eip ; union __anonunion____missing_field_name_18 __annonCompField9 ; }; struct bug_entry { int bug_addr_disp ; int file_disp ; unsigned short line ; unsigned short flags ; }; struct cpumask { unsigned long bits[128U] ; }; typedef struct cpumask cpumask_t; typedef struct cpumask *cpumask_var_t; struct static_key; struct seq_operations; struct i387_fsave_struct { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u32 status ; }; struct __anonstruct____missing_field_name_23 { u64 rip ; u64 rdp ; }; struct __anonstruct____missing_field_name_24 { u32 fip ; u32 fcs ; u32 foo ; u32 fos ; }; union __anonunion____missing_field_name_22 { struct __anonstruct____missing_field_name_23 __annonCompField13 ; struct __anonstruct____missing_field_name_24 __annonCompField14 ; }; union __anonunion____missing_field_name_25 { u32 padding1[12U] ; u32 sw_reserved[12U] ; }; struct i387_fxsave_struct { u16 cwd ; u16 swd ; u16 twd ; u16 fop ; union __anonunion____missing_field_name_22 __annonCompField15 ; u32 mxcsr ; u32 mxcsr_mask ; u32 st_space[32U] ; u32 xmm_space[64U] ; u32 padding[12U] ; union __anonunion____missing_field_name_25 __annonCompField16 ; }; struct i387_soft_struct { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u8 ftop ; u8 changed ; u8 lookahead ; u8 no_update ; u8 rm ; u8 alimit ; struct math_emu_info *info ; u32 entry_eip ; }; struct ymmh_struct { u32 ymmh_space[64U] ; }; struct lwp_struct { u8 reserved[128U] ; }; struct bndregs_struct { u64 bndregs[8U] ; }; struct bndcsr_struct { u64 cfg_reg_u ; u64 status_reg ; }; struct xsave_hdr_struct { u64 xstate_bv ; u64 reserved1[2U] ; u64 reserved2[5U] ; }; struct xsave_struct { struct i387_fxsave_struct i387 ; struct xsave_hdr_struct xsave_hdr ; struct ymmh_struct ymmh ; struct lwp_struct lwp ; struct bndregs_struct bndregs ; struct bndcsr_struct bndcsr ; }; union thread_xstate { struct i387_fsave_struct fsave ; struct i387_fxsave_struct fxsave ; struct i387_soft_struct soft ; struct xsave_struct xsave ; }; struct fpu { unsigned int last_cpu ; unsigned int has_fpu ; union thread_xstate *state ; }; struct kmem_cache; struct perf_event; struct thread_struct { struct desc_struct tls_array[3U] ; unsigned long sp0 ; unsigned long sp ; unsigned long usersp ; unsigned short es ; unsigned short ds ; unsigned short fsindex ; unsigned short gsindex ; unsigned long fs ; unsigned long gs ; struct perf_event *ptrace_bps[4U] ; unsigned long debugreg6 ; unsigned long ptrace_dr7 ; unsigned long cr2 ; unsigned long trap_nr ; unsigned long error_code ; struct fpu fpu ; unsigned long *io_bitmap_ptr ; unsigned long iopl ; unsigned int io_bitmap_max ; unsigned char fpu_counter ; }; 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 int class_idx : 13 ; unsigned int irq_context : 2 ; unsigned int trylock : 1 ; unsigned int read : 2 ; unsigned int check : 2 ; unsigned int hardirqs_off : 1 ; unsigned int references : 11 ; }; struct raw_spinlock { arch_spinlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct raw_spinlock raw_spinlock_t; struct __anonstruct____missing_field_name_29 { u8 __padding[24U] ; struct lockdep_map dep_map ; }; union __anonunion____missing_field_name_28 { struct raw_spinlock rlock ; struct __anonstruct____missing_field_name_29 __annonCompField18 ; }; struct spinlock { union __anonunion____missing_field_name_28 __annonCompField19 ; }; typedef struct spinlock spinlock_t; struct __anonstruct_rwlock_t_30 { arch_rwlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_rwlock_t_30 rwlock_t; struct plist_head { struct list_head node_list ; }; struct plist_node { int prio ; struct list_head prio_list ; struct list_head node_list ; }; struct mutex { atomic_t count ; spinlock_t wait_lock ; struct list_head wait_list ; struct task_struct *owner ; char const *name ; void *magic ; struct lockdep_map dep_map ; }; struct mutex_waiter { struct list_head list ; struct task_struct *task ; void *magic ; }; struct timespec; struct jump_entry; struct static_key_mod; struct static_key { atomic_t enabled ; struct jump_entry *entries ; struct static_key_mod *next ; }; typedef u64 jump_label_t; struct jump_entry { jump_label_t code ; jump_label_t target ; jump_label_t key ; }; struct rw_semaphore; struct rw_semaphore { long count ; raw_spinlock_t wait_lock ; struct list_head wait_list ; struct lockdep_map dep_map ; }; struct seqcount { unsigned int sequence ; struct lockdep_map dep_map ; }; typedef struct seqcount seqcount_t; struct __anonstruct_seqlock_t_35 { struct seqcount seqcount ; spinlock_t lock ; }; typedef struct __anonstruct_seqlock_t_35 seqlock_t; 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 timespec { __kernel_time_t tv_sec ; long tv_nsec ; }; union ktime { s64 tv64 ; }; typedef union ktime ktime_t; struct tvec_base; struct timer_list { struct list_head entry ; unsigned long expires ; struct tvec_base *base ; void (*function)(unsigned long ) ; unsigned long data ; int slack ; int start_pid ; void *start_site ; char start_comm[16U] ; struct lockdep_map lockdep_map ; }; struct hrtimer; enum hrtimer_restart; struct workqueue_struct; struct work_struct; struct work_struct { atomic_long_t data ; struct list_head entry ; void (*func)(struct work_struct * ) ; struct lockdep_map lockdep_map ; }; struct delayed_work { struct work_struct work ; struct timer_list timer ; struct workqueue_struct *wq ; int cpu ; }; struct notifier_block { int (*notifier_call)(struct notifier_block * , unsigned long , void * ) ; struct notifier_block *next ; int priority ; }; struct blocking_notifier_head { struct rw_semaphore rwsem ; struct notifier_block *head ; }; 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 idr_layer { int prefix ; unsigned long bitmap[4U] ; struct idr_layer *ary[256U] ; int count ; int layer ; struct callback_head callback_head ; }; struct idr { struct idr_layer *hint ; struct idr_layer *top ; struct idr_layer *id_free ; int layers ; int id_free_cnt ; int cur ; spinlock_t lock ; }; struct ida_bitmap { long nr_busy ; unsigned long bitmap[15U] ; }; struct ida { struct idr idr ; struct ida_bitmap *free_bitmap ; }; 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 dentry; struct iattr; struct vm_area_struct; struct super_block; struct file_system_type; struct kernfs_open_node; struct kernfs_iattrs; struct kernfs_root; struct kernfs_elem_dir { unsigned long subdirs ; struct rb_root children ; struct kernfs_root *root ; }; struct kernfs_node; struct kernfs_elem_symlink { struct kernfs_node *target_kn ; }; struct kernfs_ops; struct kernfs_elem_attr { struct kernfs_ops const *ops ; struct kernfs_open_node *open ; loff_t size ; }; union __anonunion_u_36 { struct completion *completion ; struct kernfs_node *removed_list ; }; union __anonunion____missing_field_name_37 { 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 ; union __anonunion_u_36 u ; void const *ns ; unsigned int hash ; union __anonunion____missing_field_name_37 __annonCompField21 ; void *priv ; unsigned short flags ; umode_t mode ; unsigned int ino ; struct kernfs_iattrs *iattr ; }; struct kernfs_dir_ops { 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 ; struct ida ino_ida ; struct kernfs_dir_ops *dir_ops ; }; struct vm_operations_struct; struct kernfs_open_file { struct kernfs_node *kn ; struct file *file ; struct mutex mutex ; int event ; struct list_head list ; 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 ) ; 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 sock; struct kobject; enum kobj_ns_type { KOBJ_NS_TYPE_NONE = 0, KOBJ_NS_TYPE_NET = 1, KOBJ_NS_TYPES = 2 } ; struct kobj_ns_type_operations { enum kobj_ns_type type ; 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 user_namespace; struct __anonstruct_kuid_t_38 { uid_t val ; }; typedef struct __anonstruct_kuid_t_38 kuid_t; struct __anonstruct_kgid_t_39 { gid_t val ; }; typedef struct __anonstruct_kgid_t_39 kgid_t; struct kstat { u64 ino ; dev_t dev ; umode_t mode ; unsigned int nlink ; kuid_t uid ; kgid_t gid ; dev_t rdev ; loff_t size ; struct timespec atime ; struct timespec mtime ; struct timespec ctime ; unsigned long blksize ; unsigned long long blocks ; }; struct bin_attribute; struct attribute { char const *name ; umode_t mode ; bool ignore_lockdep : 1 ; 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 int state_initialized : 1 ; unsigned int state_in_sysfs : 1 ; unsigned int state_add_uevent_sent : 1 ; unsigned int state_remove_uevent_sent : 1 ; unsigned int uevent_suppress : 1 ; }; struct kobj_type { void (*release)(struct kobject * ) ; struct sysfs_ops const *sysfs_ops ; struct attribute **default_attrs ; struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject * ) ; void const *(*namespace)(struct kobject * ) ; }; struct kobj_uevent_env { char *envp[32U] ; int envp_idx ; char buf[2048U] ; int buflen ; }; struct kset_uevent_ops { int (* const filter)(struct kset * , struct kobject * ) ; char const *(* const name)(struct kset * , struct kobject * ) ; int (* const uevent)(struct kset * , struct kobject * , struct kobj_uevent_env * ) ; }; struct kset { struct list_head list ; spinlock_t list_lock ; struct kobject kobj ; struct kset_uevent_ops const *uevent_ops ; }; struct klist_node; struct klist_node { void *n_klist ; struct list_head n_node ; struct kref n_ref ; }; struct __anonstruct_nodemask_t_40 { unsigned long bits[16U] ; }; typedef struct __anonstruct_nodemask_t_40 nodemask_t; struct path; struct inode; 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 pm_message { int event ; }; typedef struct pm_message pm_message_t; struct dev_pm_ops { int (*prepare)(struct device * ) ; void (*complete)(struct device * ) ; int (*suspend)(struct device * ) ; int (*resume)(struct device * ) ; int (*freeze)(struct device * ) ; int (*thaw)(struct device * ) ; int (*poweroff)(struct device * ) ; int (*restore)(struct device * ) ; int (*suspend_late)(struct device * ) ; int (*resume_early)(struct device * ) ; int (*freeze_late)(struct device * ) ; int (*thaw_early)(struct device * ) ; int (*poweroff_late)(struct device * ) ; int (*restore_early)(struct device * ) ; int (*suspend_noirq)(struct device * ) ; int (*resume_noirq)(struct device * ) ; int (*freeze_noirq)(struct device * ) ; int (*thaw_noirq)(struct device * ) ; int (*poweroff_noirq)(struct device * ) ; int (*restore_noirq)(struct device * ) ; int (*runtime_suspend)(struct device * ) ; int (*runtime_resume)(struct device * ) ; int (*runtime_idle)(struct device * ) ; }; enum rpm_status { RPM_ACTIVE = 0, RPM_RESUMING = 1, RPM_SUSPENDED = 2, RPM_SUSPENDING = 3 } ; enum rpm_request { RPM_REQ_NONE = 0, RPM_REQ_IDLE = 1, RPM_REQ_SUSPEND = 2, RPM_REQ_AUTOSUSPEND = 3, RPM_REQ_RESUME = 4 } ; struct wakeup_source; struct pm_subsys_data { spinlock_t lock ; unsigned int refcount ; struct list_head clock_list ; }; struct dev_pm_qos; struct dev_pm_info { pm_message_t power_state ; unsigned int can_wakeup : 1 ; unsigned int async_suspend : 1 ; bool is_prepared : 1 ; bool is_suspended : 1 ; bool ignore_children : 1 ; bool early_init : 1 ; spinlock_t lock ; struct list_head entry ; struct completion completion ; struct wakeup_source *wakeup ; bool wakeup_path : 1 ; bool syscore : 1 ; struct timer_list suspend_timer ; unsigned long timer_expires ; struct work_struct work ; wait_queue_head_t wait_queue ; atomic_t usage_count ; atomic_t child_count ; unsigned int disable_depth : 3 ; unsigned int idle_notification : 1 ; unsigned int request_pending : 1 ; unsigned int deferred_resume : 1 ; unsigned int run_wake : 1 ; unsigned int runtime_auto : 1 ; unsigned int no_callbacks : 1 ; unsigned int irq_safe : 1 ; unsigned int use_autosuspend : 1 ; unsigned int timer_autosuspends : 1 ; unsigned int 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 ; struct dev_pm_qos *qos ; }; struct dev_pm_domain { struct dev_pm_ops ops ; }; struct ctl_table; struct pci_dev; struct pci_bus; struct __anonstruct_mm_context_t_105 { void *ldt ; int size ; unsigned short ia32_compat ; struct mutex lock ; void *vdso ; }; typedef struct __anonstruct_mm_context_t_105 mm_context_t; struct device_node; struct llist_node; struct llist_node { struct llist_node *next ; }; struct dma_map_ops; struct dev_archdata { struct dma_map_ops *dma_ops ; void *iommu ; }; struct pdev_archdata { }; struct device_private; struct device_driver; struct driver_private; struct class; struct subsys_private; struct bus_type; 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 *iommu_ops ; struct subsys_private *p ; struct lock_class_key lock_key ; }; struct device_type; 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 ; 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 acpi_device; struct acpi_dev_node { struct acpi_device *companion ; }; struct dma_coherent_mem; struct device { struct device *parent ; struct device_private *p ; struct kobject kobj ; char const *init_name ; struct device_type const *type ; struct mutex mutex ; struct bus_type *bus ; struct device_driver *driver ; void *platform_data ; struct dev_pm_info power ; struct dev_pm_domain *pm_domain ; struct dev_pin_info *pins ; int numa_node ; u64 *dma_mask ; u64 coherent_dma_mask ; struct device_dma_parameters *dma_parms ; struct list_head dma_pools ; struct dma_coherent_mem *dma_mem ; struct dev_archdata archdata ; struct device_node *of_node ; struct acpi_dev_node acpi_node ; dev_t devt ; u32 id ; spinlock_t devres_lock ; struct list_head devres_head ; struct klist_node knode_class ; struct class *class ; struct attribute_group const **groups ; void (*release)(struct device * ) ; struct iommu_group *iommu_group ; bool offline_disabled : 1 ; bool offline : 1 ; }; struct wakeup_source { char const *name ; struct list_head entry ; spinlock_t lock ; struct timer_list timer ; unsigned long timer_expires ; ktime_t total_time ; ktime_t max_time ; ktime_t last_time ; ktime_t start_prevent_time ; ktime_t prevent_sleep_time ; unsigned long event_count ; unsigned long active_count ; unsigned long relax_count ; unsigned long expire_count ; unsigned long wakeup_count ; bool active : 1 ; bool autosleep_enabled : 1 ; }; struct pm_qos_request { struct plist_node node ; int pm_qos_class ; struct delayed_work work ; }; struct pm_qos_flags_request { struct list_head node ; s32 flags ; }; enum dev_pm_qos_req_type { DEV_PM_QOS_LATENCY = 1, DEV_PM_QOS_FLAGS = 2 } ; union __anonunion_data_133 { struct plist_node pnode ; struct pm_qos_flags_request flr ; }; struct dev_pm_qos_request { enum dev_pm_qos_req_type type ; union __anonunion_data_133 data ; struct device *dev ; }; enum pm_qos_type { PM_QOS_UNITIALIZED = 0, PM_QOS_MAX = 1, PM_QOS_MIN = 2 } ; struct pm_qos_constraints { struct plist_head list ; s32 target_value ; s32 default_value ; enum pm_qos_type type ; struct blocking_notifier_head *notifiers ; }; struct pm_qos_flags { struct list_head list ; s32 effective_flags ; }; struct dev_pm_qos { struct pm_qos_constraints latency ; struct pm_qos_flags flags ; struct dev_pm_qos_request *latency_req ; struct dev_pm_qos_request *flags_req ; }; struct iovec { void *iov_base ; __kernel_size_t iov_len ; }; struct kvec { void *iov_base ; size_t iov_len ; }; 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_136 { struct arch_uprobe_task autask ; unsigned long vaddr ; }; struct __anonstruct____missing_field_name_137 { struct callback_head dup_xol_work ; unsigned long dup_xol_addr ; }; union __anonunion____missing_field_name_135 { struct __anonstruct____missing_field_name_136 __annonCompField34 ; struct __anonstruct____missing_field_name_137 __annonCompField35 ; }; struct uprobe; struct return_instance; struct uprobe_task { enum uprobe_task_state state ; union __anonunion____missing_field_name_135 __annonCompField36 ; 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; union __anonunion____missing_field_name_138 { struct address_space *mapping ; void *s_mem ; }; union __anonunion____missing_field_name_140 { unsigned long index ; void *freelist ; bool pfmemalloc ; }; struct __anonstruct____missing_field_name_144 { unsigned int inuse : 16 ; unsigned int objects : 15 ; unsigned int frozen : 1 ; }; union __anonunion____missing_field_name_143 { atomic_t _mapcount ; struct __anonstruct____missing_field_name_144 __annonCompField39 ; int units ; }; struct __anonstruct____missing_field_name_142 { union __anonunion____missing_field_name_143 __annonCompField40 ; atomic_t _count ; }; union __anonunion____missing_field_name_141 { unsigned long counters ; struct __anonstruct____missing_field_name_142 __annonCompField41 ; unsigned int active ; }; struct __anonstruct____missing_field_name_139 { union __anonunion____missing_field_name_140 __annonCompField38 ; union __anonunion____missing_field_name_141 __annonCompField42 ; }; struct __anonstruct____missing_field_name_146 { struct page *next ; int pages ; int pobjects ; }; struct slab; union __anonunion____missing_field_name_145 { struct list_head lru ; struct __anonstruct____missing_field_name_146 __annonCompField44 ; struct list_head list ; struct slab *slab_page ; struct callback_head callback_head ; pgtable_t pmd_huge_pte ; }; union __anonunion____missing_field_name_147 { 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_138 __annonCompField37 ; struct __anonstruct____missing_field_name_139 __annonCompField43 ; union __anonunion____missing_field_name_145 __annonCompField45 ; union __anonunion____missing_field_name_147 __annonCompField46 ; unsigned long debug_flags ; }; struct page_frag { struct page *page ; __u32 offset ; __u32 size ; }; struct __anonstruct_linear_149 { struct rb_node rb ; unsigned long rb_subtree_last ; }; union __anonunion_shared_148 { struct __anonstruct_linear_149 linear ; struct list_head nonlinear ; }; struct anon_vma; struct mempolicy; struct vm_area_struct { unsigned long vm_start ; unsigned long vm_end ; struct vm_area_struct *vm_next ; struct vm_area_struct *vm_prev ; struct rb_node vm_rb ; unsigned long rb_subtree_gap ; struct mm_struct *vm_mm ; pgprot_t vm_page_prot ; unsigned long vm_flags ; union __anonunion_shared_148 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 ; struct vm_area_struct *mmap_cache ; 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 ; 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 ; }; struct shrink_control { gfp_t gfp_mask ; unsigned long nr_to_scan ; nodemask_t nodes_to_scan ; int nid ; }; 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 user_struct; struct writeback_control; struct vm_fault { unsigned int flags ; unsigned long pgoff ; void *virtual_address ; struct page *page ; }; struct vm_operations_struct { void (*open)(struct vm_area_struct * ) ; void (*close)(struct vm_area_struct * ) ; int (*fault)(struct vm_area_struct * , struct vm_fault * ) ; int (*page_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*access)(struct vm_area_struct * , unsigned long , void * , int , int ) ; int (*set_policy)(struct vm_area_struct * , struct mempolicy * ) ; struct mempolicy *(*get_policy)(struct vm_area_struct * , unsigned long ) ; int (*migrate)(struct vm_area_struct * , nodemask_t const * , nodemask_t const * , unsigned long ) ; int (*remap_pages)(struct vm_area_struct * , unsigned long , unsigned long , unsigned long ) ; }; struct 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 ; }; typedef s32 dma_cookie_t; 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 sem_undo_list; struct sysv_sem { struct sem_undo_list *undo_list ; }; typedef unsigned short __kernel_sa_family_t; struct cred; typedef __kernel_sa_family_t sa_family_t; struct sockaddr { sa_family_t sa_family ; char sa_data[14U] ; }; struct msghdr { void *msg_name ; int msg_namelen ; struct iovec *msg_iov ; __kernel_size_t msg_iovlen ; void *msg_control ; __kernel_size_t msg_controllen ; unsigned int msg_flags ; }; struct __anonstruct_sync_serial_settings_151 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; }; typedef struct __anonstruct_sync_serial_settings_151 sync_serial_settings; struct __anonstruct_te1_settings_152 { unsigned int clock_rate ; unsigned int clock_type ; unsigned short loopback ; unsigned int slot_map ; }; typedef struct __anonstruct_te1_settings_152 te1_settings; struct __anonstruct_raw_hdlc_proto_153 { unsigned short encoding ; unsigned short parity ; }; typedef struct __anonstruct_raw_hdlc_proto_153 raw_hdlc_proto; struct __anonstruct_fr_proto_154 { 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_154 fr_proto; struct __anonstruct_fr_proto_pvc_155 { unsigned int dlci ; }; typedef struct __anonstruct_fr_proto_pvc_155 fr_proto_pvc; struct __anonstruct_fr_proto_pvc_info_156 { unsigned int dlci ; char master[16U] ; }; typedef struct __anonstruct_fr_proto_pvc_info_156 fr_proto_pvc_info; struct __anonstruct_cisco_proto_157 { unsigned int interval ; unsigned int timeout ; }; typedef struct __anonstruct_cisco_proto_157 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_158 { 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_158 ifs_ifsu ; }; union __anonunion_ifr_ifrn_159 { char ifrn_name[16U] ; }; union __anonunion_ifr_ifru_160 { 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_159 ifr_ifrn ; union __anonunion_ifr_ifru_160 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_163 { spinlock_t lock ; unsigned int count ; }; union __anonunion____missing_field_name_162 { struct __anonstruct____missing_field_name_163 __annonCompField47 ; }; struct lockref { union __anonunion____missing_field_name_162 __annonCompField48 ; }; struct nameidata; struct vfsmount; struct __anonstruct____missing_field_name_165 { u32 hash ; u32 len ; }; union __anonunion____missing_field_name_164 { struct __anonstruct____missing_field_name_165 __annonCompField49 ; u64 hash_len ; }; struct qstr { union __anonunion____missing_field_name_164 __annonCompField50 ; unsigned char const *name ; }; struct dentry_operations; union __anonunion_d_u_166 { struct list_head d_child ; struct callback_head d_rcu ; }; struct dentry { unsigned int d_flags ; seqcount_t d_seq ; struct hlist_bl_node d_hash ; struct dentry *d_parent ; struct qstr d_name ; struct inode *d_inode ; unsigned char d_iname[32U] ; 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 ; union __anonunion_d_u_166 d_u ; struct list_head d_subdirs ; struct hlist_node d_alias ; }; 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 path { struct vfsmount *mnt ; struct dentry *dentry ; }; struct list_lru_node { spinlock_t lock ; struct list_head list ; long nr_items ; }; struct list_lru { struct list_lru_node *node ; nodemask_t active_nodes ; }; struct radix_tree_node; struct radix_tree_root { unsigned int height ; gfp_t gfp_mask ; struct radix_tree_node *rnode ; }; enum pid_type { PIDTYPE_PID = 0, PIDTYPE_PGID = 1, PIDTYPE_SID = 2, PIDTYPE_MAX = 3 } ; struct pid_namespace; struct upid { int nr ; struct pid_namespace *ns ; struct hlist_node pid_chain ; }; struct pid { atomic_t count ; unsigned int level ; struct hlist_head tasks[3U] ; struct callback_head rcu ; struct upid numbers[1U] ; }; struct pid_link { struct hlist_node node ; struct pid *pid ; }; struct kernel_cap_struct { __u32 cap[2U] ; }; typedef struct kernel_cap_struct kernel_cap_t; struct fiemap_extent { __u64 fe_logical ; __u64 fe_physical ; __u64 fe_length ; __u64 fe_reserved64[2U] ; __u32 fe_flags ; __u32 fe_reserved[3U] ; }; enum migrate_mode { MIGRATE_ASYNC = 0, MIGRATE_SYNC_LIGHT = 1, MIGRATE_SYNC = 2 } ; struct block_device; struct io_context; struct cgroup_subsys_state; struct export_operations; struct kiocb; struct pipe_inode_info; struct poll_table_struct; struct kstatfs; struct swap_info_struct; struct iattr { unsigned int ia_valid ; umode_t ia_mode ; kuid_t ia_uid ; kgid_t ia_gid ; loff_t ia_size ; struct timespec ia_atime ; struct timespec ia_mtime ; struct timespec ia_ctime ; struct file *ia_file ; }; struct percpu_counter { raw_spinlock_t lock ; s64 count ; struct list_head list ; s32 *counters ; }; struct fs_disk_quota { __s8 d_version ; __s8 d_flags ; __u16 d_fieldmask ; __u32 d_id ; __u64 d_blk_hardlimit ; __u64 d_blk_softlimit ; __u64 d_ino_hardlimit ; __u64 d_ino_softlimit ; __u64 d_bcount ; __u64 d_icount ; __s32 d_itimer ; __s32 d_btimer ; __u16 d_iwarns ; __u16 d_bwarns ; __s32 d_padding2 ; __u64 d_rtb_hardlimit ; __u64 d_rtb_softlimit ; __u64 d_rtbcount ; __s32 d_rtbtimer ; __u16 d_rtbwarns ; __s16 d_padding3 ; char d_padding4[8U] ; }; struct fs_qfilestat { __u64 qfs_ino ; __u64 qfs_nblks ; __u32 qfs_nextents ; }; typedef struct fs_qfilestat fs_qfilestat_t; struct fs_quota_stat { __s8 qs_version ; __u16 qs_flags ; __s8 qs_pad ; fs_qfilestat_t qs_uquota ; fs_qfilestat_t qs_gquota ; __u32 qs_incoredqs ; __s32 qs_btimelimit ; __s32 qs_itimelimit ; __s32 qs_rtbtimelimit ; __u16 qs_bwarnlimit ; __u16 qs_iwarnlimit ; }; struct fs_qfilestatv { __u64 qfs_ino ; __u64 qfs_nblks ; __u32 qfs_nextents ; __u32 qfs_pad ; }; struct fs_quota_statv { __s8 qs_version ; __u8 qs_pad1 ; __u16 qs_flags ; __u32 qs_incoredqs ; struct fs_qfilestatv qs_uquota ; struct fs_qfilestatv qs_gquota ; struct fs_qfilestatv qs_pquota ; __s32 qs_btimelimit ; __s32 qs_itimelimit ; __s32 qs_rtbtimelimit ; __u16 qs_bwarnlimit ; __u16 qs_iwarnlimit ; __u64 qs_pad2[8U] ; }; struct dquot; typedef __kernel_uid32_t projid_t; struct __anonstruct_kprojid_t_168 { projid_t val ; }; typedef struct __anonstruct_kprojid_t_168 kprojid_t; struct if_dqinfo { __u64 dqi_bgrace ; __u64 dqi_igrace ; __u32 dqi_flags ; __u32 dqi_valid ; }; enum quota_type { USRQUOTA = 0, GRPQUOTA = 1, PRJQUOTA = 2 } ; typedef long long qsize_t; union __anonunion____missing_field_name_169 { kuid_t uid ; kgid_t gid ; kprojid_t projid ; }; struct kqid { union __anonunion____missing_field_name_169 __annonCompField51 ; enum quota_type type ; }; struct mem_dqblk { qsize_t dqb_bhardlimit ; qsize_t dqb_bsoftlimit ; qsize_t dqb_curspace ; qsize_t dqb_rsvspace ; qsize_t dqb_ihardlimit ; qsize_t dqb_isoftlimit ; qsize_t dqb_curinodes ; time_t dqb_btime ; time_t dqb_itime ; }; struct quota_format_type; struct mem_dqinfo { struct quota_format_type *dqi_format ; int dqi_fmt_id ; struct list_head dqi_dirty_list ; unsigned long dqi_flags ; unsigned int dqi_bgrace ; unsigned int dqi_igrace ; qsize_t dqi_maxblimit ; qsize_t dqi_maxilimit ; void *dqi_priv ; }; struct dquot { struct hlist_node dq_hash ; struct list_head dq_inuse ; struct list_head dq_free ; struct list_head dq_dirty ; struct mutex dq_lock ; atomic_t dq_count ; wait_queue_head_t dq_wait_unused ; struct super_block *dq_sb ; struct kqid dq_id ; loff_t dq_off ; unsigned long dq_flags ; struct mem_dqblk dq_dqb ; }; struct quota_format_ops { int (*check_quota_file)(struct super_block * , int ) ; int (*read_file_info)(struct super_block * , int ) ; int (*write_file_info)(struct super_block * , int ) ; int (*free_file_info)(struct super_block * , int ) ; int (*read_dqblk)(struct dquot * ) ; int (*commit_dqblk)(struct dquot * ) ; int (*release_dqblk)(struct dquot * ) ; }; struct dquot_operations { int (*write_dquot)(struct dquot * ) ; struct dquot *(*alloc_dquot)(struct super_block * , int ) ; void (*destroy_dquot)(struct dquot * ) ; int (*acquire_dquot)(struct dquot * ) ; int (*release_dquot)(struct dquot * ) ; int (*mark_dirty)(struct dquot * ) ; int (*write_info)(struct super_block * , int ) ; qsize_t *(*get_reserved_space)(struct inode * ) ; }; struct quotactl_ops { int (*quota_on)(struct super_block * , int , int , struct path * ) ; int (*quota_on_meta)(struct super_block * , int , int ) ; int (*quota_off)(struct super_block * , int ) ; int (*quota_sync)(struct super_block * , int ) ; int (*get_info)(struct super_block * , int , struct if_dqinfo * ) ; int (*set_info)(struct super_block * , int , struct if_dqinfo * ) ; int (*get_dqblk)(struct super_block * , struct kqid , struct fs_disk_quota * ) ; int (*set_dqblk)(struct super_block * , struct kqid , struct fs_disk_quota * ) ; int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ; int (*set_xstate)(struct super_block * , unsigned int , int ) ; int (*get_xstatev)(struct super_block * , struct fs_quota_statv * ) ; }; struct quota_format_type { int qf_fmt_id ; struct quota_format_ops const *qf_ops ; struct module *qf_owner ; struct quota_format_type *qf_next ; }; struct quota_info { unsigned int flags ; struct mutex dqio_mutex ; struct mutex dqonoff_mutex ; struct rw_semaphore dqptr_sem ; struct inode *files[2U] ; struct mem_dqinfo info[2U] ; struct quota_format_ops const *ops[2U] ; }; union __anonunion_arg_171 { char *buf ; void *data ; }; struct __anonstruct_read_descriptor_t_170 { size_t written ; size_t count ; union __anonunion_arg_171 arg ; int error ; }; typedef struct __anonstruct_read_descriptor_t_170 read_descriptor_t; struct address_space_operations { int (*writepage)(struct page * , struct writeback_control * ) ; int (*readpage)(struct file * , struct page * ) ; int (*writepages)(struct address_space * , struct writeback_control * ) ; int (*set_page_dirty)(struct page * ) ; int (*readpages)(struct file * , struct address_space * , struct list_head * , unsigned int ) ; int (*write_begin)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page ** , void ** ) ; int (*write_end)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page * , void * ) ; sector_t (*bmap)(struct address_space * , sector_t ) ; void (*invalidatepage)(struct page * , unsigned int , unsigned int ) ; int (*releasepage)(struct page * , gfp_t ) ; void (*freepage)(struct page * ) ; ssize_t (*direct_IO)(int , struct kiocb * , struct iovec const * , loff_t , unsigned long ) ; int (*get_xip_mem)(struct address_space * , unsigned long , int , void ** , unsigned long * ) ; int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode ) ; int (*launder_page)(struct page * ) ; int (*is_partially_uptodate)(struct page * , read_descriptor_t * , unsigned long ) ; 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 backing_dev_info; struct address_space { struct inode *host ; struct radix_tree_root page_tree ; spinlock_t tree_lock ; unsigned int i_mmap_writable ; struct rb_root i_mmap ; struct list_head i_mmap_nonlinear ; struct mutex i_mmap_mutex ; unsigned long nrpages ; unsigned long writeback_index ; struct address_space_operations const *a_ops ; unsigned long flags ; struct backing_dev_info *backing_dev_info ; spinlock_t private_lock ; struct list_head private_list ; void *private_data ; }; struct request_queue; struct hd_struct; struct gendisk; struct block_device { dev_t bd_dev ; int bd_openers ; struct inode *bd_inode ; struct super_block *bd_super ; struct mutex bd_mutex ; struct list_head bd_inodes ; void *bd_claiming ; void *bd_holder ; int bd_holders ; bool bd_write_holder ; struct list_head bd_holder_disks ; struct block_device *bd_contains ; unsigned int bd_block_size ; struct hd_struct *bd_part ; unsigned int bd_part_count ; int bd_invalidated ; struct gendisk *bd_disk ; struct request_queue *bd_queue ; struct list_head bd_list ; unsigned long bd_private ; int bd_fsfreeze_count ; struct mutex bd_fsfreeze_mutex ; }; struct posix_acl; struct inode_operations; union __anonunion____missing_field_name_172 { unsigned int const i_nlink ; unsigned int __i_nlink ; }; union __anonunion____missing_field_name_173 { struct hlist_head i_dentry ; struct callback_head i_rcu ; }; struct file_lock; struct cdev; union __anonunion____missing_field_name_174 { struct pipe_inode_info *i_pipe ; struct block_device *i_bdev ; struct cdev *i_cdev ; }; struct inode { umode_t i_mode ; unsigned short i_opflags ; kuid_t i_uid ; kgid_t i_gid ; unsigned int i_flags ; struct posix_acl *i_acl ; struct posix_acl *i_default_acl ; struct inode_operations const *i_op ; struct super_block *i_sb ; struct address_space *i_mapping ; void *i_security ; unsigned long i_ino ; union __anonunion____missing_field_name_172 __annonCompField52 ; dev_t i_rdev ; loff_t i_size ; struct timespec i_atime ; struct timespec i_mtime ; struct timespec i_ctime ; spinlock_t i_lock ; unsigned short i_bytes ; unsigned int i_blkbits ; blkcnt_t i_blocks ; unsigned long i_state ; struct mutex i_mutex ; unsigned long dirtied_when ; struct hlist_node i_hash ; struct list_head i_wb_list ; struct list_head i_lru ; struct list_head i_sb_list ; union __anonunion____missing_field_name_173 __annonCompField53 ; u64 i_version ; atomic_t i_count ; atomic_t i_dio_count ; atomic_t i_writecount ; struct file_operations const *i_fop ; struct file_lock *i_flock ; struct address_space i_data ; struct dquot *i_dquot[2U] ; struct list_head i_devices ; union __anonunion____missing_field_name_174 __annonCompField54 ; __u32 i_generation ; __u32 i_fsnotify_mask ; struct hlist_head i_fsnotify_marks ; atomic_t i_readcount ; void *i_private ; }; struct fown_struct { rwlock_t lock ; struct pid *pid ; enum pid_type pid_type ; kuid_t uid ; kuid_t euid ; int signum ; }; struct file_ra_state { unsigned long start ; unsigned int size ; unsigned int async_size ; unsigned int ra_pages ; unsigned int mmap_miss ; loff_t prev_pos ; }; union __anonunion_f_u_175 { struct llist_node fu_llist ; struct callback_head fu_rcuhead ; }; struct file { union __anonunion_f_u_175 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 ; unsigned long f_mnt_write_state ; }; struct files_struct; typedef struct files_struct *fl_owner_t; struct file_lock_operations { void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ; void (*fl_release_private)(struct file_lock * ) ; }; struct lock_manager_operations { int (*lm_compare_owner)(struct file_lock * , struct file_lock * ) ; unsigned long (*lm_owner_key)(struct file_lock * ) ; void (*lm_notify)(struct file_lock * ) ; int (*lm_grant)(struct file_lock * , struct file_lock * , int ) ; void (*lm_break)(struct file_lock * ) ; int (*lm_change)(struct file_lock ** , int ) ; }; struct net; struct nlm_lockowner; struct nfs_lock_info { u32 state ; struct nlm_lockowner *owner ; struct list_head list ; }; struct nfs4_lock_state; struct nfs4_lock_info { struct nfs4_lock_state *owner ; }; struct fasync_struct; struct __anonstruct_afs_177 { struct list_head link ; int state ; }; union __anonunion_fl_u_176 { struct nfs_lock_info nfs_fl ; struct nfs4_lock_info nfs4_fl ; struct __anonstruct_afs_177 afs ; }; struct file_lock { struct file_lock *fl_next ; 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_176 fl_u ; }; struct fasync_struct { spinlock_t fa_lock ; int magic ; int fa_fd ; struct fasync_struct *fa_next ; struct file *fa_file ; struct callback_head fa_rcu ; }; struct sb_writers { struct percpu_counter counter[3U] ; wait_queue_head_t wait ; int frozen ; wait_queue_head_t wait_unfrozen ; struct lockdep_map lock_map[3U] ; }; struct super_operations; struct xattr_handler; struct mtd_info; struct super_block { struct list_head s_list ; dev_t s_dev ; unsigned char s_blocksize_bits ; unsigned long s_blocksize ; loff_t s_maxbytes ; struct file_system_type *s_type ; struct super_operations const *s_op ; struct dquot_operations const *dq_op ; struct quotactl_ops const *s_qcop ; struct export_operations const *s_export_op ; unsigned long s_flags ; unsigned long s_magic ; struct dentry *s_root ; struct rw_semaphore s_umount ; int s_count ; atomic_t s_active ; void *s_security ; struct xattr_handler const **s_xattr ; struct list_head s_inodes ; struct hlist_bl_head s_anon ; struct list_head s_mounts ; struct block_device *s_bdev ; struct backing_dev_info *s_bdi ; struct mtd_info *s_mtd ; struct hlist_node s_instances ; struct quota_info s_dquot ; struct sb_writers s_writers ; char s_id[32U] ; u8 s_uuid[16U] ; void *s_fs_info ; unsigned int s_max_links ; fmode_t s_mode ; u32 s_time_gran ; struct mutex s_vfs_rename_mutex ; char *s_subtype ; char *s_options ; struct dentry_operations const *s_d_op ; int cleancache_poolid ; struct shrinker s_shrink ; atomic_long_t s_remove_count ; int s_readonly_remount ; struct workqueue_struct *s_dio_done_wq ; struct list_lru s_dentry_lru ; struct list_lru s_inode_lru ; struct callback_head rcu ; }; 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 { int (*actor)(void * , 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 (*aio_read)(struct kiocb * , struct iovec const * , unsigned long , loff_t ) ; ssize_t (*aio_write)(struct kiocb * , struct iovec const * , unsigned long , loff_t ) ; int (*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 (*open)(struct inode * , struct file * ) ; int (*flush)(struct file * , fl_owner_t ) ; int (*release)(struct inode * , struct file * ) ; int (*fsync)(struct file * , loff_t , loff_t , int ) ; int (*aio_fsync)(struct kiocb * , int ) ; int (*fasync)(int , struct file * , int ) ; int (*lock)(struct file * , int , struct file_lock * ) ; ssize_t (*sendpage)(struct file * , struct page * , int , size_t , loff_t * , int ) ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; int (*check_flags)(int ) ; int (*flock)(struct file * , int , struct file_lock * ) ; ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t , unsigned int ) ; ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; int (*setlease)(struct file * , long , struct file_lock ** ) ; long (*fallocate)(struct file * , int , loff_t , loff_t ) ; int (*show_fdinfo)(struct seq_file * , struct file * ) ; }; struct inode_operations { struct dentry *(*lookup)(struct inode * , struct dentry * , unsigned int ) ; void *(*follow_link)(struct dentry * , struct nameidata * ) ; int (*permission)(struct inode * , int ) ; struct posix_acl *(*get_acl)(struct inode * , int ) ; int (*readlink)(struct dentry * , char * , int ) ; void (*put_link)(struct dentry * , struct nameidata * , void * ) ; int (*create)(struct inode * , struct dentry * , umode_t , bool ) ; int (*link)(struct dentry * , struct inode * , struct dentry * ) ; int (*unlink)(struct inode * , struct dentry * ) ; int (*symlink)(struct inode * , struct dentry * , char const * ) ; int (*mkdir)(struct inode * , struct dentry * , umode_t ) ; int (*rmdir)(struct inode * , struct dentry * ) ; int (*mknod)(struct inode * , struct dentry * , umode_t , dev_t ) ; int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ; int (*setattr)(struct dentry * , struct iattr * ) ; int (*getattr)(struct vfsmount * , struct dentry * , struct kstat * ) ; int (*setxattr)(struct dentry * , char const * , void const * , size_t , int ) ; ssize_t (*getxattr)(struct dentry * , char const * , void * , size_t ) ; ssize_t (*listxattr)(struct dentry * , char * , size_t ) ; int (*removexattr)(struct dentry * , char const * ) ; int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 , u64 ) ; int (*update_time)(struct inode * , struct timespec * , int ) ; int (*atomic_open)(struct inode * , struct dentry * , struct file * , unsigned int , umode_t , int * ) ; 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_fs)(struct super_block * ) ; int (*unfreeze_fs)(struct super_block * ) ; int (*statfs)(struct dentry * , struct kstatfs * ) ; int (*remount_fs)(struct super_block * , int * , char * ) ; void (*umount_begin)(struct super_block * ) ; int (*show_options)(struct seq_file * , struct dentry * ) ; int (*show_devname)(struct seq_file * , struct dentry * ) ; int (*show_path)(struct seq_file * , struct dentry * ) ; int (*show_stats)(struct seq_file * , struct dentry * ) ; ssize_t (*quota_read)(struct super_block * , int , char * , size_t , loff_t ) ; ssize_t (*quota_write)(struct super_block * , int , char const * , size_t , loff_t ) ; int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ; long (*nr_cached_objects)(struct super_block * , int ) ; long (*free_cached_objects)(struct super_block * , long , int ) ; }; struct file_system_type { char const *name ; int fs_flags ; struct dentry *(*mount)(struct file_system_type * , int , char const * , void * ) ; void (*kill_sb)(struct super_block * ) ; struct module *owner ; struct file_system_type *next ; struct hlist_head fs_supers ; struct lock_class_key s_lock_key ; struct lock_class_key s_umount_key ; struct lock_class_key s_vfs_rename_key ; struct lock_class_key s_writers_key[3U] ; struct lock_class_key i_lock_key ; struct lock_class_key i_mutex_key ; struct lock_class_key i_mutex_dir_key ; }; typedef unsigned long cputime_t; struct __anonstruct_sigset_t_178 { unsigned long sig[1U] ; }; typedef struct __anonstruct_sigset_t_178 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_180 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; }; struct __anonstruct__timer_181 { __kernel_timer_t _tid ; int _overrun ; char _pad[0U] ; sigval_t _sigval ; int _sys_private ; }; struct __anonstruct__rt_182 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; sigval_t _sigval ; }; struct __anonstruct__sigchld_183 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; int _status ; __kernel_clock_t _utime ; __kernel_clock_t _stime ; }; struct __anonstruct__sigfault_184 { void *_addr ; short _addr_lsb ; }; struct __anonstruct__sigpoll_185 { long _band ; int _fd ; }; struct __anonstruct__sigsys_186 { void *_call_addr ; int _syscall ; unsigned int _arch ; }; union __anonunion__sifields_179 { int _pad[28U] ; struct __anonstruct__kill_180 _kill ; struct __anonstruct__timer_181 _timer ; struct __anonstruct__rt_182 _rt ; struct __anonstruct__sigchld_183 _sigchld ; struct __anonstruct__sigfault_184 _sigfault ; struct __anonstruct__sigpoll_185 _sigpoll ; struct __anonstruct__sigsys_186 _sigsys ; }; struct siginfo { int si_signo ; int si_errno ; int si_code ; union __anonunion__sifields_179 _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 ; }; 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 resolution ; ktime_t (*get_time)(void) ; ktime_t softirq_time ; ktime_t offset ; }; struct hrtimer_cpu_base { raw_spinlock_t lock ; unsigned int active_bases ; unsigned int clock_was_set ; ktime_t expires_next ; int hres_active ; int hang_detected ; unsigned long nr_events ; unsigned long nr_retries ; unsigned long nr_hangs ; ktime_t max_hang_time ; struct hrtimer_clock_base clock_base[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 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_190 { struct ctl_table *ctl_table ; int used ; int count ; int nreg ; }; union __anonunion____missing_field_name_189 { struct __anonstruct____missing_field_name_190 __annonCompField55 ; struct callback_head rcu ; }; struct ctl_table_set; struct ctl_table_header { union __anonunion____missing_field_name_189 __annonCompField56 ; 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 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 key_type; struct keyring_index_key { struct key_type *type ; char const *description ; size_t desc_len ; }; union __anonunion____missing_field_name_191 { struct list_head graveyard_link ; struct rb_node serial_node ; }; struct key_user; union __anonunion____missing_field_name_192 { time_t expiry ; time_t revoked_at ; }; struct __anonstruct____missing_field_name_194 { struct key_type *type ; char *description ; }; union __anonunion____missing_field_name_193 { struct keyring_index_key index_key ; struct __anonstruct____missing_field_name_194 __annonCompField59 ; }; union __anonunion_type_data_195 { struct list_head link ; unsigned long x[2U] ; void *p[2U] ; int reject_error ; }; union __anonunion_payload_197 { unsigned long value ; void *rcudata ; void *data ; void *data2[2U] ; }; union __anonunion____missing_field_name_196 { union __anonunion_payload_197 payload ; struct assoc_array keys ; }; struct key { atomic_t usage ; key_serial_t serial ; union __anonunion____missing_field_name_191 __annonCompField57 ; struct rw_semaphore sem ; struct key_user *user ; void *security ; union __anonunion____missing_field_name_192 __annonCompField58 ; 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_193 __annonCompField60 ; union __anonunion_type_data_195 type_data ; union __anonunion____missing_field_name_196 __annonCompField61 ; }; 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 ; }; struct futex_pi_state; struct robust_list_head; struct bio_list; struct fs_struct; struct perf_event_context; struct blk_plug; struct cfs_rq; struct task_group; struct sighand_struct { atomic_t count ; struct k_sigaction action[64U] ; spinlock_t siglock ; wait_queue_head_t signalfd_wqh ; }; struct pacct_struct { int ac_flag ; long ac_exitcode ; unsigned long ac_mem ; cputime_t ac_utime ; cputime_t ac_stime ; unsigned long ac_minflt ; unsigned long ac_majflt ; }; struct cpu_itimer { cputime_t expires ; cputime_t incr ; u32 error ; u32 incr_error ; }; struct cputime { cputime_t utime ; cputime_t stime ; }; struct task_cputime { cputime_t utime ; cputime_t stime ; unsigned long long sum_exec_runtime ; }; struct thread_group_cputimer { struct task_cputime cputime ; int running ; raw_spinlock_t lock ; }; struct autogroup; struct tty_struct; struct taskstats; struct tty_audit_buf; struct signal_struct { atomic_t sigcnt ; atomic_t live ; int nr_threads ; 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 int is_child_subreaper : 1 ; unsigned int 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 ; 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 ; struct rw_semaphore group_rwsem ; oom_flags_t oom_flags ; short oom_score_adj ; short oom_score_adj_min ; struct mutex cred_guard_mutex ; }; struct user_struct { atomic_t __count ; atomic_t processes ; atomic_t files ; atomic_t sigpending ; atomic_t inotify_watches ; atomic_t inotify_devs ; atomic_t fanotify_listeners ; atomic_long_t epoll_watches ; unsigned long mq_bytes ; unsigned long locked_shm ; struct key *uid_keyring ; struct key *session_keyring ; struct hlist_node uidhash_node ; kuid_t uid ; atomic_long_t locked_vm ; }; struct reclaim_state; struct sched_info { unsigned long pcount ; unsigned long long run_delay ; unsigned long long last_arrival ; unsigned long long last_queued ; }; struct task_delay_info { spinlock_t lock ; unsigned int flags ; struct timespec blkio_start ; struct timespec blkio_end ; u64 blkio_delay ; u64 swapin_delay ; u32 blkio_count ; u32 swapin_count ; struct timespec freepages_start ; struct timespec freepages_end ; u64 freepages_delay ; u32 freepages_count ; }; struct uts_namespace; struct load_weight { unsigned long weight ; u32 inv_weight ; }; struct sched_avg { u32 runnable_avg_sum ; u32 runnable_avg_period ; u64 last_runnable_update ; s64 decay_count ; unsigned long load_avg_contrib ; }; struct sched_statistics { u64 wait_start ; u64 wait_max ; u64 wait_count ; u64 wait_sum ; u64 iowait_count ; u64 iowait_sum ; u64 sleep_start ; u64 sleep_max ; s64 sum_sleep_runtime ; u64 block_start ; u64 block_max ; u64 exec_max ; u64 slice_max ; u64 nr_migrations_cold ; u64 nr_failed_migrations_affine ; u64 nr_failed_migrations_running ; u64 nr_failed_migrations_hot ; u64 nr_forced_migrations ; u64 nr_wakeups ; u64 nr_wakeups_sync ; u64 nr_wakeups_migrate ; u64 nr_wakeups_local ; u64 nr_wakeups_remote ; u64 nr_wakeups_affine ; u64 nr_wakeups_affine_attempts ; u64 nr_wakeups_passive ; u64 nr_wakeups_idle ; }; struct sched_entity { struct load_weight load ; struct rb_node run_node ; struct list_head group_node ; unsigned int on_rq ; u64 exec_start ; u64 sum_exec_runtime ; u64 vruntime ; u64 prev_sum_exec_runtime ; u64 nr_migrations ; struct sched_statistics statistics ; struct sched_entity *parent ; struct cfs_rq *cfs_rq ; struct cfs_rq *my_q ; struct sched_avg avg ; }; struct rt_rq; struct sched_rt_entity { struct list_head run_list ; unsigned long timeout ; unsigned 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 ; struct hrtimer dl_timer ; }; struct mem_cgroup; struct memcg_batch_info { int do_batch ; struct mem_cgroup *memcg ; unsigned long nr_pages ; unsigned long memsw_nr_pages ; }; struct memcg_oom_info { struct mem_cgroup *memcg ; gfp_t gfp_mask ; int order ; unsigned int may_oom : 1 ; }; struct sched_class; struct css_set; struct compat_robust_list_head; struct numa_group; struct ftrace_ret_stack; 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 btrace_seq ; unsigned int policy ; int nr_cpus_allowed ; cpumask_t cpus_allowed ; struct sched_info sched_info ; struct list_head tasks ; struct plist_node pushable_tasks ; struct rb_node pushable_dl_tasks ; struct mm_struct *mm ; struct mm_struct *active_mm ; unsigned int brk_randomized : 1 ; struct task_rss_stat rss_stat ; int exit_state ; int exit_code ; int exit_signal ; int pdeath_signal ; unsigned int jobctl ; unsigned int personality ; unsigned int in_execve : 1 ; unsigned int in_iowait : 1 ; unsigned int no_new_privs : 1 ; unsigned int sched_reset_on_fork : 1 ; unsigned int sched_contributes_to_load : 1 ; 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 ; struct timespec start_time ; struct timespec real_start_time ; unsigned long min_flt ; unsigned long maj_flt ; struct task_cputime cputime_expires ; struct list_head cpu_timers[3U] ; struct cred const *real_cred ; struct cred const *cred ; char comm[16U] ; int link_count ; int total_link_count ; struct sysv_sem sysvsem ; unsigned long last_switch_count ; struct thread_struct thread ; struct fs_struct *fs ; struct files_struct *files ; struct nsproxy *nsproxy ; struct signal_struct *signal ; struct sighand_struct *sighand ; sigset_t blocked ; sigset_t real_blocked ; sigset_t saved_sigmask ; struct sigpending pending ; unsigned long sas_ss_sp ; size_t sas_ss_size ; int (*notifier)(void * ) ; void *notifier_data ; sigset_t *notifier_mask ; struct callback_head *task_works ; struct audit_context *audit_context ; kuid_t loginuid ; unsigned int sessionid ; struct seccomp seccomp ; u32 parent_exec_id ; u32 self_exec_id ; spinlock_t alloc_lock ; raw_spinlock_t pi_lock ; struct rb_root pi_waiters ; struct rb_node *pi_waiters_leftmost ; struct rt_mutex_waiter *pi_blocked_on ; struct task_struct *pi_top_task ; 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 ; int numa_migrate_deferred ; unsigned long numa_migrate_retry ; u64 node_stamp ; 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_buffer ; unsigned long numa_faults_locality[2U] ; 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 ; int curr_ret_stack ; struct ftrace_ret_stack *ret_stack ; unsigned long long ftrace_timestamp ; atomic_t trace_overrun ; atomic_t tracing_graph_pause ; unsigned long trace ; unsigned long trace_recursion ; struct memcg_batch_info memcg_batch ; unsigned int memcg_kmem_skip_account ; struct memcg_oom_info memcg_oom ; struct uprobe_task *utask ; unsigned int sequential_io ; unsigned int sequential_io_avg ; }; typedef s32 compat_long_t; typedef u32 compat_uptr_t; struct compat_robust_list { compat_uptr_t next ; }; struct compat_robust_list_head { struct compat_robust_list list ; compat_long_t futex_offset ; compat_uptr_t list_op_pending ; }; enum ldv_22048 { SS_FREE = 0, SS_UNCONNECTED = 1, SS_CONNECTING = 2, SS_CONNECTED = 3, SS_DISCONNECTING = 4 } ; typedef enum ldv_22048 socket_state; struct socket_wq { wait_queue_head_t wait ; struct fasync_struct *fasync_list ; struct callback_head rcu ; }; 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 kiocb * , struct socket * , struct msghdr * , size_t ) ; int (*recvmsg)(struct kiocb * , 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 kmem_cache_cpu { void **freelist ; unsigned long tid ; struct page *page ; struct page *partial ; unsigned int stat[26U] ; }; struct kmem_cache_order_objects { unsigned long x ; }; struct memcg_cache_params; struct kmem_cache_node; struct kmem_cache { struct kmem_cache_cpu *cpu_slab ; unsigned long flags ; unsigned long min_partial ; int size ; int object_size ; int offset ; int cpu_partial ; struct kmem_cache_order_objects oo ; struct kmem_cache_order_objects max ; struct kmem_cache_order_objects min ; gfp_t allocflags ; int refcount ; void (*ctor)(void * ) ; int inuse ; int align ; int reserved ; char const *name ; struct list_head list ; struct kobject kobj ; struct memcg_cache_params *memcg_params ; int max_attr_size ; int remote_node_defrag_ratio ; struct kmem_cache_node *node[1024U] ; }; struct __anonstruct____missing_field_name_214 { struct callback_head callback_head ; struct kmem_cache *memcg_caches[0U] ; }; struct __anonstruct____missing_field_name_215 { struct mem_cgroup *memcg ; struct list_head list ; struct kmem_cache *root_cache ; bool dead ; atomic_t nr_pages ; struct work_struct destroy ; }; union __anonunion____missing_field_name_213 { struct __anonstruct____missing_field_name_214 __annonCompField63 ; struct __anonstruct____missing_field_name_215 __annonCompField64 ; }; struct memcg_cache_params { bool is_root_cache ; union __anonunion____missing_field_name_213 __annonCompField65 ; }; struct exception_table_entry { int insn ; int fixup ; }; struct in6_addr; struct sk_buff; 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 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; struct nf_conntrack { atomic_t use ; }; struct nf_bridge_info { atomic_t use ; unsigned int mask ; struct net_device *physindev ; struct net_device *physoutdev ; unsigned long data[4U] ; }; 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 sec_path; struct __anonstruct____missing_field_name_219 { __u16 csum_start ; __u16 csum_offset ; }; union __anonunion____missing_field_name_218 { __wsum csum ; struct __anonstruct____missing_field_name_219 __annonCompField67 ; }; union __anonunion____missing_field_name_220 { unsigned int napi_id ; dma_cookie_t dma_cookie ; }; union __anonunion____missing_field_name_221 { __u32 mark ; __u32 dropcount ; __u32 reserved_tailroom ; }; struct sk_buff { struct sk_buff *next ; struct sk_buff *prev ; ktime_t tstamp ; struct sock *sk ; struct net_device *dev ; char cb[48U] ; unsigned long _skb_refdst ; struct sec_path *sp ; unsigned int len ; unsigned int data_len ; __u16 mac_len ; __u16 hdr_len ; union __anonunion____missing_field_name_218 __annonCompField68 ; __u32 priority ; __u8 local_df : 1 ; __u8 cloned : 1 ; __u8 ip_summed : 2 ; __u8 nohdr : 1 ; __u8 nfctinfo : 3 ; __u8 pkt_type : 3 ; __u8 fclone : 2 ; __u8 ipvs_property : 1 ; __u8 peeked : 1 ; __u8 nf_trace : 1 ; __be16 protocol ; void (*destructor)(struct sk_buff * ) ; struct nf_conntrack *nfct ; struct nf_bridge_info *nf_bridge ; int skb_iif ; __u32 rxhash ; __be16 vlan_proto ; __u16 vlan_tci ; __u16 tc_index ; __u16 tc_verd ; __u16 queue_mapping ; __u8 ndisc_nodetype : 2 ; __u8 pfmemalloc : 1 ; __u8 ooo_okay : 1 ; __u8 l4_rxhash : 1 ; __u8 wifi_acked_valid : 1 ; __u8 wifi_acked : 1 ; __u8 no_fcs : 1 ; __u8 head_frag : 1 ; __u8 encapsulation : 1 ; union __anonunion____missing_field_name_220 __annonCompField69 ; __u32 secmark ; union __anonunion____missing_field_name_221 __annonCompField70 ; __be16 inner_protocol ; __u16 inner_transport_header ; __u16 inner_network_header ; __u16 inner_mac_header ; __u16 transport_header ; __u16 network_header ; __u16 mac_header ; 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 rtable; struct ethhdr { unsigned char h_dest[6U] ; unsigned char h_source[6U] ; __be16 h_proto ; }; 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 reserved1[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_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_indir_size)(struct net_device * ) ; int (*get_rxfh_indir)(struct net_device * , u32 * ) ; int (*set_rxfh_indir)(struct net_device * , u32 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 * ) ; }; 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[8U] ; }; struct linux_mib { unsigned long mibs[97U] ; }; struct linux_xfrm_mib { unsigned long mibs[29U] ; }; struct proc_dir_entry; struct netns_mib { struct tcp_mib *tcp_statistics[1U] ; struct ipstats_mib *ip_statistics[1U] ; struct linux_mib *net_statistics[1U] ; struct udp_mib *udp_statistics[1U] ; struct udp_mib *udplite_statistics[1U] ; struct icmp_mib *icmp_statistics[1U] ; struct icmpmsg_mib *icmpmsg_statistics ; struct proc_dir_entry *proc_net_devsnmp6 ; struct udp_mib *udp_stats_in6[1U] ; struct udp_mib *udplite_stats_in6[1U] ; struct ipstats_mib *ipv6_statistics[1U] ; struct icmpv6_mib *icmpv6_statistics[1U] ; struct icmpv6msg_mib *icmpv6msg_statistics ; struct linux_xfrm_mib *xfrm_statistics[1U] ; }; 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 { int nqueues ; struct list_head lru_list ; spinlock_t lru_lock ; struct percpu_counter mem ; int timeout ; int high_thresh ; int low_thresh ; }; struct tcpm_hash_bucket; struct ipv4_devconf; struct fib_rules_ops; struct fib_table; struct local_ports { seqlock_t lock ; int 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 ; struct sock *fibnl ; struct sock **icmp_sk ; struct inet_peer_base *peers ; struct tcpm_hash_bucket *tcp_metrics_hash ; unsigned int tcp_metrics_hash_log ; 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 sysctl_local_ports ; int sysctl_tcp_ecn ; int sysctl_ip_no_pmtu_disc ; int sysctl_ip_fwd_use_pmtu ; kgid_t sysctl_ping_group_range[2U] ; atomic_t dev_addr_genid ; struct list_head mr_tables ; struct fib_rules_ops *mr_rules_ops ; atomic_t rt_genid ; }; struct neighbour; struct dst_ops { unsigned short family ; __be16 protocol ; 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 icmpv6_time ; int anycast_src_echo_reply ; }; 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 list_head mr6_tables ; struct fib_rules_ops *mr6_rules_ops ; atomic_t dev_addr_genid ; atomic_t rt_genid ; }; struct netns_nf_frag { struct netns_sysctl_ipv6 sysctl ; struct netns_frags frags ; }; struct sctp_mib; struct netns_sctp { struct sctp_mib *sctp_statistics[1U] ; 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 ; }; union __anonunion_in6_u_224 { __u8 u6_addr8[16U] ; __be16 u6_addr16[8U] ; __be32 u6_addr32[4U] ; }; struct in6_addr { union __anonunion_in6_u_224 in6_u ; }; struct nlattr; 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 ; struct ebt_table *broute_table ; struct ebt_table *frame_filter ; struct ebt_table *frame_nat ; bool ulog_warn_deprecated ; bool ebt_ulog_warn_deprecated ; }; 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 ip_conntrack_stat; struct nf_ct_event_notifier; struct nf_exp_event_notifier; struct netns_ct { atomic_t count ; unsigned int expect_count ; 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 ; unsigned int sysctl_events_retry_timeout ; 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 ; struct kmem_cache *nf_conntrack_cachep ; struct hlist_nulls_head *hash ; struct hlist_head *expect_hash ; struct hlist_nulls_head unconfirmed ; struct hlist_nulls_head dying ; struct hlist_nulls_head tmpl ; 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 ; u8 gencursor ; u8 genctr ; }; struct xfrm_policy_hash { struct hlist_head *table ; unsigned int hmask ; }; 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[6U] ; struct xfrm_policy_hash policy_bydst[6U] ; unsigned int policy_count[6U] ; struct work_struct policy_hash_work ; 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 ; spinlock_t xfrm_policy_sk_bundle_lock ; rwlock_t xfrm_policy_lock ; struct mutex xfrm_cfg_mutex ; }; struct net_generic; struct netns_ipvs; struct net { atomic_t passive ; atomic_t count ; spinlock_t rules_mod_lock ; struct list_head list ; struct list_head cleanup_list ; struct list_head exit_list ; struct user_namespace *user_ns ; unsigned int proc_inum ; 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_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 sock *diag_nlsk ; atomic_t fnhe_genid ; }; struct dsa_chip_data { struct device *mii_bus ; int sw_addr ; char *port_names[12U] ; s8 *rtable ; }; struct dsa_platform_data { struct device *netdev ; int nr_chips ; struct dsa_chip_data *chip ; }; struct dsa_switch; struct dsa_switch_tree { struct dsa_platform_data *pd ; struct net_device *master_netdev ; __be16 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 mii_bus; struct dsa_switch { struct dsa_switch_tree *dst ; int index ; struct dsa_chip_data *pd ; struct dsa_switch_driver *drv ; struct mii_bus *master_mii_bus ; u32 dsa_port_mask ; u32 phys_port_mask ; struct mii_bus *slave_mii_bus ; struct net_device *ports[12U] ; }; struct dsa_switch_driver { struct list_head list ; __be16 tag_protocol ; int priv_size ; char *(*probe)(struct mii_bus * , int ) ; int (*setup)(struct dsa_switch * ) ; int (*set_addr)(struct dsa_switch * , u8 * ) ; int (*phy_read)(struct dsa_switch * , int , int ) ; int (*phy_write)(struct dsa_switch * , int , int , u16 ) ; void (*poll_link)(struct dsa_switch * ) ; 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 * ) ; }; 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_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_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 ) ; u8 (*setapp)(struct net_device * , u8 , u16 , u8 ) ; u8 (*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 xattr_handler { char const *prefix ; int flags ; size_t (*list)(struct dentry * , char * , size_t , char const * , size_t , int ) ; int (*get)(struct dentry * , char const * , void * , size_t , int ) ; int (*set)(struct dentry * , char const * , void const * , size_t , int , int ) ; }; struct simple_xattrs { struct list_head head ; spinlock_t lock ; }; struct percpu_ref; typedef void percpu_ref_func_t(struct percpu_ref * ); struct percpu_ref { atomic_t count ; unsigned int *pcpu_count ; percpu_ref_func_t *release ; percpu_ref_func_t *confirm_kill ; struct callback_head rcu ; }; struct cgroupfs_root; struct cgroup_subsys; struct cgroup; struct cgroup_subsys_state { struct cgroup *cgroup ; struct cgroup_subsys *ss ; struct percpu_ref refcnt ; struct cgroup_subsys_state *parent ; unsigned long flags ; struct callback_head callback_head ; struct work_struct destroy_work ; }; struct cgroup_name { struct callback_head callback_head ; char name[] ; }; struct cgroup { unsigned long flags ; int id ; int nr_css ; struct list_head sibling ; struct list_head children ; struct list_head files ; struct cgroup *parent ; struct dentry *dentry ; u64 serial_nr ; struct cgroup_name *name ; struct cgroup_subsys_state *subsys[12U] ; struct cgroupfs_root *root ; struct list_head cset_links ; struct list_head release_list ; struct list_head pidlists ; struct mutex pidlist_mutex ; struct cgroup_subsys_state dummy_css ; struct callback_head callback_head ; struct work_struct destroy_work ; struct simple_xattrs xattrs ; }; struct cgroupfs_root { struct super_block *sb ; unsigned long subsys_mask ; int hierarchy_id ; struct cgroup top_cgroup ; int number_of_cgroups ; struct list_head root_list ; unsigned long flags ; struct idr cgroup_idr ; char release_agent_path[4096U] ; char name[64U] ; }; struct css_set { atomic_t refcount ; struct hlist_node hlist ; struct list_head tasks ; struct list_head cgrp_links ; struct cgroup_subsys_state *subsys[12U] ; struct callback_head callback_head ; }; struct cftype { char name[64U] ; int private ; umode_t mode ; size_t max_write_len ; unsigned int flags ; struct cgroup_subsys *ss ; 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 ) ; int (*write_string)(struct cgroup_subsys_state * , struct cftype * , char const * ) ; int (*trigger)(struct cgroup_subsys_state * , unsigned int ) ; }; struct cftype_set { struct list_head node ; struct cftype *cfts ; }; struct cgroup_taskset; 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_free)(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 subsys_id ; int disabled ; int early_init ; bool broken_hierarchy ; bool warned_broken_hierarchy ; char const *name ; struct cgroupfs_root *root ; struct list_head cftsets ; struct cftype *base_cftypes ; struct cftype_set base_cftset ; struct module *module ; }; enum irqreturn { IRQ_NONE = 0, IRQ_HANDLED = 1, IRQ_WAKE_THREAD = 2 } ; typedef enum irqreturn irqreturn_t; struct netprio_map { struct callback_head rcu ; u32 priomap_len ; u32 priomap[] ; }; struct xfrm_policy; struct xfrm_state; struct request_sock; 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_info { __u32 vf ; __u8 mac[32U] ; __u32 vlan ; __u32 qos ; __u32 tx_rate ; __u32 spoofchk ; __u32 linkstate ; }; struct netpoll_info; struct phy_device; struct wireless_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 (*rebuild)(struct sk_buff * ) ; 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 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 ; }; 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_port_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 * , gfp_t ) ; 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_tx_rate)(struct net_device * , 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_set_vf_port)(struct net_device * , int , struct nlattr ** ) ; int (*ndo_get_vf_port)(struct net_device * , int , struct sk_buff * ) ; 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 ) ; int (*ndo_fdb_del)(struct ndmsg * , struct nlattr ** , struct net_device * , unsigned char const * ) ; int (*ndo_fdb_dump)(struct sk_buff * , struct netlink_callback * , struct net_device * , int ) ; int (*ndo_bridge_setlink)(struct net_device * , struct nlmsghdr * ) ; int (*ndo_bridge_getlink)(struct sk_buff * , u32 , u32 , struct net_device * , u32 ) ; int (*ndo_bridge_dellink)(struct net_device * , struct nlmsghdr * ) ; int (*ndo_change_carrier)(struct net_device * , bool ) ; int (*ndo_get_phys_port_id)(struct net_device * , struct netdev_phys_port_id * ) ; 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 * ) ; }; enum ldv_28406 { NETREG_UNINITIALIZED = 0, NETREG_REGISTERED = 1, NETREG_UNREGISTERING = 2, NETREG_UNREGISTERED = 3, NETREG_RELEASED = 4, NETREG_DUMMY = 5 } ; enum ldv_28407 { RTNL_LINK_INITIALIZED = 0, RTNL_LINK_INITIALIZING = 1 } ; struct __anonstruct_adj_list_235 { struct list_head upper ; struct list_head lower ; }; struct __anonstruct_all_adj_list_236 { struct list_head upper ; struct list_head lower ; }; struct iw_handler_def; struct iw_public_data; struct forwarding_accel_ops; struct vlan_info; struct tipc_bearer; struct in_device; struct dn_dev; struct inet6_dev; struct cpu_rmap; struct pcpu_lstats; struct pcpu_sw_netstats; struct pcpu_dstats; struct pcpu_vstats; union __anonunion____missing_field_name_237 { 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 ; unsigned long state ; struct list_head dev_list ; struct list_head napi_list ; struct list_head unreg_list ; struct list_head close_list ; struct __anonstruct_adj_list_235 adj_list ; struct __anonstruct_all_adj_list_236 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 iflink ; struct net_device_stats stats ; atomic_long_t rx_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 forwarding_accel_ops const *fwd_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 ; spinlock_t addr_list_lock ; struct netdev_hw_addr_list uc ; struct netdev_hw_addr_list mc ; struct netdev_hw_addr_list dev_addrs ; struct kset *queues_kset ; bool uc_promisc ; 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 ; unsigned long last_rx ; unsigned char *dev_addr ; struct netdev_rx_queue *_rx ; unsigned int num_rx_queues ; unsigned int real_num_rx_queues ; rx_handler_func_t *rx_handler ; void *rx_handler_data ; struct netdev_queue *ingress_queue ; unsigned char broadcast[32U] ; 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 ; struct xps_dev_maps *xps_maps ; struct cpu_rmap *rx_cpu_rmap ; unsigned long trans_start ; int watchdog_timeo ; struct timer_list watchdog_timer ; int *pcpu_refcnt ; struct list_head todo_list ; struct hlist_node index_hlist ; struct list_head link_watch_list ; enum ldv_28406 reg_state : 8 ; bool dismantle ; enum ldv_28407 rtnl_link_state : 16 ; void (*destructor)(struct net_device * ) ; struct netpoll_info *npinfo ; struct net *nd_net ; union __anonunion____missing_field_name_237 __annonCompField74 ; 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 ; 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 ; int group ; struct pm_qos_request pm_qos_req ; }; struct pcpu_sw_netstats { u64 rx_packets ; u64 rx_bytes ; u64 tx_packets ; u64 tx_bytes ; struct u64_stats_sync syncp ; }; struct netdev_notifier_info { struct net_device *dev ; }; typedef unsigned long kernel_ulong_t; struct pci_device_id { __u32 vendor ; __u32 device ; __u32 subvendor ; __u32 subdevice ; __u32 class ; __u32 class_mask ; kernel_ulong_t driver_data ; }; struct acpi_device_id { __u8 id[9U] ; kernel_ulong_t driver_data ; }; struct of_device_id { char name[32U] ; char type[32U] ; char compatible[128U] ; void const *data ; }; struct platform_device_id { char name[20U] ; 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_241 { 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 ; u8 pcie_mpss : 3 ; u8 rom_base_reg ; u8 pin ; u16 pcie_flags_reg ; struct pci_driver *driver ; u64 dma_mask ; struct device_dma_parameters dma_parms ; pci_power_t current_state ; u8 pm_cap ; unsigned int pme_support : 5 ; unsigned int pme_interrupt : 1 ; unsigned int pme_poll : 1 ; unsigned int d1_support : 1 ; unsigned int d2_support : 1 ; unsigned int no_d1d2 : 1 ; unsigned int no_d3cold : 1 ; unsigned int d3cold_allowed : 1 ; unsigned int mmio_always_on : 1 ; unsigned int wakeup_prepared : 1 ; unsigned int runtime_d3cold : 1 ; unsigned int d3_delay ; unsigned int d3cold_delay ; struct pcie_link_state *link_state ; pci_channel_state_t error_state ; struct device dev ; int cfg_size ; unsigned int irq ; struct resource resource[17U] ; bool match_driver ; unsigned int transparent : 1 ; unsigned int multifunction : 1 ; unsigned int is_added : 1 ; unsigned int is_busmaster : 1 ; unsigned int no_msi : 1 ; unsigned int block_cfg_access : 1 ; unsigned int broken_parity_status : 1 ; unsigned int irq_reroute_variant : 2 ; unsigned int msi_enabled : 1 ; unsigned int msix_enabled : 1 ; unsigned int ari_enabled : 1 ; unsigned int is_managed : 1 ; unsigned int needs_freset : 1 ; unsigned int state_saved : 1 ; unsigned int is_physfn : 1 ; unsigned int is_virtfn : 1 ; unsigned int reset_fn : 1 ; unsigned int is_hotplug_bridge : 1 ; unsigned int __aer_firmware_first_valid : 1 ; unsigned int __aer_firmware_first : 1 ; unsigned int broken_intx_masking : 1 ; unsigned int io_window_1k : 1 ; pci_dev_flags_t dev_flags ; atomic_t enable_cnt ; u32 saved_config_space[16U] ; struct hlist_head saved_cap_space ; struct bin_attribute *rom_attr ; int rom_attr_enabled ; struct bin_attribute *res_attr[17U] ; struct bin_attribute *res_attr_wc[17U] ; struct list_head msi_list ; struct attribute_group const **msi_irq_groups ; struct pci_vpd *vpd ; union __anonunion____missing_field_name_241 __annonCompField75 ; struct pci_ats *ats ; phys_addr_t rom ; size_t romlen ; }; struct pci_ops; struct msi_chip; 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_chip *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 int is_added : 1 ; }; struct pci_ops { int (*read)(struct pci_bus * , unsigned int , int , int , u32 * ) ; int (*write)(struct pci_bus * , unsigned int , int , int , u32 ) ; }; struct pci_dynids { spinlock_t lock ; struct list_head list ; }; typedef unsigned int pci_ers_result_t; struct pci_error_handlers { pci_ers_result_t (*error_detected)(struct pci_dev * , enum pci_channel_state ) ; pci_ers_result_t (*mmio_enabled)(struct pci_dev * ) ; pci_ers_result_t (*link_reset)(struct pci_dev * ) ; pci_ers_result_t (*slot_reset)(struct pci_dev * ) ; void (*resume)(struct pci_dev * ) ; }; struct pci_driver { struct list_head node ; char const *name ; struct pci_device_id const *id_table ; int (*probe)(struct pci_dev * , struct pci_device_id const * ) ; void (*remove)(struct pci_dev * ) ; int (*suspend)(struct pci_dev * , pm_message_t ) ; int (*suspend_late)(struct pci_dev * , pm_message_t ) ; int (*resume_early)(struct pci_dev * ) ; int (*resume)(struct pci_dev * ) ; void (*shutdown)(struct pci_dev * ) ; int (*sriov_configure)(struct pci_dev * , int ) ; struct pci_error_handlers const *err_handler ; struct device_driver driver ; struct pci_dynids dynids ; }; struct msix_entry { u32 vector ; u16 entry ; }; struct mfd_cell; struct platform_device { char const *name ; int id ; bool id_auto ; struct device dev ; u32 num_resources ; struct resource *resource ; struct platform_device_id const *id_entry ; struct mfd_cell *mfd_cell ; struct pdev_archdata archdata ; }; struct platform_driver { int (*probe)(struct platform_device * ) ; int (*remove)(struct platform_device * ) ; void (*shutdown)(struct platform_device * ) ; int (*suspend)(struct platform_device * , pm_message_t ) ; int (*resume)(struct platform_device * ) ; struct device_driver driver ; struct platform_device_id const *id_table ; bool prevent_deferred_probe ; }; typedef __u64 Elf64_Addr; typedef __u16 Elf64_Half; typedef __u32 Elf64_Word; typedef __u64 Elf64_Xword; struct elf64_sym { Elf64_Word st_name ; unsigned char st_info ; unsigned char st_other ; Elf64_Half st_shndx ; Elf64_Addr st_value ; Elf64_Xword st_size ; }; typedef struct elf64_sym Elf64_Sym; struct kernel_param; struct 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_246 { void *arg ; struct kparam_string const *str ; struct kparam_array const *arr ; }; struct kernel_param { char const *name ; struct kernel_param_ops const *ops ; u16 perm ; s16 level ; union __anonunion____missing_field_name_246 __annonCompField76 ; }; 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 tracepoint; struct tracepoint_func { void *func ; void *data ; }; struct tracepoint { char const *name ; struct static_key key ; void (*regfunc)(void) ; void (*unregfunc)(void) ; struct tracepoint_func *funcs ; }; struct 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 * ) ; }; enum module_state { MODULE_STATE_LIVE = 0, MODULE_STATE_COMING = 1, MODULE_STATE_GOING = 2, MODULE_STATE_UNFORMED = 3 } ; struct module_ref { unsigned long incs ; unsigned long decs ; }; struct module_sect_attrs; struct module_notes_attrs; struct ftrace_event_call; struct module { enum module_state state ; struct list_head list ; char name[56U] ; struct module_kobject mkobj ; struct module_attribute *modinfo_attrs ; char const *version ; char const *srcversion ; struct kobject *holders_dir ; struct kernel_symbol const *syms ; unsigned long const *crcs ; unsigned int num_syms ; struct kernel_param *kp ; unsigned int num_kp ; unsigned int num_gpl_syms ; struct kernel_symbol const *gpl_syms ; unsigned long const *gpl_crcs ; struct kernel_symbol const *unused_syms ; unsigned long const *unused_crcs ; unsigned int num_unused_syms ; unsigned int num_unused_gpl_syms ; struct kernel_symbol const *unused_gpl_syms ; unsigned long const *unused_gpl_crcs ; bool sig_ok ; struct kernel_symbol const *gpl_future_syms ; unsigned long const *gpl_future_crcs ; unsigned int num_gpl_future_syms ; unsigned int num_exentries ; struct exception_table_entry *extable ; int (*init)(void) ; void *module_init ; void *module_core ; unsigned int init_size ; unsigned int core_size ; unsigned int init_text_size ; unsigned int core_text_size ; unsigned int init_ro_size ; unsigned int core_ro_size ; struct mod_arch_specific arch ; unsigned int taints ; unsigned int num_bugs ; struct list_head bug_list ; struct bug_entry *bug_table ; Elf64_Sym *symtab ; Elf64_Sym *core_symtab ; unsigned int num_symtab ; unsigned int core_num_syms ; char *strtab ; char *core_strtab ; struct module_sect_attrs *sect_attrs ; struct module_notes_attrs *notes_attrs ; char *args ; void *percpu ; unsigned int percpu_size ; unsigned int num_tracepoints ; struct tracepoint * const *tracepoints_ptrs ; struct jump_entry *jump_entries ; unsigned int num_jump_entries ; unsigned int num_trace_bprintk_fmt ; char const **trace_bprintk_fmt_start ; struct ftrace_event_call **trace_events ; unsigned int num_trace_events ; unsigned int num_ftrace_callsites ; unsigned long *ftrace_callsites ; struct list_head source_list ; struct list_head target_list ; void (*exit)(void) ; struct module_ref *refptr ; ctor_fn_t (**ctors)(void) ; unsigned int num_ctors ; }; struct res_counter { unsigned long long usage ; unsigned long long max_usage ; unsigned long long limit ; unsigned long long soft_limit ; unsigned long long failcnt ; spinlock_t lock ; struct res_counter *parent ; }; struct kioctx; typedef int kiocb_cancel_fn(struct kiocb * ); union __anonunion_ki_obj_247 { void *user ; struct task_struct *tsk ; }; struct eventfd_ctx; struct kiocb { struct file *ki_filp ; struct kioctx *ki_ctx ; kiocb_cancel_fn *ki_cancel ; void *private ; union __anonunion_ki_obj_247 ki_obj ; __u64 ki_user_data ; loff_t ki_pos ; size_t ki_nbytes ; struct list_head ki_list ; struct eventfd_ctx *ki_eventfd ; }; struct sock_filter { __u16 code ; __u8 jt ; __u8 jf ; __u32 k ; }; union __anonunion____missing_field_name_248 { struct sock_filter insns[0U] ; struct work_struct work ; }; struct sk_filter { atomic_t refcnt ; unsigned int len ; struct callback_head rcu ; unsigned int (*bpf_func)(struct sk_buff const * , struct sock_filter const * ) ; union __anonunion____missing_field_name_248 __annonCompField77 ; }; 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 neigh_table; struct neigh_parms { struct net *net ; struct net_device *dev ; struct neigh_parms *next ; 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[12U] ; 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 ; struct net *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 { struct neigh_table *next ; int family ; int entry_size ; int key_len ; __u32 (*hash)(void const * , struct net_device const * , __u32 * ) ; 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 ; 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_253 { 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 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_253 __annonCompField78 ; }; struct __anonstruct_socket_lock_t_254 { spinlock_t slock ; int owned ; wait_queue_head_t wq ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_socket_lock_t_254 socket_lock_t; struct proto; typedef __u32 __portpair; typedef __u64 __addrpair; struct __anonstruct____missing_field_name_256 { __be32 skc_daddr ; __be32 skc_rcv_saddr ; }; union __anonunion____missing_field_name_255 { __addrpair skc_addrpair ; struct __anonstruct____missing_field_name_256 __annonCompField79 ; }; union __anonunion____missing_field_name_257 { unsigned int skc_hash ; __u16 skc_u16hashes[2U] ; }; struct __anonstruct____missing_field_name_259 { __be16 skc_dport ; __u16 skc_num ; }; union __anonunion____missing_field_name_258 { __portpair skc_portpair ; struct __anonstruct____missing_field_name_259 __annonCompField82 ; }; union __anonunion____missing_field_name_260 { struct hlist_node skc_bind_node ; struct hlist_nulls_node skc_portaddr_node ; }; union __anonunion____missing_field_name_261 { struct hlist_node skc_node ; struct hlist_nulls_node skc_nulls_node ; }; struct sock_common { union __anonunion____missing_field_name_255 __annonCompField80 ; union __anonunion____missing_field_name_257 __annonCompField81 ; union __anonunion____missing_field_name_258 __annonCompField83 ; unsigned short skc_family ; unsigned char volatile skc_state ; unsigned char skc_reuse : 4 ; unsigned char skc_reuseport : 4 ; int skc_bound_dev_if ; union __anonunion____missing_field_name_260 __annonCompField84 ; struct proto *skc_prot ; struct net *skc_net ; struct in6_addr skc_v6_daddr ; struct in6_addr skc_v6_rcv_saddr ; int skc_dontcopy_begin[0U] ; union __anonunion____missing_field_name_261 __annonCompField85 ; int skc_tx_queue_mapping ; atomic_t skc_refcnt ; int skc_dontcopy_end[0U] ; }; struct cg_proto; struct __anonstruct_sk_backlog_262 { 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_262 sk_backlog ; int sk_forward_alloc ; __u32 sk_rxhash ; 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 int sk_shutdown : 2 ; unsigned int sk_no_check : 2 ; unsigned int sk_userlocks : 4 ; unsigned int sk_protocol : 8 ; unsigned int sk_type : 16 ; 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 ; unsigned short sk_ack_backlog ; unsigned short 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 ; void *sk_protinfo ; struct timer_list sk_timer ; ktime_t sk_stamp ; 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 * , int ) ; 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_263 { 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 kiocb * , struct sock * , struct msghdr * , size_t ) ; int (*recvmsg)(struct kiocb * , 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 (*mtu_reduced)(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_263 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 res_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 sock * , struct request_sock * ) ; }; struct request_sock { struct sock_common __req_common ; struct request_sock *dl_next ; u16 mss ; u8 num_retrans ; u8 cookie_ts : 1 ; u8 num_timeout : 7 ; u32 window_clamp ; u32 rcv_wnd ; u32 ts_recent ; unsigned long expires ; struct request_sock_ops const *rsk_ops ; struct sock *sk ; 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 mii_ioctl_data { __u16 phy_id ; __u16 reg_num ; __u16 val_in ; __u16 val_out ; }; struct mdio_if_info { int prtad ; u32 mmds ; unsigned int mode_support ; struct net_device *dev ; int (*mdio_read)(struct net_device * , int , int , u16 ) ; int (*mdio_write)(struct net_device * , int , int , u16 , u16 ) ; }; typedef u32 phandle; struct property { char *name ; int length ; void *value ; struct property *next ; unsigned long _flags ; unsigned int unique_id ; }; struct device_node { char const *name ; char const *type ; phandle phandle ; char const *full_name ; struct property *properties ; struct property *deadprops ; struct device_node *parent ; struct device_node *child ; struct device_node *sibling ; struct device_node *next ; struct device_node *allnext ; struct proc_dir_entry *pde ; struct kref kref ; unsigned long _flags ; void *data ; }; struct otp_info { __u32 start ; __u32 length ; __u32 locked ; }; struct nand_oobfree { __u32 offset ; __u32 length ; }; struct mtd_ecc_stats { __u32 corrected ; __u32 failed ; __u32 badblocks ; __u32 bbtblocks ; }; struct erase_info { struct mtd_info *mtd ; uint64_t addr ; uint64_t len ; uint64_t fail_addr ; u_long time ; u_long retries ; unsigned int dev ; unsigned int cell ; void (*callback)(struct erase_info * ) ; u_long priv ; u_char state ; struct erase_info *next ; }; struct mtd_erase_region_info { uint64_t offset ; uint32_t erasesize ; uint32_t numblocks ; unsigned long *lockmap ; }; struct mtd_oob_ops { unsigned int mode ; size_t len ; size_t retlen ; size_t ooblen ; size_t oobretlen ; uint32_t ooboffs ; uint8_t *datbuf ; uint8_t *oobbuf ; }; struct nand_ecclayout { __u32 eccbytes ; __u32 eccpos[640U] ; __u32 oobavail ; struct nand_oobfree oobfree[32U] ; }; struct mtd_info { u_char type ; uint32_t flags ; uint64_t size ; uint32_t erasesize ; uint32_t writesize ; uint32_t writebufsize ; uint32_t oobsize ; uint32_t oobavail ; unsigned int erasesize_shift ; unsigned int writesize_shift ; unsigned int erasesize_mask ; unsigned int writesize_mask ; unsigned int bitflip_threshold ; char const *name ; int index ; struct nand_ecclayout *ecclayout ; unsigned int ecc_step_size ; unsigned int ecc_strength ; int numeraseregions ; struct mtd_erase_region_info *eraseregions ; int (*_erase)(struct mtd_info * , struct erase_info * ) ; int (*_point)(struct mtd_info * , loff_t , size_t , size_t * , void ** , resource_size_t * ) ; int (*_unpoint)(struct mtd_info * , loff_t , size_t ) ; unsigned long (*_get_unmapped_area)(struct mtd_info * , unsigned long , unsigned long , unsigned long ) ; int (*_read)(struct mtd_info * , loff_t , size_t , size_t * , u_char * ) ; int (*_write)(struct mtd_info * , loff_t , size_t , size_t * , u_char const * ) ; int (*_panic_write)(struct mtd_info * , loff_t , size_t , size_t * , u_char const * ) ; int (*_read_oob)(struct mtd_info * , loff_t , struct mtd_oob_ops * ) ; int (*_write_oob)(struct mtd_info * , loff_t , struct mtd_oob_ops * ) ; int (*_get_fact_prot_info)(struct mtd_info * , struct otp_info * , size_t ) ; int (*_read_fact_prot_reg)(struct mtd_info * , loff_t , size_t , size_t * , u_char * ) ; int (*_get_user_prot_info)(struct mtd_info * , struct otp_info * , size_t ) ; int (*_read_user_prot_reg)(struct mtd_info * , loff_t , size_t , size_t * , u_char * ) ; int (*_write_user_prot_reg)(struct mtd_info * , loff_t , size_t , size_t * , u_char * ) ; int (*_lock_user_prot_reg)(struct mtd_info * , loff_t , size_t ) ; int (*_writev)(struct mtd_info * , struct kvec const * , unsigned long , loff_t , size_t * ) ; void (*_sync)(struct mtd_info * ) ; int (*_lock)(struct mtd_info * , loff_t , uint64_t ) ; int (*_unlock)(struct mtd_info * , loff_t , uint64_t ) ; int (*_is_locked)(struct mtd_info * , loff_t , uint64_t ) ; int (*_block_isbad)(struct mtd_info * , loff_t ) ; int (*_block_markbad)(struct mtd_info * , loff_t ) ; int (*_suspend)(struct mtd_info * ) ; void (*_resume)(struct mtd_info * ) ; int (*_get_device)(struct mtd_info * ) ; void (*_put_device)(struct mtd_info * ) ; struct backing_dev_info *backing_dev_info ; struct notifier_block reboot_notifier ; struct mtd_ecc_stats ecc_stats ; int subpage_sft ; void *priv ; struct module *owner ; struct device dev ; int usecount ; }; enum efx_loopback_mode { LOOPBACK_NONE = 0, LOOPBACK_DATA = 1, LOOPBACK_GMAC = 2, LOOPBACK_XGMII = 3, LOOPBACK_XGXS = 4, LOOPBACK_XAUI = 5, LOOPBACK_GMII = 6, LOOPBACK_SGMII = 7, LOOPBACK_XGBR = 8, LOOPBACK_XFI = 9, LOOPBACK_XAUI_FAR = 10, LOOPBACK_GMII_FAR = 11, LOOPBACK_SGMII_FAR = 12, LOOPBACK_XFI_FAR = 13, LOOPBACK_GPHY = 14, LOOPBACK_PHYXS = 15, LOOPBACK_PCS = 16, LOOPBACK_PMAPMD = 17, LOOPBACK_XPORT = 18, LOOPBACK_XGMII_WS = 19, LOOPBACK_XAUI_WS = 20, LOOPBACK_XAUI_WS_FAR = 21, LOOPBACK_XAUI_WS_NEAR = 22, LOOPBACK_GMII_WS = 23, LOOPBACK_XFI_WS = 24, LOOPBACK_XFI_WS_FAR = 25, LOOPBACK_PHYXS_WS = 26, LOOPBACK_MAX = 27 } ; enum reset_type { RESET_TYPE_INVISIBLE = 0, RESET_TYPE_RECOVER_OR_ALL = 1, RESET_TYPE_ALL = 2, RESET_TYPE_WORLD = 3, RESET_TYPE_RECOVER_OR_DISABLE = 4, RESET_TYPE_DISABLE = 5, RESET_TYPE_MAX_METHOD = 6, RESET_TYPE_TX_WATCHDOG = 7, RESET_TYPE_INT_ERROR = 8, RESET_TYPE_RX_RECOVERY = 9, RESET_TYPE_DMA_ERROR = 10, RESET_TYPE_TX_SKIP = 11, RESET_TYPE_MC_FAILURE = 12, RESET_TYPE_MC_BIST = 13, RESET_TYPE_MAX = 14 } ; union efx_dword { __le32 u32[1U] ; }; typedef union efx_dword efx_dword_t; union efx_qword { __le64 u64[1U] ; __le32 u32[2U] ; efx_dword_t dword[2U] ; }; typedef union efx_qword efx_qword_t; union efx_oword { __le64 u64[2U] ; efx_qword_t qword[2U] ; __le32 u32[4U] ; efx_dword_t dword[4U] ; }; typedef union efx_oword efx_oword_t; enum efx_filter_priority { EFX_FILTER_PRI_HINT = 0, EFX_FILTER_PRI_AUTO = 1, EFX_FILTER_PRI_MANUAL = 2, EFX_FILTER_PRI_REQUIRED = 3 } ; struct efx_filter_spec { u32 match_flags : 12 ; u32 priority : 2 ; u32 flags : 6 ; u32 dmaq_id : 12 ; u32 rss_context ; __be16 outer_vid ; __be16 inner_vid ; u8 loc_mac[6U] ; u8 rem_mac[6U] ; __be16 ether_type ; u8 ip_proto ; __be32 loc_host[4U] ; __be32 rem_host[4U] ; __be16 loc_port ; __be16 rem_port ; }; struct efx_ptp_data; struct hwtstamp_config; struct efx_self_tests; struct efx_buffer { void *addr ; dma_addr_t dma_addr ; unsigned int len ; }; struct efx_special_buffer { struct efx_buffer buf ; unsigned int index ; unsigned int entries ; }; union __anonunion____missing_field_name_271 { struct sk_buff const *skb ; void *heap_buf ; }; union __anonunion____missing_field_name_272 { efx_qword_t option ; dma_addr_t dma_addr ; }; struct efx_tx_buffer { union __anonunion____missing_field_name_271 __annonCompField86 ; union __anonunion____missing_field_name_272 __annonCompField87 ; unsigned short flags ; unsigned short len ; unsigned short unmap_len ; unsigned short dma_offset ; }; struct efx_nic; struct efx_channel; struct efx_tx_queue { struct efx_nic *efx ; unsigned int queue ; struct efx_channel *channel ; struct netdev_queue *core_txq ; struct efx_tx_buffer *buffer ; struct efx_buffer *tsoh_page ; struct efx_special_buffer txd ; unsigned int ptr_mask ; void *piobuf ; unsigned int piobuf_offset ; bool initialised ; unsigned int read_count ; unsigned int old_write_count ; unsigned int merge_events ; unsigned int insert_count ; unsigned int write_count ; unsigned int old_read_count ; unsigned int tso_bursts ; unsigned int tso_long_headers ; unsigned int tso_packets ; unsigned int pushes ; unsigned int pio_packets ; unsigned int empty_read_count ; atomic_t flush_outstanding ; }; struct efx_rx_buffer { dma_addr_t dma_addr ; struct page *page ; u16 page_offset ; u16 len ; u16 flags ; }; struct efx_rx_queue { struct efx_nic *efx ; int core_index ; struct efx_rx_buffer *buffer ; struct efx_special_buffer rxd ; unsigned int ptr_mask ; bool refill_enabled ; bool flush_pending ; unsigned int added_count ; unsigned int notified_count ; unsigned int removed_count ; unsigned int scatter_n ; unsigned int scatter_len ; struct page **page_ring ; unsigned int page_add ; unsigned int page_remove ; unsigned int page_recycle_count ; unsigned int page_recycle_failed ; unsigned int page_recycle_full ; unsigned int page_ptr_mask ; unsigned int max_fill ; unsigned int fast_fill_trigger ; unsigned int min_fill ; unsigned int min_overfill ; unsigned int recycle_count ; struct timer_list slow_fill ; unsigned int slow_fill_count ; }; enum efx_sync_events_state { SYNC_EVENTS_DISABLED = 0, SYNC_EVENTS_QUIESCENT = 1, SYNC_EVENTS_REQUESTED = 2, SYNC_EVENTS_VALID = 3 } ; struct efx_channel_type; struct efx_channel { struct efx_nic *efx ; int channel ; struct efx_channel_type const *type ; bool eventq_init ; bool enabled ; int irq ; unsigned int irq_moderation ; struct net_device *napi_dev ; struct napi_struct napi_str ; struct efx_special_buffer eventq ; unsigned int eventq_mask ; unsigned int eventq_read_ptr ; int event_test_cpu ; unsigned int irq_count ; unsigned int irq_mod_score ; unsigned int rfs_filters_added ; unsigned int n_rx_tobe_disc ; unsigned int n_rx_ip_hdr_chksum_err ; unsigned int n_rx_tcp_udp_chksum_err ; unsigned int n_rx_mcast_mismatch ; unsigned int n_rx_frm_trunc ; unsigned int n_rx_overlength ; unsigned int n_skbuff_leaks ; unsigned int n_rx_nodesc_trunc ; unsigned int n_rx_merge_events ; unsigned int n_rx_merge_packets ; unsigned int rx_pkt_n_frags ; unsigned int rx_pkt_index ; struct efx_rx_queue rx_queue ; struct efx_tx_queue tx_queue[4U] ; enum efx_sync_events_state sync_events_state ; u32 sync_timestamp_major ; u32 sync_timestamp_minor ; }; struct efx_msi_context { struct efx_nic *efx ; unsigned int index ; char name[22U] ; }; struct efx_channel_type { void (*handle_no_channel)(struct efx_nic * ) ; int (*pre_probe)(struct efx_channel * ) ; void (*post_remove)(struct efx_channel * ) ; void (*get_name)(struct efx_channel * , char * , size_t ) ; struct efx_channel *(*copy)(struct efx_channel const * ) ; bool (*receive_skb)(struct efx_channel * , struct sk_buff * ) ; bool keep_eventq ; }; enum efx_led_mode { EFX_LED_OFF = 0, EFX_LED_ON = 1, EFX_LED_DEFAULT = 2 } ; enum efx_int_mode { EFX_INT_MODE_MSIX = 0, EFX_INT_MODE_MSI = 1, EFX_INT_MODE_LEGACY = 2, EFX_INT_MODE_MAX = 3 } ; enum nic_state { STATE_UNINIT = 0, STATE_READY = 1, STATE_DISABLED = 2, STATE_RECOVERY = 3 } ; struct efx_link_state { bool up ; bool fd ; u8 fc ; unsigned int speed ; }; struct efx_phy_operations { int (*probe)(struct efx_nic * ) ; int (*init)(struct efx_nic * ) ; void (*fini)(struct efx_nic * ) ; void (*remove)(struct efx_nic * ) ; int (*reconfigure)(struct efx_nic * ) ; bool (*poll)(struct efx_nic * ) ; void (*get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; void (*set_npage_adv)(struct efx_nic * , u32 ) ; int (*test_alive)(struct efx_nic * ) ; char const *(*test_name)(struct efx_nic * , unsigned int ) ; int (*run_tests)(struct efx_nic * , int * , unsigned int ) ; int (*get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , u8 * ) ; int (*get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; }; enum efx_phy_mode { PHY_MODE_NORMAL = 0, PHY_MODE_TX_DISABLED = 1, PHY_MODE_LOW_POWER = 2, PHY_MODE_OFF = 4, PHY_MODE_SPECIAL = 8 } ; union efx_multicast_hash { u8 byte[32U] ; efx_oword_t oword[2U] ; }; struct efx_vf; struct efx_nic_type; struct efx_mcdi_data; struct efx_nic { char name[16U] ; struct list_head node ; struct efx_nic *primary ; struct list_head secondary_list ; struct pci_dev *pci_dev ; unsigned int port_num ; struct efx_nic_type const *type ; int legacy_irq ; bool eeh_disabled_legacy_irq ; struct workqueue_struct *workqueue ; char workqueue_name[16U] ; struct work_struct reset_work ; resource_size_t membase_phys ; void *membase ; enum efx_int_mode interrupt_mode ; unsigned int timer_quantum_ns ; bool irq_rx_adaptive ; unsigned int irq_rx_moderation ; u32 msg_enable ; enum nic_state state ; unsigned long reset_pending ; struct efx_channel *channel[32U] ; struct efx_msi_context msi_context[32U] ; struct efx_channel_type const *extra_channel_type[2U] ; unsigned int rxq_entries ; unsigned int txq_entries ; unsigned int txq_stop_thresh ; unsigned int txq_wake_thresh ; unsigned int tx_dc_base ; unsigned int rx_dc_base ; unsigned int sram_lim_qw ; unsigned int next_buffer_table ; unsigned int max_channels ; unsigned int n_channels ; unsigned int n_rx_channels ; unsigned int rss_spread ; unsigned int tx_channel_offset ; unsigned int n_tx_channels ; unsigned int rx_ip_align ; unsigned int rx_dma_len ; unsigned int rx_buffer_order ; unsigned int rx_buffer_truesize ; unsigned int rx_page_buf_step ; unsigned int rx_bufs_per_page ; unsigned int rx_pages_per_batch ; unsigned int rx_prefix_size ; int rx_packet_hash_offset ; int rx_packet_len_offset ; int rx_packet_ts_offset ; u8 rx_hash_key[40U] ; u32 rx_indir_table[128U] ; bool rx_scatter ; unsigned int int_error_count ; unsigned long int_error_expire ; bool irq_soft_enabled ; struct efx_buffer irq_status ; unsigned int irq_zero_count ; unsigned int irq_level ; struct delayed_work selftest_work ; struct list_head mtd_list ; void *nic_data ; struct efx_mcdi_data *mcdi ; struct mutex mac_lock ; struct work_struct mac_work ; bool port_enabled ; bool mc_bist_for_other_fn ; bool port_initialized ; struct net_device *net_dev ; struct efx_buffer stats_buffer ; u64 rx_nodesc_drops_total ; u64 rx_nodesc_drops_while_down ; bool rx_nodesc_drops_prev_state ; unsigned int phy_type ; struct efx_phy_operations const *phy_op ; void *phy_data ; struct mdio_if_info mdio ; unsigned int mdio_bus ; enum efx_phy_mode phy_mode ; u32 link_advertising ; struct efx_link_state link_state ; unsigned int n_link_state_changes ; bool unicast_filter ; union efx_multicast_hash multicast_hash ; u8 wanted_fc ; unsigned int fc_disable ; atomic_t rx_reset ; enum efx_loopback_mode loopback_mode ; u64 loopback_modes ; void *loopback_selftest ; spinlock_t filter_lock ; void *filter_state ; u32 *rps_flow_id ; unsigned int rps_expire_index ; atomic_t active_queues ; atomic_t rxq_flush_pending ; atomic_t rxq_flush_outstanding ; wait_queue_head_t flush_wq ; struct efx_channel *vfdi_channel ; struct efx_vf *vf ; unsigned int vf_count ; unsigned int vf_init_count ; unsigned int vi_scale ; unsigned int vf_buftbl_base ; struct efx_buffer vfdi_status ; struct list_head local_addr_list ; struct list_head local_page_list ; struct mutex local_lock ; struct work_struct peer_work ; struct efx_ptp_data *ptp_data ; char *vpd_sn ; struct delayed_work monitor_work ; spinlock_t biu_lock ; int last_irq_cpu ; spinlock_t stats_lock ; }; struct efx_mtd_partition { struct list_head node ; struct mtd_info mtd ; char const *dev_type_name ; char const *type_name ; char name[36U] ; }; struct efx_nic_type { unsigned int (*mem_map_size)(struct efx_nic * ) ; int (*probe)(struct efx_nic * ) ; void (*remove)(struct efx_nic * ) ; int (*init)(struct efx_nic * ) ; int (*dimension_resources)(struct efx_nic * ) ; void (*fini)(struct efx_nic * ) ; void (*monitor)(struct efx_nic * ) ; enum reset_type (*map_reset_reason)(enum reset_type ) ; int (*map_reset_flags)(u32 * ) ; int (*reset)(struct efx_nic * , enum reset_type ) ; int (*probe_port)(struct efx_nic * ) ; void (*remove_port)(struct efx_nic * ) ; bool (*handle_global_event)(struct efx_channel * , efx_qword_t * ) ; int (*fini_dmaq)(struct efx_nic * ) ; void (*prepare_flush)(struct efx_nic * ) ; void (*finish_flush)(struct efx_nic * ) ; size_t (*describe_stats)(struct efx_nic * , u8 * ) ; size_t (*update_stats)(struct efx_nic * , u64 * , struct rtnl_link_stats64 * ) ; void (*start_stats)(struct efx_nic * ) ; void (*pull_stats)(struct efx_nic * ) ; void (*stop_stats)(struct efx_nic * ) ; void (*set_id_led)(struct efx_nic * , enum efx_led_mode ) ; void (*push_irq_moderation)(struct efx_channel * ) ; int (*reconfigure_port)(struct efx_nic * ) ; void (*prepare_enable_fc_tx)(struct efx_nic * ) ; int (*reconfigure_mac)(struct efx_nic * ) ; bool (*check_mac_fault)(struct efx_nic * ) ; void (*get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; int (*set_wol)(struct efx_nic * , u32 ) ; void (*resume_wol)(struct efx_nic * ) ; int (*test_chip)(struct efx_nic * , struct efx_self_tests * ) ; int (*test_nvram)(struct efx_nic * ) ; void (*mcdi_request)(struct efx_nic * , efx_dword_t const * , size_t , efx_dword_t const * , size_t ) ; bool (*mcdi_poll_response)(struct efx_nic * ) ; void (*mcdi_read_response)(struct efx_nic * , efx_dword_t * , size_t , size_t ) ; int (*mcdi_poll_reboot)(struct efx_nic * ) ; void (*irq_enable_master)(struct efx_nic * ) ; void (*irq_test_generate)(struct efx_nic * ) ; void (*irq_disable_non_ev)(struct efx_nic * ) ; irqreturn_t (*irq_handle_msi)(int , void * ) ; irqreturn_t (*irq_handle_legacy)(int , void * ) ; int (*tx_probe)(struct efx_tx_queue * ) ; void (*tx_init)(struct efx_tx_queue * ) ; void (*tx_remove)(struct efx_tx_queue * ) ; void (*tx_write)(struct efx_tx_queue * ) ; void (*rx_push_rss_config)(struct efx_nic * ) ; int (*rx_probe)(struct efx_rx_queue * ) ; void (*rx_init)(struct efx_rx_queue * ) ; void (*rx_remove)(struct efx_rx_queue * ) ; void (*rx_write)(struct efx_rx_queue * ) ; void (*rx_defer_refill)(struct efx_rx_queue * ) ; int (*ev_probe)(struct efx_channel * ) ; int (*ev_init)(struct efx_channel * ) ; void (*ev_fini)(struct efx_channel * ) ; void (*ev_remove)(struct efx_channel * ) ; int (*ev_process)(struct efx_channel * , int ) ; void (*ev_read_ack)(struct efx_channel * ) ; void (*ev_test_generate)(struct efx_channel * ) ; int (*filter_table_probe)(struct efx_nic * ) ; void (*filter_table_restore)(struct efx_nic * ) ; void (*filter_table_remove)(struct efx_nic * ) ; void (*filter_update_rx_scatter)(struct efx_nic * ) ; s32 (*filter_insert)(struct efx_nic * , struct efx_filter_spec * , bool ) ; int (*filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , u32 ) ; int (*filter_get_safe)(struct efx_nic * , enum efx_filter_priority , u32 , struct efx_filter_spec * ) ; int (*filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; u32 (*filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; u32 (*filter_get_rx_id_limit)(struct efx_nic * ) ; s32 (*filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , u32 * , u32 ) ; s32 (*filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; bool (*filter_rfs_expire_one)(struct efx_nic * , u32 , unsigned int ) ; int (*mtd_probe)(struct efx_nic * ) ; void (*mtd_rename)(struct efx_mtd_partition * ) ; int (*mtd_read)(struct mtd_info * , loff_t , size_t , size_t * , u8 * ) ; int (*mtd_erase)(struct mtd_info * , loff_t , size_t ) ; int (*mtd_write)(struct mtd_info * , loff_t , size_t , size_t * , u8 const * ) ; int (*mtd_sync)(struct mtd_info * ) ; void (*ptp_write_host_time)(struct efx_nic * , u32 ) ; int (*ptp_set_ts_sync_events)(struct efx_nic * , bool , bool ) ; int (*ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int revision ; unsigned int txd_ptr_tbl_base ; unsigned int rxd_ptr_tbl_base ; unsigned int buf_tbl_base ; unsigned int evq_ptr_tbl_base ; unsigned int evq_rptr_tbl_base ; u64 max_dma_mask ; unsigned int rx_prefix_size ; unsigned int rx_hash_offset ; unsigned int rx_ts_offset ; unsigned int rx_buffer_padding ; bool can_rx_scatter ; bool always_rx_scatter ; unsigned int max_interrupt_mode ; unsigned int timer_period_max ; netdev_features_t offload_features ; int mcdi_max_ver ; unsigned int max_rx_ip_filters ; u32 hwtstamp_filters ; }; struct hwtstamp_config { int flags ; int tx_type ; int rx_filter ; }; enum efx_mcdi_state { MCDI_STATE_QUIESCENT = 0, MCDI_STATE_RUNNING_SYNC = 1, MCDI_STATE_RUNNING_ASYNC = 2, MCDI_STATE_COMPLETED = 3 } ; enum efx_mcdi_mode { MCDI_MODE_POLL = 0, MCDI_MODE_EVENTS = 1 } ; struct efx_mcdi_iface { struct efx_nic *efx ; enum efx_mcdi_state state ; enum efx_mcdi_mode mode ; wait_queue_head_t wq ; spinlock_t iface_lock ; bool new_epoch ; unsigned int credits ; unsigned int seqno ; int resprc ; size_t resp_hdr_len ; size_t resp_data_len ; spinlock_t async_lock ; struct list_head async_list ; struct timer_list async_timer ; }; struct efx_mcdi_mon_attribute; struct efx_mcdi_mon { struct efx_buffer dma_buf ; struct mutex update_lock ; unsigned long last_update ; struct device *device ; struct efx_mcdi_mon_attribute *attrs ; struct attribute_group group ; struct attribute_group const *groups[2U] ; unsigned int n_attrs ; }; struct efx_mcdi_data { struct efx_mcdi_iface iface ; struct efx_mcdi_mon hwmon ; u32 fn_flags ; }; struct efx_loopback_self_tests { int tx_sent[4U] ; int tx_done[4U] ; int rx_good ; int rx_bad ; }; struct efx_self_tests { int phy_alive ; int nvram ; int interrupt ; int eventq_dma[32U] ; int eventq_int[32U] ; int memory ; int registers ; int phy_ext[20U] ; struct efx_loopback_self_tests loopback[18U] ; }; struct ptp_clock_request; typedef int ldv_func_ret_type___0; typedef int ldv_func_ret_type___1; typedef struct net_device *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 __u16 __le16; 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) ; }; enum hrtimer_restart; struct __anonstruct_near_247 { u16 index ; u16 dist ; }; struct cpu_rmap { struct kref refcount ; u16 size ; u16 used ; void **obj ; struct __anonstruct_near_247 near[0U] ; }; struct efx_hw_stat_desc { char const *name ; u16 dma_width ; u16 offset ; }; struct efx_nic_reg { u32 offset : 24 ; u32 min_revision : 3 ; u32 max_revision : 3 ; }; struct efx_nic_reg_table { u32 offset : 24 ; u32 min_revision : 3 ; u32 max_revision : 3 ; u32 step : 6 ; u32 rows : 21 ; }; 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 ; }; enum hrtimer_restart; struct rt_mutex { raw_spinlock_t wait_lock ; struct rb_root waiters ; struct rb_node *waiters_leftmost ; struct task_struct *owner ; int save_state ; char const *name ; char const *file ; int line ; void *magic ; }; struct netdev_hw_addr { struct list_head list ; unsigned char addr[32U] ; unsigned char type ; bool global_use ; int sync_cnt ; int refcount ; int synced ; struct callback_head callback_head ; }; struct i2c_msg { __u16 addr ; __u16 flags ; __u16 len ; __u8 *buf ; }; union i2c_smbus_data { __u8 byte ; __u16 word ; __u8 block[34U] ; }; struct i2c_algorithm; struct i2c_adapter; struct i2c_client; struct i2c_client { unsigned short flags ; unsigned short addr ; char name[20U] ; struct i2c_adapter *adapter ; struct device dev ; int irq ; struct list_head detected ; }; struct i2c_algorithm { int (*master_xfer)(struct i2c_adapter * , struct i2c_msg * , int ) ; int (*smbus_xfer)(struct i2c_adapter * , u16 , unsigned short , char , u8 , int , union i2c_smbus_data * ) ; u32 (*functionality)(struct i2c_adapter * ) ; }; struct i2c_bus_recovery_info { int (*recover_bus)(struct i2c_adapter * ) ; int (*get_scl)(struct i2c_adapter * ) ; void (*set_scl)(struct i2c_adapter * , int ) ; int (*get_sda)(struct i2c_adapter * ) ; void (*prepare_recovery)(struct i2c_bus_recovery_info * ) ; void (*unprepare_recovery)(struct i2c_bus_recovery_info * ) ; int scl_gpio ; int sda_gpio ; }; struct i2c_adapter { struct module *owner ; unsigned int class ; struct i2c_algorithm const *algo ; void *algo_data ; struct rt_mutex bus_lock ; int timeout ; int retries ; struct device dev ; int nr ; char name[48U] ; struct completion dev_released ; struct mutex userspace_clients_lock ; struct list_head userspace_clients ; struct i2c_bus_recovery_info *bus_recovery_info ; }; struct i2c_algo_bit_data { void *data ; void (*setsda)(void * , int ) ; void (*setscl)(void * , int ) ; int (*getsda)(void * ) ; int (*getscl)(void * ) ; int (*pre_xfer)(struct i2c_adapter * ) ; void (*post_xfer)(struct i2c_adapter * ) ; int udelay ; int timeout ; }; struct falcon_board_type { u8 id ; int (*init)(struct efx_nic * ) ; void (*init_phy)(struct efx_nic * ) ; void (*fini)(struct efx_nic * ) ; void (*set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*monitor)(struct efx_nic * ) ; }; struct falcon_board { struct falcon_board_type const *type ; int major ; int minor ; struct i2c_adapter i2c_adap ; struct i2c_algo_bit_data i2c_data ; struct i2c_client *hwmon_client ; struct i2c_client *ioexp_client ; }; struct falcon_spi_device { int device_id ; unsigned int size ; unsigned int addr_len ; unsigned int munge_address : 1 ; u8 erase_command ; unsigned int erase_size ; unsigned int block_size ; }; struct falcon_nic_data { struct pci_dev *pci_dev2 ; struct falcon_board board ; u64 stats[47U] ; unsigned int stats_disable_count ; bool stats_pending ; struct timer_list stats_timer ; struct falcon_spi_device spi_flash ; struct falcon_spi_device spi_eeprom ; struct mutex spi_lock ; struct mutex mdio_lock ; bool xmac_poll_required ; }; struct efx_farch_register_test { unsigned int address ; efx_oword_t mask ; }; enum efx_farch_filter_table_id { EFX_FARCH_FILTER_TABLE_RX_IP = 0, EFX_FARCH_FILTER_TABLE_RX_MAC = 1, EFX_FARCH_FILTER_TABLE_RX_DEF = 2, EFX_FARCH_FILTER_TABLE_TX_MAC = 3, EFX_FARCH_FILTER_TABLE_COUNT = 4 } ; struct efx_farch_filter_spec { u8 type : 4 ; u8 priority : 4 ; u8 flags ; u16 dmaq_id ; u32 data[3U] ; }; struct efx_farch_filter_table { enum efx_farch_filter_table_id id ; u32 offset ; unsigned int size ; unsigned int step ; unsigned int used ; unsigned long *used_bitmap ; struct efx_farch_filter_spec *spec ; unsigned int search_limit[10U] ; }; struct efx_farch_filter_state { struct efx_farch_filter_table table[4U] ; }; struct exec_domain; struct map_segment; struct exec_domain { char const *name ; void (*handler)(int , struct pt_regs * ) ; unsigned char pers_low ; unsigned char pers_high ; unsigned long *signal_map ; unsigned long *signal_invmap ; struct map_segment *err_map ; struct map_segment *socktype_map ; struct map_segment *sockopt_map ; struct map_segment *af_map ; struct module *module ; struct exec_domain *next ; }; struct __anonstruct_mm_segment_t_27 { unsigned long seg ; }; typedef struct __anonstruct_mm_segment_t_27 mm_segment_t; struct compat_timespec; struct __anonstruct_futex_32 { u32 *uaddr ; u32 val ; u32 flags ; u32 bitset ; u64 time ; u32 *uaddr2 ; }; struct __anonstruct_nanosleep_33 { clockid_t clockid ; struct timespec *rmtp ; struct compat_timespec *compat_rmtp ; u64 expires ; }; struct pollfd; struct __anonstruct_poll_34 { struct pollfd *ufds ; int nfds ; int has_timeout ; unsigned long tv_sec ; unsigned long tv_nsec ; }; union __anonunion____missing_field_name_31 { struct __anonstruct_futex_32 futex ; struct __anonstruct_nanosleep_33 nanosleep ; struct __anonstruct_poll_34 poll ; }; struct restart_block { long (*fn)(struct restart_block * ) ; union __anonunion____missing_field_name_31 __annonCompField20 ; }; struct thread_info { struct task_struct *task ; struct exec_domain *exec_domain ; __u32 flags ; __u32 status ; __u32 cpu ; int saved_preempt_count ; mm_segment_t addr_limit ; struct restart_block restart_block ; void *sysenter_return ; unsigned int sig_on_uaccess_error : 1 ; unsigned int uaccess_err : 1 ; }; enum hrtimer_restart; typedef s32 compat_time_t; struct compat_timespec { compat_time_t tv_sec ; s32 tv_nsec ; }; struct falcon_nvconfig_board_v2 { __le16 nports ; u8 port0_phy_addr ; u8 port0_phy_type ; u8 port1_phy_addr ; u8 port1_phy_type ; __le16 asic_sub_revision ; __le16 board_revision ; }; struct falcon_nvconfig_board_v3 { __le32 spi_device_type[2U] ; }; struct falcon_nvconfig { efx_oword_t ee_vpd_cfg_reg ; u8 mac_address[2U][8U] ; efx_oword_t pcie_sd_ctl0123_reg ; efx_oword_t pcie_sd_ctl45_reg ; efx_oword_t pcie_pcs_ctl_stat_reg ; efx_oword_t hw_init_reg ; efx_oword_t nic_stat_reg ; efx_oword_t glb_ctl_reg ; efx_oword_t srm_cfg_reg ; efx_oword_t spare_reg ; __le16 board_magic_num ; __le16 board_struct_ver ; __le16 board_checksum ; struct falcon_nvconfig_board_v2 board_v2 ; efx_oword_t ee_base_page_reg ; struct falcon_nvconfig_board_v3 board_v3 ; }; struct falcon_mtd_partition { struct efx_mtd_partition common ; struct falcon_spi_device const *spi ; size_t offset ; }; typedef __u16 uint16_t; enum hrtimer_restart; struct efx_mcdi_mtd_partition { struct efx_mtd_partition common ; bool updating ; u16 nvram_type ; u16 fw_subtype ; }; struct siena_nic_data { int wol_filter_id ; u64 stats[57U] ; }; struct siena_nvram_type_info { int port ; char const *name ; }; enum hrtimer_restart; enum efx_filter_match_flags { EFX_FILTER_MATCH_REM_HOST = 1, EFX_FILTER_MATCH_LOC_HOST = 2, EFX_FILTER_MATCH_REM_MAC = 4, EFX_FILTER_MATCH_REM_PORT = 8, EFX_FILTER_MATCH_LOC_MAC = 16, EFX_FILTER_MATCH_LOC_PORT = 32, EFX_FILTER_MATCH_ETHER_TYPE = 64, EFX_FILTER_MATCH_INNER_VID = 128, EFX_FILTER_MATCH_OUTER_VID = 256, EFX_FILTER_MATCH_IP_PROTO = 512, EFX_FILTER_MATCH_LOC_MAC_IG = 1024 } ; enum efx_filter_flags { EFX_FILTER_FLAG_RX_RSS = 1, EFX_FILTER_FLAG_RX_SCATTER = 2, EFX_FILTER_FLAG_RX_OVER_AUTO = 4, EFX_FILTER_FLAG_RX = 8, EFX_FILTER_FLAG_TX = 16 } ; typedef void efx_mcdi_async_completer(struct efx_nic * , unsigned long , int , efx_dword_t * , size_t ); struct efx_ef10_nic_data { struct efx_buffer mcdi_buf ; u16 warm_boot_count ; unsigned int vi_base ; unsigned int n_allocated_vis ; bool must_realloc_vis ; bool must_restore_filters ; unsigned int n_piobufs ; void *wc_membase ; void *pio_write_base ; unsigned int pio_write_vi_base ; unsigned int piobuf_handle[16U] ; bool must_restore_piobufs ; u32 rx_rss_context ; u64 stats[53U] ; bool workaround_35388 ; bool must_check_datapath_caps ; u32 datapath_caps ; }; struct __anonstruct_entry_248 { unsigned long spec ; u64 handle ; }; struct __anonstruct_dev_uc_list_249 { u8 addr[6U] ; u16 id ; }; struct __anonstruct_dev_mc_list_250 { u8 addr[6U] ; u16 id ; }; struct efx_ef10_filter_table { enum efx_filter_match_flags rx_match_flags[61U] ; unsigned int rx_match_count ; struct __anonstruct_entry_248 *entry ; wait_queue_head_t waitq ; struct __anonstruct_dev_uc_list_249 dev_uc_list[32U] ; struct __anonstruct_dev_mc_list_250 dev_mc_list[256U] ; int dev_uc_count ; int dev_mc_count ; }; struct __anonstruct_392 { unsigned long spec ; u64 handle ; }; struct __anonstruct_394 { unsigned long spec ; u64 handle ; }; struct efx_ef10_nvram_type_info { u16 type ; u16 type_mask ; u8 port ; char const *name ; }; typedef __u16 __sum16; typedef int pao_T__; typedef int pao_T_____0; enum hrtimer_restart; struct skb_frag_struct; typedef struct skb_frag_struct skb_frag_t; struct __anonstruct_page_217 { struct page *p ; }; struct skb_frag_struct { struct __anonstruct_page_217 page ; __u32 page_offset ; __u32 size ; }; struct skb_shared_hwtstamps { ktime_t hwtstamp ; ktime_t syststamp ; }; 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 ; __be32 ip6_frag_id ; atomic_t dataref ; void *destructor_arg ; skb_frag_t frags[17U] ; }; struct icmpv6_mib_device { atomic_long_t mibs[6U] ; }; struct icmpv6msg_mib_device { atomic_long_t mibs[512U] ; }; enum skb_free_reason { SKB_REASON_CONSUMED = 0, SKB_REASON_DROPPED = 1 } ; struct tcphdr { __be16 source ; __be16 dest ; __be32 seq ; __be32 ack_seq ; __u16 res1 : 4 ; __u16 doff : 4 ; __u16 fin : 1 ; __u16 syn : 1 ; __u16 rst : 1 ; __u16 psh : 1 ; __u16 ack : 1 ; __u16 urg : 1 ; __u16 ece : 1 ; __u16 cwr : 1 ; __be16 window ; __sum16 check ; __be16 urg_ptr ; }; struct iphdr { __u8 ihl : 4 ; __u8 version : 4 ; __u8 tos ; __be16 tot_len ; __be16 id ; __be16 frag_off ; __u8 ttl ; __u8 protocol ; __sum16 check ; __be32 saddr ; __be32 daddr ; }; struct ipv6hdr { __u8 priority : 4 ; __u8 version : 4 ; __u8 flow_lbl[3U] ; __be16 payload_len ; __u8 nexthdr ; __u8 hop_limit ; struct in6_addr saddr ; struct in6_addr daddr ; }; 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 optimistic_dad ; __s32 mc_forwarding ; __s32 disable_ipv6 ; __s32 accept_dad ; __s32 force_tllao ; __s32 ndisc_notify ; __s32 suppress_frag_ndisc ; void *sysctl ; }; 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 ; spinlock_t aca_lock ; unsigned long aca_cstamp ; unsigned long aca_tstamp ; }; struct ipv6_devstat { struct proc_dir_entry *proc_dir_entry ; struct ipstats_mib *ipv6[1U] ; 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 ; unsigned long tstamp ; struct callback_head rcu ; }; struct vlan_ethhdr { unsigned char h_dest[6U] ; unsigned char h_source[6U] ; __be16 h_vlan_proto ; __be16 h_vlan_TCI ; __be16 h_vlan_encapsulated_proto ; }; struct efx_short_copy_buffer { int used ; u8 buf[64U] ; }; struct tso_state { unsigned int out_len ; unsigned int seqnum ; u16 ipv4_id ; unsigned int packet_space ; dma_addr_t dma_addr ; unsigned int in_len ; unsigned int unmap_len ; dma_addr_t unmap_addr ; unsigned short dma_flags ; __be16 protocol ; unsigned int ip_off ; unsigned int tcp_off ; unsigned int header_len ; unsigned int ip_base_len ; dma_addr_t header_dma_addr ; unsigned int header_unmap_len ; }; enum hrtimer_restart; enum pkt_hash_types { PKT_HASH_TYPE_NONE = 0, PKT_HASH_TYPE_L2 = 1, PKT_HASH_TYPE_L3 = 2, PKT_HASH_TYPE_L4 = 3 } ; 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; struct iommu_domain; struct iommu_domain_geometry { dma_addr_t aperture_start ; dma_addr_t aperture_end ; bool force_aperture ; }; struct iommu_domain { struct iommu_ops *ops ; void *priv ; int (*handler)(struct iommu_domain * , struct device * , unsigned long , int , void * ) ; void *handler_token ; struct iommu_domain_geometry geometry ; }; enum iommu_attr { DOMAIN_ATTR_GEOMETRY = 0, DOMAIN_ATTR_PAGING = 1, DOMAIN_ATTR_WINDOWS = 2, DOMAIN_ATTR_FSL_PAMU_STASH = 3, DOMAIN_ATTR_FSL_PAMU_ENABLE = 4, DOMAIN_ATTR_FSL_PAMUV1 = 5, DOMAIN_ATTR_MAX = 6 } ; struct iommu_ops { int (*domain_init)(struct iommu_domain * ) ; void (*domain_destroy)(struct iommu_domain * ) ; int (*attach_dev)(struct iommu_domain * , struct device * ) ; void (*detach_dev)(struct iommu_domain * , struct device * ) ; int (*map)(struct iommu_domain * , unsigned long , phys_addr_t , size_t , int ) ; size_t (*unmap)(struct iommu_domain * , unsigned long , size_t ) ; phys_addr_t (*iova_to_phys)(struct iommu_domain * , dma_addr_t ) ; int (*domain_has_cap)(struct iommu_domain * , unsigned long ) ; int (*add_device)(struct device * ) ; void (*remove_device)(struct device * ) ; int (*device_group)(struct device * , unsigned int * ) ; int (*domain_get_attr)(struct iommu_domain * , enum iommu_attr , void * ) ; int (*domain_set_attr)(struct iommu_domain * , enum iommu_attr , void * ) ; int (*domain_window_enable)(struct iommu_domain * , u32 , phys_addr_t , u64 , int ) ; void (*domain_window_disable)(struct iommu_domain * , u32 ) ; int (*domain_set_windows)(struct iommu_domain * , u32 ) ; u32 (*domain_get_windows)(struct iommu_domain * ) ; unsigned long pgsize_bitmap ; }; union __anonunion____missing_field_name_271___0 { __be32 a4 ; __be32 a6[4U] ; }; struct inetpeer_addr_base { union __anonunion____missing_field_name_271___0 __annonCompField86 ; }; struct inetpeer_addr { struct inetpeer_addr_base addr ; __u16 family ; }; union __anonunion____missing_field_name_272___0 { struct list_head gc_list ; struct callback_head gc_rcu ; }; struct __anonstruct____missing_field_name_274 { atomic_t rid ; atomic_t ip_id_count ; }; union __anonunion____missing_field_name_273 { struct __anonstruct____missing_field_name_274 __annonCompField88 ; struct callback_head rcu ; struct inet_peer *gc_next ; }; struct inet_peer { struct inet_peer *avl_left ; struct inet_peer *avl_right ; struct inetpeer_addr daddr ; __u32 avl_height ; u32 metrics[15U] ; u32 rate_tokens ; unsigned long rate_last ; union __anonunion____missing_field_name_272___0 __annonCompField87 ; union __anonunion____missing_field_name_273 __annonCompField89 ; __u32 dtime ; atomic_t refcnt ; }; struct inet_peer_base { struct inet_peer *root ; seqlock_t lock ; u32 flush_seq ; int total ; }; struct rtable { struct dst_entry dst ; int rt_genid ; unsigned int rt_flags ; __u16 rt_type ; __u8 rt_is_input ; __u8 rt_uses_gateway ; int rt_iif ; __be32 rt_gateway ; u32 rt_pmtu ; struct list_head rt_uncached ; }; struct vlan_hdr { __be16 h_vlan_TCI ; __be16 h_vlan_encapsulated_proto ; }; struct efx_rx_page_state { dma_addr_t dma_addr ; unsigned int __pad[0U] ; }; enum hrtimer_restart; struct udphdr { __be16 source ; __be16 dest ; __be16 len ; __sum16 check ; }; struct efx_loopback_payload { struct ethhdr header ; struct iphdr ip ; struct udphdr udp ; __be16 iteration ; char const msg[64U] ; }; struct efx_loopback_state { bool flush ; int packet_count ; struct sk_buff **skbs ; bool offload_csum ; atomic_t rx_good ; atomic_t rx_bad ; struct efx_loopback_payload payload ; }; enum hrtimer_restart; enum ldv_32564 { EFX_ETHTOOL_STAT_SOURCE_nic = 0, EFX_ETHTOOL_STAT_SOURCE_channel = 1, EFX_ETHTOOL_STAT_SOURCE_tx_queue = 2 } ; struct efx_sw_stat_desc { char const *name ; enum ldv_32564 source ; unsigned int offset ; u64 (*get_stat)(void * ) ; }; enum hrtimer_restart; struct qt202x_phy_data { enum efx_phy_mode phy_mode ; bool bug17190_in_bad_state ; unsigned long bug17190_timer ; u32 firmware_ver ; }; enum hrtimer_restart; enum hrtimer_restart; struct tenxpress_phy_data { enum efx_loopback_mode loopback_mode ; enum efx_phy_mode phy_mode ; int bad_lp_tries ; }; enum hrtimer_restart; struct txc43128_data { unsigned long bug10934_timer ; enum efx_phy_mode phy_mode ; enum efx_loopback_mode loopback_mode ; }; enum hrtimer_restart; struct i2c_board_info; struct i2c_board_info { char type[20U] ; unsigned short flags ; unsigned short addr ; void *platform_data ; struct dev_archdata *archdata ; struct device_node *of_node ; struct acpi_dev_node acpi_node ; int irq ; }; enum hrtimer_restart; struct efx_mcdi_async_param { struct list_head list ; unsigned int cmd ; size_t inlen ; size_t outlen ; bool quiet ; efx_mcdi_async_completer *complete ; unsigned long cookie ; }; typedef int ldv_func_ret_type___7; enum hrtimer_restart; struct efx_mcdi_phy_data { u32 flags ; u32 type ; u32 supported_cap ; u32 channel ; u32 port ; u32 stats_mask ; u8 name[20U] ; u32 media ; u32 mmd_mask ; u8 revision[20U] ; u32 forced_cap ; }; enum efx_stats_action { EFX_STATS_ENABLE = 0, EFX_STATS_DISABLE = 1, EFX_STATS_PULL = 2 } ; enum hrtimer_restart; enum efx_hwmon_type { EFX_HWMON_UNKNOWN = 0, EFX_HWMON_TEMP = 1, EFX_HWMON_COOL = 2, EFX_HWMON_IN = 3, EFX_HWMON_CURR = 4, EFX_HWMON_POWER = 5, EFX_HWMON_TYPES_COUNT = 6 } ; struct __anonstruct_efx_mcdi_sensor_type_248 { char const *label ; enum efx_hwmon_type hwmon_type ; int port ; }; struct efx_mcdi_mon_attribute { struct device_attribute dev_attr ; unsigned int index ; unsigned int type ; enum efx_hwmon_type hwmon_type ; unsigned int limit_value ; char name[12U] ; }; typedef long long __s64; enum hrtimer_restart; struct cdev { struct kobject kobj ; struct module *owner ; struct file_operations const *ops ; struct list_head list ; dev_t dev ; unsigned int count ; }; struct pps_event_time { struct timespec ts_real ; }; struct ptp_clock_time { __s64 sec ; __u32 nsec ; __u32 reserved ; }; struct ptp_extts_request { unsigned int index ; unsigned int flags ; unsigned int rsv[2U] ; }; struct ptp_perout_request { struct ptp_clock_time start ; struct ptp_clock_time period ; unsigned int index ; unsigned int flags ; unsigned int rsv[4U] ; }; enum ldv_32701 { PTP_CLK_REQ_EXTTS = 0, PTP_CLK_REQ_PEROUT = 1, PTP_CLK_REQ_PPS = 2 } ; union __anonunion____missing_field_name_264 { struct ptp_extts_request extts ; struct ptp_perout_request perout ; }; struct ptp_clock_request { enum ldv_32701 type ; union __anonunion____missing_field_name_264 __annonCompField86 ; }; struct ptp_clock_info { struct module *owner ; char name[16U] ; s32 max_adj ; int n_alarm ; int n_ext_ts ; int n_per_out ; int pps ; int (*adjfreq)(struct ptp_clock_info * , s32 ) ; int (*adjtime)(struct ptp_clock_info * , s64 ) ; int (*gettime)(struct ptp_clock_info * , struct timespec * ) ; int (*settime)(struct ptp_clock_info * , struct timespec const * ) ; int (*enable)(struct ptp_clock_info * , struct ptp_clock_request * , int ) ; }; struct ptp_clock; union __anonunion____missing_field_name_265 { u64 timestamp ; struct pps_event_time pps_times ; }; struct ptp_clock_event { int type ; int index ; union __anonunion____missing_field_name_265 __annonCompField87 ; }; enum ptp_packet_state { PTP_PACKET_STATE_UNMATCHED = 0, PTP_PACKET_STATE_MATCHED = 1, PTP_PACKET_STATE_TIMED_OUT = 2, PTP_PACKET_STATE_MATCH_UNWANTED = 3 } ; struct efx_ptp_match { u32 words[2U] ; unsigned long expiry ; enum ptp_packet_state state ; }; struct efx_ptp_event_rx { struct list_head link ; u32 seq0 ; u32 seq1 ; ktime_t hwtimestamp ; unsigned long expiry ; }; struct efx_ptp_timeset { u32 host_start ; u32 major ; u32 minor ; u32 host_end ; u32 wait ; u32 window ; }; struct __anonstruct_ts_corrections_269 { s32 tx ; s32 rx ; s32 pps_out ; s32 pps_in ; }; struct efx_ptp_data { struct efx_nic *efx ; struct efx_channel *channel ; bool rx_ts_inline ; struct sk_buff_head rxq ; struct sk_buff_head txq ; struct list_head evt_list ; struct list_head evt_free_list ; spinlock_t evt_lock ; bool evt_overflow ; struct efx_ptp_event_rx rx_evts[8U] ; struct workqueue_struct *workwq ; struct work_struct work ; bool reset_required ; u32 rxfilter_event ; u32 rxfilter_general ; bool rxfilter_installed ; struct hwtstamp_config config ; bool enabled ; unsigned int mode ; unsigned int time_format ; void (*ns_to_nic_time)(s64 , u32 * , u32 * ) ; ktime_t (*nic_to_kernel_time)(u32 , u32 , s32 ) ; unsigned int min_synchronisation_ns ; struct __anonstruct_ts_corrections_269 ts_corrections ; efx_qword_t evt_frags[3U] ; int evt_frag_idx ; int evt_code ; struct efx_buffer start ; struct pps_event_time host_time_pps ; s64 current_adjfreq ; struct ptp_clock *phc_clock ; struct ptp_clock_info phc_clock_info ; struct work_struct pps_work ; struct workqueue_struct *pps_workwq ; bool nic_ts_enabled ; efx_dword_t txbuf[63U] ; unsigned int good_syncs ; unsigned int fast_syncs ; unsigned int bad_syncs ; unsigned int sync_timeouts ; unsigned int no_time_syncs ; unsigned int invalid_sync_windows ; unsigned int undersize_sync_windows ; unsigned int oversize_sync_windows ; unsigned int rx_no_timestamp ; struct efx_ptp_timeset timeset[12U] ; }; typedef struct ptp_clock *ldv_func_ret_type___8; enum hrtimer_restart; struct mtd_partition; struct mtd_part_parser_data; enum hrtimer_restart; struct pci_sysdata { int domain ; int node ; struct acpi_device *companion ; void *iommu ; }; struct vfdi_status; struct vfdi_endpoint { u8 mac_addr[6U] ; __be16 tci ; }; struct __anonstruct_init_evq_254 { u32 index ; u32 buf_count ; u64 addr[] ; }; struct __anonstruct_init_rxq_255 { u32 index ; u32 buf_count ; u32 evq ; u32 label ; u32 flags ; u32 reserved ; u64 addr[] ; }; struct __anonstruct_init_txq_256 { u32 index ; u32 buf_count ; u32 evq ; u32 label ; u32 flags ; u32 reserved ; u64 addr[] ; }; struct __anonstruct_mac_filter_257 { u32 rxq ; u32 flags ; }; struct __anonstruct_set_status_page_258 { u64 dma_addr ; u64 peer_page_count ; u64 peer_page_addr[] ; }; union __anonunion_u_253 { struct __anonstruct_init_evq_254 init_evq ; struct __anonstruct_init_rxq_255 init_rxq ; struct __anonstruct_init_txq_256 init_txq ; struct __anonstruct_mac_filter_257 mac_filter ; struct __anonstruct_set_status_page_258 set_status_page ; }; struct vfdi_req { u32 op ; u32 reserved1 ; s32 rc ; u32 reserved2 ; union __anonunion_u_253 u ; }; struct vfdi_status { u32 generation_start ; u32 generation_end ; u32 version ; u32 length ; u8 vi_scale ; u8 max_tx_channels ; u8 rss_rxq_count ; u8 reserved1 ; u16 peer_count ; u16 reserved2 ; struct vfdi_endpoint local ; struct vfdi_endpoint peers[256U] ; u32 timer_quantum_ns ; }; enum efx_vf_tx_filter_mode { VF_TX_FILTER_OFF = 0, VF_TX_FILTER_AUTO = 1, VF_TX_FILTER_ON = 2 } ; struct efx_vf { struct efx_nic *efx ; unsigned int pci_rid ; char pci_name[13U] ; unsigned int index ; struct work_struct req ; u64 req_addr ; int req_type ; unsigned int req_seqno ; unsigned int msg_seqno ; bool busy ; struct efx_buffer buf ; unsigned int buftbl_base ; bool rx_filtering ; enum efx_filter_flags rx_filter_flags ; unsigned int rx_filter_qid ; int rx_filter_id ; enum efx_vf_tx_filter_mode tx_filter_mode ; int tx_filter_id ; struct vfdi_endpoint addr ; u64 status_addr ; struct mutex status_lock ; u64 *peer_page_addrs ; unsigned int peer_page_count ; u64 evq0_addrs[16U] ; unsigned int evq0_count ; wait_queue_head_t flush_waitq ; struct mutex txq_lock ; unsigned long txq_mask[1U] ; unsigned int txq_count ; unsigned long rxq_mask[1U] ; unsigned int rxq_count ; unsigned long rxq_retry_mask[1U] ; atomic_t rxq_retry_count ; struct work_struct reset_work ; }; struct efx_memcpy_req { unsigned int from_rid ; void *from_buf ; u64 from_addr ; unsigned int to_rid ; u64 to_addr ; unsigned int length ; }; struct efx_local_addr { struct list_head link ; u8 addr[6U] ; }; struct efx_endpoint_page { struct list_head link ; void *ptr ; dma_addr_t addr ; }; typedef int (*efx_vfdi_op_t)(struct efx_vf * ); struct device_private { void *driver_data ; }; enum hrtimer_restart; struct kthread_work; struct kthread_worker { spinlock_t lock ; struct list_head work_list ; struct task_struct *task ; struct kthread_work *current_work ; }; struct kthread_work { struct list_head node ; void (*func)(struct kthread_work * ) ; wait_queue_head_t done ; struct kthread_worker *worker ; }; struct spi_master; struct spi_device { struct device dev ; struct spi_master *master ; u32 max_speed_hz ; u8 chip_select ; u8 bits_per_word ; u16 mode ; int irq ; void *controller_state ; void *controller_data ; char modalias[32U] ; int cs_gpio ; }; struct spi_message; struct spi_transfer; struct spi_master { struct device dev ; struct list_head list ; s16 bus_num ; u16 num_chipselect ; u16 dma_alignment ; u16 mode_bits ; u32 bits_per_word_mask ; u32 min_speed_hz ; u32 max_speed_hz ; u16 flags ; spinlock_t bus_lock_spinlock ; struct mutex bus_lock_mutex ; bool bus_lock_flag ; int (*setup)(struct spi_device * ) ; int (*transfer)(struct spi_device * , struct spi_message * ) ; void (*cleanup)(struct spi_device * ) ; bool queued ; struct kthread_worker kworker ; struct task_struct *kworker_task ; struct kthread_work pump_messages ; spinlock_t queue_lock ; struct list_head queue ; struct spi_message *cur_msg ; bool busy ; bool running ; bool rt ; bool auto_runtime_pm ; bool cur_msg_prepared ; struct completion xfer_completion ; int (*prepare_transfer_hardware)(struct spi_master * ) ; int (*transfer_one_message)(struct spi_master * , struct spi_message * ) ; int (*unprepare_transfer_hardware)(struct spi_master * ) ; int (*prepare_message)(struct spi_master * , struct spi_message * ) ; int (*unprepare_message)(struct spi_master * , struct spi_message * ) ; void (*set_cs)(struct spi_device * , bool ) ; int (*transfer_one)(struct spi_master * , struct spi_device * , struct spi_transfer * ) ; int *cs_gpios ; }; struct spi_transfer { void const *tx_buf ; void *rx_buf ; unsigned int len ; dma_addr_t tx_dma ; dma_addr_t rx_dma ; unsigned int cs_change : 1 ; unsigned int tx_nbits : 3 ; unsigned int rx_nbits : 3 ; u8 bits_per_word ; u16 delay_usecs ; u32 speed_hz ; struct list_head transfer_list ; }; struct spi_message { struct list_head transfers ; struct spi_device *spi ; unsigned int is_dma_mapped : 1 ; void (*complete)(void * ) ; void *context ; unsigned int frame_length ; unsigned int actual_length ; int status ; struct list_head queue ; void *state ; }; struct ldv_thread; struct ldv_thread_set { int number ; struct ldv_thread **threads ; }; struct ldv_thread { int identifier ; void (*function)(void * ) ; }; long ldv__builtin_expect(long exp , long c ) ; void *ldv_dev_get_drvdata(struct device const *dev ) ; int ldv_dev_set_drvdata(struct device *dev , void *data ) ; void *ldv_kzalloc(size_t size , gfp_t flags ) ; extern struct module __this_module ; __inline static void INIT_LIST_HEAD(struct list_head *list ) { { list->next = list; list->prev = list; return; } } extern void __list_add(struct list_head * , struct list_head * , struct list_head * ) ; __inline static void list_add_tail(struct list_head *new , struct list_head *head ) { { { __list_add(new, head->prev, head); } return; } } extern void list_del(struct list_head * ) ; __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_set_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile ("":); return (0); return (1); } } __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); } } __inline static int variable_test_bit(long nr , unsigned long const volatile *addr ) { int oldbit ; { __asm__ volatile ("bt %2,%1\n\tsbb %0,%0": "=r" (oldbit): "m" (*((unsigned long *)addr)), "Ir" (nr)); return (oldbit); } } __inline static int fls(int x ) { int r ; { __asm__ ("bsrl %1,%0": "=r" (r): "rm" (x), "0" (-1)); return (r + 1); } } __inline static int fls64(__u64 x ) { int bitpos ; { bitpos = -1; __asm__ ("bsrq %1,%q0": "+r" (bitpos): "rm" (x)); return (bitpos + 1); } } extern unsigned long find_next_bit(unsigned long const * , unsigned long , unsigned long ) ; __inline static unsigned int fls_long(unsigned long l ) { int tmp___0 ; { { tmp___0 = fls64((__u64 )l); } return ((unsigned int )tmp___0); } } __inline static unsigned long __roundup_pow_of_two(unsigned long n ) { unsigned int tmp ; { { tmp = fls_long(n - 1UL); } return (1UL << (int )tmp); } } extern int printk(char const * , ...) ; extern void dump_stack(void) ; extern int __dynamic_netdev_dbg(struct _ddebug * , struct net_device const * , char const * , ...) ; extern void __might_sleep(char const * , int , int ) ; extern int sprintf(char * , char const * , ...) ; extern int snprintf(char * , size_t , char const * , ...) ; extern void __bad_percpu_size(void) ; extern unsigned long __per_cpu_offset[8192U] ; __inline static int __get_order(unsigned long size ) { int order ; { { size = size - 1UL; size = size >> 12; order = fls64((__u64 )size); } return (order); } } extern void *memcpy(void * , void const * , size_t ) ; extern void *memset(void * , int , size_t ) ; extern char *strcpy(char * , char const * ) ; extern int strcmp(char const * , char const * ) ; extern size_t strlcpy(char * , char const * , size_t ) ; extern void __bitmap_or(unsigned long * , unsigned long const * , unsigned long const * , int ) ; __inline static void bitmap_or(unsigned long *dst , unsigned long const *src1 , unsigned long const *src2 , int nbits ) { { { __bitmap_or(dst, src1, src2, nbits); } return; } } extern void warn_slowpath_null(char const * , int const ) ; extern int nr_cpu_ids ; extern struct cpumask const * const cpu_online_mask ; __inline static unsigned int cpumask_check(unsigned int cpu ) { bool __warned ; int __ret_warn_once ; int __ret_warn_on ; long tmp ; long tmp___0 ; long tmp___1 ; { { __ret_warn_once = cpu >= (unsigned int )nr_cpu_ids; tmp___1 = ldv__builtin_expect(__ret_warn_once != 0, 0L); } if (tmp___1 != 0L) { { __ret_warn_on = ! __warned; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("include/linux/cpumask.h", 108); } } else { } { tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { __warned = 1; } else { } } else { } { ldv__builtin_expect(__ret_warn_once != 0, 0L); } return (cpu); } } __inline static unsigned int cpumask_next(int n , struct cpumask const *srcp ) { unsigned long tmp ; { if (n != -1) { { cpumask_check((unsigned int )n); } } else { } { tmp = find_next_bit((unsigned long const *)(& srcp->bits), (unsigned long )nr_cpu_ids, (unsigned long )(n + 1)); } return ((unsigned int )tmp); } } __inline static void cpumask_or(struct cpumask *dstp , struct cpumask const *src1p , struct cpumask const *src2p ) { { { bitmap_or((unsigned long *)(& dstp->bits), (unsigned long const *)(& src1p->bits), (unsigned long const *)(& src2p->bits), nr_cpu_ids); } return; } } extern bool zalloc_cpumask_var(cpumask_var_t ** , gfp_t ) ; extern void free_cpumask_var(cpumask_var_t ) ; __inline static int atomic_read(atomic_t const *v ) { { return ((int )*((int volatile *)(& v->counter))); } } __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; } } extern void lockdep_init_map(struct lockdep_map * , char const * , struct lock_class_key * , int ) ; void ldv_spin_lock__xmit_lock_of_netdev_queue(void) ; void ldv_spin_unlock__xmit_lock_of_netdev_queue(void) ; void ldv_spin_lock_addr_list_lock_of_net_device(void) ; void ldv_spin_unlock_addr_list_lock_of_net_device(void) ; void ldv_spin_lock_stats_lock_of_efx_nic(void) ; void ldv_spin_unlock_stats_lock_of_efx_nic(void) ; void ldv_spin_lock_tx_global_lock_of_net_device(void) ; void ldv_spin_unlock_tx_global_lock_of_net_device(void) ; extern void ldv_initialize(void) ; int ldv_post_init(int init_ret_val ) ; extern void ldv_pre_probe(void) ; int ldv_post_probe(int probe_ret_val ) ; int ldv_filter_err_code(int ret_val ) ; void ldv_check_final_state(void) ; extern void ldv_switch_to_interrupt_context(void) ; extern void ldv_switch_to_process_context(void) ; void ldv_assume(int expression ) ; void ldv_stop(void) ; int ldv_undef_int(void) ; void ldv_free(void *s ) ; void *ldv_xmalloc(size_t size ) ; extern void *external_allocated_data(void) ; 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); } } extern void mutex_lock_nested(struct mutex * , unsigned int ) ; extern int mutex_trylock(struct mutex * ) ; extern void mutex_unlock(struct mutex * ) ; extern void __local_bh_disable_ip(unsigned long , unsigned int ) ; __inline static void local_bh_disable(void) { { { __local_bh_disable_ip((unsigned long )((void *)0), 512U); } return; } } extern void __local_bh_enable_ip(unsigned long , unsigned int ) ; __inline static void local_bh_enable(void) { { { __local_bh_enable_ip((unsigned long )((void *)0), 512U); } return; } } extern void __raw_spin_lock_init(raw_spinlock_t * , char const * , struct lock_class_key * ) ; extern void _raw_spin_lock(raw_spinlock_t * ) ; extern void _raw_spin_lock_bh(raw_spinlock_t * ) ; extern void _raw_spin_unlock(raw_spinlock_t * ) ; extern void _raw_spin_unlock_bh(raw_spinlock_t * ) ; __inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) { { return (& lock->__annonCompField19.rlock); } } __inline static void spin_lock(spinlock_t *lock ) { { { _raw_spin_lock(& lock->__annonCompField19.rlock); } return; } } __inline static void ldv_spin_lock_46(spinlock_t *lock ) ; __inline static void ldv_spin_lock_51(spinlock_t *lock ) ; __inline static void spin_lock_bh(spinlock_t *lock ) { { { _raw_spin_lock_bh(& lock->__annonCompField19.rlock); } return; } } __inline static void ldv_spin_lock_bh_55(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) ; __inline static void spin_unlock(spinlock_t *lock ) { { { _raw_spin_unlock(& lock->__annonCompField19.rlock); } return; } } __inline static void ldv_spin_unlock_49(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_52(spinlock_t *lock ) ; __inline static void spin_unlock_bh(spinlock_t *lock ) { { { _raw_spin_unlock_bh(& lock->__annonCompField19.rlock); } return; } } __inline static void ldv_spin_unlock_bh_57(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) ; extern void __init_waitqueue_head(wait_queue_head_t * , char const * , struct lock_class_key * ) ; extern unsigned long volatile jiffies ; extern unsigned long msecs_to_jiffies(unsigned int const ) ; extern void init_timer_key(struct timer_list * , unsigned int , char const * , struct lock_class_key * ) ; extern int mod_timer(struct timer_list * , unsigned long ) ; static int ldv_mod_timer_83(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; extern void delayed_work_timer_fn(unsigned long ) ; extern void __init_work(struct work_struct * , int ) ; 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 * ) ; extern bool queue_work_on(int , struct workqueue_struct * , struct work_struct * ) ; extern bool queue_delayed_work_on(int , struct workqueue_struct * , struct delayed_work * , unsigned long ) ; extern bool cancel_work_sync(struct work_struct * ) ; extern bool cancel_delayed_work_sync(struct delayed_work * ) ; __inline static bool queue_work(struct workqueue_struct *wq , struct work_struct *work ) { bool tmp ; { { tmp = queue_work_on(8192, wq, work); } return (tmp); } } __inline static bool queue_delayed_work(struct workqueue_struct *wq , struct delayed_work *dwork , unsigned long delay ) { bool tmp ; { { tmp = queue_delayed_work_on(8192, wq, dwork, delay); } return (tmp); } } __inline static char const *kobject_name(struct kobject const *kobj ) { { return ((char const *)kobj->name); } } extern void *ioremap_nocache(resource_size_t , unsigned long ) ; extern void iounmap(void volatile * ) ; extern cpumask_var_t cpu_sibling_map ; extern int cpu_number ; extern void __bad_size_call_parameter(void) ; extern int device_create_file(struct device * , struct device_attribute const * ) ; extern void device_remove_file(struct device * , struct device_attribute const * ) ; __inline static char const *dev_name(struct device const *dev ) { char const *tmp ; { if ((unsigned long )dev->init_name != (unsigned long )((char const */* const */)0)) { return ((char const *)dev->init_name); } else { } { tmp = kobject_name(& dev->kobj); } return (tmp); } } static void *ldv_dev_get_drvdata_58(struct device const *dev ) ; static int ldv_dev_set_drvdata_59(struct device *dev , void *data ) ; extern void msleep(unsigned int ) ; extern void get_random_bytes(void * , int ) ; 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 *kmalloc_array(size_t n , size_t size , gfp_t flags ) { void *tmp ; { if (size != 0UL && n > 0xffffffffffffffffUL / size) { 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 *kzalloc(size_t size , gfp_t flags ) ; extern int dma_supported(struct device * , u64 ) ; extern int dma_set_mask(struct device * , u64 ) ; __inline static int dma_set_coherent_mask(struct device *dev , u64 mask ) { int tmp ; { { tmp = dma_supported(dev, mask); } if (tmp == 0) { return (-5); } else { } dev->coherent_dma_mask = mask; return (0); } } __inline static int dma_set_mask_and_coherent(struct device *dev , u64 mask ) { int rc ; int tmp ; { { tmp = dma_set_mask(dev, mask); rc = tmp; } if (rc == 0) { { dma_set_coherent_mask(dev, mask); } } else { } return (rc); } } __inline static u32 ethtool_rxfh_indir_default(u32 index , u32 n_rx_rings ) { { return (index % n_rx_rings); } } extern void synchronize_irq(unsigned int ) ; 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; } } extern void napi_complete(struct napi_struct * ) ; __inline static void napi_disable(struct napi_struct *n ) { int tmp ; { { __might_sleep("include/linux/netdevice.h", 486, 0); set_bit(1L, (unsigned long volatile *)(& n->state)); } goto ldv_38359; ldv_38358: { msleep(1U); } ldv_38359: { tmp = test_and_set_bit(0L, (unsigned long volatile *)(& n->state)); } if (tmp != 0) { goto ldv_38358; } else { } { clear_bit(1L, (unsigned long volatile *)(& n->state)); } return; } } __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" (502), "i" (12UL)); __builtin_unreachable(); } } 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); } } __inline static void *netdev_priv(struct net_device const *dev ) { { return ((void *)dev + 3200U); } } extern void netif_napi_add(struct net_device * , struct napi_struct * , int (*)(struct napi_struct * , int ) , int ) ; extern void netif_napi_del(struct napi_struct * ) ; extern int register_netdevice_notifier(struct notifier_block * ) ; static int ldv_register_netdevice_notifier_96(struct notifier_block *ldv_func_arg1 ) ; extern int unregister_netdevice_notifier(struct notifier_block * ) ; static int ldv_unregister_netdevice_notifier_98(struct notifier_block *ldv_func_arg1 ) ; static int ldv_unregister_netdevice_notifier_100(struct notifier_block *ldv_func_arg1 ) ; __inline static struct net_device *netdev_notifier_info_to_dev(struct netdev_notifier_info const *info ) { { return ((struct net_device *)info->dev); } } extern int dev_alloc_name(struct net_device * , char const * ) ; extern int dev_close(struct net_device * ) ; extern int register_netdevice(struct net_device * ) ; static int ldv_register_netdevice_90(struct net_device *ldv_func_arg1 ) ; extern void unregister_netdevice_queue(struct net_device * , struct list_head * ) ; __inline static void unregister_netdevice(struct net_device *dev ) { { { unregister_netdevice_queue(dev, (struct list_head *)0); } return; } } __inline static void ldv_unregister_netdevice_91(struct net_device *dev ) ; __inline static void ldv_unregister_netdevice_91(struct net_device *dev ) ; extern void free_netdev(struct net_device * ) ; static void ldv_free_netdev_93(struct net_device *ldv_func_arg1 ) ; static void ldv_free_netdev_95(struct net_device *ldv_func_arg1 ) ; extern int netpoll_trap(void) ; extern void __netif_schedule(struct Qdisc * ) ; __inline static void netif_schedule_queue(struct netdev_queue *txq ) { { if ((txq->state & 3UL) == 0UL) { { __netif_schedule(txq->qdisc); } } else { } return; } } __inline static void netif_tx_start_queue(struct netdev_queue *dev_queue ) { { { clear_bit(0L, (unsigned long volatile *)(& dev_queue->state)); } return; } } __inline static void netif_tx_wake_queue(struct netdev_queue *dev_queue ) { int tmp ; int tmp___0 ; { { tmp = netpoll_trap(); } if (tmp != 0) { { netif_tx_start_queue(dev_queue); } return; } else { } { tmp___0 = test_and_set_bit(0L, (unsigned long volatile *)(& dev_queue->state)); } if (tmp___0 != 0) { { __netif_schedule(dev_queue->qdisc); } } else { } return; } } __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_39294; ldv_39293: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; netif_tx_wake_queue(txq); i = i + 1U; } ldv_39294: ; if (i < dev->num_tx_queues) { goto ldv_39293; } else { } return; } } __inline static void netif_tx_stop_queue(struct netdev_queue *dev_queue ) { int __ret_warn_on ; long tmp ; long tmp___0 ; { { __ret_warn_on = (unsigned long )dev_queue == (unsigned long )((struct netdev_queue *)0); tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("include/linux/netdevice.h", 2128); } } else { } { tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { printk("\016netif_stop_queue() cannot be called before register_netdev()\n"); } return; } else { } { set_bit(0L, (unsigned long volatile *)(& dev_queue->state)); } return; } } __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 int netif_set_real_num_tx_queues(struct net_device * , unsigned int ) ; extern int netif_set_real_num_rx_queues(struct net_device * , unsigned int ) ; __inline static bool netif_carrier_ok(struct net_device const *dev ) { int tmp ; { { tmp = constant_test_bit(2L, (unsigned long const volatile *)(& dev->state)); } return (tmp == 0); } } extern void netif_carrier_on(struct net_device * ) ; extern void netif_carrier_off(struct net_device * ) ; __inline static bool netif_device_present(struct net_device *dev ) { int tmp ; { { tmp = constant_test_bit(1L, (unsigned long const volatile *)(& dev->state)); } return (tmp != 0); } } extern void netif_device_detach(struct net_device * ) ; extern void netif_device_attach(struct net_device * ) ; __inline static void __netif_tx_lock(struct netdev_queue *txq , int cpu ) { { { ldv_spin_lock_46(& txq->_xmit_lock); txq->xmit_lock_owner = cpu; } return; } } __inline static void __netif_tx_unlock(struct netdev_queue *txq ) { { { txq->xmit_lock_owner = -1; ldv_spin_unlock_49(& txq->_xmit_lock); } return; } } __inline static void netif_tx_lock(struct net_device *dev ) { unsigned int i ; int cpu ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { { ldv_spin_lock_51(& dev->tx_global_lock); __vpp_verify = (void const *)0; } { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_39775; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39775; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39775; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39775; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_39775: pscr_ret__ = pfo_ret__; goto ldv_39781; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39785; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39785; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39785; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39785; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_39785: pscr_ret__ = pfo_ret_____0; goto ldv_39781; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39794; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39794; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39794; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39794; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_39794: pscr_ret__ = pfo_ret_____1; goto ldv_39781; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39803; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39803; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39803; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39803; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_39803: pscr_ret__ = pfo_ret_____2; goto ldv_39781; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_39781; switch_break: /* CIL Label */ ; } ldv_39781: cpu = pscr_ret__; i = 0U; goto ldv_39813; ldv_39812: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; __netif_tx_lock(txq, cpu); set_bit(2L, (unsigned long volatile *)(& txq->state)); __netif_tx_unlock(txq); i = i + 1U; } ldv_39813: ; if (i < dev->num_tx_queues) { goto ldv_39812; } else { } return; } } __inline static void netif_tx_lock_bh(struct net_device *dev ) { { { local_bh_disable(); netif_tx_lock(dev); } return; } } __inline static void netif_tx_unlock(struct net_device *dev ) { unsigned int i ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { i = 0U; goto ldv_39824; ldv_39823: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; clear_bit(2L, (unsigned long volatile *)(& txq->state)); netif_schedule_queue(txq); i = i + 1U; } ldv_39824: ; if (i < dev->num_tx_queues) { goto ldv_39823; } else { } { ldv_spin_unlock_52(& dev->tx_global_lock); } return; } } __inline static void netif_tx_unlock_bh(struct net_device *dev ) { { { netif_tx_unlock(dev); local_bh_enable(); } return; } } __inline static void netif_tx_disable(struct net_device *dev ) { unsigned int i ; int cpu ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { { local_bh_disable(); __vpp_verify = (void const *)0; } { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_39839; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39839; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39839; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39839; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_39839: pscr_ret__ = pfo_ret__; goto ldv_39845; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39849; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39849; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39849; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39849; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_39849: pscr_ret__ = pfo_ret_____0; goto ldv_39845; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39858; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39858; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39858; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39858; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_39858: pscr_ret__ = pfo_ret_____1; goto ldv_39845; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39867; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39867; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39867; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39867; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_39867: pscr_ret__ = pfo_ret_____2; goto ldv_39845; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_39845; switch_break: /* CIL Label */ ; } ldv_39845: cpu = pscr_ret__; i = 0U; goto ldv_39877; ldv_39876: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; __netif_tx_lock(txq, cpu); netif_tx_stop_queue(txq); __netif_tx_unlock(txq); i = i + 1U; } ldv_39877: ; if (i < dev->num_tx_queues) { goto ldv_39876; } else { } { local_bh_enable(); } return; } } __inline static void netif_addr_lock_bh(struct net_device *dev ) { { { ldv_spin_lock_bh_55(& dev->addr_list_lock); } return; } } __inline static void netif_addr_unlock_bh(struct net_device *dev ) { { { ldv_spin_unlock_bh_57(& dev->addr_list_lock); } return; } } extern int netdev_printk(char const * , struct net_device const * , char const * , ...) ; extern int netdev_err(struct net_device const * , char const * , ...) ; extern int netdev_warn(struct net_device const * , char const * , ...) ; extern int netdev_info(struct net_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 int pci_save_state(struct pci_dev * ) ; extern void pci_restore_state(struct pci_dev * ) ; extern int pci_set_power_state(struct pci_dev * , pci_power_t ) ; extern ssize_t pci_read_vpd(struct pci_dev * , loff_t , size_t , void * ) ; 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 * ) ; static int ldv___pci_register_driver_97(struct pci_driver *ldv_func_arg1 , struct module *ldv_func_arg2 , char const *ldv_func_arg3 ) ; extern void pci_unregister_driver(struct pci_driver * ) ; static void ldv_pci_unregister_driver_99(struct pci_driver *ldv_func_arg1 ) ; extern int pci_enable_msi_block(struct pci_dev * , int ) ; extern void pci_disable_msi(struct pci_dev * ) ; extern int pci_enable_msix(struct pci_dev * , struct msix_entry * , int ) ; extern void pci_disable_msix(struct pci_dev * ) ; __inline static void *pci_get_drvdata(struct pci_dev *pdev ) { void *tmp ; { { tmp = ldv_dev_get_drvdata_58((struct device const *)(& pdev->dev)); } return (tmp); } } __inline static void pci_set_drvdata(struct pci_dev *pdev , void *data ) { { { ldv_dev_set_drvdata_59(& pdev->dev, data); } return; } } __inline static char const *pci_name(struct pci_dev const *pdev ) { char const *tmp ; { { tmp = dev_name(& pdev->dev); } return (tmp); } } __inline static u16 pci_vpd_lrdt_size(u8 const *lrdt ) { { return ((int )((u16 )*(lrdt + 1UL)) + ((int )((u16 )*(lrdt + 2UL)) << 8U)); } } __inline static u8 pci_vpd_info_field_size(u8 const *info_field ) { { return ((u8 )*(info_field + 2UL)); } } extern int pci_vpd_find_tag(u8 const * , unsigned int , unsigned int , u8 ) ; extern int pci_vpd_find_info_keyword(u8 const * , unsigned int , unsigned int , char const * ) ; extern int eth_validate_addr(struct net_device * ) ; extern struct net_device *alloc_etherdev_mqs(int , unsigned int , unsigned int ) ; static struct net_device *ldv_alloc_etherdev_mqs_94(int ldv_func_arg1 , unsigned int ldv_func_arg2 , unsigned int ldv_func_arg3 ) ; __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 ) { { return (((int )*addr & 1) != 0); } } __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); } } extern void rtnl_lock(void) ; extern void rtnl_unlock(void) ; extern int rtnl_is_locked(void) ; extern int pci_enable_pcie_error_reporting(struct pci_dev * ) ; extern int pci_disable_pcie_error_reporting(struct pci_dev * ) ; extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev * ) ; extern void enable_irq(unsigned int ) ; __inline static struct mii_ioctl_data *if_mii(struct ifreq *rq ) { { return ((struct mii_ioctl_data *)(& rq->ifr_ifru)); } } extern int mdio_mii_ioctl(struct mdio_if_info const * , struct mii_ioctl_data * , int ) ; char const * const efx_loopback_mode_names[27U] ; unsigned int const efx_loopback_mode_max ; char const * const efx_reset_type_names[14U] ; unsigned int const efx_reset_type_max ; __inline static struct efx_channel *efx_get_channel(struct efx_nic *efx , unsigned int index ) { { return (efx->channel[index]); } } __inline static bool efx_channel_has_tx_queues(struct efx_channel *channel ) { { return ((unsigned int )channel->channel - (channel->efx)->tx_channel_offset < (channel->efx)->n_tx_channels); } } __inline static bool efx_tx_queue_used(struct efx_tx_queue *tx_queue ) { { return ((bool )((unsigned int )((tx_queue->efx)->net_dev)->num_tc > 1U || (tx_queue->queue & 2U) == 0U)); } } __inline static bool efx_channel_has_rx_queue(struct efx_channel *channel ) { { return (channel->rx_queue.core_index >= 0); } } __inline static struct efx_rx_queue *efx_channel_get_rx_queue(struct efx_channel *channel ) { { return (& channel->rx_queue); } } int efx_probe_tx_queue(struct efx_tx_queue *tx_queue ) ; void efx_remove_tx_queue(struct efx_tx_queue *tx_queue ) ; void efx_init_tx_queue(struct efx_tx_queue *tx_queue ) ; void efx_init_tx_queue_core_txq(struct efx_tx_queue *tx_queue ) ; void efx_fini_tx_queue(struct efx_tx_queue *tx_queue ) ; netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb , struct net_device *net_dev ) ; int efx_setup_tc(struct net_device *net_dev , u8 num_tc ) ; unsigned int efx_tx_max_skb_descs(struct efx_nic *efx ) ; void efx_rx_config_page_split(struct efx_nic *efx ) ; int efx_probe_rx_queue(struct efx_rx_queue *rx_queue ) ; void efx_remove_rx_queue(struct efx_rx_queue *rx_queue ) ; void efx_init_rx_queue(struct efx_rx_queue *rx_queue ) ; void efx_fini_rx_queue(struct efx_rx_queue *rx_queue ) ; void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue , bool atomic ) ; void efx_rx_slow_fill(unsigned long context ) ; void __efx_rx_packet(struct efx_channel *channel ) ; __inline static void efx_rx_flush_packet(struct efx_channel *channel ) { { if (channel->rx_pkt_n_frags != 0U) { { __efx_rx_packet(channel); } } else { } return; } } void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue ) ; int efx_filter_rfs(struct net_device *net_dev , struct sk_buff const *skb , u16 rxq_index , u32 flow_id ) ; bool __efx_filter_rfs_expire(struct efx_nic *efx , unsigned int quota ) ; __inline static void efx_filter_rfs_expire(struct efx_channel *channel ) { bool tmp ; { if (channel->rfs_filters_added > 59U) { { tmp = __efx_filter_rfs_expire(channel->efx, 100U); } if ((int )tmp) { channel->rfs_filters_added = channel->rfs_filters_added - 60U; } else { } } else { } return; } } int efx_channel_dummy_op_int(struct efx_channel *channel ) ; void efx_channel_dummy_op_void(struct efx_channel *channel ) ; int efx_realloc_channels(struct efx_nic *efx , u32 rxq_entries , u32 txq_entries ) ; int efx_reconfigure_port(struct efx_nic *efx ) ; int __efx_reconfigure_port(struct efx_nic *efx ) ; struct ethtool_ops const efx_ethtool_ops ; int efx_reset(struct efx_nic *efx , enum reset_type method ) ; void efx_reset_down(struct efx_nic *efx , enum reset_type method ) ; int efx_reset_up(struct efx_nic *efx , enum reset_type method , bool ok ) ; int efx_try_recovery(struct efx_nic *efx ) ; void efx_schedule_reset(struct efx_nic *efx , enum reset_type type ) ; int efx_init_irq_moderation(struct efx_nic *efx , unsigned int tx_usecs , unsigned int rx_usecs , bool rx_adaptive , bool rx_may_override_tx ) ; void efx_get_irq_moderation(struct efx_nic *efx , unsigned int *tx_usecs , unsigned int *rx_usecs , bool *rx_adaptive ) ; int efx_port_dummy_op_int(struct efx_nic *efx ) ; void efx_port_dummy_op_void(struct efx_nic *efx ) ; __inline static int efx_mtd_probe(struct efx_nic *efx ) { int tmp ; { { tmp = (*((efx->type)->mtd_probe))(efx); } return (tmp); } } void efx_mtd_rename(struct efx_nic *efx ) ; void efx_mtd_remove(struct efx_nic *efx ) ; __inline static void efx_schedule_channel(struct efx_channel *channel ) { int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { if (0) { if (((channel->efx)->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_50359; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_50359: pscr_ret__ = pfo_ret__; goto ldv_50365; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_50369; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_50369: pscr_ret__ = pfo_ret_____0; goto ldv_50365; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_50378; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_50378: pscr_ret__ = pfo_ret_____1; goto ldv_50365; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_50387; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_50387: pscr_ret__ = pfo_ret_____2; goto ldv_50365; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_50365; switch_break: /* CIL Label */ ; } ldv_50365: { netdev_printk("\017", (struct net_device const *)(channel->efx)->net_dev, "channel %d scheduling NAPI poll on CPU%d\n", channel->channel, pscr_ret__); } } else { } } else { } { napi_schedule(& channel->napi_str); } return; } } void efx_link_status_changed(struct efx_nic *efx ) ; void efx_link_set_advertising(struct efx_nic *efx , u32 advertising ) ; void efx_link_set_wanted_fc(struct efx_nic *efx , u8 wanted_fc ) ; __inline static void efx_device_detach_sync(struct efx_nic *efx ) { struct net_device *dev ; { { dev = efx->net_dev; netif_tx_lock_bh(dev); netif_device_detach(dev); netif_tx_unlock_bh(dev); } return; } } int efx_mcdi_poll_reboot(struct efx_nic *efx ) ; void efx_mcdi_mode_poll(struct efx_nic *efx ) ; void efx_mcdi_mode_event(struct efx_nic *efx ) ; void efx_mcdi_flush_async(struct efx_nic *efx ) ; __inline static int efx_nic_rev(struct efx_nic *efx ) { { return ((int )(efx->type)->revision); } } __inline static bool efx_sriov_wanted(struct efx_nic *efx ) { { return (efx->vf_count != 0U); } } __inline static unsigned int efx_vf_size(struct efx_nic *efx ) { { return ((unsigned int )(1 << (int )efx->vi_scale)); } } int efx_init_sriov(void) ; int efx_sriov_init(struct efx_nic *efx ) ; void efx_sriov_mac_address_changed(struct efx_nic *efx ) ; void efx_sriov_reset(struct efx_nic *efx ) ; void efx_sriov_fini(struct efx_nic *efx ) ; void efx_fini_sriov(void) ; int efx_sriov_set_vf_mac(struct net_device *net_dev , int vf_i , u8 *mac ) ; int efx_sriov_set_vf_vlan(struct net_device *net_dev , int vf_i , u16 vlan , u8 qos ) ; int efx_sriov_get_vf_config(struct net_device *net_dev , int vf_i , struct ifla_vf_info *ivi ) ; int efx_sriov_set_vf_spoofchk(struct net_device *net_dev , int vf_i , bool spoofchk ) ; int efx_ptp_set_ts_config(struct efx_nic *efx , struct ifreq *ifr ) ; int efx_ptp_get_ts_config(struct efx_nic *efx , struct ifreq *ifr ) ; void efx_ptp_start_datapath(struct efx_nic *efx ) ; void efx_ptp_stop_datapath(struct efx_nic *efx ) ; struct efx_nic_type const falcon_a1_nic_type ; struct efx_nic_type const falcon_b0_nic_type ; struct efx_nic_type const siena_a0_nic_type ; struct efx_nic_type const efx_hunt_a0_nic_type ; __inline static int efx_nic_probe_eventq(struct efx_channel *channel ) { int tmp ; { { tmp = (*(((channel->efx)->type)->ev_probe))(channel); } return (tmp); } } __inline static int efx_nic_init_eventq(struct efx_channel *channel ) { int tmp ; { { tmp = (*(((channel->efx)->type)->ev_init))(channel); } return (tmp); } } __inline static void efx_nic_fini_eventq(struct efx_channel *channel ) { { { (*(((channel->efx)->type)->ev_fini))(channel); } return; } } __inline static void efx_nic_remove_eventq(struct efx_channel *channel ) { { { (*(((channel->efx)->type)->ev_remove))(channel); } return; } } __inline static int efx_nic_process_eventq(struct efx_channel *channel , int quota ) { int tmp ; { { tmp = (*(((channel->efx)->type)->ev_process))(channel, quota); } return (tmp); } } __inline static void efx_nic_eventq_read_ack(struct efx_channel *channel ) { { { (*(((channel->efx)->type)->ev_read_ack))(channel); } return; } } int efx_nic_init_interrupt(struct efx_nic *efx ) ; void efx_nic_fini_interrupt(struct efx_nic *efx ) ; void efx_selftest_async_start(struct efx_nic *efx ) ; void efx_selftest_async_cancel(struct efx_nic *efx ) ; void efx_selftest_async_work(struct work_struct *data ) ; unsigned int const efx_loopback_mode_max = 27U; char const * const efx_loopback_mode_names[27U] = { "NONE", "DATAPATH", "GMAC", "XGMII", "XGXS", "XAUI", "GMII", "SGMII", "XGBR", "XFI", "XAUI_FAR", "GMII_FAR", "SGMII_FAR", "XFI_FAR", "GPHY", "PHYXS", "PCS", "PMA/PMD", "XPORT", "XGMII_WS", "XAUI_WS", "XAUI_WS_FAR", "XAUI_WS_NEAR", "GMII_WS", "XFI_WS", "XFI_WS_FAR", "PHYXS_WS"}; unsigned int const efx_reset_type_max = 14U; char const * const efx_reset_type_names[14U] = { "INVISIBLE", "RECOVER_OR_ALL", "ALL", "WORLD", "RECOVER_OR_DISABLE", "DISABLE", 0, "TX_WATCHDOG", "INT_ERROR", "RX_RECOVERY", "DMA_ERROR", "TX_SKIP", "MC_FAILURE", "MC_BIST"}; static struct workqueue_struct *reset_workqueue ; static bool separate_tx_channels ; static int napi_weight = 64; static unsigned int efx_monitor_interval = 250U; static unsigned int rx_irq_mod_usec = 60U; static unsigned int tx_irq_mod_usec = 150U; static unsigned int interrupt_mode ; static unsigned int rss_cpus ; static bool phy_flash_cfg ; static unsigned int irq_adapt_low_thresh = 8000U; static unsigned int irq_adapt_high_thresh = 16000U; static unsigned int debug = 8439U; static int efx_soft_enable_interrupts(struct efx_nic *efx ) ; static void efx_soft_disable_interrupts(struct efx_nic *efx ) ; static void efx_remove_channel(struct efx_channel *channel ) ; static void efx_remove_channels(struct efx_nic *efx ) ; static struct efx_channel_type const efx_default_channel_type ; static void efx_remove_port(struct efx_nic *efx ) ; static void efx_init_napi_channel(struct efx_channel *channel ) ; static void efx_fini_napi(struct efx_nic *efx ) ; static void efx_fini_napi_channel(struct efx_channel *channel ) ; static void efx_fini_struct(struct efx_nic *efx ) ; static void efx_start_all(struct efx_nic *efx ) ; static void efx_stop_all(struct efx_nic *efx ) ; static int efx_check_disabled(struct efx_nic *efx ) { { if ((unsigned int )efx->state - 2U <= 1U) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "device is disabled due to earlier errors\n"); } } else { } return (-5); } else { } return (0); } } static int efx_process_channel(struct efx_channel *channel , int budget ) { int spent ; long tmp ; struct efx_rx_queue *rx_queue ; struct efx_rx_queue *tmp___0 ; bool tmp___1 ; { { tmp = ldv__builtin_expect((long )(! channel->enabled), 0L); } if (tmp != 0L) { return (0); } else { } { spent = efx_nic_process_eventq(channel, budget); } if (spent != 0) { { tmp___1 = efx_channel_has_rx_queue(channel); } if ((int )tmp___1) { { tmp___0 = efx_channel_get_rx_queue(channel); rx_queue = tmp___0; efx_rx_flush_packet(channel); efx_fast_push_rx_descriptors(rx_queue, 1); } } else { } } else { } return (spent); } } static int efx_poll(struct napi_struct *napi , int budget ) { struct efx_channel *channel ; struct napi_struct const *__mptr ; struct efx_nic *efx ; int spent ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp ; long tmp___0 ; bool tmp___1 ; long tmp___2 ; { __mptr = (struct napi_struct const *)napi; channel = (struct efx_channel *)__mptr + 0xffffffffffffffd0UL; efx = channel->efx; if (0) { if ((efx->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_51514; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_51514; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_51514; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_51514; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_51514: pscr_ret__ = pfo_ret__; goto ldv_51520; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_51524; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_51524; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_51524; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_51524; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_51524: pscr_ret__ = pfo_ret_____0; goto ldv_51520; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_51533; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_51533; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_51533; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_51533; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_51533: pscr_ret__ = pfo_ret_____1; goto ldv_51520; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_51542; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_51542; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_51542; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_51542; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_51542: pscr_ret__ = pfo_ret_____2; goto ldv_51520; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_51520; switch_break: /* CIL Label */ ; } ldv_51520: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "channel %d NAPI poll executing on CPU %d\n", channel->channel, pscr_ret__); } } else { } } else { } { spent = efx_process_channel(channel, budget); } if (spent < budget) { { tmp___1 = efx_channel_has_rx_queue(channel); } if ((int )tmp___1 && (int )efx->irq_rx_adaptive) { { channel->irq_count = channel->irq_count + 1U; tmp___2 = ldv__builtin_expect(channel->irq_count == 1000U, 0L); } if (tmp___2 != 0L) { { tmp___0 = ldv__builtin_expect(channel->irq_mod_score < irq_adapt_low_thresh, 0L); } if (tmp___0 != 0L) { if (channel->irq_moderation > 1U) { { channel->irq_moderation = channel->irq_moderation - 1U; (*((efx->type)->push_irq_moderation))(channel); } } else { } } else { { tmp = ldv__builtin_expect(channel->irq_mod_score > irq_adapt_high_thresh, 0L); } if (tmp != 0L) { if (channel->irq_moderation < efx->irq_rx_moderation) { { channel->irq_moderation = channel->irq_moderation + 1U; (*((efx->type)->push_irq_moderation))(channel); } } else { } } else { } } channel->irq_count = 0U; channel->irq_mod_score = 0U; } else { } } else { } { efx_filter_rfs_expire(channel); napi_complete(napi); efx_nic_eventq_read_ack(channel); } } else { } return (spent); } } static int efx_probe_eventq(struct efx_channel *channel ) { struct efx_nic *efx ; unsigned long entries ; struct _ddebug descriptor ; long tmp ; unsigned long tmp___68 ; unsigned long _max1 ; unsigned long _max2 ; int tmp___69 ; { efx = channel->efx; if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_probe_eventq"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "chan %d create event queue\n"; descriptor.lineno = 327U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "chan %d create event queue\n", channel->channel); } } else { } } else { } { tmp___68 = __roundup_pow_of_two((unsigned long )((efx->rxq_entries + efx->txq_entries) + 128U)); entries = tmp___68; _max1 = entries; _max2 = 512UL; channel->eventq_mask = (unsigned int )(_max1 > _max2 ? _max1 : _max2) - 1U; tmp___69 = efx_nic_probe_eventq(channel); } return (tmp___69); } } static int efx_init_eventq(struct efx_channel *channel ) { struct efx_nic *efx ; int rc ; struct _ddebug descriptor ; long tmp ; { efx = channel->efx; if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_init_eventq"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "chan %d init event queue\n"; descriptor.lineno = 347U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "chan %d init event queue\n", channel->channel); } } else { } } else { } { rc = efx_nic_init_eventq(channel); } if (rc == 0) { { (*((efx->type)->push_irq_moderation))(channel); channel->eventq_read_ptr = 0U; channel->eventq_init = 1; } } else { } return (rc); } } static void efx_start_eventq(struct efx_channel *channel ) { struct _ddebug descriptor ; long tmp ; { if (((channel->efx)->msg_enable & 32U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_start_eventq"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "chan %d start event queue\n"; descriptor.lineno = 362U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(channel->efx)->net_dev, "chan %d start event queue\n", channel->channel); } } else { } } else { } { channel->enabled = 1; __asm__ volatile ("": : : "memory"); napi_enable(& channel->napi_str); efx_nic_eventq_read_ack(channel); } return; } } static void efx_stop_eventq(struct efx_channel *channel ) { { if (! channel->enabled) { return; } else { } { napi_disable(& channel->napi_str); channel->enabled = 0; } return; } } static void efx_fini_eventq(struct efx_channel *channel ) { struct _ddebug descriptor ; long tmp ; { if (! channel->eventq_init) { return; } else { } if ((int )(channel->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_fini_eventq"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "chan %d fini event queue\n"; descriptor.lineno = 388U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(channel->efx)->net_dev, "chan %d fini event queue\n", channel->channel); } } else { } } else { } { efx_nic_fini_eventq(channel); channel->eventq_init = 0; } return; } } static void efx_remove_eventq(struct efx_channel *channel ) { struct _ddebug descriptor ; long tmp ; { if ((int )(channel->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_remove_eventq"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "chan %d remove event queue\n"; descriptor.lineno = 397U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(channel->efx)->net_dev, "chan %d remove event queue\n", channel->channel); } } else { } } else { } { efx_nic_remove_eventq(channel); } return; } } static struct efx_channel *efx_alloc_channel(struct efx_nic *efx , int i , struct efx_channel *old_channel ) { struct efx_channel *channel ; struct efx_rx_queue *rx_queue ; struct efx_tx_queue *tx_queue ; int j ; void *tmp ; struct lock_class_key __key ; { { tmp = kzalloc(1984UL, 208U); channel = (struct efx_channel *)tmp; } if ((unsigned long )channel == (unsigned long )((struct efx_channel *)0)) { return ((struct efx_channel *)0); } else { } channel->efx = efx; channel->channel = i; channel->type = & efx_default_channel_type; j = 0; goto ldv_51596; ldv_51595: tx_queue = (struct efx_tx_queue *)(& channel->tx_queue) + (unsigned long )j; tx_queue->efx = efx; tx_queue->queue = (unsigned int )(i * 4 + j); tx_queue->channel = channel; j = j + 1; ldv_51596: ; if (j <= 3) { goto ldv_51595; } else { } { rx_queue = & channel->rx_queue; rx_queue->efx = efx; init_timer_key(& rx_queue->slow_fill, 0U, "((&rx_queue->slow_fill))", & __key); rx_queue->slow_fill.function = & efx_rx_slow_fill; rx_queue->slow_fill.data = (unsigned long )rx_queue; } return (channel); } } static struct efx_channel *efx_copy_channel(struct efx_channel const *old_channel ) { struct efx_channel *channel ; struct efx_rx_queue *rx_queue ; struct efx_tx_queue *tx_queue ; int j ; void *tmp ; struct lock_class_key __key ; { { tmp = kmalloc(1984UL, 208U); channel = (struct efx_channel *)tmp; } if ((unsigned long )channel == (unsigned long )((struct efx_channel *)0)) { return ((struct efx_channel *)0); } else { } { *channel = *old_channel; channel->napi_dev = (struct net_device *)0; memset((void *)(& channel->eventq), 0, 32UL); j = 0; } goto ldv_51607; ldv_51606: tx_queue = (struct efx_tx_queue *)(& channel->tx_queue) + (unsigned long )j; if ((unsigned long )tx_queue->channel != (unsigned long )((struct efx_channel *)0)) { tx_queue->channel = channel; } else { } { tx_queue->buffer = (struct efx_tx_buffer *)0; memset((void *)(& tx_queue->txd), 0, 32UL); j = j + 1; } ldv_51607: ; if (j <= 3) { goto ldv_51606; } else { } { rx_queue = & channel->rx_queue; rx_queue->buffer = (struct efx_rx_buffer *)0; memset((void *)(& rx_queue->rxd), 0, 32UL); init_timer_key(& rx_queue->slow_fill, 0U, "((&rx_queue->slow_fill))", & __key); rx_queue->slow_fill.function = & efx_rx_slow_fill; rx_queue->slow_fill.data = (unsigned long )rx_queue; } return (channel); } } static int efx_probe_channel(struct efx_channel *channel ) { struct efx_tx_queue *tx_queue ; struct efx_rx_queue *rx_queue ; int rc ; struct _ddebug descriptor ; long tmp ; bool tmp___0 ; bool tmp___1 ; int tmp___2 ; bool tmp___3 ; int tmp___4 ; { if (((channel->efx)->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_probe_channel"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "creating channel %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 *)(channel->efx)->net_dev, "creating channel %d\n", channel->channel); } } else { } } else { } { rc = (*((channel->type)->pre_probe))(channel); } if (rc != 0) { goto fail; } else { } { rc = efx_probe_eventq(channel); } if (rc != 0) { goto fail; } else { } { tmp___1 = efx_channel_has_tx_queues(channel); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_51620; ldv_51619: { rc = efx_probe_tx_queue(tx_queue); } if (rc != 0) { goto fail; } else { } tx_queue = tx_queue + 1; ldv_51620: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___0 = efx_tx_queue_used(tx_queue); } if ((int )tmp___0) { goto ldv_51619; } else { goto ldv_51621; } } else { } ldv_51621: ; } { tmp___3 = efx_channel_has_rx_queue(channel); } if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { } else { rx_queue = & channel->rx_queue; goto ldv_51623; ldv_51622: { rc = efx_probe_rx_queue(rx_queue); } if (rc != 0) { goto fail; } else { } rx_queue = (struct efx_rx_queue *)0; ldv_51623: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_51622; } else { } } channel->n_rx_frm_trunc = 0U; return (0); fail: { efx_remove_channel(channel); } return (rc); } } static void efx_get_channel_name(struct efx_channel *channel , char *buf , size_t len ) { struct efx_nic *efx ; char const *type ; int number ; { efx = channel->efx; number = channel->channel; if (efx->tx_channel_offset == 0U) { type = ""; } else if ((unsigned int )channel->channel < efx->tx_channel_offset) { type = "-rx"; } else { type = "-tx"; number = (int )((unsigned int )number - efx->tx_channel_offset); } { snprintf(buf, len, "%s%s-%d", (char *)(& efx->name), type, number); } return; } } static void efx_set_channel_names(struct efx_nic *efx ) { struct efx_channel *channel ; { channel = efx->channel[0]; goto ldv_51638; ldv_51637: { (*((channel->type)->get_name))(channel, (char *)(& efx->msi_context[channel->channel].name), 22UL); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_51638: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51637; } else { } return; } } static int efx_probe_channels(struct efx_nic *efx ) { struct efx_channel *channel ; int rc ; { efx->next_buffer_table = 0U; channel = efx->channel[efx->n_channels - 1U]; goto ldv_51647; ldv_51646: { rc = efx_probe_channel(channel); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to create channel %d\n", channel->channel); } } else { } goto fail; } else { } channel = channel->channel != 0 ? efx->channel[channel->channel + -1] : (struct efx_channel *)0; ldv_51647: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51646; } else { } { efx_set_channel_names(efx); } return (0); fail: { efx_remove_channels(efx); } return (rc); } } extern void __compiletime_assert_600(void) ; extern void __compiletime_assert_604(void) ; static void efx_start_datapath(struct efx_nic *efx ) { bool old_rx_scatter ; struct efx_tx_queue *tx_queue ; struct efx_rx_queue *rx_queue ; struct efx_channel *channel ; size_t rx_buf_len ; bool __cond ; bool __cond___0 ; int tmp___69 ; struct _ddebug descriptor ; long tmp___70 ; struct _ddebug descriptor___0 ; long tmp___71 ; unsigned int tmp___72 ; bool tmp___73 ; bool tmp___74 ; int tmp___75 ; bool tmp___76 ; int tmp___77 ; int __ret_warn_on ; long tmp___78 ; bool tmp___79 ; { old_rx_scatter = efx->rx_scatter; efx->rx_dma_len = ((efx->rx_prefix_size + (((efx->net_dev)->mtu + 29U) & 4294967288U)) + (unsigned int )(efx->type)->rx_buffer_padding) + 16U; rx_buf_len = ((unsigned long )efx->rx_ip_align + (unsigned long )efx->rx_dma_len) + 64UL; if (rx_buf_len <= 4096UL) { efx->rx_scatter = (efx->type)->always_rx_scatter; efx->rx_buffer_order = 0U; } else if ((int )(efx->type)->can_rx_scatter) { __cond = 0; if ((int )__cond) { { __compiletime_assert_600(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_604(); } } else { } efx->rx_scatter = 1; efx->rx_dma_len = 1792U; efx->rx_buffer_order = 0U; } else { { efx->rx_scatter = 0; tmp___69 = __get_order(rx_buf_len); efx->rx_buffer_order = (unsigned int )tmp___69; } } { efx_rx_config_page_split(efx); } if (efx->rx_buffer_order != 0U) { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_start_datapath"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "RX buf len=%u; page order=%u batch=%u\n"; descriptor.lineno = 618U; descriptor.flags = 0U; tmp___70 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___70 != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "RX buf len=%u; page order=%u batch=%u\n", efx->rx_dma_len, efx->rx_buffer_order, efx->rx_pages_per_batch); } } else { } } else { } } else if ((int )efx->msg_enable & 1) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_start_datapath"; descriptor___0.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___0.format = "RX buf len=%u step=%u bpp=%u; page batch=%u\n"; descriptor___0.lineno = 623U; descriptor___0.flags = 0U; tmp___71 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); } if (tmp___71 != 0L) { { __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)efx->net_dev, "RX buf len=%u step=%u bpp=%u; page batch=%u\n", efx->rx_dma_len, efx->rx_page_buf_step, efx->rx_bufs_per_page, efx->rx_pages_per_batch); } } else { } } else { } if ((int )efx->rx_scatter != (int )old_rx_scatter) { { (*((efx->type)->filter_update_rx_scatter))(efx); } } else { } { tmp___72 = efx_tx_max_skb_descs(efx); efx->txq_stop_thresh = efx->txq_entries - tmp___72; efx->txq_wake_thresh = efx->txq_stop_thresh / 2U; channel = efx->channel[0]; } goto ldv_51677; ldv_51676: { tmp___74 = efx_channel_has_tx_queues(channel); } if (tmp___74) { tmp___75 = 0; } else { tmp___75 = 1; } if (tmp___75) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_51669; ldv_51668: { efx_init_tx_queue(tx_queue); atomic_inc(& efx->active_queues); tx_queue = tx_queue + 1; } ldv_51669: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___73 = efx_tx_queue_used(tx_queue); } if ((int )tmp___73) { goto ldv_51668; } else { goto ldv_51670; } } else { } ldv_51670: ; } { tmp___76 = efx_channel_has_rx_queue(channel); } if (tmp___76) { tmp___77 = 0; } else { tmp___77 = 1; } if (tmp___77) { } else { rx_queue = & channel->rx_queue; goto ldv_51672; ldv_51671: { efx_init_rx_queue(rx_queue); atomic_inc(& efx->active_queues); efx_stop_eventq(channel); efx_fast_push_rx_descriptors(rx_queue, 0); efx_start_eventq(channel); rx_queue = (struct efx_rx_queue *)0; } ldv_51672: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_51671; } else { } } { __ret_warn_on = channel->rx_pkt_n_frags != 0U; tmp___78 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___78 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/efx.c", 654); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_51677: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51676; } else { } { efx_ptp_start_datapath(efx); tmp___79 = netif_device_present(efx->net_dev); } if ((int )tmp___79) { { netif_tx_wake_all_queues(efx->net_dev); } } else { } return; } } static void efx_stop_datapath(struct efx_nic *efx ) { struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; struct efx_rx_queue *rx_queue ; int rc ; int tmp ; long tmp___0 ; long tmp___1 ; bool tmp___2 ; int tmp___3 ; bool tmp___4 ; struct _ddebug descriptor ; long tmp___5 ; int tmp___6 ; bool tmp___7 ; int tmp___8 ; bool tmp___9 ; int tmp___10 ; { if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 670); dump_stack(); } } else { } } else { } { tmp___1 = ldv__builtin_expect((long )efx->port_enabled, 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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (671), "i" (12UL)); __builtin_unreachable(); } } else { } { efx_ptp_stop_datapath(efx); channel = efx->channel[0]; } goto ldv_51690; ldv_51689: { tmp___2 = efx_channel_has_rx_queue(channel); } if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { } else { rx_queue = & channel->rx_queue; goto ldv_51687; ldv_51686: rx_queue->refill_enabled = 0; rx_queue = (struct efx_rx_queue *)0; ldv_51687: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_51686; } else { } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51690: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51689; } else { } channel = efx->channel[0]; goto ldv_51693; ldv_51692: { tmp___4 = efx_channel_has_rx_queue(channel); } if ((int )tmp___4) { { efx_stop_eventq(channel); efx_start_eventq(channel); } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51693: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51692; } else { } { rc = (*((efx->type)->fini_dmaq))(efx); } if (rc != 0) { { tmp___6 = efx_nic_rev(efx); } if (tmp___6 <= 2) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Resetting to recover from flush failure\n"); } } else { } { efx_schedule_reset(efx, 2); } } else { goto _L; } } else _L: /* CIL Label */ if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to flush queues\n"); } } else { } } else if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_stop_datapath"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "successfully flushed all queues\n"; descriptor.lineno = 708U; 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 *)efx->net_dev, "successfully flushed all queues\n"); } } else { } } else { } channel = efx->channel[0]; goto ldv_51704; ldv_51703: { tmp___7 = efx_channel_has_rx_queue(channel); } if (tmp___7) { tmp___8 = 0; } else { tmp___8 = 1; } if (tmp___8) { } else { rx_queue = & channel->rx_queue; goto ldv_51698; ldv_51697: { efx_fini_rx_queue(rx_queue); rx_queue = (struct efx_rx_queue *)0; } ldv_51698: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_51697; } else { } } { tmp___9 = efx_channel_has_tx_queues(channel); } if (tmp___9) { tmp___10 = 0; } else { tmp___10 = 1; } if (tmp___10) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_51701; ldv_51700: { efx_fini_tx_queue(tx_queue); tx_queue = tx_queue + 1; } ldv_51701: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { goto ldv_51700; } else { } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51704: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51703; } else { } return; } } static void efx_remove_channel(struct efx_channel *channel ) { struct efx_tx_queue *tx_queue ; struct efx_rx_queue *rx_queue ; struct _ddebug descriptor ; long tmp ; bool tmp___0 ; int tmp___1 ; bool tmp___2 ; int tmp___3 ; { if ((int )(channel->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_remove_channel"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "destroy chan %d\n"; descriptor.lineno = 725U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(channel->efx)->net_dev, "destroy chan %d\n", channel->channel); } } else { } } else { } { tmp___0 = efx_channel_has_rx_queue(channel); } if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { } else { rx_queue = & channel->rx_queue; goto ldv_51714; ldv_51713: { efx_remove_rx_queue(rx_queue); rx_queue = (struct efx_rx_queue *)0; } ldv_51714: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_51713; } else { } } { tmp___2 = efx_channel_has_tx_queues(channel); } if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_51717; ldv_51716: { efx_remove_tx_queue(tx_queue); tx_queue = tx_queue + 1; } ldv_51717: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { goto ldv_51716; } else { } } { efx_remove_eventq(channel); (*((channel->type)->post_remove))(channel); } return; } } static void efx_remove_channels(struct efx_nic *efx ) { struct efx_channel *channel ; { channel = efx->channel[0]; goto ldv_51724; ldv_51723: { efx_remove_channel(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_51724: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51723; } else { } return; } } int efx_realloc_channels(struct efx_nic *efx , u32 rxq_entries , u32 txq_entries ) { struct efx_channel *other_channel[32U] ; struct efx_channel *channel ; u32 old_rxq_entries ; u32 old_txq_entries ; unsigned int i ; unsigned int next_buffer_table ; int rc ; int rc2 ; struct efx_rx_queue *rx_queue ; struct efx_tx_queue *tx_queue ; unsigned int _max1 ; unsigned int _max2 ; unsigned int _max1___0 ; unsigned int _max2___0 ; bool tmp ; int tmp___0 ; unsigned int _max1___1 ; unsigned int _max2___1 ; bool tmp___1 ; bool tmp___2 ; int tmp___3 ; { { next_buffer_table = 0U; rc = efx_check_disabled(efx); } if (rc != 0) { return (rc); } else { } channel = efx->channel[0]; goto ldv_51758; ldv_51757: ; if ((unsigned long )(channel->type)->copy != (unsigned long )((struct efx_channel *(*/* const */)(struct efx_channel const * ))0)) { goto ldv_51741; } else { } { _max1 = next_buffer_table; _max2 = channel->eventq.index + channel->eventq.entries; next_buffer_table = _max1 > _max2 ? _max1 : _max2; tmp = efx_channel_has_rx_queue(channel); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { } else { rx_queue = & channel->rx_queue; goto ldv_51749; ldv_51748: _max1___0 = next_buffer_table; _max2___0 = rx_queue->rxd.index + rx_queue->rxd.entries; next_buffer_table = _max1___0 > _max2___0 ? _max1___0 : _max2___0; rx_queue = (struct efx_rx_queue *)0; ldv_51749: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_51748; } else { } } { tmp___2 = efx_channel_has_tx_queues(channel); } if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_51755; ldv_51754: _max1___1 = next_buffer_table; _max2___1 = tx_queue->txd.index + tx_queue->txd.entries; next_buffer_table = _max1___1 > _max2___1 ? _max1___1 : _max2___1; tx_queue = tx_queue + 1; ldv_51755: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___1 = efx_tx_queue_used(tx_queue); } if ((int )tmp___1) { goto ldv_51754; } else { goto ldv_51756; } } else { } ldv_51756: ; } ldv_51741: channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51758: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51757; } else { } { efx_device_detach_sync(efx); efx_stop_all(efx); efx_soft_disable_interrupts(efx); memset((void *)(& other_channel), 0, 256UL); i = 0U; } goto ldv_51762; ldv_51761: channel = efx->channel[i]; if ((unsigned long )(channel->type)->copy != (unsigned long )((struct efx_channel *(*/* const */)(struct efx_channel const * ))0)) { { channel = (*((channel->type)->copy))((struct efx_channel const *)channel); } } else { } if ((unsigned long )channel == (unsigned long )((struct efx_channel *)0)) { rc = -12; goto out; } else { } other_channel[i] = channel; i = i + 1U; ldv_51762: ; if (i < efx->n_channels) { goto ldv_51761; } else { } old_rxq_entries = efx->rxq_entries; old_txq_entries = efx->txq_entries; efx->rxq_entries = rxq_entries; efx->txq_entries = txq_entries; i = 0U; goto ldv_51765; ldv_51764: channel = efx->channel[i]; efx->channel[i] = other_channel[i]; other_channel[i] = channel; i = i + 1U; ldv_51765: ; if (i < efx->n_channels) { goto ldv_51764; } else { } efx->next_buffer_table = next_buffer_table; i = 0U; goto ldv_51770; ldv_51769: channel = efx->channel[i]; if ((unsigned long )(channel->type)->copy == (unsigned long )((struct efx_channel *(*/* const */)(struct efx_channel const * ))0)) { goto ldv_51767; } else { } { rc = efx_probe_channel(channel); } if (rc != 0) { goto rollback; } else { } { efx_init_napi_channel(efx->channel[i]); } ldv_51767: i = i + 1U; ldv_51770: ; if (i < efx->n_channels) { goto ldv_51769; } else { } out: i = 0U; goto ldv_51773; ldv_51772: channel = other_channel[i]; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0) && (unsigned long )(channel->type)->copy != (unsigned long )((struct efx_channel *(*/* const */)(struct efx_channel const * ))0)) { { efx_fini_napi_channel(channel); efx_remove_channel(channel); kfree((void const *)channel); } } else { } i = i + 1U; ldv_51773: ; if (i < efx->n_channels) { goto ldv_51772; } else { } { rc2 = efx_soft_enable_interrupts(efx); } if (rc2 != 0) { rc = rc != 0 ? rc : rc2; if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "unable to restart interrupts on channel reallocation\n"); } } else { } { efx_schedule_reset(efx, 5); } } else { { efx_start_all(efx); netif_device_attach(efx->net_dev); } } return (rc); rollback: efx->rxq_entries = old_rxq_entries; efx->txq_entries = old_txq_entries; i = 0U; goto ldv_51776; ldv_51775: channel = efx->channel[i]; efx->channel[i] = other_channel[i]; other_channel[i] = channel; i = i + 1U; ldv_51776: ; if (i < efx->n_channels) { goto ldv_51775; } else { } goto out; } } void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue ) { unsigned long tmp ; { { tmp = msecs_to_jiffies(100U); ldv_mod_timer_83(& rx_queue->slow_fill, (unsigned long )jiffies + tmp); } return; } } static struct efx_channel_type const efx_default_channel_type = {0, & efx_channel_dummy_op_int, & efx_channel_dummy_op_void, & efx_get_channel_name, & efx_copy_channel, 0, 0}; int efx_channel_dummy_op_int(struct efx_channel *channel ) { { return (0); } } void efx_channel_dummy_op_void(struct efx_channel *channel ) { { return; } } void efx_link_status_changed(struct efx_nic *efx ) { struct efx_link_state *link_state ; bool tmp ; int tmp___0 ; bool tmp___1 ; { { link_state = & efx->link_state; tmp = netif_running((struct net_device const *)efx->net_dev); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return; } else { } { tmp___1 = netif_carrier_ok((struct net_device const *)efx->net_dev); } if ((int )link_state->up != (int )tmp___1) { efx->n_link_state_changes = efx->n_link_state_changes + 1U; if ((int )link_state->up) { { netif_carrier_on(efx->net_dev); } } else { { netif_carrier_off(efx->net_dev); } } } else { } if ((int )link_state->up) { if ((efx->msg_enable & 4U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "link up at %uMbps %s-duplex (MTU %d)\n", link_state->speed, (int )link_state->fd ? (char *)"full" : (char *)"half", (efx->net_dev)->mtu); } } else { } } else if ((efx->msg_enable & 4U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "link down\n"); } } else { } return; } } void efx_link_set_advertising(struct efx_nic *efx , u32 advertising ) { { efx->link_advertising = advertising; if (advertising != 0U) { if ((advertising & 8192U) != 0U) { efx->wanted_fc = (u8 )((unsigned int )efx->wanted_fc | 3U); } else { efx->wanted_fc = (unsigned int )efx->wanted_fc & 252U; } if ((advertising & 16384U) != 0U) { efx->wanted_fc = (u8 )((unsigned int )efx->wanted_fc ^ 1U); } else { } } else { } return; } } void efx_link_set_wanted_fc(struct efx_nic *efx , u8 wanted_fc ) { { efx->wanted_fc = wanted_fc; if (efx->link_advertising != 0U) { if (((int )wanted_fc & 2) != 0) { efx->link_advertising = efx->link_advertising | 24576U; } else { efx->link_advertising = efx->link_advertising & 4294942719U; } if ((int )wanted_fc & 1) { efx->link_advertising = efx->link_advertising ^ 16384U; } else { } } else { } return; } } static void efx_fini_port(struct efx_nic *efx ) ; int __efx_reconfigure_port(struct efx_nic *efx ) { enum efx_phy_mode phy_mode ; int rc ; int __ret_warn_on ; int tmp ; long tmp___0 ; { { tmp = mutex_is_locked(& efx->mac_lock); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/efx.c", 957); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); phy_mode = efx->phy_mode; } if ((66600958 >> (int )efx->loopback_mode) & 1) { efx->phy_mode = (enum efx_phy_mode )((unsigned int )efx->phy_mode | 1U); } else { efx->phy_mode = (enum efx_phy_mode )((unsigned int )efx->phy_mode & 4294967294U); } { rc = (*((efx->type)->reconfigure_port))(efx); } if (rc != 0) { efx->phy_mode = phy_mode; } else { } return (rc); } } int efx_reconfigure_port(struct efx_nic *efx ) { int rc ; int tmp ; long tmp___0 ; { if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 980); dump_stack(); } } else { } } else { } { mutex_lock_nested(& efx->mac_lock, 0U); rc = __efx_reconfigure_port(efx); mutex_unlock(& efx->mac_lock); } return (rc); } } static void efx_mac_work(struct work_struct *data ) { struct efx_nic *efx ; struct work_struct const *__mptr ; { { __mptr = (struct work_struct const *)data; efx = (struct efx_nic *)__mptr + 0xfffffffffffff490UL; mutex_lock_nested(& efx->mac_lock, 0U); } if ((int )efx->port_enabled) { { (*((efx->type)->reconfigure_mac))(efx); } } else { } { mutex_unlock(& efx->mac_lock); } return; } } static int efx_probe_port(struct efx_nic *efx ) { int rc ; struct _ddebug descriptor ; long tmp ; { if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_probe_port"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "create port\n"; descriptor.lineno = 1006U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "create port\n"); } } else { } } else { } if ((int )phy_flash_cfg) { efx->phy_mode = 8; } else { } { rc = (*((efx->type)->probe_port))(efx); } if (rc != 0) { return (rc); } else { } { memcpy((void *)(efx->net_dev)->dev_addr, (void const *)(& (efx->net_dev)->perm_addr), 6UL); } return (0); } } static int efx_init_port(struct efx_nic *efx ) { int rc ; struct _ddebug descriptor ; long tmp ; { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_init_port"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "init port\n"; descriptor.lineno = 1026U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "init port\n"); } } else { } } else { } { mutex_lock_nested(& efx->mac_lock, 0U); rc = (*((efx->phy_op)->init))(efx); } if (rc != 0) { goto fail1; } else { } { efx->port_initialized = 1; (*((efx->type)->reconfigure_mac))(efx); rc = (*((efx->phy_op)->reconfigure))(efx); } if (rc != 0) { goto fail2; } else { } { mutex_unlock(& efx->mac_lock); } return (0); fail2: { (*((efx->phy_op)->fini))(efx); } fail1: { mutex_unlock(& efx->mac_lock); } return (rc); } } static void efx_start_port(struct efx_nic *efx ) { struct _ddebug descriptor ; long tmp ; long tmp___0 ; { if ((efx->msg_enable & 32U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_start_port"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "start port\n"; descriptor.lineno = 1057U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "start port\n"); } } else { } } else { } { tmp___0 = ldv__builtin_expect((long )efx->port_enabled, 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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (1058), "i" (12UL)); __builtin_unreachable(); } } else { } { mutex_lock_nested(& efx->mac_lock, 0U); efx->port_enabled = 1; (*((efx->type)->reconfigure_mac))(efx); mutex_unlock(& efx->mac_lock); } return; } } static void efx_stop_port(struct efx_nic *efx ) { struct _ddebug descriptor ; long tmp ; int tmp___0 ; long tmp___1 ; { if ((efx->msg_enable & 16U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_stop_port"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "stop port\n"; descriptor.lineno = 1076U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "stop port\n"); } } else { } } else { } if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp___0 = rtnl_is_locked(); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); } if (tmp___1 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 1078); dump_stack(); } } else { } } else { } { mutex_lock_nested(& efx->mac_lock, 0U); efx->port_enabled = 0; mutex_unlock(& efx->mac_lock); netif_addr_lock_bh(efx->net_dev); netif_addr_unlock_bh(efx->net_dev); cancel_delayed_work_sync(& efx->monitor_work); efx_selftest_async_cancel(efx); cancel_work_sync(& efx->mac_work); } return; } } static void efx_fini_port(struct efx_nic *efx ) { struct _ddebug descriptor ; long tmp ; { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_fini_port"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "shut down port\n"; descriptor.lineno = 1095U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "shut down port\n"); } } else { } } else { } if (! efx->port_initialized) { return; } else { } { (*((efx->phy_op)->fini))(efx); efx->port_initialized = 0; efx->link_state.up = 0; efx_link_status_changed(efx); } return; } } static void efx_remove_port(struct efx_nic *efx ) { struct _ddebug descriptor ; long tmp ; { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_remove_port"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "destroying port\n"; descriptor.lineno = 1109U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "destroying port\n"); } } else { } } else { } { (*((efx->type)->remove_port))(efx); } return; } } static struct list_head efx_primary_list = {& efx_primary_list, & efx_primary_list}; static struct list_head efx_unassociated_list = {& efx_unassociated_list, & efx_unassociated_list}; static bool efx_same_controller(struct efx_nic *left , struct efx_nic *right ) { int tmp ; int tmp___0 ; { if (((unsigned long )left->type == (unsigned long )right->type && (unsigned long )left->vpd_sn != (unsigned long )((char *)0)) && (unsigned long )right->vpd_sn != (unsigned long )((char *)0)) { { tmp = strcmp((char const *)left->vpd_sn, (char const *)right->vpd_sn); } if (tmp == 0) { tmp___0 = 1; } else { tmp___0 = 0; } } else { tmp___0 = 0; } return ((bool )tmp___0); } } static void efx_associate(struct efx_nic *efx ) { struct efx_nic *other ; struct efx_nic *next ; struct _ddebug descriptor ; long tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct _ddebug descriptor___0 ; char const *tmp___0 ; long tmp___1 ; bool tmp___2 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; struct _ddebug descriptor___1 ; char const *tmp___3 ; long tmp___4 ; bool tmp___5 ; struct list_head const *__mptr___3 ; struct _ddebug descriptor___2 ; long tmp___6 ; { if ((unsigned long )efx->primary == (unsigned long )efx) { if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_associate"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "adding to primary list\n"; descriptor.lineno = 1137U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "adding to primary list\n"); } } else { } } else { } { list_add_tail(& efx->node, & efx_primary_list); __mptr = (struct list_head const *)efx_unassociated_list.next; other = (struct efx_nic *)__mptr + 0xfffffffffffffff0UL; __mptr___0 = (struct list_head const *)other->node.next; next = (struct efx_nic *)__mptr___0 + 0xfffffffffffffff0UL; } goto ldv_51874; ldv_51873: { tmp___2 = efx_same_controller(efx, other); } if ((int )tmp___2) { { list_del(& other->node); } if ((other->msg_enable & 2U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_associate"; descriptor___0.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___0.format = "moving to secondary list of %s %s\n"; descriptor___0.lineno = 1147U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); } if (tmp___1 != 0L) { { tmp___0 = pci_name((struct pci_dev const *)efx->pci_dev); __dynamic_netdev_dbg(& descriptor___0, (struct net_device const *)other->net_dev, "moving to secondary list of %s %s\n", tmp___0, (char *)(& (efx->net_dev)->name)); } } else { } } else { } { list_add_tail(& other->node, & efx->secondary_list); other->primary = efx; } } else { } other = next; __mptr___1 = (struct list_head const *)next->node.next; next = (struct efx_nic *)__mptr___1 + 0xfffffffffffffff0UL; ldv_51874: ; if ((unsigned long )(& other->node) != (unsigned long )(& efx_unassociated_list)) { goto ldv_51873; } else { } } else { __mptr___2 = (struct list_head const *)efx_primary_list.next; other = (struct efx_nic *)__mptr___2 + 0xfffffffffffffff0UL; goto ldv_51882; ldv_51881: { tmp___5 = efx_same_controller(efx, other); } if ((int )tmp___5) { if ((efx->msg_enable & 2U) != 0U) { { descriptor___1.modname = "sfc"; descriptor___1.function = "efx_associate"; descriptor___1.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___1.format = "adding to secondary list of %s %s\n"; descriptor___1.lineno = 1161U; descriptor___1.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); } if (tmp___4 != 0L) { { tmp___3 = pci_name((struct pci_dev const *)other->pci_dev); __dynamic_netdev_dbg(& descriptor___1, (struct net_device const *)efx->net_dev, "adding to secondary list of %s %s\n", tmp___3, (char *)(& (other->net_dev)->name)); } } else { } } else { } { list_add_tail(& efx->node, & other->secondary_list); efx->primary = other; } return; } else { } __mptr___3 = (struct list_head const *)other->node.next; other = (struct efx_nic *)__mptr___3 + 0xfffffffffffffff0UL; ldv_51882: ; if ((unsigned long )(& other->node) != (unsigned long )(& efx_primary_list)) { goto ldv_51881; } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor___2.modname = "sfc"; descriptor___2.function = "efx_associate"; descriptor___2.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___2.format = "adding to unassociated list\n"; descriptor___2.lineno = 1170U; descriptor___2.flags = 0U; tmp___6 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); } if (tmp___6 != 0L) { { __dynamic_netdev_dbg(& descriptor___2, (struct net_device const *)efx->net_dev, "adding to unassociated list\n"); } } else { } } else { } { list_add_tail(& efx->node, & efx_unassociated_list); } } return; } } static void efx_dissociate(struct efx_nic *efx ) { struct efx_nic *other ; struct efx_nic *next ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct _ddebug descriptor ; long tmp ; struct list_head const *__mptr___1 ; { { list_del(& efx->node); efx->primary = (struct efx_nic *)0; __mptr = (struct list_head const *)efx->secondary_list.next; other = (struct efx_nic *)__mptr + 0xfffffffffffffff0UL; __mptr___0 = (struct list_head const *)other->node.next; next = (struct efx_nic *)__mptr___0 + 0xfffffffffffffff0UL; } goto ldv_51899; ldv_51898: { list_del(& other->node); } if ((other->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_dissociate"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "moving to unassociated list\n"; descriptor.lineno = 1185U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)other->net_dev, "moving to unassociated list\n"); } } else { } } else { } { list_add_tail(& other->node, & efx_unassociated_list); other->primary = (struct efx_nic *)0; other = next; __mptr___1 = (struct list_head const *)next->node.next; next = (struct efx_nic *)__mptr___1 + 0xfffffffffffffff0UL; } ldv_51899: ; if ((unsigned long )(& other->node) != (unsigned long )(& efx->secondary_list)) { goto ldv_51898; } else { } return; } } static int efx_init_io(struct efx_nic *efx ) { struct pci_dev *pci_dev ; dma_addr_t dma_mask ; unsigned int mem_map_size ; unsigned int tmp ; int rc ; struct _ddebug descriptor ; long tmp___0 ; int tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; { { pci_dev = efx->pci_dev; dma_mask = (efx->type)->max_dma_mask; tmp = (*((efx->type)->mem_map_size))(efx); mem_map_size = tmp; } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_init_io"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "initialising I/O\n"; descriptor.lineno = 1199U; 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 *)efx->net_dev, "initialising I/O\n"); } } else { } } else { } { rc = pci_enable_device(pci_dev); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to enable PCI device\n"); } } else { } goto fail1; } else { } { pci_set_master(pci_dev); } goto ldv_51913; ldv_51912: { tmp___1 = dma_supported(& pci_dev->dev, dma_mask); } if (tmp___1 != 0) { { rc = dma_set_mask_and_coherent(& pci_dev->dev, dma_mask); } if (rc == 0) { goto ldv_51911; } else { } } else { } dma_mask = dma_mask >> 1; ldv_51913: ; if (dma_mask > 2147483647ULL) { goto ldv_51912; } else { } ldv_51911: ; if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "could not find a suitable DMA mask\n"); } } else { } goto fail2; } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_init_io"; descriptor___0.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___0.format = "using DMA mask %llx\n"; descriptor___0.lineno = 1229U; 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 *)efx->net_dev, "using DMA mask %llx\n", dma_mask); } } else { } } else { } { efx->membase_phys = (efx->pci_dev)->resource[2].start; rc = pci_request_region(pci_dev, 2, "sfc"); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "request for memory BAR failed\n"); } } else { } rc = -5; goto fail3; } else { } { efx->membase = ioremap_nocache(efx->membase_phys, (unsigned long )mem_map_size); } if ((unsigned long )efx->membase == (unsigned long )((void *)0)) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "could not map memory BAR at %llx+%x\n", efx->membase_phys, mem_map_size); } } else { } rc = -12; goto fail4; } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor___1.modname = "sfc"; descriptor___1.function = "efx_init_io"; descriptor___1.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___1.format = "memory BAR at %llx+%x (virtual %p)\n"; descriptor___1.lineno = 1250U; 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 *)efx->net_dev, "memory BAR at %llx+%x (virtual %p)\n", efx->membase_phys, mem_map_size, efx->membase); } } else { } } else { } return (0); fail4: { pci_release_region(efx->pci_dev, 2); } fail3: efx->membase_phys = 0ULL; fail2: { pci_disable_device(efx->pci_dev); } fail1: ; return (rc); } } static void efx_fini_io(struct efx_nic *efx ) { struct _ddebug descriptor ; long tmp ; { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_fini_io"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "shutting down I/O\n"; descriptor.lineno = 1266U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "shutting down I/O\n"); } } else { } } else { } if ((unsigned long )efx->membase != (unsigned long )((void *)0)) { { iounmap((void volatile *)efx->membase); efx->membase = (void *)0; } } else { } if (efx->membase_phys != 0ULL) { { pci_release_region(efx->pci_dev, 2); efx->membase_phys = 0ULL; } } else { } { pci_disable_device(efx->pci_dev); } return; } } static unsigned int efx_wanted_parallelism(struct efx_nic *efx ) { cpumask_var_t thread_mask ; unsigned int count ; int cpu ; bool tmp ; int tmp___0 ; long tmp___1 ; void const *__vpp_verify ; unsigned long __ptr ; unsigned int tmp___2 ; int tmp___3 ; unsigned int tmp___4 ; unsigned int tmp___5 ; bool tmp___6 ; unsigned int tmp___7 ; unsigned int tmp___8 ; { if (rss_cpus != 0U) { count = rss_cpus; } else { { tmp = zalloc_cpumask_var(& thread_mask, 208U); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } { tmp___1 = ldv__builtin_expect((long )tmp___0, 0L); } if (tmp___1 != 0L) { if ((efx->msg_enable & 2U) != 0U) { { netdev_warn((struct net_device const *)efx->net_dev, "RSS disabled due to allocation failure\n"); } } else { } return (1U); } else { } count = 0U; cpu = -1; goto ldv_51935; ldv_51934: { tmp___2 = cpumask_check((unsigned int )cpu); tmp___3 = variable_test_bit((long )tmp___2, (unsigned long const volatile *)(& thread_mask->bits)); } if (tmp___3 == 0) { { count = count + 1U; __vpp_verify = (void const *)0; __asm__ ("": "=r" (__ptr): "0" (& cpu_sibling_map)); cpumask_or(thread_mask, (struct cpumask const *)thread_mask, (struct cpumask const *)*((cpumask_var_t **)(__ptr + __per_cpu_offset[cpu]))); } } else { } ldv_51935: { tmp___4 = cpumask_next(cpu, cpu_online_mask); cpu = (int )tmp___4; } if (cpu < nr_cpu_ids) { goto ldv_51934; } else { } { free_cpumask_var(thread_mask); } } { tmp___6 = efx_sriov_wanted(efx); } if ((int )tmp___6) { { tmp___7 = efx_vf_size(efx); } if (tmp___7 > 1U) { { tmp___8 = efx_vf_size(efx); } if (count > tmp___8) { if ((efx->msg_enable & 2U) != 0U) { { tmp___5 = efx_vf_size(efx); netdev_warn((struct net_device const *)efx->net_dev, "Reducing number of RSS channels from %u to %u for VF support. Increase vf-msix-limit to use more channels on the PF.\n", count, tmp___5); } } else { } { count = efx_vf_size(efx); } } else { } } else { } } else { } return (count); } } static int efx_probe_interrupts(struct efx_nic *efx ) { unsigned int extra_channels ; unsigned int i ; unsigned int j ; int rc ; struct msix_entry xentries[32U] ; unsigned int n_channels ; unsigned int _min1 ; unsigned int _min2 ; unsigned int _max1 ; unsigned int _max2 ; unsigned int _max1___0 ; unsigned int _max2___0 ; struct efx_channel *tmp ; struct efx_channel *tmp___0 ; struct efx_channel *tmp___1 ; unsigned int tmp___4 ; bool tmp___5 ; int tmp___6 ; { extra_channels = 0U; i = 0U; goto ldv_51945; ldv_51944: ; if ((unsigned long )efx->extra_channel_type[i] != (unsigned long )((struct efx_channel_type const *)0)) { extra_channels = extra_channels + 1U; } else { } i = i + 1U; ldv_51945: ; if (i <= 1U) { goto ldv_51944; } else { } if ((unsigned int )efx->interrupt_mode == 0U) { { n_channels = efx_wanted_parallelism(efx); } if ((int )separate_tx_channels) { n_channels = n_channels * 2U; } else { } n_channels = n_channels + extra_channels; _min1 = n_channels; _min2 = efx->max_channels; n_channels = _min1 < _min2 ? _min1 : _min2; i = 0U; goto ldv_51953; ldv_51952: xentries[i].entry = (u16 )i; i = i + 1U; ldv_51953: ; if (i < n_channels) { goto ldv_51952; } else { } { rc = pci_enable_msix(efx->pci_dev, (struct msix_entry *)(& xentries), (int )n_channels); } if (rc > 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "WARNING: Insufficient MSI-X vectors available (%d < %u).\n", rc, n_channels); } } else { } if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "WARNING: Performance may be reduced.\n"); } } else { } { n_channels = (unsigned int )rc; rc = pci_enable_msix(efx->pci_dev, (struct msix_entry *)(& xentries), (int )n_channels); } } else { } if (rc == 0) { efx->n_channels = n_channels; if (n_channels > extra_channels) { n_channels = n_channels - extra_channels; } else { } if ((int )separate_tx_channels) { _max1 = n_channels / 2U; _max2 = 1U; efx->n_tx_channels = _max1 > _max2 ? _max1 : _max2; _max1___0 = n_channels - efx->n_tx_channels; _max2___0 = 1U; efx->n_rx_channels = _max1___0 > _max2___0 ? _max1___0 : _max2___0; } else { efx->n_tx_channels = n_channels; efx->n_rx_channels = n_channels; } i = 0U; goto ldv_51962; ldv_51961: { tmp = efx_get_channel(efx, i); tmp->irq = (int )xentries[i].vector; i = i + 1U; } ldv_51962: ; if (i < efx->n_channels) { goto ldv_51961; } else { } } else { efx->interrupt_mode = 1; if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "could not enable MSI-X\n"); } } else { } } } else { } if ((unsigned int )efx->interrupt_mode == 1U) { { efx->n_channels = 1U; efx->n_rx_channels = 1U; efx->n_tx_channels = 1U; rc = pci_enable_msi_block(efx->pci_dev, 1); } if (rc == 0) { { tmp___0 = efx_get_channel(efx, 0U); tmp___0->irq = (int )(efx->pci_dev)->irq; } } else { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "could not enable MSI\n"); } } else { } efx->interrupt_mode = 2; } } else { } if ((unsigned int )efx->interrupt_mode == 2U) { efx->n_channels = (unsigned int )((int )separate_tx_channels + 1); efx->n_rx_channels = 1U; efx->n_tx_channels = 1U; efx->legacy_irq = (int )(efx->pci_dev)->irq; } else { } j = efx->n_channels; i = 0U; goto ldv_51966; ldv_51965: ; if ((unsigned long )efx->extra_channel_type[i] == (unsigned long )((struct efx_channel_type const *)0)) { goto ldv_51964; } else { } if ((unsigned int )efx->interrupt_mode != 0U || efx->n_channels <= extra_channels) { { (*((efx->extra_channel_type[i])->handle_no_channel))(efx); } } else { { j = j - 1U; tmp___1 = efx_get_channel(efx, j); tmp___1->type = efx->extra_channel_type[i]; } } ldv_51964: i = i + 1U; ldv_51966: ; if (i <= 1U) { goto ldv_51965; } else { } if (efx->n_rx_channels > 1U) { efx->rss_spread = efx->n_rx_channels; } else { { tmp___5 = efx_sriov_wanted(efx); } if (tmp___5) { tmp___6 = 0; } else { tmp___6 = 1; } if (tmp___6) { efx->rss_spread = efx->n_rx_channels; } else { { tmp___4 = efx_vf_size(efx); efx->rss_spread = tmp___4; } } } return (0); } } static int efx_soft_enable_interrupts(struct efx_nic *efx ) { struct efx_channel *channel ; struct efx_channel *end_channel ; int rc ; long tmp ; { { tmp = ldv__builtin_expect((unsigned int )efx->state == 2U, 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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (1436), "i" (12UL)); __builtin_unreachable(); } } else { } efx->irq_soft_enabled = 1; __asm__ volatile ("": : : "memory"); channel = efx->channel[0]; goto ldv_51976; ldv_51975: ; if (! ((_Bool )(channel->type)->keep_eventq)) { { rc = efx_init_eventq(channel); } if (rc != 0) { goto fail; } else { } } else { } { efx_start_eventq(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_51976: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51975; } else { } { efx_mcdi_mode_event(efx); } return (0); fail: end_channel = channel; channel = efx->channel[0]; goto ldv_51980; ldv_51979: ; if ((unsigned long )channel == (unsigned long )end_channel) { goto ldv_51978; } else { } { efx_stop_eventq(channel); } if (! ((_Bool )(channel->type)->keep_eventq)) { { efx_fini_eventq(channel); } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51980: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51979; } else { } ldv_51978: ; return (rc); } } static void efx_soft_disable_interrupts(struct efx_nic *efx ) { struct efx_channel *channel ; { if ((unsigned int )efx->state == 2U) { return; } else { } { efx_mcdi_mode_poll(efx); efx->irq_soft_enabled = 0; __asm__ volatile ("": : : "memory"); } if (efx->legacy_irq != 0) { { synchronize_irq((unsigned int )efx->legacy_irq); } } else { } channel = efx->channel[0]; goto ldv_51986; ldv_51985: ; if (channel->irq != 0) { { synchronize_irq((unsigned int )channel->irq); } } else { } { efx_stop_eventq(channel); } if (! ((_Bool )(channel->type)->keep_eventq)) { { efx_fini_eventq(channel); } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51986: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51985; } else { } { efx_mcdi_flush_async(efx); } return; } } static int efx_enable_interrupts(struct efx_nic *efx ) { struct efx_channel *channel ; struct efx_channel *end_channel ; int rc ; long tmp ; { { tmp = ldv__builtin_expect((unsigned int )efx->state == 2U, 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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (1499), "i" (12UL)); __builtin_unreachable(); } } else { } if ((int )efx->eeh_disabled_legacy_irq) { { enable_irq((unsigned int )efx->legacy_irq); efx->eeh_disabled_legacy_irq = 0; } } else { } { (*((efx->type)->irq_enable_master))(efx); channel = efx->channel[0]; } goto ldv_51996; ldv_51995: ; if ((int )(channel->type)->keep_eventq) { { rc = efx_init_eventq(channel); } if (rc != 0) { goto fail; } else { } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51996: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51995; } else { } { rc = efx_soft_enable_interrupts(efx); } if (rc != 0) { goto fail; } else { } return (0); fail: end_channel = channel; channel = efx->channel[0]; goto ldv_52000; ldv_51999: ; if ((unsigned long )channel == (unsigned long )end_channel) { goto ldv_51998; } else { } if ((int )(channel->type)->keep_eventq) { { efx_fini_eventq(channel); } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_52000: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51999; } else { } ldv_51998: { (*((efx->type)->irq_disable_non_ev))(efx); } return (rc); } } static void efx_disable_interrupts(struct efx_nic *efx ) { struct efx_channel *channel ; { { efx_soft_disable_interrupts(efx); channel = efx->channel[0]; } goto ldv_52006; ldv_52005: ; if ((int )(channel->type)->keep_eventq) { { efx_fini_eventq(channel); } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_52006: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52005; } else { } { (*((efx->type)->irq_disable_non_ev))(efx); } return; } } static void efx_remove_interrupts(struct efx_nic *efx ) { struct efx_channel *channel ; { channel = efx->channel[0]; goto ldv_52013; ldv_52012: channel->irq = 0; channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_52013: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52012; } else { } { pci_disable_msi(efx->pci_dev); pci_disable_msix(efx->pci_dev); efx->legacy_irq = 0; } return; } } static void efx_set_channels(struct efx_nic *efx ) { struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; bool tmp ; bool tmp___0 ; int tmp___1 ; { efx->tx_channel_offset = (int )separate_tx_channels ? efx->n_channels - efx->n_tx_channels : 0U; channel = efx->channel[0]; goto ldv_52024; ldv_52023: ; if ((unsigned int )channel->channel < efx->n_rx_channels) { channel->rx_queue.core_index = channel->channel; } else { channel->rx_queue.core_index = -1; } { tmp___0 = efx_channel_has_tx_queues(channel); } if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_52021; ldv_52020: tx_queue->queue = tx_queue->queue - efx->tx_channel_offset * 4U; tx_queue = tx_queue + 1; ldv_52021: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp = efx_tx_queue_used(tx_queue); } if ((int )tmp) { goto ldv_52020; } else { goto ldv_52022; } } else { } ldv_52022: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_52024: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52023; } else { } return; } } static int efx_probe_nic(struct efx_nic *efx ) { size_t i ; int rc ; struct _ddebug descriptor ; long tmp ; { if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_probe_nic"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "creating NIC\n"; descriptor.lineno = 1593U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "creating NIC\n"); } } else { } } else { } { rc = (*((efx->type)->probe))(efx); } if (rc != 0) { return (rc); } else { } { rc = efx_probe_interrupts(efx); } if (rc != 0) { goto fail1; } else { } { rc = (*((efx->type)->dimension_resources))(efx); } if (rc != 0) { goto fail2; } else { } if (efx->n_channels > 1U) { { get_random_bytes((void *)(& efx->rx_hash_key), 40); } } else { } i = 0UL; goto ldv_52038; ldv_52037: { efx->rx_indir_table[i] = ethtool_rxfh_indir_default((u32 )i, efx->rss_spread); i = i + 1UL; } ldv_52038: ; if (i <= 127UL) { goto ldv_52037; } else { } { efx_set_channels(efx); netif_set_real_num_tx_queues(efx->net_dev, efx->n_tx_channels); netif_set_real_num_rx_queues(efx->net_dev, efx->n_rx_channels); efx_init_irq_moderation(efx, tx_irq_mod_usec, rx_irq_mod_usec, 1, 1); } return (0); fail2: { efx_remove_interrupts(efx); } fail1: { (*((efx->type)->remove))(efx); } return (rc); } } static void efx_remove_nic(struct efx_nic *efx ) { struct _ddebug descriptor ; long tmp ; { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_remove_nic"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "destroying NIC\n"; descriptor.lineno = 1635U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "destroying NIC\n"); } } else { } } else { } { efx_remove_interrupts(efx); (*((efx->type)->remove))(efx); } return; } } static int efx_probe_filters(struct efx_nic *efx ) { int rc ; struct lock_class_key __key ; void *tmp ; { { spinlock_check(& efx->filter_lock); __raw_spin_lock_init(& efx->filter_lock.__annonCompField19.rlock, "&(&efx->filter_lock)->rlock", & __key); rc = (*((efx->type)->filter_table_probe))(efx); } if (rc != 0) { return (rc); } else { } if (((unsigned long long )(efx->type)->offload_features & 1073741824ULL) != 0ULL) { { tmp = kcalloc((size_t )(efx->type)->max_rx_ip_filters, 4UL, 208U); efx->rps_flow_id = (u32 *)tmp; } if ((unsigned long )efx->rps_flow_id == (unsigned long )((u32 *)0U)) { { (*((efx->type)->filter_table_remove))(efx); } return (-12); } else { } } else { } return (0); } } static void efx_remove_filters(struct efx_nic *efx ) { { { kfree((void const *)efx->rps_flow_id); (*((efx->type)->filter_table_remove))(efx); } return; } } static void efx_restore_filters(struct efx_nic *efx ) { { { (*((efx->type)->filter_table_restore))(efx); } return; } } extern void __compiletime_assert_1701(void) ; static int efx_probe_all(struct efx_nic *efx ) { int rc ; bool __cond ; int __ret_warn_on ; unsigned int tmp ; long tmp___0 ; long tmp___1 ; unsigned int tmp___2 ; { { rc = efx_probe_nic(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to create NIC\n"); } } else { } goto fail1; } else { } { rc = efx_probe_port(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to create port\n"); } } else { } goto fail2; } else { } __cond = 0; if ((int )__cond) { { __compiletime_assert_1701(); } } else { } { tmp = efx_tx_max_skb_descs(efx); __ret_warn_on = tmp * 2U > 1024U; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/efx.c", 1702); } } else { } { tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { rc = -22; goto fail3; } else { } { tmp___2 = 1024U; efx->txq_entries = tmp___2; efx->rxq_entries = tmp___2; rc = efx_probe_filters(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to create filter tables\n"); } } else { } goto fail3; } else { } { rc = efx_probe_channels(efx); } if (rc != 0) { goto fail4; } else { } return (0); fail4: { efx_remove_filters(efx); } fail3: { efx_remove_port(efx); } fail2: { efx_remove_nic(efx); } fail1: ; return (rc); } } static void efx_start_all(struct efx_nic *efx ) { int tmp ; long tmp___0 ; long tmp___1 ; bool tmp___2 ; int tmp___3 ; bool tmp___4 ; int tmp___5 ; { if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 1740); dump_stack(); } } else { } } else { } { tmp___1 = ldv__builtin_expect((unsigned int )efx->state == 2U, 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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (1741), "i" (12UL)); __builtin_unreachable(); } } else { } if ((int )efx->port_enabled) { return; } else { { tmp___2 = netif_running((struct net_device const *)efx->net_dev); } if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { return; } else { } } { efx_start_port(efx); efx_start_datapath(efx); } if ((unsigned long )(efx->type)->monitor != (unsigned long )((void (*/* const */)(struct efx_nic * ))0)) { { queue_delayed_work(efx->workqueue, & efx->monitor_work, (unsigned long )efx_monitor_interval); } } else { } { tmp___5 = efx_nic_rev(efx); } if (tmp___5 > 2) { { mutex_lock_nested(& efx->mac_lock, 0U); tmp___4 = (*((efx->phy_op)->poll))(efx); } if ((int )tmp___4) { { efx_link_status_changed(efx); } } else { } { mutex_unlock(& efx->mac_lock); } } else { } { (*((efx->type)->start_stats))(efx); (*((efx->type)->pull_stats))(efx); ldv_spin_lock_bh_84(& efx->stats_lock); (*((efx->type)->update_stats))(efx, (u64 *)0ULL, (struct rtnl_link_stats64 *)0); ldv_spin_unlock_bh_85(& efx->stats_lock); } return; } } static void efx_stop_all(struct efx_nic *efx ) { int tmp ; long tmp___0 ; int __ret_warn_on ; bool tmp___1 ; bool tmp___2 ; int tmp___3 ; long tmp___4 ; { if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 1780); dump_stack(); } } else { } } else { } if (! efx->port_enabled) { return; } else { } { (*((efx->type)->pull_stats))(efx); ldv_spin_lock_bh_84(& efx->stats_lock); (*((efx->type)->update_stats))(efx, (u64 *)0ULL, (struct rtnl_link_stats64 *)0); ldv_spin_unlock_bh_85(& efx->stats_lock); (*((efx->type)->stop_stats))(efx); efx_stop_port(efx); tmp___1 = netif_running((struct net_device const *)efx->net_dev); } if ((int )tmp___1) { { tmp___2 = netif_device_present(efx->net_dev); } if ((int )tmp___2) { tmp___3 = 1; } else { tmp___3 = 0; } } else { tmp___3 = 0; } { __ret_warn_on = tmp___3; tmp___4 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___4 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/efx.c", 1801); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); netif_tx_disable(efx->net_dev); efx_stop_datapath(efx); } return; } } static void efx_remove_all(struct efx_nic *efx ) { { { efx_remove_channels(efx); efx_remove_filters(efx); efx_remove_port(efx); efx_remove_nic(efx); } return; } } static unsigned int irq_mod_ticks(unsigned int usecs , unsigned int quantum_ns ) { { if (usecs == 0U) { return (0U); } else { } if (usecs * 1000U < quantum_ns) { return (1U); } else { } return ((usecs * 1000U) / quantum_ns); } } int efx_init_irq_moderation(struct efx_nic *efx , unsigned int tx_usecs , unsigned int rx_usecs , bool rx_adaptive , bool rx_may_override_tx ) { struct efx_channel *channel ; unsigned int irq_mod_max ; unsigned int tx_ticks ; unsigned int rx_ticks ; int tmp ; long tmp___0 ; bool tmp___1 ; bool tmp___2 ; { irq_mod_max = ((unsigned int )(efx->type)->timer_period_max * efx->timer_quantum_ns + 999U) / 1000U; if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 1842); dump_stack(); } } else { } } else { } if (tx_usecs > irq_mod_max || rx_usecs > irq_mod_max) { return (-22); } else { } { tx_ticks = irq_mod_ticks(tx_usecs, efx->timer_quantum_ns); rx_ticks = irq_mod_ticks(rx_usecs, efx->timer_quantum_ns); } if ((tx_ticks != rx_ticks && efx->tx_channel_offset == 0U) && ! rx_may_override_tx) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Channels are shared. RX and TX IRQ moderation must be equal\n"); } } else { } return (-22); } else { } efx->irq_rx_adaptive = rx_adaptive; efx->irq_rx_moderation = rx_ticks; channel = efx->channel[0]; goto ldv_52097; ldv_52096: { tmp___2 = efx_channel_has_rx_queue(channel); } if ((int )tmp___2) { channel->irq_moderation = rx_ticks; } else { { tmp___1 = efx_channel_has_tx_queues(channel); } if ((int )tmp___1) { channel->irq_moderation = tx_ticks; } else { } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_52097: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52096; } else { } return (0); } } void efx_get_irq_moderation(struct efx_nic *efx , unsigned int *tx_usecs , unsigned int *rx_usecs , bool *rx_adaptive ) { { *rx_adaptive = efx->irq_rx_adaptive; *rx_usecs = (efx->irq_rx_moderation * efx->timer_quantum_ns + 999U) / 1000U; if (efx->tx_channel_offset == 0U) { *tx_usecs = *rx_usecs; } else { *tx_usecs = ((efx->channel[efx->tx_channel_offset])->irq_moderation * efx->timer_quantum_ns + 999U) / 1000U; } return; } } static void efx_monitor(struct work_struct *data ) { struct efx_nic *efx ; struct work_struct const *__mptr ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp ; int tmp___0 ; { __mptr = (struct work_struct const *)data; efx = (struct efx_nic *)__mptr + 0xfffffffffffff140UL; if (0) { if ((efx->msg_enable & 8U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_52116; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52116; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52116; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52116; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_52116: pscr_ret__ = pfo_ret__; goto ldv_52122; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52126; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52126; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52126; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52126; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_52126: pscr_ret__ = pfo_ret_____0; goto ldv_52122; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52135; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52135; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52135; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52135; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_52135: pscr_ret__ = pfo_ret_____1; goto ldv_52122; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52144; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52144; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52144; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52144; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_52144: pscr_ret__ = pfo_ret_____2; goto ldv_52122; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_52122; switch_break: /* CIL Label */ ; } ldv_52122: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "hardware monitor executing on CPU %d\n", pscr_ret__); } } else { } } else { } { tmp = ldv__builtin_expect((unsigned long )(efx->type)->monitor == (unsigned long )((void (*/* const */)(struct efx_nic * ))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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (1909), "i" (12UL)); __builtin_unreachable(); } } else { } { tmp___0 = mutex_trylock(& efx->mac_lock); } if (tmp___0 != 0) { if ((int )efx->port_enabled) { { (*((efx->type)->monitor))(efx); } } else { } { mutex_unlock(& efx->mac_lock); } } else { } { queue_delayed_work(efx->workqueue, & efx->monitor_work, (unsigned long )efx_monitor_interval); } return; } } static int efx_ioctl(struct net_device *net_dev , struct ifreq *ifr , int cmd ) { struct efx_nic *efx ; void *tmp ; struct mii_ioctl_data *data ; struct mii_ioctl_data *tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___0 = if_mii(ifr); data = tmp___0; } if (cmd == 35248) { { tmp___1 = efx_ptp_set_ts_config(efx, ifr); } return (tmp___1); } else { } if (cmd == 35249) { { tmp___2 = efx_ptp_get_ts_config(efx, ifr); } return (tmp___2); } else { } if ((unsigned int )cmd - 35144U <= 1U && ((int )data->phy_id & 64512) == 1024) { data->phy_id = (__u16 )((unsigned int )data->phy_id ^ 33792U); } else { } { tmp___3 = mdio_mii_ioctl((struct mdio_if_info const *)(& efx->mdio), data, cmd); } return (tmp___3); } } static void efx_init_napi_channel(struct efx_channel *channel ) { struct efx_nic *efx ; { { efx = channel->efx; channel->napi_dev = efx->net_dev; netif_napi_add(channel->napi_dev, & channel->napi_str, & efx_poll, napi_weight); } return; } } static void efx_init_napi(struct efx_nic *efx ) { struct efx_channel *channel ; { channel = efx->channel[0]; goto ldv_52169; ldv_52168: { efx_init_napi_channel(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_52169: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52168; } else { } return; } } static void efx_fini_napi_channel(struct efx_channel *channel ) { { if ((unsigned long )channel->napi_dev != (unsigned long )((struct net_device *)0)) { { netif_napi_del(& channel->napi_str); } } else { } channel->napi_dev = (struct net_device *)0; return; } } static void efx_fini_napi(struct efx_nic *efx ) { struct efx_channel *channel ; { channel = efx->channel[0]; goto ldv_52179; ldv_52178: { efx_fini_napi_channel(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_52179: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52178; } else { } return; } } static void efx_netpoll(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; struct efx_channel *channel ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; channel = efx->channel[0]; } goto ldv_52187; ldv_52186: { efx_schedule_channel(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_52187: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52186; } else { } return; } } static int efx_net_open(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; int rc ; struct _ddebug descriptor ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp___0 ; int tmp___1 ; int tmp___2 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((efx->msg_enable & 32U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_net_open"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "opening device on CPU %d\n"; descriptor.lineno = 2025U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___0 != 0L) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_52201; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52201; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52201; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52201; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_52201: pscr_ret__ = pfo_ret__; goto ldv_52207; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52211; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52211; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52211; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52211; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_52211: pscr_ret__ = pfo_ret_____0; goto ldv_52207; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52220; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52220; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52220; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52220; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_52220: pscr_ret__ = pfo_ret_____1; goto ldv_52207; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52229; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52229; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52229; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52229; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_52229: pscr_ret__ = pfo_ret_____2; goto ldv_52207; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_52207; switch_break: /* CIL Label */ ; } ldv_52207: { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "opening device on CPU %d\n", pscr_ret__); } } else { } } else { } { rc = efx_check_disabled(efx); } if (rc != 0) { return (rc); } else { } if (((unsigned int )efx->phy_mode & 8U) != 0U) { return (-16); } else { } { tmp___1 = efx_mcdi_poll_reboot(efx); } if (tmp___1 != 0) { { tmp___2 = efx_reset(efx, 2); } if (tmp___2 != 0) { return (-5); } else { } } else { } { efx_link_status_changed(efx); efx_start_all(efx); efx_selftest_async_start(efx); } return (0); } } static int efx_net_stop(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; struct _ddebug descriptor ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((efx->msg_enable & 16U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_net_stop"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "closing on CPU %d\n"; descriptor.lineno = 2053U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___0 != 0L) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_52248; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52248; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52248; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_52248; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_52248: pscr_ret__ = pfo_ret__; goto ldv_52254; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52258; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52258; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52258; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_52258; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_52258: pscr_ret__ = pfo_ret_____0; goto ldv_52254; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52267; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52267; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52267; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_52267; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_52267: pscr_ret__ = pfo_ret_____1; goto ldv_52254; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52276; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52276; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52276; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_52276; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_52276: pscr_ret__ = pfo_ret_____2; goto ldv_52254; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_52254; switch_break: /* CIL Label */ ; } ldv_52254: { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "closing on CPU %d\n", pscr_ret__); } } else { } } else { } { efx_stop_all(efx); } return (0); } } static struct rtnl_link_stats64 *efx_net_stats(struct net_device *net_dev , struct rtnl_link_stats64 *stats ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; ldv_spin_lock_bh_84(& efx->stats_lock); (*((efx->type)->update_stats))(efx, (u64 *)0ULL, stats); ldv_spin_unlock_bh_85(& efx->stats_lock); } return (stats); } } static void efx_watchdog(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((efx->msg_enable & 128U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "TX stuck with port_enabled=%d: resetting channels\n", (int )efx->port_enabled); } } else { } { efx_schedule_reset(efx, 7); } return; } } static int efx_change_mtu(struct net_device *net_dev , int new_mtu ) { struct efx_nic *efx ; void *tmp ; int rc ; struct _ddebug descriptor ; long tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; rc = efx_check_disabled(efx); } if (rc != 0) { return (rc); } else { } if (new_mtu > 9216) { return (-22); } else { } if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_change_mtu"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "changing MTU to %d\n"; descriptor.lineno = 2099U; 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 *)efx->net_dev, "changing MTU to %d\n", new_mtu); } } else { } } else { } { efx_device_detach_sync(efx); efx_stop_all(efx); mutex_lock_nested(& efx->mac_lock, 0U); net_dev->mtu = (unsigned int )new_mtu; (*((efx->type)->reconfigure_mac))(efx); mutex_unlock(& efx->mac_lock); efx_start_all(efx); netif_device_attach(efx->net_dev); } return (0); } } static int efx_set_mac_address(struct net_device *net_dev , void *data ) { struct efx_nic *efx ; void *tmp ; struct sockaddr *addr ; char *new_addr ; bool tmp___0 ; int tmp___1 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; addr = (struct sockaddr *)data; new_addr = (char *)(& addr->sa_data); tmp___0 = is_valid_ether_addr((u8 const *)new_addr); } if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "invalid ethernet MAC address requested: %pM\n", new_addr); } } else { } return (-99); } else { } { memcpy((void *)net_dev->dev_addr, (void const *)new_addr, (size_t )net_dev->addr_len); efx_sriov_mac_address_changed(efx); mutex_lock_nested(& efx->mac_lock, 0U); (*((efx->type)->reconfigure_mac))(efx); mutex_unlock(& efx->mac_lock); } return (0); } } static void efx_set_rx_mode(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((int )efx->port_enabled) { { queue_work(efx->workqueue, & efx->mac_work); } } else { } return; } } static int efx_set_features(struct net_device *net_dev , netdev_features_t data ) { struct efx_nic *efx ; void *tmp ; int tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if (((net_dev->features & ~ data) & 1073741824ULL) != 0ULL) { { tmp___0 = (*((efx->type)->filter_clear_rx))(efx, 2); } return (tmp___0); } else { } return (0); } } static struct net_device_ops const efx_farch_netdev_ops = {0, 0, & efx_net_open, & efx_net_stop, & efx_hard_start_xmit, 0, 0, & efx_set_rx_mode, & efx_set_mac_address, & eth_validate_addr, & efx_ioctl, 0, & efx_change_mtu, 0, & efx_watchdog, & efx_net_stats, 0, 0, 0, & efx_netpoll, 0, 0, 0, & efx_sriov_set_vf_mac, & efx_sriov_set_vf_vlan, 0, & efx_sriov_set_vf_spoofchk, & efx_sriov_get_vf_config, 0, 0, 0, & efx_setup_tc, 0, 0, 0, 0, 0, 0, 0, & efx_filter_rfs, 0, 0, 0, & efx_set_features, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static struct net_device_ops const efx_ef10_netdev_ops = {0, 0, & efx_net_open, & efx_net_stop, & efx_hard_start_xmit, 0, 0, & efx_set_rx_mode, & efx_set_mac_address, & eth_validate_addr, & efx_ioctl, 0, & efx_change_mtu, 0, & efx_watchdog, & efx_net_stats, 0, 0, 0, & efx_netpoll, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & efx_filter_rfs, 0, 0, 0, & efx_set_features, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void efx_update_name(struct efx_nic *efx ) { { { strcpy((char *)(& efx->name), (char const *)(& (efx->net_dev)->name)); efx_mtd_rename(efx); efx_set_channel_names(efx); } return; } } static int efx_netdev_event(struct notifier_block *this , unsigned long event , void *ptr ) { struct net_device *net_dev ; struct net_device *tmp ; void *tmp___0 ; { { tmp = netdev_notifier_info_to_dev((struct netdev_notifier_info const *)ptr); net_dev = tmp; } if (((unsigned long )net_dev->netdev_ops == (unsigned long )(& efx_farch_netdev_ops) || (unsigned long )net_dev->netdev_ops == (unsigned long )(& efx_ef10_netdev_ops)) && event == 10UL) { { tmp___0 = netdev_priv((struct net_device const *)net_dev); efx_update_name((struct efx_nic *)tmp___0); } } else { } return (0); } } static struct notifier_block efx_netdev_notifier = {& efx_netdev_event, 0, 0}; static ssize_t show_phy_type(struct device *dev , struct device_attribute *attr , char *buf ) { struct efx_nic *efx ; struct device const *__mptr ; void *tmp ; int tmp___0 ; { { __mptr = (struct device const *)dev; tmp = pci_get_drvdata((struct pci_dev *)__mptr + 0xffffffffffffff68UL); efx = (struct efx_nic *)tmp; tmp___0 = sprintf(buf, "%d\n", efx->phy_type); } return ((ssize_t )tmp___0); } } static struct device_attribute dev_attr_phy_type = {{"phy_type", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & show_phy_type, (ssize_t (*)(struct device * , struct device_attribute * , char const * , size_t ))0}; static int efx_register_netdev(struct efx_nic *efx ) { struct net_device *net_dev ; struct efx_channel *channel ; int rc ; int tmp ; struct efx_tx_queue *tx_queue ; bool tmp___0 ; bool tmp___1 ; int tmp___2 ; { { net_dev = efx->net_dev; net_dev->watchdog_timeo = 1250; net_dev->irq = (int )(efx->pci_dev)->irq; tmp = efx_nic_rev(efx); } if (tmp > 3) { net_dev->netdev_ops = & efx_ef10_netdev_ops; net_dev->priv_flags = net_dev->priv_flags | 131072U; } else { net_dev->netdev_ops = & efx_farch_netdev_ops; } { net_dev->ethtool_ops = & efx_ethtool_ops; net_dev->gso_max_segs = 100U; rtnl_lock(); efx->state = 1; __asm__ volatile ("mfence": : : "memory"); } if (efx->reset_pending != 0UL) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "aborting probe due to scheduled reset\n"); } } else { } rc = -5; goto fail_locked; } else { } { rc = dev_alloc_name(net_dev, (char const *)(& net_dev->name)); } if (rc < 0) { goto fail_locked; } else { } { efx_update_name(efx); netif_carrier_off(net_dev); rc = ldv_register_netdevice_90(net_dev); } if (rc != 0) { goto fail_locked; } else { } channel = efx->channel[0]; goto ldv_52350; ldv_52349: { tmp___1 = efx_channel_has_tx_queues(channel); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_52347; ldv_52346: { efx_init_tx_queue_core_txq(tx_queue); tx_queue = tx_queue + 1; } ldv_52347: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___0 = efx_tx_queue_used(tx_queue); } if ((int )tmp___0) { goto ldv_52346; } else { goto ldv_52348; } } else { } ldv_52348: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_52350: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_52349; } else { } { efx_associate(efx); rtnl_unlock(); rc = device_create_file(& (efx->pci_dev)->dev, (struct device_attribute const *)(& dev_attr_phy_type)); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to init net dev attributes\n"); } } else { } goto fail_registered; } else { } return (0); fail_registered: { rtnl_lock(); efx_dissociate(efx); ldv_unregister_netdevice_91(net_dev); } fail_locked: { efx->state = 0; rtnl_unlock(); } if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "could not register net dev\n"); } } else { } return (rc); } } static void efx_unregister_netdev(struct efx_nic *efx ) { void *tmp ; long tmp___0 ; char const *tmp___1 ; { if ((unsigned long )efx->net_dev == (unsigned long )((struct net_device *)0)) { return; } else { } { tmp = netdev_priv((struct net_device const *)efx->net_dev); tmp___0 = ldv__builtin_expect((unsigned long )tmp != (unsigned long )((void *)efx), 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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (2317), "i" (12UL)); __builtin_unreachable(); } } else { } { tmp___1 = pci_name((struct pci_dev const *)efx->pci_dev); strlcpy((char *)(& efx->name), tmp___1, 16UL); device_remove_file(& (efx->pci_dev)->dev, (struct device_attribute const *)(& dev_attr_phy_type)); rtnl_lock(); ldv_unregister_netdevice_91(efx->net_dev); efx->state = 0; rtnl_unlock(); } return; } } void efx_reset_down(struct efx_nic *efx , enum reset_type method ) { int tmp ; long tmp___0 ; { if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 2338); dump_stack(); } } else { } } else { } { efx_stop_all(efx); efx_disable_interrupts(efx); mutex_lock_nested(& efx->mac_lock, 0U); } if ((int )efx->port_initialized && (unsigned int )method != 0U) { { (*((efx->phy_op)->fini))(efx); } } else { } { (*((efx->type)->fini))(efx); } return; } } int efx_reset_up(struct efx_nic *efx , enum reset_type method , bool ok ) { int rc ; int tmp ; long tmp___0 ; int tmp___1 ; { if (((unsigned int )efx->state == 1U || (unsigned int )efx->state == 3U) || (unsigned int )efx->state == 2U) { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/efx.c", 2358); dump_stack(); } } else { } } else { } { rc = (*((efx->type)->init))(efx); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to initialise NIC\n"); } } else { } goto fail; } else { } if (! ok) { goto fail; } else { } if ((int )efx->port_initialized && (unsigned int )method != 0U) { { rc = (*((efx->phy_op)->init))(efx); } if (rc != 0) { goto fail; } else { } { tmp___1 = (*((efx->phy_op)->reconfigure))(efx); } if (tmp___1 != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "could not restore PHY settings\n"); } } else { } } else { } } else { } { rc = efx_enable_interrupts(efx); } if (rc != 0) { goto fail; } else { } { efx_restore_filters(efx); efx_sriov_reset(efx); mutex_unlock(& efx->mac_lock); efx_start_all(efx); } return (0); fail: { efx->port_initialized = 0; mutex_unlock(& efx->mac_lock); } return (rc); } } int efx_reset(struct efx_nic *efx , enum reset_type method ) { int rc ; int rc2 ; bool disabled ; struct _ddebug descriptor ; long tmp ; { if ((int )efx->msg_enable & 1) { { netdev_info((struct net_device const *)efx->net_dev, "resetting (%s)\n", (unsigned int )method <= 13U ? efx_reset_type_names[(unsigned int )method] : (char const */* const */)"(invalid)"); } } else { } { efx_device_detach_sync(efx); efx_reset_down(efx, method); rc = (*((efx->type)->reset))(efx, method); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to reset hardware\n"); } } else { } goto out; } else { } { efx->reset_pending = efx->reset_pending & (unsigned long )(- (1 << (int )((unsigned int )method + 1U))); pci_set_master(efx->pci_dev); } out: { disabled = (bool )((rc != 0 || (unsigned int )method == 5U) || (unsigned int )method == 4U); rc2 = efx_reset_up(efx, method, (int )((bool )(! ((int )disabled != 0)))); } if (rc2 != 0) { disabled = 1; if (rc == 0) { rc = rc2; } else { } } else { } if ((int )disabled) { { dev_close(efx->net_dev); } if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "has been disabled\n"); } } else { } efx->state = 2; } else { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_reset"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "reset complete\n"; descriptor.lineno = 2448U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "reset complete\n"); } } else { } } else { } { netif_device_attach(efx->net_dev); } } return (rc); } } int efx_try_recovery(struct efx_nic *efx ) { { return (0); } } static void efx_wait_for_bist_end(struct efx_nic *efx ) { int i ; int tmp ; { i = 0; goto ldv_52386; ldv_52385: { tmp = efx_mcdi_poll_reboot(efx); } if (tmp != 0) { goto out; } else { } { msleep(100U); i = i + 1; } ldv_52386: ; if (i <= 99) { goto ldv_52385; } else { } if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Warning: No MC reboot after BIST mode\n"); } } else { } out: efx->mc_bist_for_other_fn = 0; return; } } static void efx_reset_work(struct work_struct *data ) { struct efx_nic *efx ; struct work_struct const *__mptr ; unsigned long pending ; enum reset_type method ; int tmp ; int tmp___0 ; { { __mptr = (struct work_struct const *)data; efx = (struct efx_nic *)__mptr + 0xffffffffffffff90UL; pending = *((unsigned long volatile *)(& efx->reset_pending)); tmp = fls((int )pending); method = (enum reset_type )(tmp + -1); } if ((unsigned int )method == 13U) { { efx_wait_for_bist_end(efx); } } else { } if ((unsigned int )method == 4U || (unsigned int )method == 1U) { { tmp___0 = efx_try_recovery(efx); } if (tmp___0 != 0) { return; } else { } } else { } if (pending == 0UL) { return; } else { } { rtnl_lock(); } if ((unsigned int )efx->state == 1U) { { efx_reset(efx, method); } } else { } { rtnl_unlock(); } return; } } void efx_schedule_reset(struct efx_nic *efx , enum reset_type type ) { enum reset_type method ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; { if ((unsigned int )efx->state == 3U) { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_schedule_reset"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "recovering: skip scheduling %s reset\n"; descriptor.lineno = 2540U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "recovering: skip scheduling %s reset\n", (unsigned int )type <= 13U ? efx_reset_type_names[(unsigned int )type] : (char const */* const */)"(invalid)"); } } else { } } else { } return; } else { } { if ((unsigned int )type == 0U) { goto case_0; } else { } if ((unsigned int )type == 2U) { goto case_2; } else { } if ((unsigned int )type == 1U) { goto case_1; } else { } if ((unsigned int )type == 3U) { goto case_3; } else { } if ((unsigned int )type == 5U) { goto case_5; } else { } if ((unsigned int )type == 4U) { goto case_4; } else { } if ((unsigned int )type == 13U) { goto case_13; } else { } goto switch_default; case_0: /* CIL Label */ ; case_2: /* CIL Label */ ; case_1: /* CIL Label */ ; case_3: /* CIL Label */ ; case_5: /* CIL Label */ ; case_4: /* CIL Label */ ; case_13: /* CIL Label */ method = type; if ((int )efx->msg_enable & 1) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_schedule_reset"; descriptor___0.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___0.format = "scheduling %s reset\n"; descriptor___0.lineno = 2554U; 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 *)efx->net_dev, "scheduling %s reset\n", (unsigned int )method <= 13U ? efx_reset_type_names[(unsigned int )method] : (char const */* const */)"(invalid)"); } } else { } } else { } goto ldv_52411; switch_default: /* CIL Label */ { method = (*((efx->type)->map_reset_reason))(type); } if ((int )efx->msg_enable & 1) { { descriptor___1.modname = "sfc"; descriptor___1.function = "efx_schedule_reset"; descriptor___1.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___1.format = "scheduling %s reset for %s\n"; descriptor___1.lineno = 2560U; 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 *)efx->net_dev, "scheduling %s reset for %s\n", (unsigned int )method <= 13U ? efx_reset_type_names[(unsigned int )method] : (char const */* const */)"(invalid)", (unsigned int )type <= 13U ? efx_reset_type_names[(unsigned int )type] : (char const */* const */)"(invalid)"); } } else { } } else { } goto ldv_52411; switch_break: /* CIL Label */ ; } ldv_52411: { set_bit((long )method, (unsigned long volatile *)(& efx->reset_pending)); __asm__ volatile ("mfence": : : "memory"); } if ((unsigned int )*((enum nic_state volatile *)(& efx->state)) != 1U) { return; } else { } { efx_mcdi_mode_poll(efx); queue_work(reset_workqueue, & efx->reset_work); } return; } } static struct pci_device_id const efx_pci_table[6U] = { {6436U, 1795U, 4294967295U, 4294967295U, 0U, 0U, (unsigned long )(& falcon_a1_nic_type)}, {6436U, 1808U, 4294967295U, 4294967295U, 0U, 0U, (unsigned long )(& falcon_b0_nic_type)}, {6436U, 2051U, 4294967295U, 4294967295U, 0U, 0U, (unsigned long )(& siena_a0_nic_type)}, {6436U, 2067U, 4294967295U, 4294967295U, 0U, 0U, (unsigned long )(& siena_a0_nic_type)}, {6436U, 2307U, 4294967295U, 4294967295U, 0U, 0U, (unsigned long )(& efx_hunt_a0_nic_type)}, {0U, 0U, 0U, 0U, 0U, 0U, 0UL}}; int efx_port_dummy_op_int(struct efx_nic *efx ) { { return (0); } } void efx_port_dummy_op_void(struct efx_nic *efx ) { { return; } } static bool efx_port_dummy_op_poll(struct efx_nic *efx ) { { return (0); } } static struct efx_phy_operations const efx_dummy_phy_operations = {0, & efx_port_dummy_op_int, & efx_port_dummy_op_void, 0, & efx_port_dummy_op_int, & efx_port_dummy_op_poll, 0, 0, 0, 0, 0, 0, 0, 0}; static int efx_init_struct(struct efx_nic *efx , struct pci_dev *pci_dev , struct net_device *net_dev ) { int i ; struct lock_class_key __key ; struct lock_class_key __key___0 ; atomic_long_t __constr_expr_0 ; struct lock_class_key __key___1 ; atomic_long_t __constr_expr_1 ; struct lock_class_key __key___2 ; struct lock_class_key __key___3 ; atomic_long_t __constr_expr_2 ; struct lock_class_key __key___4 ; char const *tmp ; struct lock_class_key __key___5 ; struct lock_class_key __key___6 ; struct lock_class_key __key___7 ; atomic_long_t __constr_expr_3 ; struct lock_class_key __key___8 ; unsigned int _max1 ; unsigned int _max2 ; char const *tmp___0 ; struct lock_class_key __key___9 ; char const *__lock_name ; struct workqueue_struct *tmp___1 ; { { INIT_LIST_HEAD(& efx->node); INIT_LIST_HEAD(& efx->secondary_list); spinlock_check(& efx->biu_lock); __raw_spin_lock_init(& efx->biu_lock.__annonCompField19.rlock, "&(&efx->biu_lock)->rlock", & __key); INIT_LIST_HEAD(& efx->mtd_list); __init_work(& efx->reset_work, 0); __constr_expr_0.counter = 137438953408L; efx->reset_work.data = __constr_expr_0; lockdep_init_map(& efx->reset_work.lockdep_map, "(&efx->reset_work)", & __key___0, 0); INIT_LIST_HEAD(& efx->reset_work.entry); efx->reset_work.func = & efx_reset_work; __init_work(& efx->monitor_work.work, 0); __constr_expr_1.counter = 137438953408L; efx->monitor_work.work.data = __constr_expr_1; lockdep_init_map(& efx->monitor_work.work.lockdep_map, "(&(&efx->monitor_work)->work)", & __key___1, 0); INIT_LIST_HEAD(& efx->monitor_work.work.entry); efx->monitor_work.work.func = & efx_monitor; init_timer_key(& efx->monitor_work.timer, 2U, "(&(&efx->monitor_work)->timer)", & __key___2); efx->monitor_work.timer.function = & delayed_work_timer_fn; efx->monitor_work.timer.data = (unsigned long )(& efx->monitor_work); __init_work(& efx->selftest_work.work, 0); __constr_expr_2.counter = 137438953408L; efx->selftest_work.work.data = __constr_expr_2; lockdep_init_map(& efx->selftest_work.work.lockdep_map, "(&(&efx->selftest_work)->work)", & __key___3, 0); INIT_LIST_HEAD(& efx->selftest_work.work.entry); efx->selftest_work.work.func = & efx_selftest_async_work; init_timer_key(& efx->selftest_work.timer, 2U, "(&(&efx->selftest_work)->timer)", & __key___4); efx->selftest_work.timer.function = & delayed_work_timer_fn; efx->selftest_work.timer.data = (unsigned long )(& efx->selftest_work); efx->pci_dev = pci_dev; efx->msg_enable = debug; efx->state = 0; tmp = pci_name((struct pci_dev const *)pci_dev); strlcpy((char *)(& efx->name), tmp, 16UL); efx->net_dev = net_dev; efx->rx_prefix_size = (efx->type)->rx_prefix_size; efx->rx_ip_align = 0U; efx->rx_packet_hash_offset = (int )((unsigned int )(efx->type)->rx_hash_offset - (unsigned int )(efx->type)->rx_prefix_size); efx->rx_packet_ts_offset = (int )((unsigned int )(efx->type)->rx_ts_offset - (unsigned int )(efx->type)->rx_prefix_size); spinlock_check(& efx->stats_lock); __raw_spin_lock_init(& efx->stats_lock.__annonCompField19.rlock, "&(&efx->stats_lock)->rlock", & __key___5); __mutex_init(& efx->mac_lock, "&efx->mac_lock", & __key___6); efx->phy_op = & efx_dummy_phy_operations; efx->mdio.dev = net_dev; __init_work(& efx->mac_work, 0); __constr_expr_3.counter = 137438953408L; efx->mac_work.data = __constr_expr_3; lockdep_init_map(& efx->mac_work.lockdep_map, "(&efx->mac_work)", & __key___7, 0); INIT_LIST_HEAD(& efx->mac_work.entry); efx->mac_work.func = & efx_mac_work; __init_waitqueue_head(& efx->flush_wq, "&efx->flush_wq", & __key___8); i = 0; } goto ldv_52447; ldv_52446: { efx->channel[i] = efx_alloc_channel(efx, i, (struct efx_channel *)0); } if ((unsigned long )efx->channel[i] == (unsigned long )((struct efx_channel *)0)) { goto fail; } else { } efx->msi_context[i].efx = efx; efx->msi_context[i].index = (unsigned int )i; i = i + 1; ldv_52447: ; if ((unsigned int )i <= 31U) { goto ldv_52446; } else { } { _max1 = (efx->type)->max_interrupt_mode; _max2 = interrupt_mode; efx->interrupt_mode = (enum efx_int_mode )(_max1 > (unsigned int )((unsigned int const )_max2) ? _max1 : (unsigned int const )_max2); tmp___0 = pci_name((struct pci_dev const *)pci_dev); snprintf((char *)(& efx->workqueue_name), 16UL, "sfc%s", tmp___0); __lock_name = "\"%s\"(efx->workqueue_name)"; tmp___1 = __alloc_workqueue_key("%s", 10U, 1, & __key___9, __lock_name, (char *)(& efx->workqueue_name)); efx->workqueue = tmp___1; } if ((unsigned long )efx->workqueue == (unsigned long )((struct workqueue_struct *)0)) { goto fail; } else { } return (0); fail: { efx_fini_struct(efx); } return (-12); } } static void efx_fini_struct(struct efx_nic *efx ) { int i ; { i = 0; goto ldv_52460; ldv_52459: { kfree((void const *)efx->channel[i]); i = i + 1; } ldv_52460: ; if ((unsigned int )i <= 31U) { goto ldv_52459; } else { } { kfree((void const *)efx->vpd_sn); } if ((unsigned long )efx->workqueue != (unsigned long )((struct workqueue_struct *)0)) { { destroy_workqueue(efx->workqueue); efx->workqueue = (struct workqueue_struct *)0; } } else { } return; } } static void efx_pci_remove_main(struct efx_nic *efx ) { long tmp ; { { tmp = ldv__builtin_expect((unsigned int )efx->state == 1U, 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 *)"drivers/net/ethernet/sfc/efx.c"), "i" (2729), "i" (12UL)); __builtin_unreachable(); } } else { } { cancel_work_sync(& efx->reset_work); efx_disable_interrupts(efx); efx_nic_fini_interrupt(efx); efx_fini_port(efx); (*((efx->type)->fini))(efx); efx_fini_napi(efx); efx_remove_all(efx); } return; } } static void efx_pci_remove(struct pci_dev *pci_dev ) { struct efx_nic *efx ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { { tmp = pci_get_drvdata(pci_dev); efx = (struct efx_nic *)tmp; } if ((unsigned long )efx == (unsigned long )((struct efx_nic *)0)) { return; } else { } { rtnl_lock(); efx_dissociate(efx); dev_close(efx->net_dev); efx_disable_interrupts(efx); rtnl_unlock(); efx_sriov_fini(efx); efx_unregister_netdev(efx); efx_mtd_remove(efx); efx_pci_remove_main(efx); efx_fini_io(efx); } if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_pci_remove"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "shutdown successful\n"; descriptor.lineno = 2766U; 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 *)efx->net_dev, "shutdown successful\n"); } } else { } } else { } { efx_fini_struct(efx); ldv_free_netdev_93(efx->net_dev); pci_disable_pcie_error_reporting(pci_dev); } return; } } static void efx_probe_vpd_strings(struct efx_nic *efx ) { struct pci_dev *dev ; char vpd_data[512U] ; ssize_t vpd_size ; int ro_start ; int ro_size ; int i ; int j ; u16 tmp ; u8 tmp___0 ; u8 tmp___1 ; void *tmp___2 ; { { dev = efx->pci_dev; vpd_size = pci_read_vpd(dev, 0LL, 512UL, (void *)(& vpd_data)); } if (vpd_size <= 0L) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Unable to read VPD\n"); } } else { } return; } else { } { ro_start = pci_vpd_find_tag((u8 const *)(& vpd_data), 0U, (unsigned int )vpd_size, 144); } if (ro_start < 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "VPD Read-only not found\n"); } } else { } return; } else { } { tmp = pci_vpd_lrdt_size((u8 const *)(& vpd_data) + (unsigned long )ro_start); ro_size = (int )tmp; j = ro_size; i = ro_start + 3; } if ((ssize_t )(i + j) > vpd_size) { j = (int )((unsigned int )vpd_size - (unsigned int )i); } else { } { i = pci_vpd_find_info_keyword((u8 const *)(& vpd_data), (unsigned int )i, (unsigned int )j, "PN"); } if (i < 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Part number not found\n"); } } else { } return; } else { } { tmp___0 = pci_vpd_info_field_size((u8 const *)(& vpd_data) + (unsigned long )i); j = (int )tmp___0; i = i + 3; } if ((ssize_t )(i + j) > vpd_size) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Incomplete part number\n"); } } else { } return; } else { } if ((int )efx->msg_enable & 1) { { netdev_info((struct net_device const *)efx->net_dev, "Part Number : %.*s\n", j, (char *)(& vpd_data) + (unsigned long )i); } } else { } { i = ro_start + 3; j = ro_size; i = pci_vpd_find_info_keyword((u8 const *)(& vpd_data), (unsigned int )i, (unsigned int )j, "SN"); } if (i < 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Serial number not found\n"); } } else { } return; } else { } { tmp___1 = pci_vpd_info_field_size((u8 const *)(& vpd_data) + (unsigned long )i); j = (int )tmp___1; i = i + 3; } if ((ssize_t )(i + j) > vpd_size) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Incomplete serial number\n"); } } else { } return; } else { } { tmp___2 = kmalloc((size_t )(j + 1), 208U); efx->vpd_sn = (char *)tmp___2; } if ((unsigned long )efx->vpd_sn == (unsigned long )((char *)0)) { return; } else { } { snprintf(efx->vpd_sn, (size_t )(j + 1), "%s", (char *)(& vpd_data) + (unsigned long )i); } return; } } static int efx_pci_probe_main(struct efx_nic *efx ) { int rc ; { { rc = efx_probe_all(efx); } if (rc != 0) { goto fail1; } else { } { efx_init_napi(efx); rc = (*((efx->type)->init))(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to initialise NIC\n"); } } else { } goto fail3; } else { } { rc = efx_init_port(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to initialise port\n"); } } else { } goto fail4; } else { } { rc = efx_nic_init_interrupt(efx); } if (rc != 0) { goto fail5; } else { } { rc = efx_enable_interrupts(efx); } if (rc != 0) { goto fail6; } else { } return (0); fail6: { efx_nic_fini_interrupt(efx); } fail5: { efx_fini_port(efx); } fail4: { (*((efx->type)->fini))(efx); } fail3: { efx_fini_napi(efx); efx_remove_all(efx); } fail1: ; return (rc); } } static int efx_pci_probe(struct pci_dev *pci_dev , struct pci_device_id const *entry ) { struct net_device *net_dev ; struct efx_nic *efx ; int rc ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; int __ret_warn_on ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; { { net_dev = ldv_alloc_etherdev_mqs_94(4160, 64U, 32U); } if ((unsigned long )net_dev == (unsigned long )((struct net_device *)0)) { return (-12); } else { } { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; efx->type = (struct efx_nic_type const *)entry->driver_data; net_dev->features = (net_dev->features | (unsigned long long )(efx->type)->offload_features) | 4295032865ULL; } if (((unsigned long long )(efx->type)->offload_features & 24ULL) != 0ULL) { net_dev->features = net_dev->features | 1048576ULL; } else { } { net_dev->vlan_features = net_dev->vlan_features | 4296605755ULL; net_dev->hw_features = net_dev->features & 0xffffffffffffffdfULL; pci_set_drvdata(pci_dev, (void *)efx); net_dev->dev.parent = & pci_dev->dev; rc = efx_init_struct(efx, pci_dev, net_dev); } if (rc != 0) { goto fail1; } else { } if ((efx->msg_enable & 2U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "Solarflare NIC detected\n"); } } else { } { efx_probe_vpd_strings(efx); rc = efx_init_io(efx); } if (rc != 0) { goto fail2; } else { } { rc = efx_pci_probe_main(efx); } if (rc != 0) { goto fail3; } else { } { rc = efx_register_netdev(efx); } if (rc != 0) { goto fail4; } else { } { rc = efx_sriov_init(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "SR-IOV can\'t be enabled rc %d\n", rc); } } else { } } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_pci_probe"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "initialisation successful\n"; descriptor.lineno = 2960U; 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 *)efx->net_dev, "initialisation successful\n"); } } else { } } else { } { rtnl_lock(); rc = efx_mtd_probe(efx); rtnl_unlock(); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_warn((struct net_device const *)efx->net_dev, "failed to create MTDs (%d)\n", rc); } } else { } } else { } { rc = pci_enable_pcie_error_reporting(pci_dev); } if (rc != 0 && rc != -22) { if ((efx->msg_enable & 2U) != 0U) { { netdev_warn((struct net_device const *)efx->net_dev, "pci_enable_pcie_error_reporting failed (%d)\n", rc); } } else { } } else { } return (0); fail4: { efx_pci_remove_main(efx); } fail3: { efx_fini_io(efx); } fail2: { efx_fini_struct(efx); } fail1: { __ret_warn_on = rc > 0; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/efx.c", 2984); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } if ((int )efx->msg_enable & 1) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_pci_probe"; descriptor___0.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor___0.format = "initialisation failed. rc=%d\n"; descriptor___0.lineno = 2985U; 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 *)efx->net_dev, "initialisation failed. rc=%d\n", rc); } } else { } } else { } { ldv_free_netdev_95(net_dev); } return (rc); } } static int efx_pm_freeze(struct device *dev ) { struct efx_nic *efx ; struct device const *__mptr ; void *tmp ; { { __mptr = (struct device const *)dev; tmp = pci_get_drvdata((struct pci_dev *)__mptr + 0xffffffffffffff68UL); efx = (struct efx_nic *)tmp; rtnl_lock(); } if ((unsigned int )efx->state != 2U) { { efx->state = 0; efx_device_detach_sync(efx); efx_stop_all(efx); efx_disable_interrupts(efx); } } else { } { rtnl_unlock(); } return (0); } } static int efx_pm_thaw(struct device *dev ) { int rc ; struct efx_nic *efx ; struct device const *__mptr ; void *tmp ; { { __mptr = (struct device const *)dev; tmp = pci_get_drvdata((struct pci_dev *)__mptr + 0xffffffffffffff68UL); efx = (struct efx_nic *)tmp; rtnl_lock(); } if ((unsigned int )efx->state != 2U) { { rc = efx_enable_interrupts(efx); } if (rc != 0) { goto fail; } else { } { mutex_lock_nested(& efx->mac_lock, 0U); (*((efx->phy_op)->reconfigure))(efx); mutex_unlock(& efx->mac_lock); efx_start_all(efx); netif_device_attach(efx->net_dev); efx->state = 1; (*((efx->type)->resume_wol))(efx); } } else { } { rtnl_unlock(); queue_work(reset_workqueue, & efx->reset_work); } return (0); fail: { rtnl_unlock(); } return (rc); } } static int efx_pm_poweroff(struct device *dev ) { struct pci_dev *pci_dev ; struct device const *__mptr ; struct efx_nic *efx ; void *tmp ; int tmp___0 ; { { __mptr = (struct device const *)dev; pci_dev = (struct pci_dev *)__mptr + 0xffffffffffffff68UL; tmp = pci_get_drvdata(pci_dev); efx = (struct efx_nic *)tmp; (*((efx->type)->fini))(efx); efx->reset_pending = 0UL; pci_save_state(pci_dev); tmp___0 = pci_set_power_state(pci_dev, 3); } return (tmp___0); } } static int efx_pm_resume(struct device *dev ) { struct pci_dev *pci_dev ; struct device const *__mptr ; struct efx_nic *efx ; void *tmp ; int rc ; { { __mptr = (struct device const *)dev; pci_dev = (struct pci_dev *)__mptr + 0xffffffffffffff68UL; tmp = pci_get_drvdata(pci_dev); efx = (struct efx_nic *)tmp; rc = pci_set_power_state(pci_dev, 0); } if (rc != 0) { return (rc); } else { } { pci_restore_state(pci_dev); rc = pci_enable_device(pci_dev); } if (rc != 0) { return (rc); } else { } { pci_set_master(efx->pci_dev); rc = (*((efx->type)->reset))(efx, 2); } if (rc != 0) { return (rc); } else { } { rc = (*((efx->type)->init))(efx); } if (rc != 0) { return (rc); } else { } { rc = efx_pm_thaw(dev); } return (rc); } } static int efx_pm_suspend(struct device *dev ) { int rc ; { { efx_pm_freeze(dev); rc = efx_pm_poweroff(dev); } if (rc != 0) { { efx_pm_resume(dev); } } else { } return (rc); } } static struct dev_pm_ops const efx_pm_ops = {0, 0, & efx_pm_suspend, & efx_pm_resume, & efx_pm_freeze, & efx_pm_thaw, & efx_pm_poweroff, & efx_pm_resume, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static pci_ers_result_t efx_io_error_detected(struct pci_dev *pdev , enum pci_channel_state state ) { pci_ers_result_t status ; struct efx_nic *efx ; void *tmp ; { { status = 5U; tmp = pci_get_drvdata(pdev); efx = (struct efx_nic *)tmp; } if ((unsigned int )state == 3U) { return (4U); } else { } { rtnl_lock(); } if ((unsigned int )efx->state != 2U) { { efx->state = 3; efx->reset_pending = 0UL; efx_device_detach_sync(efx); efx_stop_all(efx); efx_disable_interrupts(efx); status = 3U; } } else { status = 5U; } { rtnl_unlock(); pci_disable_device(pdev); } return (status); } } static pci_ers_result_t efx_io_slot_reset(struct pci_dev *pdev ) { struct efx_nic *efx ; void *tmp ; pci_ers_result_t status ; int rc ; int tmp___0 ; { { tmp = pci_get_drvdata(pdev); efx = (struct efx_nic *)tmp; status = 5U; tmp___0 = pci_enable_device(pdev); } if (tmp___0 != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Cannot re-enable PCI device after reset.\n"); } } else { } status = 4U; } else { } { rc = pci_cleanup_aer_uncorrect_error_status(pdev); } if (rc != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "pci_cleanup_aer_uncorrect_error_status failed (%d)\n", rc); } } else { } } else { } return (status); } } static void efx_io_resume(struct pci_dev *pdev ) { struct efx_nic *efx ; void *tmp ; int rc ; struct _ddebug descriptor ; long tmp___0 ; { { tmp = pci_get_drvdata(pdev); efx = (struct efx_nic *)tmp; rtnl_lock(); } if ((unsigned int )efx->state == 2U) { goto out; } else { } { rc = efx_reset(efx, 2); } if (rc != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "efx_reset failed after PCI error (%d)\n", rc); } } else { } } else { efx->state = 1; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_io_resume"; descriptor.filename = "drivers/net/ethernet/sfc/efx.c"; descriptor.format = "Done resetting and resuming IO after PCI error.\n"; descriptor.lineno = 3186U; 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 *)efx->net_dev, "Done resetting and resuming IO after PCI error.\n"); } } else { } } else { } } out: { rtnl_unlock(); } return; } } static struct pci_error_handlers efx_err_handlers = {& efx_io_error_detected, 0, 0, & efx_io_slot_reset, & efx_io_resume}; static struct pci_driver efx_pci_driver = {{0, 0}, "sfc", (struct pci_device_id const *)(& efx_pci_table), & efx_pci_probe, & efx_pci_remove, 0, 0, 0, 0, 0, 0, (struct pci_error_handlers const *)(& efx_err_handlers), {0, 0, 0, 0, (_Bool)0, 0, 0, 0, 0, 0, 0, 0, 0, & efx_pm_ops, 0}, {{{{{{0U}}, 0U, 0U, 0, {0, {0, 0}, 0, 0, 0UL}}}}, {0, 0}}}; static int efx_init_module(void) { int rc ; struct lock_class_key __key ; char const *__lock_name ; struct workqueue_struct *tmp ; { { printk("\016Solarflare NET driver v4.0\n"); rc = ldv_register_netdevice_notifier_96(& efx_netdev_notifier); } if (rc != 0) { goto err_notifier; } else { } { rc = efx_init_sriov(); } if (rc != 0) { goto err_sriov; } else { } { __lock_name = "\"%s\"(\"sfc_reset\")"; tmp = __alloc_workqueue_key("%s", 10U, 1, & __key, __lock_name, (char *)"sfc_reset"); reset_workqueue = tmp; } if ((unsigned long )reset_workqueue == (unsigned long )((struct workqueue_struct *)0)) { rc = -12; goto err_reset; } else { } { rc = ldv___pci_register_driver_97(& efx_pci_driver, & __this_module, "sfc"); } if (rc < 0) { goto err_pci; } else { } return (0); err_pci: { destroy_workqueue(reset_workqueue); } err_reset: { efx_fini_sriov(); } err_sriov: { ldv_unregister_netdevice_notifier_98(& efx_netdev_notifier); } err_notifier: ; return (rc); } } static void efx_exit_module(void) { { { printk("\016Solarflare NET driver unloading\n"); ldv_pci_unregister_driver_99(& efx_pci_driver); destroy_workqueue(reset_workqueue); efx_fini_sriov(); ldv_unregister_netdevice_notifier_100(& efx_netdev_notifier); } return; } } struct pci_device_id const __mod_pci_device_table ; void ldv_EMGentry_exit_efx_exit_module_36_2(void (*arg0)(void) ) ; int ldv_EMGentry_init_efx_init_module_36_18(int (*arg0)(void) ) ; int ldv___pci_register_driver(int arg0 , struct pci_driver *arg1 , struct module *arg2 , char *arg3 ) ; struct net_device *ldv_alloc_etherdev_mqs(struct net_device *arg0 , int arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_allocate_external_0(void) ; void ldv_base_instance_callback_19_24(int (*arg0)(void * ) , void *arg1 ) ; void ldv_base_instance_callback_19_27(void (*arg0)(void * , int ) , void *arg1 , int arg2 ) ; void ldv_base_instance_callback_19_30(void (*arg0)(void * , int ) , void *arg1 , int arg2 ) ; void ldv_base_instance_callback_19_9(int (*arg0)(void * ) , void *arg1 ) ; void ldv_base_instance_callback_7_9(unsigned long long (*arg0)(void * ) , void *arg1 ) ; void ldv_base_instance_callback_8_9(unsigned long long (*arg0)(void * ) , void *arg1 ) ; void ldv_dispatch_deregister_29_1(struct net_device *arg0 ) ; void ldv_dispatch_deregister_31_1(struct pci_driver *arg0 ) ; void ldv_dispatch_deregister_33_1(struct notifier_block *arg0 ) ; void ldv_dispatch_deregister_base_instance_17_36_4(void) ; void ldv_dispatch_deregister_base_instance_19_36_5(void) ; void ldv_dispatch_deregister_dummy_resourceless_instance_16_36_6(void) ; void ldv_dispatch_deregister_dummy_resourceless_instance_23_36_7(void) ; void ldv_dispatch_deregister_io_instance_18_36_8(void) ; void ldv_dispatch_deregister_platform_instance_15_36_9(void) ; void ldv_dispatch_instance_register_27_2(struct timer_list *arg0 ) ; void ldv_dispatch_pm_deregister_4_5(void) ; void ldv_dispatch_pm_register_4_6(void) ; void ldv_dispatch_register_30_2(struct net_device *arg0 ) ; void ldv_dispatch_register_32_2(struct pci_driver *arg0 ) ; void ldv_dispatch_register_34_2(struct notifier_block *arg0 ) ; void ldv_dispatch_register_base_instance_17_36_10(void) ; void ldv_dispatch_register_base_instance_19_36_11(void) ; void ldv_dispatch_register_dummy_resourceless_instance_16_36_12(void) ; void ldv_dispatch_register_io_instance_18_36_13(void) ; void ldv_dispatch_register_platform_instance_15_36_14(void) ; void ldv_dummy_resourceless_instance_callback_1_11(unsigned int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_12(int (*arg0)(struct net_device * , struct ethtool_eeprom * , unsigned char * ) , struct net_device *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_15(int (*arg0)(struct net_device * , struct ethtool_modinfo * ) , struct net_device *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_16(unsigned int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_17(void (*arg0)(struct net_device * , struct ethtool_pauseparam * ) , struct net_device *arg1 , struct ethtool_pauseparam *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_18(void (*arg0)(struct net_device * , struct ethtool_regs * , void * ) , struct net_device *arg1 , struct ethtool_regs *arg2 , void *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_19(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_20(void (*arg0)(struct net_device * , struct ethtool_ringparam * ) , struct net_device *arg1 , struct ethtool_ringparam *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_21(int (*arg0)(struct net_device * , unsigned int * ) , struct net_device *arg1 , unsigned int *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_24(unsigned int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_25(int (*arg0)(struct net_device * , struct ethtool_rxnfc * , unsigned int * ) , struct net_device *arg1 , struct ethtool_rxnfc *arg2 , unsigned int *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_28(int (*arg0)(struct net_device * , struct ethtool_cmd * ) , struct net_device *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_29(int (*arg0)(struct net_device * , int ) , struct net_device *arg1 , int arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_3(int (*arg0)(struct net_device * , struct ethtool_coalesce * ) , struct net_device *arg1 , struct ethtool_coalesce *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_32(void (*arg0)(struct net_device * , unsigned int , unsigned char * ) , struct net_device *arg1 , unsigned int arg2 , unsigned char *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_35(int (*arg0)(struct net_device * , struct ethtool_ts_info * ) , struct net_device *arg1 , struct ethtool_ts_info *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_36(void (*arg0)(struct net_device * , struct ethtool_wolinfo * ) , struct net_device *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_37(int (*arg0)(struct net_device * , int ) , struct net_device *arg1 , int arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_40(int (*arg0)(struct net_device * , struct ifreq * , int ) , struct net_device *arg1 , struct ifreq *arg2 , int arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_43(struct rtnl_link_stats64 *(*arg0)(struct net_device * , struct rtnl_link_stats64 * ) , struct net_device *arg1 , struct rtnl_link_stats64 *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_44(int (*arg0)(struct net_device * , int , struct ifla_vf_info * ) , struct net_device *arg1 , int arg2 , struct ifla_vf_info *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_47(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_48(void (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_49(int (*arg0)(struct net_device * , struct sk_buff * , unsigned short , unsigned int ) , struct net_device *arg1 , struct sk_buff *arg2 , unsigned short arg3 , unsigned int arg4 ) ; void ldv_dummy_resourceless_instance_callback_1_52(int (*arg0)(struct net_device * , unsigned long long ) , struct net_device *arg1 , unsigned long long arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_55(int (*arg0)(struct net_device * , void * ) , struct net_device *arg1 , void *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_56(void (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_57(int (*arg0)(struct net_device * , int , unsigned char * ) , struct net_device *arg1 , int arg2 , unsigned char *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_60(int (*arg0)(struct net_device * , int , _Bool ) , struct net_device *arg1 , int arg2 , _Bool arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_63(int (*arg0)(struct net_device * , int , unsigned short , unsigned char ) , struct net_device *arg1 , int arg2 , unsigned short arg3 , unsigned char arg4 ) ; void ldv_dummy_resourceless_instance_callback_1_66(int (*arg0)(struct net_device * , unsigned char ) , struct net_device *arg1 , unsigned char arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_69(enum netdev_tx (*arg0)(struct sk_buff * , struct net_device * ) , struct sk_buff *arg1 , struct net_device *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_7(void (*arg0)(struct net_device * , struct ethtool_drvinfo * ) , struct net_device *arg1 , struct ethtool_drvinfo *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_70(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_71(void (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_72(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_73(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) ; void ldv_dummy_resourceless_instance_callback_1_74(int (*arg0)(struct net_device * , unsigned int * ) , struct net_device *arg1 , unsigned int *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_77(void (*arg0)(struct net_device * , struct ethtool_test * , unsigned long long * ) , struct net_device *arg1 , struct ethtool_test *arg2 , unsigned long long *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_8(void (*arg0)(struct net_device * , struct ethtool_stats * , unsigned long long * ) , struct net_device *arg1 , struct ethtool_stats *arg2 , unsigned long long *arg3 ) ; void ldv_dummy_resourceless_instance_callback_1_80(int (*arg0)(struct net_device * , struct ethtool_coalesce * ) , struct net_device *arg1 , struct ethtool_coalesce *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_81(void (*arg0)(struct net_device * , unsigned int ) , struct net_device *arg1 , unsigned int arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_84(int (*arg0)(struct net_device * , struct ethtool_pauseparam * ) , struct net_device *arg1 , struct ethtool_pauseparam *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_85(int (*arg0)(struct net_device * , enum ethtool_phys_id_state ) , struct net_device *arg1 , enum ethtool_phys_id_state arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_86(int (*arg0)(struct net_device * , struct ethtool_ringparam * ) , struct net_device *arg1 , struct ethtool_ringparam *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_87(int (*arg0)(struct net_device * , unsigned int * ) , struct net_device *arg1 , unsigned int *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_90(int (*arg0)(struct net_device * , struct ethtool_rxnfc * ) , struct net_device *arg1 , struct ethtool_rxnfc *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_91(int (*arg0)(struct net_device * , struct ethtool_cmd * ) , struct net_device *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_dummy_resourceless_instance_callback_1_92(int (*arg0)(struct net_device * , struct ethtool_wolinfo * ) , struct net_device *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_dummy_resourceless_instance_callback_20_3(int (*arg0)(struct notifier_block * , unsigned long , void * ) , struct notifier_block *arg1 , unsigned long arg2 , void *arg3 ) ; void ldv_dummy_resourceless_instance_callback_6_3(long (*arg0)(struct device * , struct device_attribute * , char * ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 ) ; void ldv_dummy_resourceless_instance_callback_6_9(long (*arg0)(struct device * , struct device_attribute * , char * , unsigned long ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 , unsigned long arg4 ) ; void ldv_entry_EMGentry_36(void *arg0 ) ; int main(void) ; void ldv_free_netdev(void *arg0 , struct net_device *arg1 ) ; void ldv_initialize_external_data(void) ; enum irqreturn ldv_interrupt_instance_handler_0_5(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_interrupt_instance_thread_0_3(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_interrupt_interrupt_instance_0(void *arg0 ) ; void ldv_io_instance_callback_10_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_10_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_10_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_10_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_10_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_10_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_10_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_10_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_10_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_11_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_11_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_11_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_11_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_11_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_11_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_11_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_11_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_12_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_12_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_12_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_12_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_13_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_13_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_13_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_13_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_14_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_14_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_14_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_14_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_14_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_14_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_14_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_14_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_15_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_15_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_15_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_15_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_15_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_15_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_15_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_15_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_16_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_16_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_16_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_16_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_16_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_16_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_16_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_16_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_17_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_17_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_17_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_17_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_17_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_17_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_17_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_17_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_18_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_18_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_18_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_18_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_18_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_18_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_18_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_18_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_9_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_9_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_9_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_9_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_9_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_9_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_9_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_9_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_9_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_mod_timer(int arg0 , struct timer_list *arg1 , unsigned long arg2 ) ; void ldv_net_dummy_resourceless_instance_1(void *arg0 ) ; void ldv_pci_instance_callback_2_10(unsigned int (*arg0)(struct pci_dev * , enum pci_channel_state ) , struct pci_dev *arg1 , enum pci_channel_state arg2 ) ; void ldv_pci_instance_callback_2_23(void (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) ; void ldv_pci_instance_callback_2_24(unsigned int (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) ; int ldv_pci_instance_probe_2_17(int (*arg0)(struct pci_dev * , struct pci_device_id * ) , struct pci_dev *arg1 , struct pci_device_id *arg2 ) ; void ldv_pci_instance_release_2_2(void (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) ; void ldv_pci_instance_resume_2_5(int (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) ; void ldv_pci_instance_resume_early_2_6(int (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) ; void ldv_pci_instance_shutdown_2_3(void (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) ; int ldv_pci_instance_suspend_2_8(int (*arg0)(struct pci_dev * , struct pm_message ) , struct pci_dev *arg1 , struct pm_message arg2 ) ; int ldv_pci_instance_suspend_late_2_7(int (*arg0)(struct pci_dev * , struct pm_message ) , struct pci_dev *arg1 , struct pm_message arg2 ) ; void ldv_pci_pci_instance_2(void *arg0 ) ; void ldv_pci_unregister_driver(void *arg0 , struct pci_driver *arg1 ) ; int ldv_platform_instance_probe_4_14(int (*arg0)(struct platform_device * ) , struct platform_device *arg1 ) ; void ldv_platform_instance_release_4_3(int (*arg0)(struct platform_device * ) , struct platform_device *arg1 ) ; void ldv_pm_ops_instance_complete_3_3(void (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_freeze_3_15(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_freeze_late_3_14(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_freeze_noirq_3_12(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_poweroff_3_9(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_poweroff_late_3_8(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_poweroff_noirq_3_6(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_prepare_3_22(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_restore_3_4(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_restore_early_3_7(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_restore_noirq_3_5(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_resume_3_16(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_resume_early_3_17(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_resume_noirq_3_19(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_runtime_idle_3_27(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_runtime_resume_3_24(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_runtime_suspend_3_25(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_suspend_3_21(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_suspend_late_3_18(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_suspend_noirq_3_20(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_thaw_3_10(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_thaw_early_3_13(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_ops_instance_thaw_noirq_3_11(int (*arg0)(struct device * ) , struct device *arg1 ) ; void ldv_pm_platform_instance_4(void *arg0 ) ; void ldv_pm_pm_ops_instance_3(void *arg0 ) ; int ldv_register_netdevice(int arg0 , struct net_device *arg1 ) ; int ldv_register_netdevice_notifier(int arg0 , struct notifier_block *arg1 ) ; void ldv_struct_device_attribute_dummy_resourceless_instance_5(void *arg0 ) ; void ldv_struct_device_attribute_dummy_resourceless_instance_6(void *arg0 ) ; void ldv_struct_efx_sw_stat_desc_base_instance_7(void *arg0 ) ; void ldv_struct_efx_sw_stat_desc_base_instance_8(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_10(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_11(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_12(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_13(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_14(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_15(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_16(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_17(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_18(void *arg0 ) ; void ldv_struct_falcon_board_type_io_instance_9(void *arg0 ) ; void ldv_struct_i2c_algo_bit_data_base_instance_19(void *arg0 ) ; void ldv_struct_notifier_block_dummy_resourceless_instance_20(void *arg0 ) ; void ldv_struct_ptp_clock_info_dummy_resourceless_instance_21(void *arg0 ) ; int ldv_switch_0(void) ; int ldv_switch_1(void) ; int ldv_switch_2(void) ; int ldv_switch_3(void) ; int ldv_switch_4(void) ; int ldv_switch_5(void) ; int ldv_switch_6(void) ; int ldv_switch_7(void) ; int ldv_switch_8(void) ; void ldv_switch_automaton_state_0_1(void) ; void ldv_switch_automaton_state_0_6(void) ; void ldv_switch_automaton_state_10_14(void) ; void ldv_switch_automaton_state_10_5(void) ; void ldv_switch_automaton_state_11_14(void) ; void ldv_switch_automaton_state_11_5(void) ; void ldv_switch_automaton_state_12_14(void) ; void ldv_switch_automaton_state_12_5(void) ; void ldv_switch_automaton_state_13_14(void) ; void ldv_switch_automaton_state_13_5(void) ; void ldv_switch_automaton_state_14_14(void) ; void ldv_switch_automaton_state_14_5(void) ; void ldv_switch_automaton_state_15_14(void) ; void ldv_switch_automaton_state_15_5(void) ; void ldv_switch_automaton_state_16_14(void) ; void ldv_switch_automaton_state_16_5(void) ; void ldv_switch_automaton_state_17_14(void) ; void ldv_switch_automaton_state_17_5(void) ; void ldv_switch_automaton_state_18_14(void) ; void ldv_switch_automaton_state_18_5(void) ; void ldv_switch_automaton_state_19_10(void) ; void ldv_switch_automaton_state_19_19(void) ; void ldv_switch_automaton_state_1_1(void) ; void ldv_switch_automaton_state_1_5(void) ; void ldv_switch_automaton_state_20_1(void) ; void ldv_switch_automaton_state_20_5(void) ; void ldv_switch_automaton_state_21_1(void) ; void ldv_switch_automaton_state_22_1(void) ; void ldv_switch_automaton_state_22_3(void) ; void ldv_switch_automaton_state_2_11(void) ; void ldv_switch_automaton_state_2_20(void) ; void ldv_switch_automaton_state_3_1(void) ; void ldv_switch_automaton_state_3_29(void) ; void ldv_switch_automaton_state_4_17(void) ; void ldv_switch_automaton_state_4_8(void) ; void ldv_switch_automaton_state_5_1(void) ; void ldv_switch_automaton_state_5_5(void) ; void ldv_switch_automaton_state_6_1(void) ; void ldv_switch_automaton_state_6_5(void) ; void ldv_switch_automaton_state_7_10(void) ; void ldv_switch_automaton_state_7_19(void) ; void ldv_switch_automaton_state_8_10(void) ; void ldv_switch_automaton_state_8_19(void) ; void ldv_switch_automaton_state_9_14(void) ; void ldv_switch_automaton_state_9_5(void) ; void ldv_timer_instance_callback_22_2(void (*arg0)(unsigned long ) , unsigned long arg1 ) ; void ldv_timer_timer_instance_22(void *arg0 ) ; void ldv_unregister_netdevice(void *arg0 , struct net_device *arg1 ) ; int ldv_unregister_netdevice_notifier(int arg0 , struct notifier_block *arg1 ) ; enum irqreturn (*ldv_0_callback_handler)(int , void * ) ; void *ldv_0_data_data ; int ldv_0_line_line ; enum irqreturn ldv_0_ret_val_default ; enum irqreturn (*ldv_0_thread_thread)(int , void * ) ; struct efx_channel *(*ldv_10_callback_copy)(struct efx_channel * ) ; _Bool (*ldv_10_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_10_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; void (*ldv_10_callback_filter_update_rx_scatter)(struct efx_nic * ) ; int (*ldv_10_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_10_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_10_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_10_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; int (*ldv_10_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_10_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_10_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_10_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_10_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; long long ldv_10_ldv_param_104_1_default ; unsigned long ldv_10_ldv_param_104_2_default ; unsigned long *ldv_10_ldv_param_104_3_default ; unsigned char *ldv_10_ldv_param_104_4_default ; _Bool ldv_10_ldv_param_114_1_default ; _Bool ldv_10_ldv_param_114_2_default ; unsigned int ldv_10_ldv_param_117_1_default ; int *ldv_10_ldv_param_129_1_default ; unsigned int ldv_10_ldv_param_129_2_default ; unsigned int ldv_10_ldv_param_139_1_default ; unsigned int ldv_10_ldv_param_143_1_default ; unsigned int ldv_10_ldv_param_150_1_default ; unsigned long long *ldv_10_ldv_param_158_1_default ; unsigned char *ldv_10_ldv_param_19_1_default ; int ldv_10_ldv_param_26_1_default ; unsigned int *ldv_10_ldv_param_35_2_default ; unsigned int ldv_10_ldv_param_35_3_default ; unsigned int ldv_10_ldv_param_38_2_default ; _Bool ldv_10_ldv_param_41_2_default ; unsigned int ldv_10_ldv_param_44_2_default ; unsigned int ldv_10_ldv_param_47_1_default ; unsigned int ldv_10_ldv_param_47_2_default ; unsigned char *ldv_10_ldv_param_59_2_default ; char *ldv_10_ldv_param_63_1_default ; unsigned long ldv_10_ldv_param_63_2_default ; int ldv_10_ldv_param_74_0_default ; int ldv_10_ldv_param_77_0_default ; unsigned int *ldv_10_ldv_param_81_0_default ; unsigned long ldv_10_ldv_param_87_2_default ; unsigned long ldv_10_ldv_param_87_3_default ; unsigned long ldv_10_ldv_param_90_2_default ; union efx_dword *ldv_10_ldv_param_90_3_default ; unsigned long ldv_10_ldv_param_90_4_default ; long long ldv_10_ldv_param_95_1_default ; unsigned long ldv_10_ldv_param_95_2_default ; long long ldv_10_ldv_param_99_1_default ; unsigned long ldv_10_ldv_param_99_2_default ; unsigned long *ldv_10_ldv_param_99_3_default ; unsigned char *ldv_10_ldv_param_99_4_default ; enum efx_filter_priority ldv_10_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_10_resource_enum_efx_led_mode ; enum reset_type ldv_10_resource_enum_reset_type ; struct efx_channel *ldv_10_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_10_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_10_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_10_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_10_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_10_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_10_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_10_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_10_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_10_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_10_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_10_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_10_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_10_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_10_resource_struct_sk_buff_ptr ; union efx_dword *ldv_10_resource_union_efx_dword_ptr ; union efx_qword *ldv_10_resource_union_efx_qword_ptr ; int ldv_10_ret_default ; struct efx_channel *(*ldv_11_callback_copy)(struct efx_channel * ) ; int (*ldv_11_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_11_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_11_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_11_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; int (*ldv_11_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_11_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_11_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; int (*ldv_11_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_11_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; char *(*ldv_11_callback_test_name)(struct efx_nic * , unsigned int ) ; long long ldv_11_ldv_param_104_1_default ; unsigned long ldv_11_ldv_param_104_2_default ; unsigned long *ldv_11_ldv_param_104_3_default ; unsigned char *ldv_11_ldv_param_104_4_default ; _Bool ldv_11_ldv_param_114_1_default ; _Bool ldv_11_ldv_param_114_2_default ; unsigned int ldv_11_ldv_param_117_1_default ; int *ldv_11_ldv_param_129_1_default ; unsigned int ldv_11_ldv_param_129_2_default ; unsigned int ldv_11_ldv_param_139_1_default ; unsigned int ldv_11_ldv_param_143_1_default ; unsigned int ldv_11_ldv_param_150_1_default ; unsigned long long *ldv_11_ldv_param_158_1_default ; unsigned char *ldv_11_ldv_param_19_1_default ; int ldv_11_ldv_param_26_1_default ; unsigned int *ldv_11_ldv_param_35_2_default ; unsigned int ldv_11_ldv_param_35_3_default ; unsigned int ldv_11_ldv_param_38_2_default ; _Bool ldv_11_ldv_param_41_2_default ; unsigned int ldv_11_ldv_param_44_2_default ; unsigned int ldv_11_ldv_param_47_1_default ; unsigned int ldv_11_ldv_param_47_2_default ; unsigned char *ldv_11_ldv_param_59_2_default ; char *ldv_11_ldv_param_63_1_default ; unsigned long ldv_11_ldv_param_63_2_default ; int ldv_11_ldv_param_74_0_default ; int ldv_11_ldv_param_77_0_default ; unsigned int *ldv_11_ldv_param_81_0_default ; unsigned long ldv_11_ldv_param_87_2_default ; unsigned long ldv_11_ldv_param_87_3_default ; unsigned long ldv_11_ldv_param_90_2_default ; union efx_dword *ldv_11_ldv_param_90_3_default ; unsigned long ldv_11_ldv_param_90_4_default ; long long ldv_11_ldv_param_95_1_default ; unsigned long ldv_11_ldv_param_95_2_default ; long long ldv_11_ldv_param_99_1_default ; unsigned long ldv_11_ldv_param_99_2_default ; unsigned long *ldv_11_ldv_param_99_3_default ; unsigned char *ldv_11_ldv_param_99_4_default ; enum efx_filter_priority ldv_11_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_11_resource_enum_efx_led_mode ; enum reset_type ldv_11_resource_enum_reset_type ; struct efx_channel *ldv_11_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_11_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_11_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_11_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_11_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_11_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_11_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_11_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_11_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_11_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_11_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_11_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_11_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_11_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_11_resource_struct_sk_buff_ptr ; union efx_dword *ldv_11_resource_union_efx_dword_ptr ; union efx_qword *ldv_11_resource_union_efx_qword_ptr ; int ldv_11_ret_default ; struct efx_channel *(*ldv_12_callback_copy)(struct efx_channel * ) ; void (*ldv_12_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_12_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_12_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; _Bool (*ldv_12_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; void (*ldv_12_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; int (*ldv_12_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; long long ldv_12_ldv_param_104_1_default ; unsigned long ldv_12_ldv_param_104_2_default ; unsigned long *ldv_12_ldv_param_104_3_default ; unsigned char *ldv_12_ldv_param_104_4_default ; _Bool ldv_12_ldv_param_114_1_default ; _Bool ldv_12_ldv_param_114_2_default ; unsigned int ldv_12_ldv_param_117_1_default ; int *ldv_12_ldv_param_129_1_default ; unsigned int ldv_12_ldv_param_129_2_default ; unsigned int ldv_12_ldv_param_139_1_default ; unsigned int ldv_12_ldv_param_143_1_default ; unsigned int ldv_12_ldv_param_150_1_default ; unsigned long long *ldv_12_ldv_param_158_1_default ; unsigned char *ldv_12_ldv_param_19_1_default ; int ldv_12_ldv_param_26_1_default ; unsigned int *ldv_12_ldv_param_35_2_default ; unsigned int ldv_12_ldv_param_35_3_default ; unsigned int ldv_12_ldv_param_38_2_default ; _Bool ldv_12_ldv_param_41_2_default ; unsigned int ldv_12_ldv_param_44_2_default ; unsigned int ldv_12_ldv_param_47_1_default ; unsigned int ldv_12_ldv_param_47_2_default ; unsigned char *ldv_12_ldv_param_59_2_default ; char *ldv_12_ldv_param_63_1_default ; unsigned long ldv_12_ldv_param_63_2_default ; int ldv_12_ldv_param_74_0_default ; int ldv_12_ldv_param_77_0_default ; unsigned int *ldv_12_ldv_param_81_0_default ; unsigned long ldv_12_ldv_param_87_2_default ; unsigned long ldv_12_ldv_param_87_3_default ; unsigned long ldv_12_ldv_param_90_2_default ; union efx_dword *ldv_12_ldv_param_90_3_default ; unsigned long ldv_12_ldv_param_90_4_default ; long long ldv_12_ldv_param_95_1_default ; unsigned long ldv_12_ldv_param_95_2_default ; long long ldv_12_ldv_param_99_1_default ; unsigned long ldv_12_ldv_param_99_2_default ; unsigned long *ldv_12_ldv_param_99_3_default ; unsigned char *ldv_12_ldv_param_99_4_default ; enum efx_filter_priority ldv_12_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_12_resource_enum_efx_led_mode ; enum reset_type ldv_12_resource_enum_reset_type ; struct efx_channel *ldv_12_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_12_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_12_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_12_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_12_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_12_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_12_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_12_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_12_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_12_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_12_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_12_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_12_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_12_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_12_resource_struct_sk_buff_ptr ; union efx_dword *ldv_12_resource_union_efx_dword_ptr ; union efx_qword *ldv_12_resource_union_efx_qword_ptr ; int ldv_12_ret_default ; struct efx_channel *(*ldv_13_callback_copy)(struct efx_channel * ) ; void (*ldv_13_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_13_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_13_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_13_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; _Bool (*ldv_13_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; void (*ldv_13_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_13_callback_prepare_flush)(struct efx_nic * ) ; void (*ldv_13_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; long long ldv_13_ldv_param_104_1_default ; unsigned long ldv_13_ldv_param_104_2_default ; unsigned long *ldv_13_ldv_param_104_3_default ; unsigned char *ldv_13_ldv_param_104_4_default ; _Bool ldv_13_ldv_param_114_1_default ; _Bool ldv_13_ldv_param_114_2_default ; unsigned int ldv_13_ldv_param_117_1_default ; int *ldv_13_ldv_param_129_1_default ; unsigned int ldv_13_ldv_param_129_2_default ; unsigned int ldv_13_ldv_param_139_1_default ; unsigned int ldv_13_ldv_param_143_1_default ; unsigned int ldv_13_ldv_param_150_1_default ; unsigned long long *ldv_13_ldv_param_158_1_default ; unsigned char *ldv_13_ldv_param_19_1_default ; int ldv_13_ldv_param_26_1_default ; unsigned int *ldv_13_ldv_param_35_2_default ; unsigned int ldv_13_ldv_param_35_3_default ; unsigned int ldv_13_ldv_param_38_2_default ; _Bool ldv_13_ldv_param_41_2_default ; unsigned int ldv_13_ldv_param_44_2_default ; unsigned int ldv_13_ldv_param_47_1_default ; unsigned int ldv_13_ldv_param_47_2_default ; unsigned char *ldv_13_ldv_param_59_2_default ; char *ldv_13_ldv_param_63_1_default ; unsigned long ldv_13_ldv_param_63_2_default ; int ldv_13_ldv_param_74_0_default ; int ldv_13_ldv_param_77_0_default ; unsigned int *ldv_13_ldv_param_81_0_default ; unsigned long ldv_13_ldv_param_87_2_default ; unsigned long ldv_13_ldv_param_87_3_default ; unsigned long ldv_13_ldv_param_90_2_default ; union efx_dword *ldv_13_ldv_param_90_3_default ; unsigned long ldv_13_ldv_param_90_4_default ; long long ldv_13_ldv_param_95_1_default ; unsigned long ldv_13_ldv_param_95_2_default ; long long ldv_13_ldv_param_99_1_default ; unsigned long ldv_13_ldv_param_99_2_default ; unsigned long *ldv_13_ldv_param_99_3_default ; unsigned char *ldv_13_ldv_param_99_4_default ; enum efx_filter_priority ldv_13_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_13_resource_enum_efx_led_mode ; enum reset_type ldv_13_resource_enum_reset_type ; struct efx_channel *ldv_13_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_13_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_13_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_13_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_13_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_13_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_13_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_13_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_13_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_13_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_13_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_13_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_13_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_13_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_13_resource_struct_sk_buff_ptr ; union efx_dword *ldv_13_resource_union_efx_dword_ptr ; union efx_qword *ldv_13_resource_union_efx_qword_ptr ; int ldv_13_ret_default ; struct efx_channel *(*ldv_14_callback_copy)(struct efx_channel * ) ; void (*ldv_14_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_14_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_14_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_14_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_14_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; _Bool (*ldv_14_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; _Bool (*ldv_14_callback_poll)(struct efx_nic * ) ; void (*ldv_14_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_14_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_14_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_14_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_14_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_14_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_14_callback_test_alive)(struct efx_nic * ) ; char *(*ldv_14_callback_test_name)(struct efx_nic * , unsigned int ) ; struct efx_phy_operations *ldv_14_container_struct_efx_phy_operations ; long long ldv_14_ldv_param_104_1_default ; unsigned long ldv_14_ldv_param_104_2_default ; unsigned long *ldv_14_ldv_param_104_3_default ; unsigned char *ldv_14_ldv_param_104_4_default ; _Bool ldv_14_ldv_param_114_1_default ; _Bool ldv_14_ldv_param_114_2_default ; unsigned int ldv_14_ldv_param_117_1_default ; int *ldv_14_ldv_param_129_1_default ; unsigned int ldv_14_ldv_param_129_2_default ; unsigned int ldv_14_ldv_param_139_1_default ; unsigned int ldv_14_ldv_param_143_1_default ; unsigned int ldv_14_ldv_param_150_1_default ; unsigned long long *ldv_14_ldv_param_158_1_default ; unsigned char *ldv_14_ldv_param_19_1_default ; int ldv_14_ldv_param_26_1_default ; unsigned int *ldv_14_ldv_param_35_2_default ; unsigned int ldv_14_ldv_param_35_3_default ; unsigned int ldv_14_ldv_param_38_2_default ; _Bool ldv_14_ldv_param_41_2_default ; unsigned int ldv_14_ldv_param_44_2_default ; unsigned int ldv_14_ldv_param_47_1_default ; unsigned int ldv_14_ldv_param_47_2_default ; unsigned char *ldv_14_ldv_param_59_2_default ; char *ldv_14_ldv_param_63_1_default ; unsigned long ldv_14_ldv_param_63_2_default ; int ldv_14_ldv_param_74_0_default ; int ldv_14_ldv_param_77_0_default ; unsigned int *ldv_14_ldv_param_81_0_default ; unsigned long ldv_14_ldv_param_87_2_default ; unsigned long ldv_14_ldv_param_87_3_default ; unsigned long ldv_14_ldv_param_90_2_default ; union efx_dword *ldv_14_ldv_param_90_3_default ; unsigned long ldv_14_ldv_param_90_4_default ; long long ldv_14_ldv_param_95_1_default ; unsigned long ldv_14_ldv_param_95_2_default ; long long ldv_14_ldv_param_99_1_default ; unsigned long ldv_14_ldv_param_99_2_default ; unsigned long *ldv_14_ldv_param_99_3_default ; unsigned char *ldv_14_ldv_param_99_4_default ; enum efx_filter_priority ldv_14_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_14_resource_enum_efx_led_mode ; enum reset_type ldv_14_resource_enum_reset_type ; struct efx_channel *ldv_14_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_14_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_14_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_14_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_14_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_14_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_14_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_14_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_14_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_14_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_14_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_14_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_14_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_14_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_14_resource_struct_sk_buff_ptr ; union efx_dword *ldv_14_resource_union_efx_dword_ptr ; union efx_qword *ldv_14_resource_union_efx_qword_ptr ; int ldv_14_ret_default ; struct efx_channel *(*ldv_15_callback_copy)(struct efx_channel * ) ; void (*ldv_15_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_15_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_15_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_15_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_15_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; _Bool (*ldv_15_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; _Bool (*ldv_15_callback_poll)(struct efx_nic * ) ; void (*ldv_15_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_15_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_15_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_15_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_15_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_15_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_15_callback_test_alive)(struct efx_nic * ) ; char *(*ldv_15_callback_test_name)(struct efx_nic * , unsigned int ) ; struct efx_phy_operations *ldv_15_container_struct_efx_phy_operations ; long long ldv_15_ldv_param_104_1_default ; unsigned long ldv_15_ldv_param_104_2_default ; unsigned long *ldv_15_ldv_param_104_3_default ; unsigned char *ldv_15_ldv_param_104_4_default ; _Bool ldv_15_ldv_param_114_1_default ; _Bool ldv_15_ldv_param_114_2_default ; unsigned int ldv_15_ldv_param_117_1_default ; int *ldv_15_ldv_param_129_1_default ; unsigned int ldv_15_ldv_param_129_2_default ; unsigned int ldv_15_ldv_param_139_1_default ; unsigned int ldv_15_ldv_param_143_1_default ; unsigned int ldv_15_ldv_param_150_1_default ; unsigned long long *ldv_15_ldv_param_158_1_default ; unsigned char *ldv_15_ldv_param_19_1_default ; int ldv_15_ldv_param_26_1_default ; unsigned int *ldv_15_ldv_param_35_2_default ; unsigned int ldv_15_ldv_param_35_3_default ; unsigned int ldv_15_ldv_param_38_2_default ; _Bool ldv_15_ldv_param_41_2_default ; unsigned int ldv_15_ldv_param_44_2_default ; unsigned int ldv_15_ldv_param_47_1_default ; unsigned int ldv_15_ldv_param_47_2_default ; unsigned char *ldv_15_ldv_param_59_2_default ; char *ldv_15_ldv_param_63_1_default ; unsigned long ldv_15_ldv_param_63_2_default ; int ldv_15_ldv_param_74_0_default ; int ldv_15_ldv_param_77_0_default ; unsigned int *ldv_15_ldv_param_81_0_default ; unsigned long ldv_15_ldv_param_87_2_default ; unsigned long ldv_15_ldv_param_87_3_default ; unsigned long ldv_15_ldv_param_90_2_default ; union efx_dword *ldv_15_ldv_param_90_3_default ; unsigned long ldv_15_ldv_param_90_4_default ; long long ldv_15_ldv_param_95_1_default ; unsigned long ldv_15_ldv_param_95_2_default ; long long ldv_15_ldv_param_99_1_default ; unsigned long ldv_15_ldv_param_99_2_default ; unsigned long *ldv_15_ldv_param_99_3_default ; unsigned char *ldv_15_ldv_param_99_4_default ; enum efx_filter_priority ldv_15_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_15_resource_enum_efx_led_mode ; enum reset_type ldv_15_resource_enum_reset_type ; struct efx_channel *ldv_15_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_15_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_15_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_15_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_15_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_15_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_15_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_15_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_15_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_15_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_15_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_15_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_15_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_15_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_15_resource_struct_sk_buff_ptr ; union efx_dword *ldv_15_resource_union_efx_dword_ptr ; union efx_qword *ldv_15_resource_union_efx_qword_ptr ; int ldv_15_ret_default ; struct efx_channel *(*ldv_16_callback_copy)(struct efx_channel * ) ; void (*ldv_16_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_16_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_16_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_16_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_16_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; _Bool (*ldv_16_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; _Bool (*ldv_16_callback_poll)(struct efx_nic * ) ; void (*ldv_16_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_16_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_16_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_16_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_16_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_16_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_16_callback_test_alive)(struct efx_nic * ) ; char *(*ldv_16_callback_test_name)(struct efx_nic * , unsigned int ) ; struct efx_phy_operations *ldv_16_container_struct_efx_phy_operations ; long long ldv_16_ldv_param_104_1_default ; unsigned long ldv_16_ldv_param_104_2_default ; unsigned long *ldv_16_ldv_param_104_3_default ; unsigned char *ldv_16_ldv_param_104_4_default ; _Bool ldv_16_ldv_param_114_1_default ; _Bool ldv_16_ldv_param_114_2_default ; unsigned int ldv_16_ldv_param_117_1_default ; int *ldv_16_ldv_param_129_1_default ; unsigned int ldv_16_ldv_param_129_2_default ; unsigned int ldv_16_ldv_param_139_1_default ; unsigned int ldv_16_ldv_param_143_1_default ; unsigned int ldv_16_ldv_param_150_1_default ; unsigned long long *ldv_16_ldv_param_158_1_default ; unsigned char *ldv_16_ldv_param_19_1_default ; int ldv_16_ldv_param_26_1_default ; unsigned int *ldv_16_ldv_param_35_2_default ; unsigned int ldv_16_ldv_param_35_3_default ; unsigned int ldv_16_ldv_param_38_2_default ; _Bool ldv_16_ldv_param_41_2_default ; unsigned int ldv_16_ldv_param_44_2_default ; unsigned int ldv_16_ldv_param_47_1_default ; unsigned int ldv_16_ldv_param_47_2_default ; unsigned char *ldv_16_ldv_param_59_2_default ; char *ldv_16_ldv_param_63_1_default ; unsigned long ldv_16_ldv_param_63_2_default ; int ldv_16_ldv_param_74_0_default ; int ldv_16_ldv_param_77_0_default ; unsigned int *ldv_16_ldv_param_81_0_default ; unsigned long ldv_16_ldv_param_87_2_default ; unsigned long ldv_16_ldv_param_87_3_default ; unsigned long ldv_16_ldv_param_90_2_default ; union efx_dword *ldv_16_ldv_param_90_3_default ; unsigned long ldv_16_ldv_param_90_4_default ; long long ldv_16_ldv_param_95_1_default ; unsigned long ldv_16_ldv_param_95_2_default ; long long ldv_16_ldv_param_99_1_default ; unsigned long ldv_16_ldv_param_99_2_default ; unsigned long *ldv_16_ldv_param_99_3_default ; unsigned char *ldv_16_ldv_param_99_4_default ; enum efx_filter_priority ldv_16_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_16_resource_enum_efx_led_mode ; enum reset_type ldv_16_resource_enum_reset_type ; struct efx_channel *ldv_16_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_16_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_16_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_16_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_16_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_16_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_16_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_16_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_16_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_16_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_16_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_16_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_16_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_16_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_16_resource_struct_sk_buff_ptr ; union efx_dword *ldv_16_resource_union_efx_dword_ptr ; union efx_qword *ldv_16_resource_union_efx_qword_ptr ; int ldv_16_ret_default ; struct efx_channel *(*ldv_17_callback_copy)(struct efx_channel * ) ; void (*ldv_17_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_17_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_17_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_17_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_17_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; _Bool (*ldv_17_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; _Bool (*ldv_17_callback_poll)(struct efx_nic * ) ; void (*ldv_17_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_17_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_17_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_17_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_17_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_17_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_17_callback_test_alive)(struct efx_nic * ) ; char *(*ldv_17_callback_test_name)(struct efx_nic * , unsigned int ) ; struct efx_phy_operations *ldv_17_container_struct_efx_phy_operations ; long long ldv_17_ldv_param_104_1_default ; unsigned long ldv_17_ldv_param_104_2_default ; unsigned long *ldv_17_ldv_param_104_3_default ; unsigned char *ldv_17_ldv_param_104_4_default ; _Bool ldv_17_ldv_param_114_1_default ; _Bool ldv_17_ldv_param_114_2_default ; unsigned int ldv_17_ldv_param_117_1_default ; int *ldv_17_ldv_param_129_1_default ; unsigned int ldv_17_ldv_param_129_2_default ; unsigned int ldv_17_ldv_param_139_1_default ; unsigned int ldv_17_ldv_param_143_1_default ; unsigned int ldv_17_ldv_param_150_1_default ; unsigned long long *ldv_17_ldv_param_158_1_default ; unsigned char *ldv_17_ldv_param_19_1_default ; int ldv_17_ldv_param_26_1_default ; unsigned int *ldv_17_ldv_param_35_2_default ; unsigned int ldv_17_ldv_param_35_3_default ; unsigned int ldv_17_ldv_param_38_2_default ; _Bool ldv_17_ldv_param_41_2_default ; unsigned int ldv_17_ldv_param_44_2_default ; unsigned int ldv_17_ldv_param_47_1_default ; unsigned int ldv_17_ldv_param_47_2_default ; unsigned char *ldv_17_ldv_param_59_2_default ; char *ldv_17_ldv_param_63_1_default ; unsigned long ldv_17_ldv_param_63_2_default ; int ldv_17_ldv_param_74_0_default ; int ldv_17_ldv_param_77_0_default ; unsigned int *ldv_17_ldv_param_81_0_default ; unsigned long ldv_17_ldv_param_87_2_default ; unsigned long ldv_17_ldv_param_87_3_default ; unsigned long ldv_17_ldv_param_90_2_default ; union efx_dword *ldv_17_ldv_param_90_3_default ; unsigned long ldv_17_ldv_param_90_4_default ; long long ldv_17_ldv_param_95_1_default ; unsigned long ldv_17_ldv_param_95_2_default ; long long ldv_17_ldv_param_99_1_default ; unsigned long ldv_17_ldv_param_99_2_default ; unsigned long *ldv_17_ldv_param_99_3_default ; unsigned char *ldv_17_ldv_param_99_4_default ; enum efx_filter_priority ldv_17_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_17_resource_enum_efx_led_mode ; enum reset_type ldv_17_resource_enum_reset_type ; struct efx_channel *ldv_17_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_17_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_17_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_17_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_17_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_17_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_17_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_17_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_17_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_17_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_17_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_17_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_17_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_17_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_17_resource_struct_sk_buff_ptr ; union efx_dword *ldv_17_resource_union_efx_dword_ptr ; union efx_qword *ldv_17_resource_union_efx_qword_ptr ; int ldv_17_ret_default ; struct efx_channel *(*ldv_18_callback_copy)(struct efx_channel * ) ; void (*ldv_18_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_18_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_18_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_18_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_18_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; _Bool (*ldv_18_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; _Bool (*ldv_18_callback_poll)(struct efx_nic * ) ; void (*ldv_18_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_18_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_18_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_18_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_18_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_18_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_18_callback_test_alive)(struct efx_nic * ) ; char *(*ldv_18_callback_test_name)(struct efx_nic * , unsigned int ) ; struct efx_phy_operations *ldv_18_container_struct_efx_phy_operations ; long long ldv_18_ldv_param_104_1_default ; unsigned long ldv_18_ldv_param_104_2_default ; unsigned long *ldv_18_ldv_param_104_3_default ; unsigned char *ldv_18_ldv_param_104_4_default ; _Bool ldv_18_ldv_param_114_1_default ; _Bool ldv_18_ldv_param_114_2_default ; unsigned int ldv_18_ldv_param_117_1_default ; int *ldv_18_ldv_param_129_1_default ; unsigned int ldv_18_ldv_param_129_2_default ; unsigned int ldv_18_ldv_param_139_1_default ; unsigned int ldv_18_ldv_param_143_1_default ; unsigned int ldv_18_ldv_param_150_1_default ; unsigned long long *ldv_18_ldv_param_158_1_default ; unsigned char *ldv_18_ldv_param_19_1_default ; int ldv_18_ldv_param_26_1_default ; unsigned int *ldv_18_ldv_param_35_2_default ; unsigned int ldv_18_ldv_param_35_3_default ; unsigned int ldv_18_ldv_param_38_2_default ; _Bool ldv_18_ldv_param_41_2_default ; unsigned int ldv_18_ldv_param_44_2_default ; unsigned int ldv_18_ldv_param_47_1_default ; unsigned int ldv_18_ldv_param_47_2_default ; unsigned char *ldv_18_ldv_param_59_2_default ; char *ldv_18_ldv_param_63_1_default ; unsigned long ldv_18_ldv_param_63_2_default ; int ldv_18_ldv_param_74_0_default ; int ldv_18_ldv_param_77_0_default ; unsigned int *ldv_18_ldv_param_81_0_default ; unsigned long ldv_18_ldv_param_87_2_default ; unsigned long ldv_18_ldv_param_87_3_default ; unsigned long ldv_18_ldv_param_90_2_default ; union efx_dword *ldv_18_ldv_param_90_3_default ; unsigned long ldv_18_ldv_param_90_4_default ; long long ldv_18_ldv_param_95_1_default ; unsigned long ldv_18_ldv_param_95_2_default ; long long ldv_18_ldv_param_99_1_default ; unsigned long ldv_18_ldv_param_99_2_default ; unsigned long *ldv_18_ldv_param_99_3_default ; unsigned char *ldv_18_ldv_param_99_4_default ; enum efx_filter_priority ldv_18_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_18_resource_enum_efx_led_mode ; enum reset_type ldv_18_resource_enum_reset_type ; struct efx_channel *ldv_18_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_18_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_18_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_18_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_18_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_18_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_18_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_18_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_18_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_18_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_18_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_18_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_18_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_18_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_18_resource_struct_sk_buff_ptr ; union efx_dword *ldv_18_resource_union_efx_dword_ptr ; union efx_qword *ldv_18_resource_union_efx_qword_ptr ; int ldv_18_ret_default ; int (*ldv_19_callback_getscl)(void * ) ; int (*ldv_19_callback_getsda)(void * ) ; void (*ldv_19_callback_setscl)(void * , int ) ; void (*ldv_19_callback_setsda)(void * , int ) ; void *ldv_19_ldv_param_24_0_default ; void *ldv_19_ldv_param_27_0_default ; int ldv_19_ldv_param_27_1_default ; void *ldv_19_ldv_param_30_0_default ; int ldv_19_ldv_param_30_1_default ; void *ldv_19_ldv_param_9_0_default ; int ldv_19_ret_default ; int (*ldv_1_callback_get_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; void (*ldv_1_callback_get_drvinfo)(struct net_device * , struct ethtool_drvinfo * ) ; void (*ldv_1_callback_get_ethtool_stats)(struct net_device * , struct ethtool_stats * , unsigned long long * ) ; unsigned int (*ldv_1_callback_get_link)(struct net_device * ) ; int (*ldv_1_callback_get_module_eeprom)(struct net_device * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_1_callback_get_module_info)(struct net_device * , struct ethtool_modinfo * ) ; unsigned int (*ldv_1_callback_get_msglevel)(struct net_device * ) ; void (*ldv_1_callback_get_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; void (*ldv_1_callback_get_regs)(struct net_device * , struct ethtool_regs * , void * ) ; int (*ldv_1_callback_get_regs_len)(struct net_device * ) ; void (*ldv_1_callback_get_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; int (*ldv_1_callback_get_rxfh_indir)(struct net_device * , unsigned int * ) ; unsigned int (*ldv_1_callback_get_rxfh_indir_size)(struct net_device * ) ; int (*ldv_1_callback_get_rxnfc)(struct net_device * , struct ethtool_rxnfc * , unsigned int * ) ; int (*ldv_1_callback_get_settings)(struct net_device * , struct ethtool_cmd * ) ; int (*ldv_1_callback_get_sset_count)(struct net_device * , int ) ; void (*ldv_1_callback_get_strings)(struct net_device * , unsigned int , unsigned char * ) ; int (*ldv_1_callback_get_ts_info)(struct net_device * , struct ethtool_ts_info * ) ; void (*ldv_1_callback_get_wol)(struct net_device * , struct ethtool_wolinfo * ) ; int (*ldv_1_callback_ndo_change_mtu)(struct net_device * , int ) ; int (*ldv_1_callback_ndo_do_ioctl)(struct net_device * , struct ifreq * , int ) ; struct rtnl_link_stats64 *(*ldv_1_callback_ndo_get_stats64)(struct net_device * , struct rtnl_link_stats64 * ) ; int (*ldv_1_callback_ndo_get_vf_config)(struct net_device * , int , struct ifla_vf_info * ) ; int (*ldv_1_callback_ndo_open)(struct net_device * ) ; void (*ldv_1_callback_ndo_poll_controller)(struct net_device * ) ; int (*ldv_1_callback_ndo_rx_flow_steer)(struct net_device * , struct sk_buff * , unsigned short , unsigned int ) ; int (*ldv_1_callback_ndo_set_features)(struct net_device * , unsigned long long ) ; int (*ldv_1_callback_ndo_set_mac_address)(struct net_device * , void * ) ; void (*ldv_1_callback_ndo_set_rx_mode)(struct net_device * ) ; int (*ldv_1_callback_ndo_set_vf_mac)(struct net_device * , int , unsigned char * ) ; int (*ldv_1_callback_ndo_set_vf_spoofchk)(struct net_device * , int , _Bool ) ; int (*ldv_1_callback_ndo_set_vf_vlan)(struct net_device * , int , unsigned short , unsigned char ) ; int (*ldv_1_callback_ndo_setup_tc)(struct net_device * , unsigned char ) ; enum netdev_tx (*ldv_1_callback_ndo_start_xmit)(struct sk_buff * , struct net_device * ) ; int (*ldv_1_callback_ndo_stop)(struct net_device * ) ; void (*ldv_1_callback_ndo_tx_timeout)(struct net_device * ) ; int (*ldv_1_callback_ndo_validate_addr)(struct net_device * ) ; int (*ldv_1_callback_nway_reset)(struct net_device * ) ; int (*ldv_1_callback_reset)(struct net_device * , unsigned int * ) ; void (*ldv_1_callback_self_test)(struct net_device * , struct ethtool_test * , unsigned long long * ) ; int (*ldv_1_callback_set_coalesce)(struct net_device * , struct ethtool_coalesce * ) ; void (*ldv_1_callback_set_msglevel)(struct net_device * , unsigned int ) ; int (*ldv_1_callback_set_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ; int (*ldv_1_callback_set_phys_id)(struct net_device * , enum ethtool_phys_id_state ) ; int (*ldv_1_callback_set_ringparam)(struct net_device * , struct ethtool_ringparam * ) ; int (*ldv_1_callback_set_rxfh_indir)(struct net_device * , unsigned int * ) ; int (*ldv_1_callback_set_rxnfc)(struct net_device * , struct ethtool_rxnfc * ) ; int (*ldv_1_callback_set_settings)(struct net_device * , struct ethtool_cmd * ) ; int (*ldv_1_callback_set_wol)(struct net_device * , struct ethtool_wolinfo * ) ; enum ethtool_phys_id_state ldv_1_container_enum_ethtool_phys_id_state ; struct net_device *ldv_1_container_net_device ; struct ethtool_cmd *ldv_1_container_struct_ethtool_cmd_ptr ; struct ethtool_coalesce *ldv_1_container_struct_ethtool_coalesce_ptr ; struct ethtool_drvinfo *ldv_1_container_struct_ethtool_drvinfo_ptr ; struct ethtool_eeprom *ldv_1_container_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_1_container_struct_ethtool_modinfo_ptr ; struct ethtool_pauseparam *ldv_1_container_struct_ethtool_pauseparam_ptr ; struct ethtool_regs *ldv_1_container_struct_ethtool_regs_ptr ; struct ethtool_ringparam *ldv_1_container_struct_ethtool_ringparam_ptr ; struct ethtool_rxnfc *ldv_1_container_struct_ethtool_rxnfc_ptr ; struct ethtool_stats *ldv_1_container_struct_ethtool_stats_ptr ; struct ethtool_test *ldv_1_container_struct_ethtool_test_ptr ; struct ethtool_ts_info *ldv_1_container_struct_ethtool_ts_info_ptr ; struct ethtool_wolinfo *ldv_1_container_struct_ethtool_wolinfo_ptr ; struct ifla_vf_info *ldv_1_container_struct_ifla_vf_info_ptr ; struct ifreq *ldv_1_container_struct_ifreq_ptr ; struct rtnl_link_stats64 *ldv_1_container_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_1_container_struct_sk_buff_ptr ; unsigned char *ldv_1_ldv_param_12_2_default ; unsigned int *ldv_1_ldv_param_21_1_default ; unsigned int *ldv_1_ldv_param_25_2_default ; int ldv_1_ldv_param_29_1_default ; unsigned int ldv_1_ldv_param_32_1_default ; unsigned char *ldv_1_ldv_param_32_2_default ; int ldv_1_ldv_param_37_1_default ; int ldv_1_ldv_param_40_2_default ; int ldv_1_ldv_param_44_1_default ; unsigned short ldv_1_ldv_param_49_2_default ; unsigned int ldv_1_ldv_param_49_3_default ; unsigned long long ldv_1_ldv_param_52_1_default ; int ldv_1_ldv_param_57_1_default ; unsigned char *ldv_1_ldv_param_57_2_default ; int ldv_1_ldv_param_60_1_default ; _Bool ldv_1_ldv_param_60_2_default ; int ldv_1_ldv_param_63_1_default ; unsigned short ldv_1_ldv_param_63_2_default ; unsigned char ldv_1_ldv_param_63_3_default ; unsigned char ldv_1_ldv_param_66_1_default ; unsigned int *ldv_1_ldv_param_74_1_default ; unsigned long long *ldv_1_ldv_param_77_2_default ; unsigned int ldv_1_ldv_param_81_1_default ; unsigned int *ldv_1_ldv_param_87_1_default ; unsigned long long *ldv_1_ldv_param_8_2_default ; int (*ldv_20_callback_notifier_call)(struct notifier_block * , unsigned long , void * ) ; struct notifier_block *ldv_20_container_struct_notifier_block ; unsigned long ldv_20_ldv_param_3_1_default ; void *ldv_20_ldv_param_3_2_default ; struct ptp_clock_request *ldv_21_container_struct_ptp_clock_request_ptr ; struct timespec *ldv_21_container_struct_timespec_ptr ; int ldv_21_ldv_param_12_2_default ; int ldv_21_ldv_param_3_1_default ; long long ldv_21_ldv_param_9_1_default ; struct timer_list *ldv_22_container_timer_list ; unsigned int (*ldv_2_callback_error_detected)(struct pci_dev * , enum pci_channel_state ) ; void (*ldv_2_callback_func_1_ptr)(struct pci_dev * ) ; unsigned int (*ldv_2_callback_slot_reset)(struct pci_dev * ) ; struct pci_driver *ldv_2_container_pci_driver ; struct pci_dev *ldv_2_resource_dev ; enum pci_channel_state ldv_2_resource_enum_pci_channel_state ; struct pm_message ldv_2_resource_pm_message ; struct pci_device_id *ldv_2_resource_struct_pci_device_id_ptr ; int ldv_2_ret_default ; void (*ldv_36_exit_efx_exit_module_default)(void) ; int (*ldv_36_init_efx_init_module_default)(void) ; int ldv_36_ret_default ; struct device *ldv_3_device_device ; struct dev_pm_ops *ldv_3_pm_ops_dev_pm_ops ; struct platform_driver *ldv_4_container_platform_driver ; struct platform_device *ldv_4_ldv_param_14_0_default ; struct platform_device *ldv_4_ldv_param_3_0_default ; int ldv_4_probed_default ; struct device *ldv_5_container_struct_device_ptr ; char *ldv_5_ldv_param_3_2_default ; char *ldv_5_ldv_param_9_2_default ; unsigned long ldv_5_ldv_param_9_3_default ; long (*ldv_6_callback_show)(struct device * , struct device_attribute * , char * ) ; long (*ldv_6_callback_store)(struct device * , struct device_attribute * , char * , unsigned long ) ; struct device_attribute *ldv_6_container_struct_device_attribute ; struct device *ldv_6_container_struct_device_ptr ; char *ldv_6_ldv_param_3_2_default ; char *ldv_6_ldv_param_9_2_default ; unsigned long ldv_6_ldv_param_9_3_default ; unsigned long long (*ldv_7_callback_get_stat)(void * ) ; void *ldv_7_ldv_param_9_0_default ; int ldv_7_ret_default ; unsigned long long (*ldv_8_callback_get_stat)(void * ) ; void *ldv_8_ldv_param_9_0_default ; int ldv_8_ret_default ; struct efx_channel *(*ldv_9_callback_copy)(struct efx_channel * ) ; void (*ldv_9_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_9_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_9_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_9_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_9_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; _Bool (*ldv_9_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; int (*ldv_9_callback_init)(struct efx_nic * ) ; _Bool (*ldv_9_callback_poll)(struct efx_nic * ) ; int (*ldv_9_callback_pre_probe)(struct efx_channel * ) ; void (*ldv_9_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_9_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_9_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_9_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_9_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_9_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_9_callback_test_alive)(struct efx_nic * ) ; char *(*ldv_9_callback_test_name)(struct efx_nic * , unsigned int ) ; struct efx_phy_operations *ldv_9_container_struct_efx_phy_operations ; long long ldv_9_ldv_param_104_1_default ; unsigned long ldv_9_ldv_param_104_2_default ; unsigned long *ldv_9_ldv_param_104_3_default ; unsigned char *ldv_9_ldv_param_104_4_default ; _Bool ldv_9_ldv_param_114_1_default ; _Bool ldv_9_ldv_param_114_2_default ; unsigned int ldv_9_ldv_param_117_1_default ; int *ldv_9_ldv_param_129_1_default ; unsigned int ldv_9_ldv_param_129_2_default ; unsigned int ldv_9_ldv_param_139_1_default ; unsigned int ldv_9_ldv_param_143_1_default ; unsigned int ldv_9_ldv_param_150_1_default ; unsigned long long *ldv_9_ldv_param_158_1_default ; unsigned char *ldv_9_ldv_param_19_1_default ; int ldv_9_ldv_param_26_1_default ; unsigned int *ldv_9_ldv_param_35_2_default ; unsigned int ldv_9_ldv_param_35_3_default ; unsigned int ldv_9_ldv_param_38_2_default ; _Bool ldv_9_ldv_param_41_2_default ; unsigned int ldv_9_ldv_param_44_2_default ; unsigned int ldv_9_ldv_param_47_1_default ; unsigned int ldv_9_ldv_param_47_2_default ; unsigned char *ldv_9_ldv_param_59_2_default ; char *ldv_9_ldv_param_63_1_default ; unsigned long ldv_9_ldv_param_63_2_default ; int ldv_9_ldv_param_74_0_default ; int ldv_9_ldv_param_77_0_default ; unsigned int *ldv_9_ldv_param_81_0_default ; unsigned long ldv_9_ldv_param_87_2_default ; unsigned long ldv_9_ldv_param_87_3_default ; unsigned long ldv_9_ldv_param_90_2_default ; union efx_dword *ldv_9_ldv_param_90_3_default ; unsigned long ldv_9_ldv_param_90_4_default ; long long ldv_9_ldv_param_95_1_default ; unsigned long ldv_9_ldv_param_95_2_default ; long long ldv_9_ldv_param_99_1_default ; unsigned long ldv_9_ldv_param_99_2_default ; unsigned long *ldv_9_ldv_param_99_3_default ; unsigned char *ldv_9_ldv_param_99_4_default ; enum efx_filter_priority ldv_9_resource_enum_efx_filter_priority ; enum efx_led_mode ldv_9_resource_enum_efx_led_mode ; enum reset_type ldv_9_resource_enum_reset_type ; struct efx_channel *ldv_9_resource_struct_efx_channel_ptr ; struct efx_filter_spec *ldv_9_resource_struct_efx_filter_spec_ptr ; struct efx_mtd_partition *ldv_9_resource_struct_efx_mtd_partition_ptr ; struct efx_nic *ldv_9_resource_struct_efx_nic_ptr ; struct efx_rx_queue *ldv_9_resource_struct_efx_rx_queue_ptr ; struct efx_self_tests *ldv_9_resource_struct_efx_self_tests_ptr ; struct efx_tx_queue *ldv_9_resource_struct_efx_tx_queue_ptr ; struct ethtool_cmd *ldv_9_resource_struct_ethtool_cmd_ptr ; struct ethtool_eeprom *ldv_9_resource_struct_ethtool_eeprom_ptr ; struct ethtool_modinfo *ldv_9_resource_struct_ethtool_modinfo_ptr ; struct ethtool_wolinfo *ldv_9_resource_struct_ethtool_wolinfo_ptr ; struct hwtstamp_config *ldv_9_resource_struct_hwtstamp_config_ptr ; struct mtd_info *ldv_9_resource_struct_mtd_info_ptr ; struct rtnl_link_stats64 *ldv_9_resource_struct_rtnl_link_stats64_ptr ; struct sk_buff *ldv_9_resource_struct_sk_buff_ptr ; union efx_dword *ldv_9_resource_union_efx_dword_ptr ; union efx_qword *ldv_9_resource_union_efx_qword_ptr ; int ldv_9_ret_default ; int ldv_statevar_0 ; int ldv_statevar_1 ; int ldv_statevar_10 ; int ldv_statevar_11 ; int ldv_statevar_12 ; int ldv_statevar_13 ; int ldv_statevar_14 ; int ldv_statevar_15 ; int ldv_statevar_16 ; int ldv_statevar_17 ; int ldv_statevar_18 ; int ldv_statevar_19 ; int ldv_statevar_2 ; int ldv_statevar_20 ; int ldv_statevar_21 ; int ldv_statevar_22 ; int ldv_statevar_3 ; int ldv_statevar_36 ; int ldv_statevar_4 ; int ldv_statevar_5 ; int ldv_statevar_6 ; int ldv_statevar_7 ; int ldv_statevar_8 ; int ldv_statevar_9 ; struct efx_channel *(*ldv_10_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); struct efx_channel *(*ldv_11_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); struct efx_channel *(*ldv_12_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); struct efx_channel *(*ldv_13_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); struct efx_channel *(*ldv_14_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); _Bool (*ldv_14_callback_poll)(struct efx_nic * ) = & efx_port_dummy_op_poll; int (*ldv_14_callback_reconfigure)(struct efx_nic * ) = & efx_port_dummy_op_int; struct efx_channel *(*ldv_15_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); _Bool (*ldv_15_callback_poll)(struct efx_nic * ) = & efx_port_dummy_op_poll; int (*ldv_15_callback_reconfigure)(struct efx_nic * ) = & efx_port_dummy_op_int; struct efx_channel *(*ldv_16_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); _Bool (*ldv_16_callback_poll)(struct efx_nic * ) = & efx_port_dummy_op_poll; int (*ldv_16_callback_reconfigure)(struct efx_nic * ) = & efx_port_dummy_op_int; struct efx_channel *(*ldv_17_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); _Bool (*ldv_17_callback_poll)(struct efx_nic * ) = & efx_port_dummy_op_poll; int (*ldv_17_callback_reconfigure)(struct efx_nic * ) = & efx_port_dummy_op_int; struct efx_channel *(*ldv_18_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); _Bool (*ldv_18_callback_poll)(struct efx_nic * ) = & efx_port_dummy_op_poll; int (*ldv_18_callback_reconfigure)(struct efx_nic * ) = & efx_port_dummy_op_int; int (*ldv_1_callback_ndo_change_mtu)(struct net_device * , int ) = & efx_change_mtu; int (*ldv_1_callback_ndo_do_ioctl)(struct net_device * , struct ifreq * , int ) = & efx_ioctl; struct rtnl_link_stats64 *(*ldv_1_callback_ndo_get_stats64)(struct net_device * , struct rtnl_link_stats64 * ) = & efx_net_stats; int (*ldv_1_callback_ndo_get_vf_config)(struct net_device * , int , struct ifla_vf_info * ) = & efx_sriov_get_vf_config; int (*ldv_1_callback_ndo_open)(struct net_device * ) = & efx_net_open; void (*ldv_1_callback_ndo_poll_controller)(struct net_device * ) = & efx_netpoll; int (*ldv_1_callback_ndo_rx_flow_steer)(struct net_device * , struct sk_buff * , unsigned short , unsigned int ) = (int (*)(struct net_device * , struct sk_buff * , unsigned short , unsigned int ))(& efx_filter_rfs); int (*ldv_1_callback_ndo_set_features)(struct net_device * , unsigned long long ) = & efx_set_features; int (*ldv_1_callback_ndo_set_mac_address)(struct net_device * , void * ) = & efx_set_mac_address; void (*ldv_1_callback_ndo_set_rx_mode)(struct net_device * ) = & efx_set_rx_mode; int (*ldv_1_callback_ndo_set_vf_mac)(struct net_device * , int , unsigned char * ) = & efx_sriov_set_vf_mac; int (*ldv_1_callback_ndo_set_vf_spoofchk)(struct net_device * , int , _Bool ) = & efx_sriov_set_vf_spoofchk; int (*ldv_1_callback_ndo_set_vf_vlan)(struct net_device * , int , unsigned short , unsigned char ) = & efx_sriov_set_vf_vlan; int (*ldv_1_callback_ndo_setup_tc)(struct net_device * , unsigned char ) = & efx_setup_tc; enum netdev_tx (*ldv_1_callback_ndo_start_xmit)(struct sk_buff * , struct net_device * ) = & efx_hard_start_xmit; int (*ldv_1_callback_ndo_stop)(struct net_device * ) = & efx_net_stop; void (*ldv_1_callback_ndo_tx_timeout)(struct net_device * ) = & efx_watchdog; int (*ldv_1_callback_ndo_validate_addr)(struct net_device * ) = & eth_validate_addr; int (*ldv_20_callback_notifier_call)(struct notifier_block * , unsigned long , void * ) = & efx_netdev_event; unsigned int (*ldv_2_callback_error_detected)(struct pci_dev * , enum pci_channel_state ) = & efx_io_error_detected; void (*ldv_2_callback_func_1_ptr)(struct pci_dev * ) = & efx_io_resume; unsigned int (*ldv_2_callback_slot_reset)(struct pci_dev * ) = & efx_io_slot_reset; void (*ldv_36_exit_efx_exit_module_default)(void) = & efx_exit_module; int (*ldv_36_init_efx_init_module_default)(void) = & efx_init_module; long (*ldv_6_callback_show)(struct device * , struct device_attribute * , char * ) = & show_phy_type; struct efx_channel *(*ldv_9_callback_copy)(struct efx_channel * ) = (struct efx_channel *(*)(struct efx_channel * ))(& efx_copy_channel); int (*ldv_9_callback_init)(struct efx_nic * ) = & efx_port_dummy_op_int; _Bool (*ldv_9_callback_poll)(struct efx_nic * ) = & efx_port_dummy_op_poll; int (*ldv_9_callback_pre_probe)(struct efx_channel * ) = & efx_channel_dummy_op_int; int (*ldv_9_callback_reconfigure)(struct efx_nic * ) = & efx_port_dummy_op_int; void ldv_EMGentry_exit_efx_exit_module_36_2(void (*arg0)(void) ) { { { efx_exit_module(); } return; } } int ldv_EMGentry_init_efx_init_module_36_18(int (*arg0)(void) ) { int tmp ; { { tmp = efx_init_module(); } return (tmp); } } int ldv___pci_register_driver(int arg0 , struct pci_driver *arg1 , struct module *arg2 , char *arg3 ) { struct pci_driver *ldv_32_pci_driver_pci_driver ; int tmp ; { { tmp = ldv_undef_int(); } if (tmp != 0) { { ldv_assume(arg0 == 0); ldv_32_pci_driver_pci_driver = arg1; ldv_assume(ldv_statevar_2 == 20); ldv_dispatch_register_32_2(ldv_32_pci_driver_pci_driver); } return (arg0); } else { { ldv_assume(arg0 != 0); } return (arg0); } return (arg0); } } struct net_device *ldv_alloc_etherdev_mqs(struct net_device *arg0 , int arg1 , unsigned int arg2 , unsigned int arg3 ) { struct net_device *ldv_23_netdev_net_device ; void *tmp ; int tmp___0 ; { { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { { tmp = ldv_xmalloc(3200UL); ldv_23_netdev_net_device = (struct net_device *)tmp; } return (ldv_23_netdev_net_device); return (arg0); } else { return ((struct net_device *)0); return (arg0); } return (arg0); } } void ldv_allocate_external_0(void) { void *tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; void *tmp___29 ; void *tmp___30 ; void *tmp___31 ; void *tmp___32 ; void *tmp___33 ; void *tmp___34 ; void *tmp___35 ; void *tmp___36 ; void *tmp___37 ; void *tmp___38 ; void *tmp___39 ; void *tmp___40 ; void *tmp___41 ; void *tmp___42 ; void *tmp___43 ; void *tmp___44 ; void *tmp___45 ; void *tmp___46 ; void *tmp___47 ; void *tmp___48 ; void *tmp___49 ; void *tmp___50 ; void *tmp___51 ; void *tmp___52 ; void *tmp___53 ; void *tmp___54 ; void *tmp___55 ; void *tmp___56 ; void *tmp___57 ; void *tmp___58 ; void *tmp___59 ; void *tmp___60 ; void *tmp___61 ; void *tmp___62 ; void *tmp___63 ; void *tmp___64 ; void *tmp___65 ; void *tmp___66 ; void *tmp___67 ; void *tmp___68 ; void *tmp___69 ; void *tmp___70 ; void *tmp___71 ; void *tmp___72 ; void *tmp___73 ; void *tmp___74 ; void *tmp___75 ; void *tmp___76 ; void *tmp___77 ; void *tmp___78 ; void *tmp___79 ; void *tmp___80 ; void *tmp___81 ; void *tmp___82 ; void *tmp___83 ; void *tmp___84 ; void *tmp___85 ; void *tmp___86 ; void *tmp___87 ; void *tmp___88 ; void *tmp___89 ; void *tmp___90 ; void *tmp___91 ; void *tmp___92 ; void *tmp___93 ; void *tmp___94 ; void *tmp___95 ; void *tmp___96 ; void *tmp___97 ; void *tmp___98 ; void *tmp___99 ; void *tmp___100 ; void *tmp___101 ; void *tmp___102 ; void *tmp___103 ; void *tmp___104 ; void *tmp___105 ; void *tmp___106 ; void *tmp___107 ; void *tmp___108 ; void *tmp___109 ; void *tmp___110 ; void *tmp___111 ; void *tmp___112 ; void *tmp___113 ; void *tmp___114 ; void *tmp___115 ; void *tmp___116 ; void *tmp___117 ; void *tmp___118 ; void *tmp___119 ; void *tmp___120 ; void *tmp___121 ; void *tmp___122 ; void *tmp___123 ; void *tmp___124 ; void *tmp___125 ; void *tmp___126 ; void *tmp___127 ; void *tmp___128 ; void *tmp___129 ; void *tmp___130 ; void *tmp___131 ; void *tmp___132 ; void *tmp___133 ; void *tmp___134 ; void *tmp___135 ; void *tmp___136 ; void *tmp___137 ; void *tmp___138 ; void *tmp___139 ; void *tmp___140 ; void *tmp___141 ; void *tmp___142 ; void *tmp___143 ; void *tmp___144 ; void *tmp___145 ; void *tmp___146 ; void *tmp___147 ; void *tmp___148 ; void *tmp___149 ; void *tmp___150 ; void *tmp___151 ; void *tmp___152 ; void *tmp___153 ; void *tmp___154 ; void *tmp___155 ; void *tmp___156 ; void *tmp___157 ; void *tmp___158 ; void *tmp___159 ; void *tmp___160 ; void *tmp___161 ; void *tmp___162 ; void *tmp___163 ; void *tmp___164 ; void *tmp___165 ; void *tmp___166 ; void *tmp___167 ; void *tmp___168 ; void *tmp___169 ; void *tmp___170 ; void *tmp___171 ; void *tmp___172 ; void *tmp___173 ; void *tmp___174 ; void *tmp___175 ; void *tmp___176 ; void *tmp___177 ; void *tmp___178 ; void *tmp___179 ; void *tmp___180 ; void *tmp___181 ; void *tmp___182 ; void *tmp___183 ; void *tmp___184 ; void *tmp___185 ; void *tmp___186 ; void *tmp___187 ; void *tmp___188 ; void *tmp___189 ; void *tmp___190 ; void *tmp___191 ; void *tmp___192 ; void *tmp___193 ; void *tmp___194 ; void *tmp___195 ; void *tmp___196 ; void *tmp___197 ; void *tmp___198 ; void *tmp___199 ; void *tmp___200 ; void *tmp___201 ; void *tmp___202 ; void *tmp___203 ; void *tmp___204 ; void *tmp___205 ; void *tmp___206 ; void *tmp___207 ; void *tmp___208 ; void *tmp___209 ; void *tmp___210 ; void *tmp___211 ; void *tmp___212 ; void *tmp___213 ; void *tmp___214 ; void *tmp___215 ; void *tmp___216 ; void *tmp___217 ; void *tmp___218 ; void *tmp___219 ; void *tmp___220 ; void *tmp___221 ; void *tmp___222 ; void *tmp___223 ; void *tmp___224 ; void *tmp___225 ; void *tmp___226 ; void *tmp___227 ; void *tmp___228 ; void *tmp___229 ; void *tmp___230 ; void *tmp___231 ; void *tmp___232 ; void *tmp___233 ; void *tmp___234 ; void *tmp___235 ; void *tmp___236 ; void *tmp___237 ; void *tmp___238 ; void *tmp___239 ; void *tmp___240 ; void *tmp___241 ; void *tmp___242 ; void *tmp___243 ; void *tmp___244 ; void *tmp___245 ; void *tmp___246 ; void *tmp___247 ; void *tmp___248 ; void *tmp___249 ; void *tmp___250 ; void *tmp___251 ; void *tmp___252 ; void *tmp___253 ; void *tmp___254 ; void *tmp___255 ; void *tmp___256 ; void *tmp___257 ; void *tmp___258 ; void *tmp___259 ; void *tmp___260 ; void *tmp___261 ; void *tmp___262 ; void *tmp___263 ; void *tmp___264 ; void *tmp___265 ; void *tmp___266 ; void *tmp___267 ; void *tmp___268 ; void *tmp___269 ; void *tmp___270 ; void *tmp___271 ; void *tmp___272 ; void *tmp___273 ; void *tmp___274 ; void *tmp___275 ; void *tmp___276 ; void *tmp___277 ; void *tmp___278 ; void *tmp___279 ; void *tmp___280 ; void *tmp___281 ; void *tmp___282 ; void *tmp___283 ; void *tmp___284 ; void *tmp___285 ; void *tmp___286 ; void *tmp___287 ; void *tmp___288 ; void *tmp___289 ; void *tmp___290 ; void *tmp___291 ; void *tmp___292 ; void *tmp___293 ; void *tmp___294 ; void *tmp___295 ; void *tmp___296 ; void *tmp___297 ; void *tmp___298 ; void *tmp___299 ; void *tmp___300 ; void *tmp___301 ; void *tmp___302 ; void *tmp___303 ; void *tmp___304 ; void *tmp___305 ; void *tmp___306 ; void *tmp___307 ; void *tmp___308 ; void *tmp___309 ; void *tmp___310 ; void *tmp___311 ; void *tmp___312 ; void *tmp___313 ; void *tmp___314 ; void *tmp___315 ; void *tmp___316 ; void *tmp___317 ; void *tmp___318 ; void *tmp___319 ; void *tmp___320 ; void *tmp___321 ; void *tmp___322 ; void *tmp___323 ; void *tmp___324 ; void *tmp___325 ; void *tmp___326 ; void *tmp___327 ; void *tmp___328 ; void *tmp___329 ; void *tmp___330 ; void *tmp___331 ; void *tmp___332 ; void *tmp___333 ; void *tmp___334 ; void *tmp___335 ; void *tmp___336 ; void *tmp___337 ; void *tmp___338 ; void *tmp___339 ; void *tmp___340 ; void *tmp___341 ; void *tmp___342 ; void *tmp___343 ; void *tmp___344 ; void *tmp___345 ; void *tmp___346 ; void *tmp___347 ; void *tmp___348 ; void *tmp___349 ; void *tmp___350 ; void *tmp___351 ; void *tmp___352 ; void *tmp___353 ; void *tmp___354 ; void *tmp___355 ; void *tmp___356 ; void *tmp___357 ; void *tmp___358 ; void *tmp___359 ; void *tmp___360 ; void *tmp___361 ; void *tmp___362 ; void *tmp___363 ; void *tmp___364 ; void *tmp___365 ; void *tmp___366 ; void *tmp___367 ; void *tmp___368 ; void *tmp___369 ; void *tmp___370 ; void *tmp___371 ; void *tmp___372 ; void *tmp___373 ; void *tmp___374 ; void *tmp___375 ; void *tmp___376 ; void *tmp___377 ; void *tmp___378 ; void *tmp___379 ; void *tmp___380 ; void *tmp___381 ; void *tmp___382 ; void *tmp___383 ; void *tmp___384 ; void *tmp___385 ; void *tmp___386 ; void *tmp___387 ; void *tmp___388 ; void *tmp___389 ; void *tmp___390 ; void *tmp___391 ; void *tmp___392 ; void *tmp___393 ; void *tmp___394 ; void *tmp___395 ; void *tmp___396 ; void *tmp___397 ; void *tmp___398 ; void *tmp___399 ; void *tmp___400 ; void *tmp___401 ; void *tmp___402 ; void *tmp___403 ; void *tmp___404 ; void *tmp___405 ; void *tmp___406 ; void *tmp___407 ; void *tmp___408 ; void *tmp___409 ; void *tmp___410 ; void *tmp___411 ; void *tmp___412 ; void *tmp___413 ; void *tmp___414 ; void *tmp___415 ; void *tmp___416 ; void *tmp___417 ; void *tmp___418 ; void *tmp___419 ; void *tmp___420 ; void *tmp___421 ; void *tmp___422 ; void *tmp___423 ; void *tmp___424 ; void *tmp___425 ; void *tmp___426 ; void *tmp___427 ; void *tmp___428 ; void *tmp___429 ; void *tmp___430 ; void *tmp___431 ; void *tmp___432 ; void *tmp___433 ; void *tmp___434 ; void *tmp___435 ; void *tmp___436 ; void *tmp___437 ; void *tmp___438 ; void *tmp___439 ; void *tmp___440 ; void *tmp___441 ; void *tmp___442 ; void *tmp___443 ; void *tmp___444 ; void *tmp___445 ; void *tmp___446 ; { { tmp = external_allocated_data(); ldv_0_callback_handler = (enum irqreturn (*)(int , void * ))tmp; ldv_0_data_data = external_allocated_data(); tmp___0 = external_allocated_data(); ldv_0_thread_thread = (enum irqreturn (*)(int , void * ))tmp___0; tmp___1 = external_allocated_data(); ldv_1_container_net_device = (struct net_device *)tmp___1; tmp___2 = external_allocated_data(); ldv_1_container_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___2; tmp___3 = external_allocated_data(); ldv_1_container_struct_ethtool_coalesce_ptr = (struct ethtool_coalesce *)tmp___3; tmp___4 = external_allocated_data(); ldv_1_container_struct_ethtool_drvinfo_ptr = (struct ethtool_drvinfo *)tmp___4; tmp___5 = external_allocated_data(); ldv_1_container_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___5; tmp___6 = external_allocated_data(); ldv_1_container_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___6; tmp___7 = external_allocated_data(); ldv_1_container_struct_ethtool_pauseparam_ptr = (struct ethtool_pauseparam *)tmp___7; tmp___8 = external_allocated_data(); ldv_1_container_struct_ethtool_regs_ptr = (struct ethtool_regs *)tmp___8; tmp___9 = external_allocated_data(); ldv_1_container_struct_ethtool_ringparam_ptr = (struct ethtool_ringparam *)tmp___9; tmp___10 = external_allocated_data(); ldv_1_container_struct_ethtool_rxnfc_ptr = (struct ethtool_rxnfc *)tmp___10; tmp___11 = external_allocated_data(); ldv_1_container_struct_ethtool_stats_ptr = (struct ethtool_stats *)tmp___11; tmp___12 = external_allocated_data(); ldv_1_container_struct_ethtool_test_ptr = (struct ethtool_test *)tmp___12; tmp___13 = external_allocated_data(); ldv_1_container_struct_ethtool_ts_info_ptr = (struct ethtool_ts_info *)tmp___13; tmp___14 = external_allocated_data(); ldv_1_container_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___14; tmp___15 = external_allocated_data(); ldv_1_container_struct_ifla_vf_info_ptr = (struct ifla_vf_info *)tmp___15; tmp___16 = external_allocated_data(); ldv_1_container_struct_ifreq_ptr = (struct ifreq *)tmp___16; tmp___17 = external_allocated_data(); ldv_1_container_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___17; tmp___18 = external_allocated_data(); ldv_1_container_struct_sk_buff_ptr = (struct sk_buff *)tmp___18; tmp___19 = external_allocated_data(); ldv_1_ldv_param_12_2_default = (unsigned char *)tmp___19; tmp___20 = external_allocated_data(); ldv_1_ldv_param_21_1_default = (unsigned int *)tmp___20; tmp___21 = external_allocated_data(); ldv_1_ldv_param_25_2_default = (unsigned int *)tmp___21; tmp___22 = external_allocated_data(); ldv_1_ldv_param_32_2_default = (unsigned char *)tmp___22; tmp___23 = external_allocated_data(); ldv_1_ldv_param_57_2_default = (unsigned char *)tmp___23; tmp___24 = external_allocated_data(); ldv_1_ldv_param_74_1_default = (unsigned int *)tmp___24; tmp___25 = external_allocated_data(); ldv_1_ldv_param_77_2_default = (unsigned long long *)tmp___25; tmp___26 = external_allocated_data(); ldv_1_ldv_param_87_1_default = (unsigned int *)tmp___26; tmp___27 = external_allocated_data(); ldv_1_ldv_param_8_2_default = (unsigned long long *)tmp___27; tmp___28 = external_allocated_data(); ldv_2_resource_dev = (struct pci_dev *)tmp___28; tmp___29 = external_allocated_data(); ldv_3_device_device = (struct device *)tmp___29; tmp___30 = external_allocated_data(); ldv_4_container_platform_driver = (struct platform_driver *)tmp___30; tmp___31 = external_allocated_data(); ldv_4_ldv_param_14_0_default = (struct platform_device *)tmp___31; tmp___32 = external_allocated_data(); ldv_4_ldv_param_3_0_default = (struct platform_device *)tmp___32; tmp___33 = external_allocated_data(); ldv_5_container_struct_device_ptr = (struct device *)tmp___33; tmp___34 = external_allocated_data(); ldv_5_ldv_param_3_2_default = (char *)tmp___34; tmp___35 = external_allocated_data(); ldv_5_ldv_param_9_2_default = (char *)tmp___35; tmp___36 = external_allocated_data(); ldv_6_callback_store = (long (*)(struct device * , struct device_attribute * , char * , unsigned long ))tmp___36; tmp___37 = external_allocated_data(); ldv_6_container_struct_device_ptr = (struct device *)tmp___37; tmp___38 = external_allocated_data(); ldv_6_ldv_param_3_2_default = (char *)tmp___38; tmp___39 = external_allocated_data(); ldv_6_ldv_param_9_2_default = (char *)tmp___39; ldv_7_ldv_param_9_0_default = external_allocated_data(); ldv_8_ldv_param_9_0_default = external_allocated_data(); tmp___40 = external_allocated_data(); ldv_9_callback_finish_flush = (void (*)(struct efx_nic * ))tmp___40; tmp___41 = external_allocated_data(); ldv_9_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___41; tmp___42 = external_allocated_data(); ldv_9_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___42; tmp___43 = external_allocated_data(); ldv_9_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___43; tmp___44 = external_allocated_data(); ldv_9_callback_get_settings = (void (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___44; tmp___45 = external_allocated_data(); ldv_9_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___45; tmp___46 = external_allocated_data(); ldv_9_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___46; tmp___47 = external_allocated_data(); ldv_9_callback_prepare_flush = (void (*)(struct efx_nic * ))tmp___47; tmp___48 = external_allocated_data(); ldv_9_callback_run_tests = (int (*)(struct efx_nic * , int * , unsigned int ))tmp___48; tmp___49 = external_allocated_data(); ldv_9_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___49; tmp___50 = external_allocated_data(); ldv_9_callback_set_settings = (int (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___50; tmp___51 = external_allocated_data(); ldv_9_callback_test_alive = (int (*)(struct efx_nic * ))tmp___51; tmp___52 = external_allocated_data(); ldv_9_callback_test_name = (char *(*)(struct efx_nic * , unsigned int ))tmp___52; tmp___53 = external_allocated_data(); ldv_9_ldv_param_104_3_default = (unsigned long *)tmp___53; tmp___54 = external_allocated_data(); ldv_9_ldv_param_104_4_default = (unsigned char *)tmp___54; tmp___55 = external_allocated_data(); ldv_9_ldv_param_129_1_default = (int *)tmp___55; tmp___56 = external_allocated_data(); ldv_9_ldv_param_158_1_default = (unsigned long long *)tmp___56; tmp___57 = external_allocated_data(); ldv_9_ldv_param_19_1_default = (unsigned char *)tmp___57; tmp___58 = external_allocated_data(); ldv_9_ldv_param_35_2_default = (unsigned int *)tmp___58; tmp___59 = external_allocated_data(); ldv_9_ldv_param_59_2_default = (unsigned char *)tmp___59; tmp___60 = external_allocated_data(); ldv_9_ldv_param_63_1_default = (char *)tmp___60; tmp___61 = external_allocated_data(); ldv_9_ldv_param_81_0_default = (unsigned int *)tmp___61; tmp___62 = external_allocated_data(); ldv_9_ldv_param_90_3_default = (union efx_dword *)tmp___62; tmp___63 = external_allocated_data(); ldv_9_ldv_param_99_3_default = (unsigned long *)tmp___63; tmp___64 = external_allocated_data(); ldv_9_ldv_param_99_4_default = (unsigned char *)tmp___64; tmp___65 = external_allocated_data(); ldv_9_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___65; tmp___66 = external_allocated_data(); ldv_9_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___66; tmp___67 = external_allocated_data(); ldv_9_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___67; tmp___68 = external_allocated_data(); ldv_9_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___68; tmp___69 = external_allocated_data(); ldv_9_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___69; tmp___70 = external_allocated_data(); ldv_9_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___70; tmp___71 = external_allocated_data(); ldv_9_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___71; tmp___72 = external_allocated_data(); ldv_9_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___72; tmp___73 = external_allocated_data(); ldv_9_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___73; tmp___74 = external_allocated_data(); ldv_9_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___74; tmp___75 = external_allocated_data(); ldv_9_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___75; tmp___76 = external_allocated_data(); ldv_9_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___76; tmp___77 = external_allocated_data(); ldv_9_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___77; tmp___78 = external_allocated_data(); ldv_9_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___78; tmp___79 = external_allocated_data(); ldv_9_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___79; tmp___80 = external_allocated_data(); ldv_9_resource_union_efx_dword_ptr = (union efx_dword *)tmp___80; tmp___81 = external_allocated_data(); ldv_9_resource_union_efx_qword_ptr = (union efx_qword *)tmp___81; tmp___82 = external_allocated_data(); ldv_10_callback_filter_rfs_expire_one = (_Bool (*)(struct efx_nic * , unsigned int , unsigned int ))tmp___82; tmp___83 = external_allocated_data(); ldv_10_callback_filter_rfs_insert = (int (*)(struct efx_nic * , struct efx_filter_spec * ))tmp___83; tmp___84 = external_allocated_data(); ldv_10_callback_filter_update_rx_scatter = (void (*)(struct efx_nic * ))tmp___84; tmp___85 = external_allocated_data(); ldv_10_callback_mcdi_poll_reboot = (int (*)(struct efx_nic * ))tmp___85; tmp___86 = external_allocated_data(); ldv_10_callback_mcdi_poll_response = (_Bool (*)(struct efx_nic * ))tmp___86; tmp___87 = external_allocated_data(); ldv_10_callback_mcdi_read_response = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ))tmp___87; tmp___88 = external_allocated_data(); ldv_10_callback_mcdi_request = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))tmp___88; tmp___89 = external_allocated_data(); ldv_10_callback_ptp_set_ts_config = (int (*)(struct efx_nic * , struct hwtstamp_config * ))tmp___89; tmp___90 = external_allocated_data(); ldv_10_callback_ptp_set_ts_sync_events = (int (*)(struct efx_nic * , _Bool , _Bool ))tmp___90; tmp___91 = external_allocated_data(); ldv_10_callback_ptp_write_host_time = (void (*)(struct efx_nic * , unsigned int ))tmp___91; tmp___92 = external_allocated_data(); ldv_10_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___92; tmp___93 = external_allocated_data(); ldv_10_callback_test_chip = (int (*)(struct efx_nic * , struct efx_self_tests * ))tmp___93; tmp___94 = external_allocated_data(); ldv_10_ldv_param_104_3_default = (unsigned long *)tmp___94; tmp___95 = external_allocated_data(); ldv_10_ldv_param_104_4_default = (unsigned char *)tmp___95; tmp___96 = external_allocated_data(); ldv_10_ldv_param_129_1_default = (int *)tmp___96; tmp___97 = external_allocated_data(); ldv_10_ldv_param_158_1_default = (unsigned long long *)tmp___97; tmp___98 = external_allocated_data(); ldv_10_ldv_param_19_1_default = (unsigned char *)tmp___98; tmp___99 = external_allocated_data(); ldv_10_ldv_param_35_2_default = (unsigned int *)tmp___99; tmp___100 = external_allocated_data(); ldv_10_ldv_param_59_2_default = (unsigned char *)tmp___100; tmp___101 = external_allocated_data(); ldv_10_ldv_param_63_1_default = (char *)tmp___101; tmp___102 = external_allocated_data(); ldv_10_ldv_param_81_0_default = (unsigned int *)tmp___102; tmp___103 = external_allocated_data(); ldv_10_ldv_param_90_3_default = (union efx_dword *)tmp___103; tmp___104 = external_allocated_data(); ldv_10_ldv_param_99_3_default = (unsigned long *)tmp___104; tmp___105 = external_allocated_data(); ldv_10_ldv_param_99_4_default = (unsigned char *)tmp___105; tmp___106 = external_allocated_data(); ldv_10_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___106; tmp___107 = external_allocated_data(); ldv_10_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___107; tmp___108 = external_allocated_data(); ldv_10_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___108; tmp___109 = external_allocated_data(); ldv_10_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___109; tmp___110 = external_allocated_data(); ldv_10_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___110; tmp___111 = external_allocated_data(); ldv_10_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___111; tmp___112 = external_allocated_data(); ldv_10_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___112; tmp___113 = external_allocated_data(); ldv_10_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___113; tmp___114 = external_allocated_data(); ldv_10_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___114; tmp___115 = external_allocated_data(); ldv_10_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___115; tmp___116 = external_allocated_data(); ldv_10_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___116; tmp___117 = external_allocated_data(); ldv_10_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___117; tmp___118 = external_allocated_data(); ldv_10_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___118; tmp___119 = external_allocated_data(); ldv_10_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___119; tmp___120 = external_allocated_data(); ldv_10_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___120; tmp___121 = external_allocated_data(); ldv_10_resource_union_efx_dword_ptr = (union efx_dword *)tmp___121; tmp___122 = external_allocated_data(); ldv_10_resource_union_efx_qword_ptr = (union efx_qword *)tmp___122; tmp___123 = external_allocated_data(); ldv_11_callback_mcdi_poll_reboot = (int (*)(struct efx_nic * ))tmp___123; tmp___124 = external_allocated_data(); ldv_11_callback_mcdi_poll_response = (_Bool (*)(struct efx_nic * ))tmp___124; tmp___125 = external_allocated_data(); ldv_11_callback_mcdi_read_response = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ))tmp___125; tmp___126 = external_allocated_data(); ldv_11_callback_mcdi_request = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))tmp___126; tmp___127 = external_allocated_data(); ldv_11_callback_ptp_set_ts_config = (int (*)(struct efx_nic * , struct hwtstamp_config * ))tmp___127; tmp___128 = external_allocated_data(); ldv_11_callback_ptp_set_ts_sync_events = (int (*)(struct efx_nic * , _Bool , _Bool ))tmp___128; tmp___129 = external_allocated_data(); ldv_11_callback_ptp_write_host_time = (void (*)(struct efx_nic * , unsigned int ))tmp___129; tmp___130 = external_allocated_data(); ldv_11_callback_run_tests = (int (*)(struct efx_nic * , int * , unsigned int ))tmp___130; tmp___131 = external_allocated_data(); ldv_11_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___131; tmp___132 = external_allocated_data(); ldv_11_callback_test_name = (char *(*)(struct efx_nic * , unsigned int ))tmp___132; tmp___133 = external_allocated_data(); ldv_11_ldv_param_104_3_default = (unsigned long *)tmp___133; tmp___134 = external_allocated_data(); ldv_11_ldv_param_104_4_default = (unsigned char *)tmp___134; tmp___135 = external_allocated_data(); ldv_11_ldv_param_129_1_default = (int *)tmp___135; tmp___136 = external_allocated_data(); ldv_11_ldv_param_158_1_default = (unsigned long long *)tmp___136; tmp___137 = external_allocated_data(); ldv_11_ldv_param_19_1_default = (unsigned char *)tmp___137; tmp___138 = external_allocated_data(); ldv_11_ldv_param_35_2_default = (unsigned int *)tmp___138; tmp___139 = external_allocated_data(); ldv_11_ldv_param_59_2_default = (unsigned char *)tmp___139; tmp___140 = external_allocated_data(); ldv_11_ldv_param_63_1_default = (char *)tmp___140; tmp___141 = external_allocated_data(); ldv_11_ldv_param_81_0_default = (unsigned int *)tmp___141; tmp___142 = external_allocated_data(); ldv_11_ldv_param_90_3_default = (union efx_dword *)tmp___142; tmp___143 = external_allocated_data(); ldv_11_ldv_param_99_3_default = (unsigned long *)tmp___143; tmp___144 = external_allocated_data(); ldv_11_ldv_param_99_4_default = (unsigned char *)tmp___144; tmp___145 = external_allocated_data(); ldv_11_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___145; tmp___146 = external_allocated_data(); ldv_11_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___146; tmp___147 = external_allocated_data(); ldv_11_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___147; tmp___148 = external_allocated_data(); ldv_11_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___148; tmp___149 = external_allocated_data(); ldv_11_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___149; tmp___150 = external_allocated_data(); ldv_11_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___150; tmp___151 = external_allocated_data(); ldv_11_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___151; tmp___152 = external_allocated_data(); ldv_11_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___152; tmp___153 = external_allocated_data(); ldv_11_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___153; tmp___154 = external_allocated_data(); ldv_11_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___154; tmp___155 = external_allocated_data(); ldv_11_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___155; tmp___156 = external_allocated_data(); ldv_11_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___156; tmp___157 = external_allocated_data(); ldv_11_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___157; tmp___158 = external_allocated_data(); ldv_11_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___158; tmp___159 = external_allocated_data(); ldv_11_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___159; tmp___160 = external_allocated_data(); ldv_11_resource_union_efx_dword_ptr = (union efx_dword *)tmp___160; tmp___161 = external_allocated_data(); ldv_11_resource_union_efx_qword_ptr = (union efx_qword *)tmp___161; tmp___162 = external_allocated_data(); ldv_12_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___162; tmp___163 = external_allocated_data(); ldv_12_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___163; tmp___164 = external_allocated_data(); ldv_12_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___164; tmp___165 = external_allocated_data(); ldv_12_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___165; tmp___166 = external_allocated_data(); ldv_12_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___166; tmp___167 = external_allocated_data(); ldv_12_callback_ptp_set_ts_sync_events = (int (*)(struct efx_nic * , _Bool , _Bool ))tmp___167; tmp___168 = external_allocated_data(); ldv_12_ldv_param_104_3_default = (unsigned long *)tmp___168; tmp___169 = external_allocated_data(); ldv_12_ldv_param_104_4_default = (unsigned char *)tmp___169; tmp___170 = external_allocated_data(); ldv_12_ldv_param_129_1_default = (int *)tmp___170; tmp___171 = external_allocated_data(); ldv_12_ldv_param_158_1_default = (unsigned long long *)tmp___171; tmp___172 = external_allocated_data(); ldv_12_ldv_param_19_1_default = (unsigned char *)tmp___172; tmp___173 = external_allocated_data(); ldv_12_ldv_param_35_2_default = (unsigned int *)tmp___173; tmp___174 = external_allocated_data(); ldv_12_ldv_param_59_2_default = (unsigned char *)tmp___174; tmp___175 = external_allocated_data(); ldv_12_ldv_param_63_1_default = (char *)tmp___175; tmp___176 = external_allocated_data(); ldv_12_ldv_param_81_0_default = (unsigned int *)tmp___176; tmp___177 = external_allocated_data(); ldv_12_ldv_param_90_3_default = (union efx_dword *)tmp___177; tmp___178 = external_allocated_data(); ldv_12_ldv_param_99_3_default = (unsigned long *)tmp___178; tmp___179 = external_allocated_data(); ldv_12_ldv_param_99_4_default = (unsigned char *)tmp___179; tmp___180 = external_allocated_data(); ldv_12_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___180; tmp___181 = external_allocated_data(); ldv_12_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___181; tmp___182 = external_allocated_data(); ldv_12_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___182; tmp___183 = external_allocated_data(); ldv_12_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___183; tmp___184 = external_allocated_data(); ldv_12_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___184; tmp___185 = external_allocated_data(); ldv_12_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___185; tmp___186 = external_allocated_data(); ldv_12_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___186; tmp___187 = external_allocated_data(); ldv_12_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___187; tmp___188 = external_allocated_data(); ldv_12_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___188; tmp___189 = external_allocated_data(); ldv_12_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___189; tmp___190 = external_allocated_data(); ldv_12_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___190; tmp___191 = external_allocated_data(); ldv_12_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___191; tmp___192 = external_allocated_data(); ldv_12_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___192; tmp___193 = external_allocated_data(); ldv_12_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___193; tmp___194 = external_allocated_data(); ldv_12_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___194; tmp___195 = external_allocated_data(); ldv_12_resource_union_efx_dword_ptr = (union efx_dword *)tmp___195; tmp___196 = external_allocated_data(); ldv_12_resource_union_efx_qword_ptr = (union efx_qword *)tmp___196; tmp___197 = external_allocated_data(); ldv_13_callback_finish_flush = (void (*)(struct efx_nic * ))tmp___197; tmp___198 = external_allocated_data(); ldv_13_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___198; tmp___199 = external_allocated_data(); ldv_13_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___199; tmp___200 = external_allocated_data(); ldv_13_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___200; tmp___201 = external_allocated_data(); ldv_13_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___201; tmp___202 = external_allocated_data(); ldv_13_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___202; tmp___203 = external_allocated_data(); ldv_13_callback_prepare_flush = (void (*)(struct efx_nic * ))tmp___203; tmp___204 = external_allocated_data(); ldv_13_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___204; tmp___205 = external_allocated_data(); ldv_13_ldv_param_104_3_default = (unsigned long *)tmp___205; tmp___206 = external_allocated_data(); ldv_13_ldv_param_104_4_default = (unsigned char *)tmp___206; tmp___207 = external_allocated_data(); ldv_13_ldv_param_129_1_default = (int *)tmp___207; tmp___208 = external_allocated_data(); ldv_13_ldv_param_158_1_default = (unsigned long long *)tmp___208; tmp___209 = external_allocated_data(); ldv_13_ldv_param_19_1_default = (unsigned char *)tmp___209; tmp___210 = external_allocated_data(); ldv_13_ldv_param_35_2_default = (unsigned int *)tmp___210; tmp___211 = external_allocated_data(); ldv_13_ldv_param_59_2_default = (unsigned char *)tmp___211; tmp___212 = external_allocated_data(); ldv_13_ldv_param_63_1_default = (char *)tmp___212; tmp___213 = external_allocated_data(); ldv_13_ldv_param_81_0_default = (unsigned int *)tmp___213; tmp___214 = external_allocated_data(); ldv_13_ldv_param_90_3_default = (union efx_dword *)tmp___214; tmp___215 = external_allocated_data(); ldv_13_ldv_param_99_3_default = (unsigned long *)tmp___215; tmp___216 = external_allocated_data(); ldv_13_ldv_param_99_4_default = (unsigned char *)tmp___216; tmp___217 = external_allocated_data(); ldv_13_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___217; tmp___218 = external_allocated_data(); ldv_13_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___218; tmp___219 = external_allocated_data(); ldv_13_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___219; tmp___220 = external_allocated_data(); ldv_13_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___220; tmp___221 = external_allocated_data(); ldv_13_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___221; tmp___222 = external_allocated_data(); ldv_13_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___222; tmp___223 = external_allocated_data(); ldv_13_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___223; tmp___224 = external_allocated_data(); ldv_13_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___224; tmp___225 = external_allocated_data(); ldv_13_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___225; tmp___226 = external_allocated_data(); ldv_13_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___226; tmp___227 = external_allocated_data(); ldv_13_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___227; tmp___228 = external_allocated_data(); ldv_13_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___228; tmp___229 = external_allocated_data(); ldv_13_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___229; tmp___230 = external_allocated_data(); ldv_13_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___230; tmp___231 = external_allocated_data(); ldv_13_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___231; tmp___232 = external_allocated_data(); ldv_13_resource_union_efx_dword_ptr = (union efx_dword *)tmp___232; tmp___233 = external_allocated_data(); ldv_13_resource_union_efx_qword_ptr = (union efx_qword *)tmp___233; tmp___234 = external_allocated_data(); ldv_14_callback_finish_flush = (void (*)(struct efx_nic * ))tmp___234; tmp___235 = external_allocated_data(); ldv_14_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___235; tmp___236 = external_allocated_data(); ldv_14_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___236; tmp___237 = external_allocated_data(); ldv_14_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___237; tmp___238 = external_allocated_data(); ldv_14_callback_get_settings = (void (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___238; tmp___239 = external_allocated_data(); ldv_14_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___239; tmp___240 = external_allocated_data(); ldv_14_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___240; tmp___241 = external_allocated_data(); ldv_14_callback_prepare_flush = (void (*)(struct efx_nic * ))tmp___241; tmp___242 = external_allocated_data(); ldv_14_callback_run_tests = (int (*)(struct efx_nic * , int * , unsigned int ))tmp___242; tmp___243 = external_allocated_data(); ldv_14_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___243; tmp___244 = external_allocated_data(); ldv_14_callback_set_settings = (int (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___244; tmp___245 = external_allocated_data(); ldv_14_callback_test_alive = (int (*)(struct efx_nic * ))tmp___245; tmp___246 = external_allocated_data(); ldv_14_callback_test_name = (char *(*)(struct efx_nic * , unsigned int ))tmp___246; tmp___247 = external_allocated_data(); ldv_14_ldv_param_104_3_default = (unsigned long *)tmp___247; tmp___248 = external_allocated_data(); ldv_14_ldv_param_104_4_default = (unsigned char *)tmp___248; tmp___249 = external_allocated_data(); ldv_14_ldv_param_129_1_default = (int *)tmp___249; tmp___250 = external_allocated_data(); ldv_14_ldv_param_158_1_default = (unsigned long long *)tmp___250; tmp___251 = external_allocated_data(); ldv_14_ldv_param_19_1_default = (unsigned char *)tmp___251; tmp___252 = external_allocated_data(); ldv_14_ldv_param_35_2_default = (unsigned int *)tmp___252; tmp___253 = external_allocated_data(); ldv_14_ldv_param_59_2_default = (unsigned char *)tmp___253; tmp___254 = external_allocated_data(); ldv_14_ldv_param_63_1_default = (char *)tmp___254; tmp___255 = external_allocated_data(); ldv_14_ldv_param_81_0_default = (unsigned int *)tmp___255; tmp___256 = external_allocated_data(); ldv_14_ldv_param_90_3_default = (union efx_dword *)tmp___256; tmp___257 = external_allocated_data(); ldv_14_ldv_param_99_3_default = (unsigned long *)tmp___257; tmp___258 = external_allocated_data(); ldv_14_ldv_param_99_4_default = (unsigned char *)tmp___258; tmp___259 = external_allocated_data(); ldv_14_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___259; tmp___260 = external_allocated_data(); ldv_14_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___260; tmp___261 = external_allocated_data(); ldv_14_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___261; tmp___262 = external_allocated_data(); ldv_14_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___262; tmp___263 = external_allocated_data(); ldv_14_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___263; tmp___264 = external_allocated_data(); ldv_14_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___264; tmp___265 = external_allocated_data(); ldv_14_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___265; tmp___266 = external_allocated_data(); ldv_14_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___266; tmp___267 = external_allocated_data(); ldv_14_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___267; tmp___268 = external_allocated_data(); ldv_14_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___268; tmp___269 = external_allocated_data(); ldv_14_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___269; tmp___270 = external_allocated_data(); ldv_14_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___270; tmp___271 = external_allocated_data(); ldv_14_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___271; tmp___272 = external_allocated_data(); ldv_14_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___272; tmp___273 = external_allocated_data(); ldv_14_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___273; tmp___274 = external_allocated_data(); ldv_14_resource_union_efx_dword_ptr = (union efx_dword *)tmp___274; tmp___275 = external_allocated_data(); ldv_14_resource_union_efx_qword_ptr = (union efx_qword *)tmp___275; tmp___276 = external_allocated_data(); ldv_15_callback_finish_flush = (void (*)(struct efx_nic * ))tmp___276; tmp___277 = external_allocated_data(); ldv_15_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___277; tmp___278 = external_allocated_data(); ldv_15_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___278; tmp___279 = external_allocated_data(); ldv_15_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___279; tmp___280 = external_allocated_data(); ldv_15_callback_get_settings = (void (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___280; tmp___281 = external_allocated_data(); ldv_15_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___281; tmp___282 = external_allocated_data(); ldv_15_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___282; tmp___283 = external_allocated_data(); ldv_15_callback_prepare_flush = (void (*)(struct efx_nic * ))tmp___283; tmp___284 = external_allocated_data(); ldv_15_callback_run_tests = (int (*)(struct efx_nic * , int * , unsigned int ))tmp___284; tmp___285 = external_allocated_data(); ldv_15_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___285; tmp___286 = external_allocated_data(); ldv_15_callback_set_settings = (int (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___286; tmp___287 = external_allocated_data(); ldv_15_callback_test_alive = (int (*)(struct efx_nic * ))tmp___287; tmp___288 = external_allocated_data(); ldv_15_callback_test_name = (char *(*)(struct efx_nic * , unsigned int ))tmp___288; tmp___289 = external_allocated_data(); ldv_15_ldv_param_104_3_default = (unsigned long *)tmp___289; tmp___290 = external_allocated_data(); ldv_15_ldv_param_104_4_default = (unsigned char *)tmp___290; tmp___291 = external_allocated_data(); ldv_15_ldv_param_129_1_default = (int *)tmp___291; tmp___292 = external_allocated_data(); ldv_15_ldv_param_158_1_default = (unsigned long long *)tmp___292; tmp___293 = external_allocated_data(); ldv_15_ldv_param_19_1_default = (unsigned char *)tmp___293; tmp___294 = external_allocated_data(); ldv_15_ldv_param_35_2_default = (unsigned int *)tmp___294; tmp___295 = external_allocated_data(); ldv_15_ldv_param_59_2_default = (unsigned char *)tmp___295; tmp___296 = external_allocated_data(); ldv_15_ldv_param_63_1_default = (char *)tmp___296; tmp___297 = external_allocated_data(); ldv_15_ldv_param_81_0_default = (unsigned int *)tmp___297; tmp___298 = external_allocated_data(); ldv_15_ldv_param_90_3_default = (union efx_dword *)tmp___298; tmp___299 = external_allocated_data(); ldv_15_ldv_param_99_3_default = (unsigned long *)tmp___299; tmp___300 = external_allocated_data(); ldv_15_ldv_param_99_4_default = (unsigned char *)tmp___300; tmp___301 = external_allocated_data(); ldv_15_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___301; tmp___302 = external_allocated_data(); ldv_15_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___302; tmp___303 = external_allocated_data(); ldv_15_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___303; tmp___304 = external_allocated_data(); ldv_15_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___304; tmp___305 = external_allocated_data(); ldv_15_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___305; tmp___306 = external_allocated_data(); ldv_15_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___306; tmp___307 = external_allocated_data(); ldv_15_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___307; tmp___308 = external_allocated_data(); ldv_15_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___308; tmp___309 = external_allocated_data(); ldv_15_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___309; tmp___310 = external_allocated_data(); ldv_15_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___310; tmp___311 = external_allocated_data(); ldv_15_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___311; tmp___312 = external_allocated_data(); ldv_15_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___312; tmp___313 = external_allocated_data(); ldv_15_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___313; tmp___314 = external_allocated_data(); ldv_15_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___314; tmp___315 = external_allocated_data(); ldv_15_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___315; tmp___316 = external_allocated_data(); ldv_15_resource_union_efx_dword_ptr = (union efx_dword *)tmp___316; tmp___317 = external_allocated_data(); ldv_15_resource_union_efx_qword_ptr = (union efx_qword *)tmp___317; tmp___318 = external_allocated_data(); ldv_16_callback_finish_flush = (void (*)(struct efx_nic * ))tmp___318; tmp___319 = external_allocated_data(); ldv_16_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___319; tmp___320 = external_allocated_data(); ldv_16_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___320; tmp___321 = external_allocated_data(); ldv_16_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___321; tmp___322 = external_allocated_data(); ldv_16_callback_get_settings = (void (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___322; tmp___323 = external_allocated_data(); ldv_16_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___323; tmp___324 = external_allocated_data(); ldv_16_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___324; tmp___325 = external_allocated_data(); ldv_16_callback_prepare_flush = (void (*)(struct efx_nic * ))tmp___325; tmp___326 = external_allocated_data(); ldv_16_callback_run_tests = (int (*)(struct efx_nic * , int * , unsigned int ))tmp___326; tmp___327 = external_allocated_data(); ldv_16_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___327; tmp___328 = external_allocated_data(); ldv_16_callback_set_settings = (int (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___328; tmp___329 = external_allocated_data(); ldv_16_callback_test_alive = (int (*)(struct efx_nic * ))tmp___329; tmp___330 = external_allocated_data(); ldv_16_callback_test_name = (char *(*)(struct efx_nic * , unsigned int ))tmp___330; tmp___331 = external_allocated_data(); ldv_16_ldv_param_104_3_default = (unsigned long *)tmp___331; tmp___332 = external_allocated_data(); ldv_16_ldv_param_104_4_default = (unsigned char *)tmp___332; tmp___333 = external_allocated_data(); ldv_16_ldv_param_129_1_default = (int *)tmp___333; tmp___334 = external_allocated_data(); ldv_16_ldv_param_158_1_default = (unsigned long long *)tmp___334; tmp___335 = external_allocated_data(); ldv_16_ldv_param_19_1_default = (unsigned char *)tmp___335; tmp___336 = external_allocated_data(); ldv_16_ldv_param_35_2_default = (unsigned int *)tmp___336; tmp___337 = external_allocated_data(); ldv_16_ldv_param_59_2_default = (unsigned char *)tmp___337; tmp___338 = external_allocated_data(); ldv_16_ldv_param_63_1_default = (char *)tmp___338; tmp___339 = external_allocated_data(); ldv_16_ldv_param_81_0_default = (unsigned int *)tmp___339; tmp___340 = external_allocated_data(); ldv_16_ldv_param_90_3_default = (union efx_dword *)tmp___340; tmp___341 = external_allocated_data(); ldv_16_ldv_param_99_3_default = (unsigned long *)tmp___341; tmp___342 = external_allocated_data(); ldv_16_ldv_param_99_4_default = (unsigned char *)tmp___342; tmp___343 = external_allocated_data(); ldv_16_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___343; tmp___344 = external_allocated_data(); ldv_16_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___344; tmp___345 = external_allocated_data(); ldv_16_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___345; tmp___346 = external_allocated_data(); ldv_16_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___346; tmp___347 = external_allocated_data(); ldv_16_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___347; tmp___348 = external_allocated_data(); ldv_16_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___348; tmp___349 = external_allocated_data(); ldv_16_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___349; tmp___350 = external_allocated_data(); ldv_16_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___350; tmp___351 = external_allocated_data(); ldv_16_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___351; tmp___352 = external_allocated_data(); ldv_16_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___352; tmp___353 = external_allocated_data(); ldv_16_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___353; tmp___354 = external_allocated_data(); ldv_16_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___354; tmp___355 = external_allocated_data(); ldv_16_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___355; tmp___356 = external_allocated_data(); ldv_16_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___356; tmp___357 = external_allocated_data(); ldv_16_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___357; tmp___358 = external_allocated_data(); ldv_16_resource_union_efx_dword_ptr = (union efx_dword *)tmp___358; tmp___359 = external_allocated_data(); ldv_16_resource_union_efx_qword_ptr = (union efx_qword *)tmp___359; tmp___360 = external_allocated_data(); ldv_17_callback_finish_flush = (void (*)(struct efx_nic * ))tmp___360; tmp___361 = external_allocated_data(); ldv_17_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___361; tmp___362 = external_allocated_data(); ldv_17_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___362; tmp___363 = external_allocated_data(); ldv_17_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___363; tmp___364 = external_allocated_data(); ldv_17_callback_get_settings = (void (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___364; tmp___365 = external_allocated_data(); ldv_17_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___365; tmp___366 = external_allocated_data(); ldv_17_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___366; tmp___367 = external_allocated_data(); ldv_17_callback_prepare_flush = (void (*)(struct efx_nic * ))tmp___367; tmp___368 = external_allocated_data(); ldv_17_callback_run_tests = (int (*)(struct efx_nic * , int * , unsigned int ))tmp___368; tmp___369 = external_allocated_data(); ldv_17_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___369; tmp___370 = external_allocated_data(); ldv_17_callback_set_settings = (int (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___370; tmp___371 = external_allocated_data(); ldv_17_callback_test_alive = (int (*)(struct efx_nic * ))tmp___371; tmp___372 = external_allocated_data(); ldv_17_callback_test_name = (char *(*)(struct efx_nic * , unsigned int ))tmp___372; tmp___373 = external_allocated_data(); ldv_17_ldv_param_104_3_default = (unsigned long *)tmp___373; tmp___374 = external_allocated_data(); ldv_17_ldv_param_104_4_default = (unsigned char *)tmp___374; tmp___375 = external_allocated_data(); ldv_17_ldv_param_129_1_default = (int *)tmp___375; tmp___376 = external_allocated_data(); ldv_17_ldv_param_158_1_default = (unsigned long long *)tmp___376; tmp___377 = external_allocated_data(); ldv_17_ldv_param_19_1_default = (unsigned char *)tmp___377; tmp___378 = external_allocated_data(); ldv_17_ldv_param_35_2_default = (unsigned int *)tmp___378; tmp___379 = external_allocated_data(); ldv_17_ldv_param_59_2_default = (unsigned char *)tmp___379; tmp___380 = external_allocated_data(); ldv_17_ldv_param_63_1_default = (char *)tmp___380; tmp___381 = external_allocated_data(); ldv_17_ldv_param_81_0_default = (unsigned int *)tmp___381; tmp___382 = external_allocated_data(); ldv_17_ldv_param_90_3_default = (union efx_dword *)tmp___382; tmp___383 = external_allocated_data(); ldv_17_ldv_param_99_3_default = (unsigned long *)tmp___383; tmp___384 = external_allocated_data(); ldv_17_ldv_param_99_4_default = (unsigned char *)tmp___384; tmp___385 = external_allocated_data(); ldv_17_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___385; tmp___386 = external_allocated_data(); ldv_17_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___386; tmp___387 = external_allocated_data(); ldv_17_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___387; tmp___388 = external_allocated_data(); ldv_17_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___388; tmp___389 = external_allocated_data(); ldv_17_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___389; tmp___390 = external_allocated_data(); ldv_17_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___390; tmp___391 = external_allocated_data(); ldv_17_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___391; tmp___392 = external_allocated_data(); ldv_17_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___392; tmp___393 = external_allocated_data(); ldv_17_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___393; tmp___394 = external_allocated_data(); ldv_17_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___394; tmp___395 = external_allocated_data(); ldv_17_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___395; tmp___396 = external_allocated_data(); ldv_17_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___396; tmp___397 = external_allocated_data(); ldv_17_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___397; tmp___398 = external_allocated_data(); ldv_17_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___398; tmp___399 = external_allocated_data(); ldv_17_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___399; tmp___400 = external_allocated_data(); ldv_17_resource_union_efx_dword_ptr = (union efx_dword *)tmp___400; tmp___401 = external_allocated_data(); ldv_17_resource_union_efx_qword_ptr = (union efx_qword *)tmp___401; tmp___402 = external_allocated_data(); ldv_18_callback_finish_flush = (void (*)(struct efx_nic * ))tmp___402; tmp___403 = external_allocated_data(); ldv_18_callback_func_6_ptr = (void (*)(struct efx_nic * ))tmp___403; tmp___404 = external_allocated_data(); ldv_18_callback_get_module_eeprom = (int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))tmp___404; tmp___405 = external_allocated_data(); ldv_18_callback_get_module_info = (int (*)(struct efx_nic * , struct ethtool_modinfo * ))tmp___405; tmp___406 = external_allocated_data(); ldv_18_callback_get_settings = (void (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___406; tmp___407 = external_allocated_data(); ldv_18_callback_handle_global_event = (_Bool (*)(struct efx_channel * , union efx_qword * ))tmp___407; tmp___408 = external_allocated_data(); ldv_18_callback_prepare_enable_fc_tx = (void (*)(struct efx_nic * ))tmp___408; tmp___409 = external_allocated_data(); ldv_18_callback_prepare_flush = (void (*)(struct efx_nic * ))tmp___409; tmp___410 = external_allocated_data(); ldv_18_callback_run_tests = (int (*)(struct efx_nic * , int * , unsigned int ))tmp___410; tmp___411 = external_allocated_data(); ldv_18_callback_set_npage_adv = (void (*)(struct efx_nic * , unsigned int ))tmp___411; tmp___412 = external_allocated_data(); ldv_18_callback_set_settings = (int (*)(struct efx_nic * , struct ethtool_cmd * ))tmp___412; tmp___413 = external_allocated_data(); ldv_18_callback_test_alive = (int (*)(struct efx_nic * ))tmp___413; tmp___414 = external_allocated_data(); ldv_18_callback_test_name = (char *(*)(struct efx_nic * , unsigned int ))tmp___414; tmp___415 = external_allocated_data(); ldv_18_ldv_param_104_3_default = (unsigned long *)tmp___415; tmp___416 = external_allocated_data(); ldv_18_ldv_param_104_4_default = (unsigned char *)tmp___416; tmp___417 = external_allocated_data(); ldv_18_ldv_param_129_1_default = (int *)tmp___417; tmp___418 = external_allocated_data(); ldv_18_ldv_param_158_1_default = (unsigned long long *)tmp___418; tmp___419 = external_allocated_data(); ldv_18_ldv_param_19_1_default = (unsigned char *)tmp___419; tmp___420 = external_allocated_data(); ldv_18_ldv_param_35_2_default = (unsigned int *)tmp___420; tmp___421 = external_allocated_data(); ldv_18_ldv_param_59_2_default = (unsigned char *)tmp___421; tmp___422 = external_allocated_data(); ldv_18_ldv_param_63_1_default = (char *)tmp___422; tmp___423 = external_allocated_data(); ldv_18_ldv_param_81_0_default = (unsigned int *)tmp___423; tmp___424 = external_allocated_data(); ldv_18_ldv_param_90_3_default = (union efx_dword *)tmp___424; tmp___425 = external_allocated_data(); ldv_18_ldv_param_99_3_default = (unsigned long *)tmp___425; tmp___426 = external_allocated_data(); ldv_18_ldv_param_99_4_default = (unsigned char *)tmp___426; tmp___427 = external_allocated_data(); ldv_18_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___427; tmp___428 = external_allocated_data(); ldv_18_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___428; tmp___429 = external_allocated_data(); ldv_18_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___429; tmp___430 = external_allocated_data(); ldv_18_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___430; tmp___431 = external_allocated_data(); ldv_18_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___431; tmp___432 = external_allocated_data(); ldv_18_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___432; tmp___433 = external_allocated_data(); ldv_18_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___433; tmp___434 = external_allocated_data(); ldv_18_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___434; tmp___435 = external_allocated_data(); ldv_18_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___435; tmp___436 = external_allocated_data(); ldv_18_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___436; tmp___437 = external_allocated_data(); ldv_18_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___437; tmp___438 = external_allocated_data(); ldv_18_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___438; tmp___439 = external_allocated_data(); ldv_18_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___439; tmp___440 = external_allocated_data(); ldv_18_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___440; tmp___441 = external_allocated_data(); ldv_18_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___441; tmp___442 = external_allocated_data(); ldv_18_resource_union_efx_dword_ptr = (union efx_dword *)tmp___442; tmp___443 = external_allocated_data(); ldv_18_resource_union_efx_qword_ptr = (union efx_qword *)tmp___443; ldv_19_ldv_param_24_0_default = external_allocated_data(); ldv_19_ldv_param_27_0_default = external_allocated_data(); ldv_19_ldv_param_30_0_default = external_allocated_data(); ldv_19_ldv_param_9_0_default = external_allocated_data(); ldv_20_ldv_param_3_2_default = external_allocated_data(); tmp___444 = external_allocated_data(); ldv_21_container_struct_ptp_clock_request_ptr = (struct ptp_clock_request *)tmp___444; tmp___445 = external_allocated_data(); ldv_21_container_struct_timespec_ptr = (struct timespec *)tmp___445; tmp___446 = external_allocated_data(); ldv_22_container_timer_list = (struct timer_list *)tmp___446; } return; } } void ldv_dispatch_deregister_29_1(struct net_device *arg0 ) { { { ldv_1_container_net_device = arg0; ldv_switch_automaton_state_1_1(); } return; } } void ldv_dispatch_deregister_31_1(struct pci_driver *arg0 ) { { { ldv_2_container_pci_driver = arg0; ldv_switch_automaton_state_2_11(); } return; } } void ldv_dispatch_deregister_33_1(struct notifier_block *arg0 ) { { { ldv_20_container_struct_notifier_block = arg0; ldv_switch_automaton_state_20_1(); } return; } } void ldv_dispatch_deregister_base_instance_17_36_4(void) { { { ldv_switch_automaton_state_8_10(); ldv_switch_automaton_state_7_10(); } return; } } void ldv_dispatch_deregister_base_instance_19_36_5(void) { { { ldv_switch_automaton_state_19_10(); } return; } } void ldv_dispatch_deregister_dummy_resourceless_instance_16_36_6(void) { { { ldv_switch_automaton_state_5_1(); ldv_switch_automaton_state_6_1(); } return; } } void ldv_dispatch_deregister_dummy_resourceless_instance_23_36_7(void) { { { ldv_switch_automaton_state_21_1(); } return; } } void ldv_dispatch_deregister_io_instance_18_36_8(void) { { { ldv_switch_automaton_state_16_5(); ldv_switch_automaton_state_17_5(); ldv_switch_automaton_state_18_5(); ldv_switch_automaton_state_9_5(); ldv_switch_automaton_state_10_5(); ldv_switch_automaton_state_11_5(); ldv_switch_automaton_state_12_5(); ldv_switch_automaton_state_13_5(); ldv_switch_automaton_state_14_5(); ldv_switch_automaton_state_15_5(); } return; } } void ldv_dispatch_deregister_platform_instance_15_36_9(void) { { { ldv_switch_automaton_state_4_8(); } return; } } void ldv_dispatch_instance_register_27_2(struct timer_list *arg0 ) { { { ldv_22_container_timer_list = arg0; ldv_switch_automaton_state_22_3(); } return; } } void ldv_dispatch_pm_deregister_4_5(void) { { { ldv_switch_automaton_state_3_1(); } return; } } void ldv_dispatch_pm_register_4_6(void) { { { ldv_switch_automaton_state_3_29(); } return; } } void ldv_dispatch_register_30_2(struct net_device *arg0 ) { { { ldv_1_container_net_device = arg0; ldv_switch_automaton_state_1_5(); } return; } } void ldv_dispatch_register_32_2(struct pci_driver *arg0 ) { { { ldv_2_container_pci_driver = arg0; ldv_switch_automaton_state_2_20(); } return; } } void ldv_dispatch_register_34_2(struct notifier_block *arg0 ) { { { ldv_20_container_struct_notifier_block = arg0; ldv_switch_automaton_state_20_5(); } return; } } void ldv_dispatch_register_base_instance_17_36_10(void) { { { ldv_switch_automaton_state_8_19(); ldv_switch_automaton_state_7_19(); } return; } } void ldv_dispatch_register_base_instance_19_36_11(void) { { { ldv_switch_automaton_state_19_19(); } return; } } void ldv_dispatch_register_dummy_resourceless_instance_16_36_12(void) { { { ldv_switch_automaton_state_5_5(); ldv_switch_automaton_state_6_5(); } return; } } void ldv_dispatch_register_io_instance_18_36_13(void) { { { ldv_switch_automaton_state_16_14(); ldv_switch_automaton_state_17_14(); ldv_switch_automaton_state_18_14(); ldv_switch_automaton_state_9_14(); ldv_switch_automaton_state_10_14(); ldv_switch_automaton_state_11_14(); ldv_switch_automaton_state_12_14(); ldv_switch_automaton_state_13_14(); ldv_switch_automaton_state_14_14(); ldv_switch_automaton_state_15_14(); } return; } } void ldv_dispatch_register_platform_instance_15_36_14(void) { { { ldv_switch_automaton_state_4_17(); } return; } } void ldv_dummy_resourceless_instance_callback_1_37(int (*arg0)(struct net_device * , int ) , struct net_device *arg1 , int arg2 ) { { { efx_change_mtu(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_40(int (*arg0)(struct net_device * , struct ifreq * , int ) , struct net_device *arg1 , struct ifreq *arg2 , int arg3 ) { { { efx_ioctl(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_43(struct rtnl_link_stats64 *(*arg0)(struct net_device * , struct rtnl_link_stats64 * ) , struct net_device *arg1 , struct rtnl_link_stats64 *arg2 ) { { { efx_net_stats(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_44(int (*arg0)(struct net_device * , int , struct ifla_vf_info * ) , struct net_device *arg1 , int arg2 , struct ifla_vf_info *arg3 ) { { { efx_sriov_get_vf_config(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_47(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_net_open(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_48(void (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_netpoll(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_49(int (*arg0)(struct net_device * , struct sk_buff * , unsigned short , unsigned int ) , struct net_device *arg1 , struct sk_buff *arg2 , unsigned short arg3 , unsigned int arg4 ) { { { efx_filter_rfs(arg1, (struct sk_buff const *)arg2, (int )arg3, arg4); } return; } } void ldv_dummy_resourceless_instance_callback_1_52(int (*arg0)(struct net_device * , unsigned long long ) , struct net_device *arg1 , unsigned long long arg2 ) { { { efx_set_features(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_55(int (*arg0)(struct net_device * , void * ) , struct net_device *arg1 , void *arg2 ) { { { efx_set_mac_address(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_56(void (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_set_rx_mode(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_57(int (*arg0)(struct net_device * , int , unsigned char * ) , struct net_device *arg1 , int arg2 , unsigned char *arg3 ) { { { efx_sriov_set_vf_mac(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_60(int (*arg0)(struct net_device * , int , _Bool ) , struct net_device *arg1 , int arg2 , _Bool arg3 ) { { { efx_sriov_set_vf_spoofchk(arg1, arg2, (int )arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_63(int (*arg0)(struct net_device * , int , unsigned short , unsigned char ) , struct net_device *arg1 , int arg2 , unsigned short arg3 , unsigned char arg4 ) { { { efx_sriov_set_vf_vlan(arg1, arg2, (int )arg3, (int )arg4); } return; } } void ldv_dummy_resourceless_instance_callback_1_66(int (*arg0)(struct net_device * , unsigned char ) , struct net_device *arg1 , unsigned char arg2 ) { { { efx_setup_tc(arg1, (int )arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_69(enum netdev_tx (*arg0)(struct sk_buff * , struct net_device * ) , struct sk_buff *arg1 , struct net_device *arg2 ) { { { efx_hard_start_xmit(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_70(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_net_stop(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_71(void (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_watchdog(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_72(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { eth_validate_addr(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_20_3(int (*arg0)(struct notifier_block * , unsigned long , void * ) , struct notifier_block *arg1 , unsigned long arg2 , void *arg3 ) { { { efx_netdev_event(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_6_3(long (*arg0)(struct device * , struct device_attribute * , char * ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 ) { { { show_phy_type(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_6_9(long (*arg0)(struct device * , struct device_attribute * , char * , unsigned long ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 , unsigned long arg4 ) { { { (*arg0)(arg1, arg2, arg3, arg4); } return; } } void ldv_entry_EMGentry_36(void *arg0 ) { int tmp ; int tmp___0 ; { { if (ldv_statevar_36 == 2) { goto case_2; } else { } if (ldv_statevar_36 == 3) { goto case_3; } else { } if (ldv_statevar_36 == 4) { goto case_4; } else { } if (ldv_statevar_36 == 5) { goto case_5; } else { } if (ldv_statevar_36 == 6) { goto case_6; } else { } if (ldv_statevar_36 == 7) { goto case_7; } else { } if (ldv_statevar_36 == 8) { goto case_8; } else { } if (ldv_statevar_36 == 9) { goto case_9; } else { } if (ldv_statevar_36 == 10) { goto case_10; } else { } if (ldv_statevar_36 == 11) { goto case_11; } else { } if (ldv_statevar_36 == 12) { goto case_12; } else { } if (ldv_statevar_36 == 13) { goto case_13; } else { } if (ldv_statevar_36 == 14) { goto case_14; } else { } if (ldv_statevar_36 == 15) { goto case_15; } else { } if (ldv_statevar_36 == 17) { goto case_17; } else { } if (ldv_statevar_36 == 18) { goto case_18; } else { } goto switch_default; case_2: /* CIL Label */ { ldv_assume(ldv_statevar_2 == 12 || ldv_statevar_20 == 1); ldv_EMGentry_exit_efx_exit_module_36_2(ldv_36_exit_efx_exit_module_default); ldv_check_final_state(); ldv_stop(); ldv_statevar_36 = 18; } goto ldv_57997; case_3: /* CIL Label */ { ldv_assume(ldv_statevar_2 == 12 || ldv_statevar_20 == 1); ldv_EMGentry_exit_efx_exit_module_36_2(ldv_36_exit_efx_exit_module_default); ldv_check_final_state(); ldv_stop(); ldv_statevar_36 = 18; } goto ldv_57997; case_4: /* CIL Label */ { ldv_assume(ldv_statevar_7 == 11 || ldv_statevar_8 == 11); ldv_dispatch_deregister_base_instance_17_36_4(); ldv_statevar_36 = 2; } goto ldv_57997; case_5: /* CIL Label */ { ldv_assume(ldv_statevar_19 == 11); ldv_dispatch_deregister_base_instance_19_36_5(); ldv_statevar_36 = 4; } goto ldv_57997; case_6: /* CIL Label */ { ldv_assume(ldv_statevar_5 == 1 || ldv_statevar_6 == 1); ldv_dispatch_deregister_dummy_resourceless_instance_16_36_6(); ldv_statevar_36 = 5; } goto ldv_57997; case_7: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 1); ldv_dispatch_deregister_dummy_resourceless_instance_23_36_7(); ldv_statevar_36 = 6; } goto ldv_57997; case_8: /* CIL Label */ { ldv_assume(((((((((ldv_statevar_9 == 6 || ldv_statevar_10 == 6) || ldv_statevar_11 == 6) || ldv_statevar_12 == 6) || ldv_statevar_13 == 6) || ldv_statevar_14 == 6) || ldv_statevar_15 == 6) || ldv_statevar_16 == 6) || ldv_statevar_17 == 6) || ldv_statevar_18 == 6); ldv_dispatch_deregister_io_instance_18_36_8(); ldv_statevar_36 = 7; } goto ldv_57997; case_9: /* CIL Label */ { ldv_assume(ldv_statevar_4 == 9); ldv_dispatch_deregister_platform_instance_15_36_9(); ldv_statevar_36 = 8; } goto ldv_57997; case_10: /* CIL Label */ { ldv_assume(ldv_statevar_7 == 19 || ldv_statevar_8 == 19); ldv_dispatch_register_base_instance_17_36_10(); ldv_statevar_36 = 9; } goto ldv_57997; case_11: /* CIL Label */ { ldv_assume(ldv_statevar_19 == 19); ldv_dispatch_register_base_instance_19_36_11(); ldv_statevar_36 = 10; } goto ldv_57997; case_12: /* CIL Label */ { ldv_assume(ldv_statevar_5 == 5 || ldv_statevar_6 == 5); ldv_dispatch_register_dummy_resourceless_instance_16_36_12(); ldv_statevar_36 = 11; } goto ldv_57997; case_13: /* CIL Label */ { ldv_assume(((((((((ldv_statevar_9 == 14 || ldv_statevar_10 == 14) || ldv_statevar_11 == 14) || ldv_statevar_12 == 14) || ldv_statevar_13 == 14) || ldv_statevar_14 == 14) || ldv_statevar_15 == 14) || ldv_statevar_16 == 14) || ldv_statevar_17 == 14) || ldv_statevar_18 == 14); ldv_dispatch_register_io_instance_18_36_13(); ldv_statevar_36 = 12; } goto ldv_57997; case_14: /* CIL Label */ { ldv_assume(ldv_statevar_4 == 17); ldv_dispatch_register_platform_instance_15_36_14(); ldv_statevar_36 = 13; } goto ldv_57997; case_15: /* CIL Label */ { ldv_assume(ldv_36_ret_default == 0); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_36 = 3; } else { ldv_statevar_36 = 14; } goto ldv_57997; case_17: /* CIL Label */ { ldv_assume(ldv_36_ret_default != 0); ldv_check_final_state(); ldv_stop(); ldv_statevar_36 = 18; } goto ldv_57997; case_18: /* CIL Label */ { ldv_assume((ldv_statevar_2 == 20 || ldv_statevar_20 == 5) || ldv_statevar_20 == 1); ldv_36_ret_default = ldv_EMGentry_init_efx_init_module_36_18(ldv_36_init_efx_init_module_default); ldv_36_ret_default = ldv_post_init(ldv_36_ret_default); tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_36 = 15; } else { ldv_statevar_36 = 17; } goto ldv_57997; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_57997: ; return; } } int main(void) { int tmp ; { { ldv_initialize(); ldv_initialize_external_data(); ldv_statevar_36 = 18; ldv_statevar_0 = 6; ldv_statevar_1 = 5; ldv_2_ret_default = 1; ldv_statevar_2 = 20; ldv_statevar_3 = 29; ldv_4_probed_default = 1; ldv_statevar_4 = 17; ldv_statevar_5 = 5; ldv_statevar_6 = 5; ldv_7_ret_default = 1; ldv_statevar_7 = 19; ldv_8_ret_default = 1; ldv_statevar_8 = 19; ldv_9_ret_default = 1; ldv_statevar_9 = 14; ldv_10_ret_default = 1; ldv_statevar_10 = 14; ldv_11_ret_default = 1; ldv_statevar_11 = 14; ldv_12_ret_default = 1; ldv_statevar_12 = 14; ldv_13_ret_default = 1; ldv_statevar_13 = 14; ldv_14_ret_default = 1; ldv_statevar_14 = 14; ldv_15_ret_default = 1; ldv_statevar_15 = 14; ldv_16_ret_default = 1; ldv_statevar_16 = 14; ldv_17_ret_default = 1; ldv_statevar_17 = 14; ldv_18_ret_default = 1; ldv_statevar_18 = 14; ldv_19_ret_default = 1; ldv_statevar_19 = 19; ldv_statevar_20 = 5; ldv_statevar_21 = 5; ldv_statevar_22 = 3; } ldv_58042: { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } if (tmp == 3) { goto case_3; } else { } if (tmp == 4) { goto case_4; } else { } if (tmp == 5) { goto case_5; } else { } if (tmp == 6) { goto case_6; } else { } if (tmp == 7) { goto case_7; } else { } if (tmp == 8) { goto case_8; } else { } if (tmp == 9) { goto case_9; } else { } if (tmp == 10) { goto case_10; } else { } if (tmp == 11) { goto case_11; } else { } if (tmp == 12) { goto case_12; } else { } if (tmp == 13) { goto case_13; } else { } if (tmp == 14) { goto case_14; } else { } if (tmp == 15) { goto case_15; } else { } if (tmp == 16) { goto case_16; } else { } if (tmp == 17) { goto case_17; } else { } if (tmp == 18) { goto case_18; } else { } if (tmp == 19) { goto case_19; } else { } if (tmp == 20) { goto case_20; } else { } if (tmp == 21) { goto case_21; } else { } if (tmp == 22) { goto case_22; } else { } if (tmp == 23) { goto case_23; } else { } goto switch_default; case_0: /* CIL Label */ { ldv_entry_EMGentry_36((void *)0); } goto ldv_58017; case_1: /* CIL Label */ { ldv_interrupt_interrupt_instance_0((void *)0); } goto ldv_58017; case_2: /* CIL Label */ { ldv_net_dummy_resourceless_instance_1((void *)0); } goto ldv_58017; case_3: /* CIL Label */ { ldv_pci_pci_instance_2((void *)0); } goto ldv_58017; case_4: /* CIL Label */ { ldv_pm_pm_ops_instance_3((void *)0); } goto ldv_58017; case_5: /* CIL Label */ { ldv_pm_platform_instance_4((void *)0); } goto ldv_58017; case_6: /* CIL Label */ { ldv_struct_device_attribute_dummy_resourceless_instance_5((void *)0); } goto ldv_58017; case_7: /* CIL Label */ { ldv_struct_device_attribute_dummy_resourceless_instance_6((void *)0); } goto ldv_58017; case_8: /* CIL Label */ { ldv_struct_efx_sw_stat_desc_base_instance_7((void *)0); } goto ldv_58017; case_9: /* CIL Label */ { ldv_struct_efx_sw_stat_desc_base_instance_8((void *)0); } goto ldv_58017; case_10: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_9((void *)0); } goto ldv_58017; case_11: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_10((void *)0); } goto ldv_58017; case_12: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_11((void *)0); } goto ldv_58017; case_13: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_12((void *)0); } goto ldv_58017; case_14: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_13((void *)0); } goto ldv_58017; case_15: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_14((void *)0); } goto ldv_58017; case_16: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_15((void *)0); } goto ldv_58017; case_17: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_16((void *)0); } goto ldv_58017; case_18: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_17((void *)0); } goto ldv_58017; case_19: /* CIL Label */ { ldv_struct_falcon_board_type_io_instance_18((void *)0); } goto ldv_58017; case_20: /* CIL Label */ { ldv_struct_i2c_algo_bit_data_base_instance_19((void *)0); } goto ldv_58017; case_21: /* CIL Label */ { ldv_struct_notifier_block_dummy_resourceless_instance_20((void *)0); } goto ldv_58017; case_22: /* CIL Label */ { ldv_struct_ptp_clock_info_dummy_resourceless_instance_21((void *)0); } goto ldv_58017; case_23: /* CIL Label */ { ldv_timer_timer_instance_22((void *)0); } goto ldv_58017; switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } ldv_58017: ; goto ldv_58042; } } void ldv_free_netdev(void *arg0 , struct net_device *arg1 ) { struct net_device *ldv_26_netdev_net_device ; { { ldv_26_netdev_net_device = arg1; ldv_free((void *)ldv_26_netdev_net_device); } return; return; } } void ldv_initialize_external_data(void) { { { ldv_allocate_external_0(); } return; } } enum irqreturn ldv_interrupt_instance_handler_0_5(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { enum irqreturn tmp ; { { tmp = (*arg0)(arg1, arg2); } return (tmp); } } void ldv_interrupt_instance_thread_0_3(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_interrupt_interrupt_instance_0(void *arg0 ) { int tmp ; { { if (ldv_statevar_0 == 2) { goto case_2; } else { } if (ldv_statevar_0 == 4) { goto case_4; } else { } if (ldv_statevar_0 == 5) { goto case_5; } else { } if (ldv_statevar_0 == 6) { goto case_6; } else { } goto switch_default; case_2: /* CIL Label */ { ldv_assume((unsigned int )ldv_0_ret_val_default != 2U); ldv_statevar_0 = 6; } goto ldv_58068; case_4: /* CIL Label */ { ldv_assume((unsigned int )ldv_0_ret_val_default == 2U); } if ((unsigned long )ldv_0_thread_thread != (unsigned long )((enum irqreturn (*)(int , void * ))0)) { { ldv_interrupt_instance_thread_0_3(ldv_0_thread_thread, ldv_0_line_line, ldv_0_data_data); } } else { } ldv_statevar_0 = 6; goto ldv_58068; case_5: /* CIL Label */ { ldv_switch_to_interrupt_context(); } if ((unsigned long )ldv_0_callback_handler != (unsigned long )((enum irqreturn (*)(int , void * ))0)) { { ldv_0_ret_val_default = ldv_interrupt_instance_handler_0_5(ldv_0_callback_handler, ldv_0_line_line, ldv_0_data_data); } } else { } { ldv_switch_to_process_context(); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_0 = 2; } else { ldv_statevar_0 = 4; } goto ldv_58068; case_6: /* CIL Label */ ; goto ldv_58068; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_58068: ; return; } } void ldv_io_instance_callback_10_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_10_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { (*arg0)(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_10_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_10_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_10_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_10_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_10_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_10_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_10_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_10_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_10_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_10_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { (*arg0)(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_10_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { (*arg0)(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_11_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_11_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { (*arg0)(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_11_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_11_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_11_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_11_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_11_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_11_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_11_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_11_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { (*arg0)(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_11_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { (*arg0)(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_12_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_12_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { (*arg0)(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_12_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_12_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_12_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_12_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_12_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_13_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_13_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_13_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_13_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_13_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_13_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_13_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_13_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_13_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_14_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_poll(arg1); } return; } } void ldv_io_instance_callback_14_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_14_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_14_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_int(arg1); } return; } } void ldv_io_instance_callback_14_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_14_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_14_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_14_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_14_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_14_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_14_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_14_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_14_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_14_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_14_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_14_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_15_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_poll(arg1); } return; } } void ldv_io_instance_callback_15_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_15_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_15_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_int(arg1); } return; } } void ldv_io_instance_callback_15_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_15_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_15_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_15_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_15_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_15_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_15_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_15_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_15_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_15_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_15_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_15_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_16_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_poll(arg1); } return; } } void ldv_io_instance_callback_16_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_16_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_16_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_int(arg1); } return; } } void ldv_io_instance_callback_16_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_16_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_16_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_16_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_16_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_16_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_16_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_16_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_16_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_16_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_16_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_16_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_17_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_poll(arg1); } return; } } void ldv_io_instance_callback_17_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_17_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_17_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_int(arg1); } return; } } void ldv_io_instance_callback_17_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_17_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_17_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_17_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_17_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_17_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_17_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_17_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_17_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_17_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_17_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_17_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_18_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_poll(arg1); } return; } } void ldv_io_instance_callback_18_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_18_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_18_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_int(arg1); } return; } } void ldv_io_instance_callback_18_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_18_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_18_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_18_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_18_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_18_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_18_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_18_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_18_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_18_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_18_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_18_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_9_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_poll(arg1); } return; } } void ldv_io_instance_callback_9_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_channel_dummy_op_int(arg1); } return; } } void ldv_io_instance_callback_9_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_9_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_9_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_int(arg1); } return; } } void ldv_io_instance_callback_9_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_9_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_9_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_9_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_9_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_9_18(struct efx_channel *(*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_copy_channel((struct efx_channel const *)arg1); } return; } } void ldv_io_instance_callback_9_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_9_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_io_instance_callback_9_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { (*arg0)(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_9_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_9_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_9_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { (*arg0)(arg1, arg2); } return; } } void ldv_io_instance_callback_9_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_int(arg1); } return; } } int ldv_mod_timer(int arg0 , struct timer_list *arg1 , unsigned long arg2 ) { struct timer_list *ldv_27_timer_list_timer_list ; int tmp ; { { tmp = ldv_undef_int(); } if (tmp != 0) { { ldv_assume(arg0 == 0); ldv_27_timer_list_timer_list = arg1; ldv_assume(ldv_statevar_22 == 3); ldv_dispatch_instance_register_27_2(ldv_27_timer_list_timer_list); } return (arg0); } else { { ldv_assume(arg0 != 0); } return (arg0); } return (arg0); } } void ldv_net_dummy_resourceless_instance_1(void *arg0 ) { void *tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; { { if (ldv_statevar_1 == 1) { goto case_1; } else { } if (ldv_statevar_1 == 2) { goto case_2; } else { } if (ldv_statevar_1 == 3) { goto case_3; } else { } if (ldv_statevar_1 == 4) { goto case_4; } else { } if (ldv_statevar_1 == 5) { goto case_5; } else { } if (ldv_statevar_1 == 7) { goto case_7; } else { } if (ldv_statevar_1 == 9) { goto case_9; } else { } if (ldv_statevar_1 == 11) { goto case_11; } else { } if (ldv_statevar_1 == 13) { goto case_13; } else { } if (ldv_statevar_1 == 15) { goto case_15; } else { } if (ldv_statevar_1 == 16) { goto case_16; } else { } if (ldv_statevar_1 == 17) { goto case_17; } else { } if (ldv_statevar_1 == 18) { goto case_18; } else { } if (ldv_statevar_1 == 19) { goto case_19; } else { } if (ldv_statevar_1 == 20) { goto case_20; } else { } if (ldv_statevar_1 == 22) { goto case_22; } else { } if (ldv_statevar_1 == 24) { goto case_24; } else { } if (ldv_statevar_1 == 26) { goto case_26; } else { } if (ldv_statevar_1 == 28) { goto case_28; } else { } if (ldv_statevar_1 == 30) { goto case_30; } else { } if (ldv_statevar_1 == 33) { goto case_33; } else { } if (ldv_statevar_1 == 35) { goto case_35; } else { } if (ldv_statevar_1 == 36) { goto case_36; } else { } if (ldv_statevar_1 == 38) { goto case_38; } else { } if (ldv_statevar_1 == 41) { goto case_41; } else { } if (ldv_statevar_1 == 43) { goto case_43; } else { } if (ldv_statevar_1 == 45) { goto case_45; } else { } if (ldv_statevar_1 == 47) { goto case_47; } else { } if (ldv_statevar_1 == 48) { goto case_48; } else { } if (ldv_statevar_1 == 50) { goto case_50; } else { } if (ldv_statevar_1 == 53) { goto case_53; } else { } if (ldv_statevar_1 == 55) { goto case_55; } else { } if (ldv_statevar_1 == 56) { goto case_56; } else { } if (ldv_statevar_1 == 58) { goto case_58; } else { } if (ldv_statevar_1 == 61) { goto case_61; } else { } if (ldv_statevar_1 == 64) { goto case_64; } else { } if (ldv_statevar_1 == 67) { goto case_67; } else { } if (ldv_statevar_1 == 69) { goto case_69; } else { } if (ldv_statevar_1 == 70) { goto case_70; } else { } if (ldv_statevar_1 == 71) { goto case_71; } else { } if (ldv_statevar_1 == 72) { goto case_72; } else { } if (ldv_statevar_1 == 73) { goto case_73; } else { } if (ldv_statevar_1 == 75) { goto case_75; } else { } if (ldv_statevar_1 == 78) { goto case_78; } else { } if (ldv_statevar_1 == 80) { goto case_80; } else { } if (ldv_statevar_1 == 82) { goto case_82; } else { } if (ldv_statevar_1 == 84) { goto case_84; } else { } if (ldv_statevar_1 == 85) { goto case_85; } else { } if (ldv_statevar_1 == 86) { goto case_86; } else { } if (ldv_statevar_1 == 88) { goto case_88; } else { } if (ldv_statevar_1 == 90) { goto case_90; } else { } if (ldv_statevar_1 == 91) { goto case_91; } else { } if (ldv_statevar_1 == 92) { goto case_92; } else { } goto switch_default; case_1: /* CIL Label */ ; goto ldv_58977; case_2: /* CIL Label */ { ldv_statevar_1 = ldv_switch_0(); } goto ldv_58977; case_3: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_3(ldv_1_callback_get_coalesce, ldv_1_container_net_device, ldv_1_container_struct_ethtool_coalesce_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_4: /* CIL Label */ { ldv_statevar_1 = ldv_switch_0(); } goto ldv_58977; case_5: /* CIL Label */ ; goto ldv_58977; case_7: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_7(ldv_1_callback_get_drvinfo, ldv_1_container_net_device, ldv_1_container_struct_ethtool_drvinfo_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_9: /* CIL Label */ { tmp = ldv_xmalloc(8UL); ldv_1_ldv_param_8_2_default = (unsigned long long *)tmp; ldv_dummy_resourceless_instance_callback_1_8(ldv_1_callback_get_ethtool_stats, ldv_1_container_net_device, ldv_1_container_struct_ethtool_stats_ptr, ldv_1_ldv_param_8_2_default); ldv_free((void *)ldv_1_ldv_param_8_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_11: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_11(ldv_1_callback_get_link, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1UL); ldv_1_ldv_param_12_2_default = (unsigned char *)tmp___0; ldv_dummy_resourceless_instance_callback_1_12(ldv_1_callback_get_module_eeprom, ldv_1_container_net_device, ldv_1_container_struct_ethtool_eeprom_ptr, ldv_1_ldv_param_12_2_default); ldv_free((void *)ldv_1_ldv_param_12_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_15: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_15(ldv_1_callback_get_module_info, ldv_1_container_net_device, ldv_1_container_struct_ethtool_modinfo_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_16: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_16(ldv_1_callback_get_msglevel, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_17: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_17(ldv_1_callback_get_pauseparam, ldv_1_container_net_device, ldv_1_container_struct_ethtool_pauseparam_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_18: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_18(ldv_1_callback_get_regs, ldv_1_container_net_device, ldv_1_container_struct_ethtool_regs_ptr, (void *)ldv_1_container_struct_ethtool_cmd_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_19: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_19(ldv_1_callback_get_regs_len, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_20: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_20(ldv_1_callback_get_ringparam, ldv_1_container_net_device, ldv_1_container_struct_ethtool_ringparam_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_22: /* CIL Label */ { tmp___1 = ldv_xmalloc(4UL); ldv_1_ldv_param_21_1_default = (unsigned int *)tmp___1; ldv_dummy_resourceless_instance_callback_1_21(ldv_1_callback_get_rxfh_indir, ldv_1_container_net_device, ldv_1_ldv_param_21_1_default); ldv_free((void *)ldv_1_ldv_param_21_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_24: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_24(ldv_1_callback_get_rxfh_indir_size, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_26: /* CIL Label */ { tmp___2 = ldv_xmalloc(4UL); ldv_1_ldv_param_25_2_default = (unsigned int *)tmp___2; ldv_dummy_resourceless_instance_callback_1_25(ldv_1_callback_get_rxnfc, ldv_1_container_net_device, ldv_1_container_struct_ethtool_rxnfc_ptr, ldv_1_ldv_param_25_2_default); ldv_free((void *)ldv_1_ldv_param_25_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_28: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_28(ldv_1_callback_get_settings, ldv_1_container_net_device, ldv_1_container_struct_ethtool_cmd_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_30: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_29(ldv_1_callback_get_sset_count, ldv_1_container_net_device, ldv_1_ldv_param_29_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_33: /* CIL Label */ { tmp___3 = ldv_xmalloc(1UL); ldv_1_ldv_param_32_2_default = (unsigned char *)tmp___3; ldv_dummy_resourceless_instance_callback_1_32(ldv_1_callback_get_strings, ldv_1_container_net_device, ldv_1_ldv_param_32_1_default, ldv_1_ldv_param_32_2_default); ldv_free((void *)ldv_1_ldv_param_32_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_35: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_35(ldv_1_callback_get_ts_info, ldv_1_container_net_device, ldv_1_container_struct_ethtool_ts_info_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_36: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_36(ldv_1_callback_get_wol, ldv_1_container_net_device, ldv_1_container_struct_ethtool_wolinfo_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_38: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_37(ldv_1_callback_ndo_change_mtu, ldv_1_container_net_device, ldv_1_ldv_param_37_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_41: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_40(ldv_1_callback_ndo_do_ioctl, ldv_1_container_net_device, ldv_1_container_struct_ifreq_ptr, ldv_1_ldv_param_40_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_43: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_43(ldv_1_callback_ndo_get_stats64, ldv_1_container_net_device, ldv_1_container_struct_rtnl_link_stats64_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_45: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_44(ldv_1_callback_ndo_get_vf_config, ldv_1_container_net_device, ldv_1_ldv_param_44_1_default, ldv_1_container_struct_ifla_vf_info_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_47: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_47(ldv_1_callback_ndo_open, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_48: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_48(ldv_1_callback_ndo_poll_controller, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_50: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_49(ldv_1_callback_ndo_rx_flow_steer, ldv_1_container_net_device, ldv_1_container_struct_sk_buff_ptr, (int )ldv_1_ldv_param_49_2_default, ldv_1_ldv_param_49_3_default); ldv_statevar_1 = 2; } goto ldv_58977; case_53: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_52(ldv_1_callback_ndo_set_features, ldv_1_container_net_device, ldv_1_ldv_param_52_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_55: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_55(ldv_1_callback_ndo_set_mac_address, ldv_1_container_net_device, (void *)ldv_1_container_struct_ethtool_cmd_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_56: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_56(ldv_1_callback_ndo_set_rx_mode, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_58: /* CIL Label */ { tmp___4 = ldv_xmalloc(1UL); ldv_1_ldv_param_57_2_default = (unsigned char *)tmp___4; ldv_dummy_resourceless_instance_callback_1_57(ldv_1_callback_ndo_set_vf_mac, ldv_1_container_net_device, ldv_1_ldv_param_57_1_default, ldv_1_ldv_param_57_2_default); ldv_free((void *)ldv_1_ldv_param_57_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_61: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_60(ldv_1_callback_ndo_set_vf_spoofchk, ldv_1_container_net_device, ldv_1_ldv_param_60_1_default, (int )ldv_1_ldv_param_60_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_64: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_63(ldv_1_callback_ndo_set_vf_vlan, ldv_1_container_net_device, ldv_1_ldv_param_63_1_default, (int )ldv_1_ldv_param_63_2_default, (int )ldv_1_ldv_param_63_3_default); ldv_statevar_1 = 2; } goto ldv_58977; case_67: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_66(ldv_1_callback_ndo_setup_tc, ldv_1_container_net_device, (int )ldv_1_ldv_param_66_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_69: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_69(ldv_1_callback_ndo_start_xmit, ldv_1_container_struct_sk_buff_ptr, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_70: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_70(ldv_1_callback_ndo_stop, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_71: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_71(ldv_1_callback_ndo_tx_timeout, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_72: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_72(ldv_1_callback_ndo_validate_addr, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_73: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_73(ldv_1_callback_nway_reset, ldv_1_container_net_device); ldv_statevar_1 = 2; } goto ldv_58977; case_75: /* CIL Label */ { tmp___5 = ldv_xmalloc(4UL); ldv_1_ldv_param_74_1_default = (unsigned int *)tmp___5; ldv_dummy_resourceless_instance_callback_1_74(ldv_1_callback_reset, ldv_1_container_net_device, ldv_1_ldv_param_74_1_default); ldv_free((void *)ldv_1_ldv_param_74_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_78: /* CIL Label */ { tmp___6 = ldv_xmalloc(8UL); ldv_1_ldv_param_77_2_default = (unsigned long long *)tmp___6; ldv_dummy_resourceless_instance_callback_1_77(ldv_1_callback_self_test, ldv_1_container_net_device, ldv_1_container_struct_ethtool_test_ptr, ldv_1_ldv_param_77_2_default); ldv_free((void *)ldv_1_ldv_param_77_2_default); ldv_statevar_1 = 2; } goto ldv_58977; case_80: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_80(ldv_1_callback_set_coalesce, ldv_1_container_net_device, ldv_1_container_struct_ethtool_coalesce_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_82: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_81(ldv_1_callback_set_msglevel, ldv_1_container_net_device, ldv_1_ldv_param_81_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_84: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_84(ldv_1_callback_set_pauseparam, ldv_1_container_net_device, ldv_1_container_struct_ethtool_pauseparam_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_85: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_85(ldv_1_callback_set_phys_id, ldv_1_container_net_device, ldv_1_container_enum_ethtool_phys_id_state); ldv_statevar_1 = 2; } goto ldv_58977; case_86: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_86(ldv_1_callback_set_ringparam, ldv_1_container_net_device, ldv_1_container_struct_ethtool_ringparam_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_88: /* CIL Label */ { tmp___7 = ldv_xmalloc(4UL); ldv_1_ldv_param_87_1_default = (unsigned int *)tmp___7; ldv_dummy_resourceless_instance_callback_1_87(ldv_1_callback_set_rxfh_indir, ldv_1_container_net_device, ldv_1_ldv_param_87_1_default); ldv_free((void *)ldv_1_ldv_param_87_1_default); ldv_statevar_1 = 2; } goto ldv_58977; case_90: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_90(ldv_1_callback_set_rxnfc, ldv_1_container_net_device, ldv_1_container_struct_ethtool_rxnfc_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_91: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_91(ldv_1_callback_set_settings, ldv_1_container_net_device, ldv_1_container_struct_ethtool_cmd_ptr); ldv_statevar_1 = 2; } goto ldv_58977; case_92: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_1_92(ldv_1_callback_set_wol, ldv_1_container_net_device, ldv_1_container_struct_ethtool_wolinfo_ptr); ldv_statevar_1 = 2; } goto ldv_58977; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_58977: ; return; } } void ldv_pci_instance_callback_2_10(unsigned int (*arg0)(struct pci_dev * , enum pci_channel_state ) , struct pci_dev *arg1 , enum pci_channel_state arg2 ) { { { efx_io_error_detected(arg1, arg2); } return; } } void ldv_pci_instance_callback_2_23(void (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) { { { efx_io_resume(arg1); } return; } } void ldv_pci_instance_callback_2_24(unsigned int (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) { { { efx_io_slot_reset(arg1); } return; } } int ldv_pci_instance_probe_2_17(int (*arg0)(struct pci_dev * , struct pci_device_id * ) , struct pci_dev *arg1 , struct pci_device_id *arg2 ) { int tmp ; { { tmp = efx_pci_probe(arg1, (struct pci_device_id const *)arg2); } return (tmp); } } void ldv_pci_instance_release_2_2(void (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) { { { efx_pci_remove(arg1); } return; } } void ldv_pci_instance_resume_2_5(int (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pci_instance_resume_early_2_6(int (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pci_instance_shutdown_2_3(void (*arg0)(struct pci_dev * ) , struct pci_dev *arg1 ) { { { (*arg0)(arg1); } return; } } int ldv_pci_instance_suspend_2_8(int (*arg0)(struct pci_dev * , struct pm_message ) , struct pci_dev *arg1 , struct pm_message arg2 ) { int tmp ; { { tmp = (*arg0)(arg1, arg2); } return (tmp); } } int ldv_pci_instance_suspend_late_2_7(int (*arg0)(struct pci_dev * , struct pm_message ) , struct pci_dev *arg1 , struct pm_message arg2 ) { int tmp ; { { tmp = (*arg0)(arg1, arg2); } return (tmp); } } void ldv_pci_pci_instance_2(void *arg0 ) { int tmp ; int tmp___0 ; int tmp___1 ; void *tmp___2 ; void *tmp___3 ; int tmp___4 ; { { if (ldv_statevar_2 == 1) { goto case_1; } else { } if (ldv_statevar_2 == 2) { goto case_2; } else { } if (ldv_statevar_2 == 3) { goto case_3; } else { } if (ldv_statevar_2 == 4) { goto case_4; } else { } if (ldv_statevar_2 == 5) { goto case_5; } else { } if (ldv_statevar_2 == 6) { goto case_6; } else { } if (ldv_statevar_2 == 7) { goto case_7; } else { } if (ldv_statevar_2 == 8) { goto case_8; } else { } if (ldv_statevar_2 == 9) { goto case_9; } else { } if (ldv_statevar_2 == 10) { goto case_10; } else { } if (ldv_statevar_2 == 12) { goto case_12; } else { } if (ldv_statevar_2 == 14) { goto case_14; } else { } if (ldv_statevar_2 == 16) { goto case_16; } else { } if (ldv_statevar_2 == 17) { goto case_17; } else { } if (ldv_statevar_2 == 19) { goto case_19; } else { } if (ldv_statevar_2 == 20) { goto case_20; } else { } if (ldv_statevar_2 == 23) { goto case_23; } else { } if (ldv_statevar_2 == 24) { goto case_24; } else { } goto switch_default; case_1: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_2 = 12; } else { ldv_statevar_2 = 17; } goto ldv_59093; case_2: /* CIL Label */ { ldv_assume(ldv_statevar_0 == 2 || ldv_statevar_1 == 1); ldv_pci_instance_release_2_2(ldv_2_container_pci_driver->remove, ldv_2_resource_dev); ldv_statevar_2 = 1; } goto ldv_59093; case_3: /* CIL Label */ ; if ((unsigned long )ldv_2_container_pci_driver->shutdown != (unsigned long )((void (*)(struct pci_dev * ))0)) { { ldv_pci_instance_shutdown_2_3(ldv_2_container_pci_driver->shutdown, ldv_2_resource_dev); } } else { } ldv_statevar_2 = 2; goto ldv_59093; case_4: /* CIL Label */ { ldv_statevar_2 = ldv_switch_1(); } goto ldv_59093; case_5: /* CIL Label */ ; if ((unsigned long )ldv_2_container_pci_driver->resume != (unsigned long )((int (*)(struct pci_dev * ))0)) { { ldv_pci_instance_resume_2_5(ldv_2_container_pci_driver->resume, ldv_2_resource_dev); } } else { } ldv_statevar_2 = 4; goto ldv_59093; case_6: /* CIL Label */ ; if ((unsigned long )ldv_2_container_pci_driver->resume_early != (unsigned long )((int (*)(struct pci_dev * ))0)) { { ldv_pci_instance_resume_early_2_6(ldv_2_container_pci_driver->resume_early, ldv_2_resource_dev); } } else { } ldv_statevar_2 = 5; goto ldv_59093; case_7: /* CIL Label */ ; if ((unsigned long )ldv_2_container_pci_driver->suspend_late != (unsigned long )((int (*)(struct pci_dev * , pm_message_t ))0)) { { ldv_2_ret_default = ldv_pci_instance_suspend_late_2_7(ldv_2_container_pci_driver->suspend_late, ldv_2_resource_dev, ldv_2_resource_pm_message); } } else { } { ldv_2_ret_default = ldv_filter_err_code(ldv_2_ret_default); ldv_statevar_2 = 6; } goto ldv_59093; case_8: /* CIL Label */ ; if ((unsigned long )ldv_2_container_pci_driver->suspend != (unsigned long )((int (*)(struct pci_dev * , pm_message_t ))0)) { { ldv_2_ret_default = ldv_pci_instance_suspend_2_8(ldv_2_container_pci_driver->suspend, ldv_2_resource_dev, ldv_2_resource_pm_message); } } else { } { ldv_2_ret_default = ldv_filter_err_code(ldv_2_ret_default); ldv_statevar_2 = 7; } goto ldv_59093; case_9: /* CIL Label */ { ldv_statevar_2 = ldv_switch_1(); } goto ldv_59093; case_10: /* CIL Label */ { ldv_pci_instance_callback_2_10(ldv_2_callback_error_detected, ldv_2_resource_dev, ldv_2_resource_enum_pci_channel_state); ldv_statevar_2 = 9; } goto ldv_59093; case_12: /* CIL Label */ { ldv_free((void *)ldv_2_resource_dev); ldv_free((void *)ldv_2_resource_struct_pci_device_id_ptr); ldv_2_ret_default = 1; ldv_statevar_2 = 20; } goto ldv_59093; case_14: /* CIL Label */ { ldv_assume(ldv_2_ret_default != 0); tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_2 = 12; } else { ldv_statevar_2 = 17; } goto ldv_59093; case_16: /* CIL Label */ { ldv_assume(ldv_2_ret_default == 0); ldv_statevar_2 = ldv_switch_1(); } goto ldv_59093; case_17: /* CIL Label */ { ldv_assume(((ldv_statevar_0 == 6 || ldv_statevar_0 == 2) || ldv_statevar_1 == 1) || ldv_statevar_1 == 5); ldv_pre_probe(); ldv_2_ret_default = ldv_pci_instance_probe_2_17((int (*)(struct pci_dev * , struct pci_device_id * ))ldv_2_container_pci_driver->probe, ldv_2_resource_dev, ldv_2_resource_struct_pci_device_id_ptr); ldv_2_ret_default = ldv_post_probe(ldv_2_ret_default); tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { ldv_statevar_2 = 14; } else { ldv_statevar_2 = 16; } goto ldv_59093; case_19: /* CIL Label */ { tmp___2 = ldv_xmalloc(2936UL); ldv_2_resource_dev = (struct pci_dev *)tmp___2; tmp___3 = ldv_xmalloc(32UL); ldv_2_resource_struct_pci_device_id_ptr = (struct pci_device_id *)tmp___3; tmp___4 = ldv_undef_int(); } if (tmp___4 != 0) { ldv_statevar_2 = 12; } else { ldv_statevar_2 = 17; } goto ldv_59093; case_20: /* CIL Label */ ; goto ldv_59093; case_23: /* CIL Label */ { ldv_pci_instance_callback_2_23(ldv_2_callback_func_1_ptr, ldv_2_resource_dev); ldv_statevar_2 = 9; } goto ldv_59093; case_24: /* CIL Label */ { ldv_pci_instance_callback_2_24(ldv_2_callback_slot_reset, ldv_2_resource_dev); ldv_statevar_2 = 9; } goto ldv_59093; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59093: ; return; } } void ldv_pci_unregister_driver(void *arg0 , struct pci_driver *arg1 ) { struct pci_driver *ldv_31_pci_driver_pci_driver ; { { ldv_31_pci_driver_pci_driver = arg1; ldv_assume(ldv_statevar_2 == 12); ldv_dispatch_deregister_31_1(ldv_31_pci_driver_pci_driver); } return; return; } } int ldv_platform_instance_probe_4_14(int (*arg0)(struct platform_device * ) , struct platform_device *arg1 ) { int tmp ; { { tmp = (*arg0)(arg1); } return (tmp); } } void ldv_platform_instance_release_4_3(int (*arg0)(struct platform_device * ) , struct platform_device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_complete_3_3(void (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_freeze_3_15(int (*arg0)(struct device * ) , struct device *arg1 ) { { { efx_pm_freeze(arg1); } return; } } void ldv_pm_ops_instance_freeze_late_3_14(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_freeze_noirq_3_12(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_poweroff_3_9(int (*arg0)(struct device * ) , struct device *arg1 ) { { { efx_pm_poweroff(arg1); } return; } } void ldv_pm_ops_instance_poweroff_late_3_8(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_poweroff_noirq_3_6(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_prepare_3_22(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_restore_3_4(int (*arg0)(struct device * ) , struct device *arg1 ) { { { efx_pm_resume(arg1); } return; } } void ldv_pm_ops_instance_restore_early_3_7(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_restore_noirq_3_5(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_resume_3_16(int (*arg0)(struct device * ) , struct device *arg1 ) { { { efx_pm_resume(arg1); } return; } } void ldv_pm_ops_instance_resume_early_3_17(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_resume_noirq_3_19(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_runtime_idle_3_27(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_runtime_resume_3_24(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_runtime_suspend_3_25(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_suspend_3_21(int (*arg0)(struct device * ) , struct device *arg1 ) { { { efx_pm_suspend(arg1); } return; } } void ldv_pm_ops_instance_suspend_late_3_18(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_suspend_noirq_3_20(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_thaw_3_10(int (*arg0)(struct device * ) , struct device *arg1 ) { { { efx_pm_thaw(arg1); } return; } } void ldv_pm_ops_instance_thaw_early_3_13(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_ops_instance_thaw_noirq_3_11(int (*arg0)(struct device * ) , struct device *arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_pm_platform_instance_4(void *arg0 ) { int tmp ; int tmp___0 ; int tmp___1 ; void *tmp___2 ; void *tmp___3 ; int tmp___4 ; { { if (ldv_statevar_4 == 1) { goto case_1; } else { } if (ldv_statevar_4 == 4) { goto case_4; } else { } if (ldv_statevar_4 == 5) { goto case_5; } else { } if (ldv_statevar_4 == 6) { goto case_6; } else { } if (ldv_statevar_4 == 7) { goto case_7; } else { } if (ldv_statevar_4 == 9) { goto case_9; } else { } if (ldv_statevar_4 == 11) { goto case_11; } else { } if (ldv_statevar_4 == 13) { goto case_13; } else { } if (ldv_statevar_4 == 16) { goto case_16; } else { } if (ldv_statevar_4 == 17) { goto case_17; } else { } if (ldv_statevar_4 == 20) { goto case_20; } else { } if (ldv_statevar_4 == 22) { goto case_22; } else { } goto switch_default; case_1: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_4 = 9; } else { ldv_statevar_4 = 22; } goto ldv_59246; case_4: /* CIL Label */ { ldv_statevar_4 = ldv_switch_4(); } goto ldv_59246; case_5: /* CIL Label */ { ldv_assume(ldv_statevar_3 == 1); ldv_dispatch_pm_deregister_4_5(); ldv_statevar_4 = 4; } goto ldv_59246; case_6: /* CIL Label */ { ldv_assume(ldv_statevar_3 == 29); ldv_dispatch_pm_register_4_6(); ldv_statevar_4 = 5; } goto ldv_59246; case_7: /* CIL Label */ ldv_statevar_4 = 4; goto ldv_59246; case_9: /* CIL Label */ ldv_4_probed_default = 1; ldv_statevar_4 = 17; goto ldv_59246; case_11: /* CIL Label */ { ldv_assume(ldv_4_probed_default != 0); tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_4 = 9; } else { ldv_statevar_4 = 22; } goto ldv_59246; case_13: /* CIL Label */ { ldv_assume(ldv_4_probed_default == 0); ldv_statevar_4 = ldv_switch_4(); } goto ldv_59246; case_16: /* CIL Label */ { tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { ldv_statevar_4 = 9; } else { ldv_statevar_4 = 22; } goto ldv_59246; case_17: /* CIL Label */ ; goto ldv_59246; case_20: /* CIL Label */ { tmp___2 = ldv_xmalloc(1432UL); ldv_4_ldv_param_3_0_default = (struct platform_device *)tmp___2; } if ((unsigned long )ldv_4_container_platform_driver->remove != (unsigned long )((int (*)(struct platform_device * ))0)) { { ldv_platform_instance_release_4_3(ldv_4_container_platform_driver->remove, ldv_4_ldv_param_3_0_default); } } else { } { ldv_free((void *)ldv_4_ldv_param_3_0_default); ldv_4_probed_default = 1; ldv_statevar_4 = 1; } goto ldv_59246; case_22: /* CIL Label */ { tmp___3 = ldv_xmalloc(1432UL); ldv_4_ldv_param_14_0_default = (struct platform_device *)tmp___3; ldv_pre_probe(); } if ((unsigned long )ldv_4_container_platform_driver->probe != (unsigned long )((int (*)(struct platform_device * ))0)) { { ldv_4_probed_default = ldv_platform_instance_probe_4_14(ldv_4_container_platform_driver->probe, ldv_4_ldv_param_14_0_default); } } else { } { ldv_4_probed_default = ldv_post_probe(ldv_4_probed_default); ldv_free((void *)ldv_4_ldv_param_14_0_default); tmp___4 = ldv_undef_int(); } if (tmp___4 != 0) { ldv_statevar_4 = 11; } else { ldv_statevar_4 = 13; } goto ldv_59246; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59246: ; return; } } void ldv_pm_pm_ops_instance_3(void *arg0 ) { int tmp ; int tmp___0 ; int tmp___1 ; { { if (ldv_statevar_3 == 1) { goto case_1; } else { } if (ldv_statevar_3 == 2) { goto case_2; } else { } if (ldv_statevar_3 == 3) { goto case_3; } else { } if (ldv_statevar_3 == 4) { goto case_4; } else { } if (ldv_statevar_3 == 5) { goto case_5; } else { } if (ldv_statevar_3 == 6) { goto case_6; } else { } if (ldv_statevar_3 == 7) { goto case_7; } else { } if (ldv_statevar_3 == 8) { goto case_8; } else { } if (ldv_statevar_3 == 9) { goto case_9; } else { } if (ldv_statevar_3 == 10) { goto case_10; } else { } if (ldv_statevar_3 == 11) { goto case_11; } else { } if (ldv_statevar_3 == 12) { goto case_12; } else { } if (ldv_statevar_3 == 13) { goto case_13; } else { } if (ldv_statevar_3 == 14) { goto case_14; } else { } if (ldv_statevar_3 == 15) { goto case_15; } else { } if (ldv_statevar_3 == 16) { goto case_16; } else { } if (ldv_statevar_3 == 17) { goto case_17; } else { } if (ldv_statevar_3 == 18) { goto case_18; } else { } if (ldv_statevar_3 == 19) { goto case_19; } else { } if (ldv_statevar_3 == 20) { goto case_20; } else { } if (ldv_statevar_3 == 21) { goto case_21; } else { } if (ldv_statevar_3 == 22) { goto case_22; } else { } if (ldv_statevar_3 == 23) { goto case_23; } else { } if (ldv_statevar_3 == 24) { goto case_24; } else { } if (ldv_statevar_3 == 25) { goto case_25; } else { } if (ldv_statevar_3 == 26) { goto case_26; } else { } if (ldv_statevar_3 == 27) { goto case_27; } else { } if (ldv_statevar_3 == 28) { goto case_28; } else { } if (ldv_statevar_3 == 29) { goto case_29; } else { } goto switch_default; case_1: /* CIL Label */ ; goto ldv_59263; case_2: /* CIL Label */ { ldv_statevar_3 = ldv_switch_2(); } goto ldv_59263; case_3: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->complete != (unsigned long )((void (*)(struct device * ))0)) { { ldv_pm_ops_instance_complete_3_3(ldv_3_pm_ops_dev_pm_ops->complete, ldv_3_device_device); } } else { } ldv_statevar_3 = 2; goto ldv_59263; case_4: /* CIL Label */ { ldv_pm_ops_instance_restore_3_4(ldv_3_pm_ops_dev_pm_ops->restore, ldv_3_device_device); ldv_statevar_3 = 3; } goto ldv_59263; case_5: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->restore_noirq != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_restore_noirq_3_5(ldv_3_pm_ops_dev_pm_ops->restore_noirq, ldv_3_device_device); } } else { } ldv_statevar_3 = 4; goto ldv_59263; case_6: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->poweroff_noirq != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_poweroff_noirq_3_6(ldv_3_pm_ops_dev_pm_ops->poweroff_noirq, ldv_3_device_device); } } else { } ldv_statevar_3 = 5; goto ldv_59263; case_7: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->restore_early != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_restore_early_3_7(ldv_3_pm_ops_dev_pm_ops->restore_early, ldv_3_device_device); } } else { } ldv_statevar_3 = 4; goto ldv_59263; case_8: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->poweroff_late != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_poweroff_late_3_8(ldv_3_pm_ops_dev_pm_ops->poweroff_late, ldv_3_device_device); } } else { } ldv_statevar_3 = 7; goto ldv_59263; case_9: /* CIL Label */ { ldv_pm_ops_instance_poweroff_3_9(ldv_3_pm_ops_dev_pm_ops->poweroff, ldv_3_device_device); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_3 = 6; } else { ldv_statevar_3 = 8; } goto ldv_59263; case_10: /* CIL Label */ { ldv_pm_ops_instance_thaw_3_10(ldv_3_pm_ops_dev_pm_ops->thaw, ldv_3_device_device); ldv_statevar_3 = 3; } goto ldv_59263; case_11: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->thaw_noirq != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_thaw_noirq_3_11(ldv_3_pm_ops_dev_pm_ops->thaw_noirq, ldv_3_device_device); } } else { } ldv_statevar_3 = 10; goto ldv_59263; case_12: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->freeze_noirq != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_freeze_noirq_3_12(ldv_3_pm_ops_dev_pm_ops->freeze_noirq, ldv_3_device_device); } } else { } ldv_statevar_3 = 11; goto ldv_59263; case_13: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->thaw_early != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_thaw_early_3_13(ldv_3_pm_ops_dev_pm_ops->thaw_early, ldv_3_device_device); } } else { } ldv_statevar_3 = 10; goto ldv_59263; case_14: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->freeze_late != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_freeze_late_3_14(ldv_3_pm_ops_dev_pm_ops->freeze_late, ldv_3_device_device); } } else { } ldv_statevar_3 = 13; goto ldv_59263; case_15: /* CIL Label */ { ldv_pm_ops_instance_freeze_3_15(ldv_3_pm_ops_dev_pm_ops->freeze, ldv_3_device_device); tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_3 = 12; } else { ldv_statevar_3 = 14; } goto ldv_59263; case_16: /* CIL Label */ { ldv_pm_ops_instance_resume_3_16(ldv_3_pm_ops_dev_pm_ops->resume, ldv_3_device_device); ldv_statevar_3 = 3; } goto ldv_59263; case_17: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->resume_early != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_resume_early_3_17(ldv_3_pm_ops_dev_pm_ops->resume_early, ldv_3_device_device); } } else { } ldv_statevar_3 = 16; goto ldv_59263; case_18: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->suspend_late != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_suspend_late_3_18(ldv_3_pm_ops_dev_pm_ops->suspend_late, ldv_3_device_device); } } else { } ldv_statevar_3 = 17; goto ldv_59263; case_19: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->resume_noirq != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_resume_noirq_3_19(ldv_3_pm_ops_dev_pm_ops->resume_noirq, ldv_3_device_device); } } else { } ldv_statevar_3 = 16; goto ldv_59263; case_20: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->suspend_noirq != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_suspend_noirq_3_20(ldv_3_pm_ops_dev_pm_ops->suspend_noirq, ldv_3_device_device); } } else { } ldv_statevar_3 = 19; goto ldv_59263; case_21: /* CIL Label */ { ldv_pm_ops_instance_suspend_3_21(ldv_3_pm_ops_dev_pm_ops->suspend, ldv_3_device_device); tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { ldv_statevar_3 = 18; } else { ldv_statevar_3 = 20; } goto ldv_59263; case_22: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->prepare != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_prepare_3_22(ldv_3_pm_ops_dev_pm_ops->prepare, ldv_3_device_device); } } else { } { ldv_statevar_3 = ldv_switch_3(); } goto ldv_59263; case_23: /* CIL Label */ { ldv_statevar_3 = ldv_switch_2(); } goto ldv_59263; case_24: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->runtime_resume != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_runtime_resume_3_24(ldv_3_pm_ops_dev_pm_ops->runtime_resume, ldv_3_device_device); } } else { } ldv_statevar_3 = 23; goto ldv_59263; case_25: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->runtime_suspend != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_runtime_suspend_3_25(ldv_3_pm_ops_dev_pm_ops->runtime_suspend, ldv_3_device_device); } } else { } ldv_statevar_3 = 24; goto ldv_59263; case_26: /* CIL Label */ { ldv_statevar_3 = ldv_switch_2(); } goto ldv_59263; case_27: /* CIL Label */ ; if ((unsigned long )ldv_3_pm_ops_dev_pm_ops->runtime_idle != (unsigned long )((int (*)(struct device * ))0)) { { ldv_pm_ops_instance_runtime_idle_3_27(ldv_3_pm_ops_dev_pm_ops->runtime_idle, ldv_3_device_device); } } else { } ldv_statevar_3 = 26; goto ldv_59263; case_28: /* CIL Label */ { ldv_statevar_3 = ldv_switch_2(); } goto ldv_59263; case_29: /* CIL Label */ ; goto ldv_59263; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59263: ; return; } } int ldv_register_netdevice(int arg0 , struct net_device *arg1 ) { struct net_device *ldv_30_net_device_net_device ; int tmp ; { { tmp = ldv_undef_int(); } if (tmp != 0) { { ldv_assume(arg0 == 0); ldv_30_net_device_net_device = arg1; ldv_assume(ldv_statevar_1 == 5); ldv_dispatch_register_30_2(ldv_30_net_device_net_device); } return (arg0); } else { { ldv_assume(arg0 != 0); } return (arg0); } return (arg0); } } int ldv_register_netdevice_notifier(int arg0 , struct notifier_block *arg1 ) { struct notifier_block *ldv_34_struct_notifier_block_struct_notifier_block ; int tmp ; { { tmp = ldv_undef_int(); } if (tmp != 0) { { ldv_assume(arg0 == 0); ldv_34_struct_notifier_block_struct_notifier_block = arg1; ldv_assume(ldv_statevar_20 == 5); ldv_dispatch_register_34_2(ldv_34_struct_notifier_block_struct_notifier_block); } return (arg0); } else { { ldv_assume(arg0 != 0); } return (arg0); } return (arg0); } } void ldv_struct_device_attribute_dummy_resourceless_instance_6(void *arg0 ) { int tmp ; int tmp___0 ; void *tmp___1 ; int tmp___2 ; void *tmp___3 ; { { if (ldv_statevar_6 == 1) { goto case_1; } else { } if (ldv_statevar_6 == 2) { goto case_2; } else { } if (ldv_statevar_6 == 3) { goto case_3; } else { } if (ldv_statevar_6 == 4) { goto case_4; } else { } if (ldv_statevar_6 == 5) { goto case_5; } else { } if (ldv_statevar_6 == 7) { goto case_7; } else { } if (ldv_statevar_6 == 10) { goto case_10; } else { } goto switch_default; case_1: /* CIL Label */ ; goto ldv_59307; case_2: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_6 = 1; } else { ldv_statevar_6 = 7; } goto ldv_59307; case_3: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_6_3(ldv_6_callback_show, ldv_6_container_struct_device_ptr, ldv_6_container_struct_device_attribute, ldv_6_ldv_param_3_2_default); ldv_free((void *)ldv_6_ldv_param_3_2_default); ldv_statevar_6 = 2; } goto ldv_59307; case_4: /* CIL Label */ { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_6 = 1; } else { ldv_statevar_6 = 7; } goto ldv_59307; case_5: /* CIL Label */ ; goto ldv_59307; case_7: /* CIL Label */ { tmp___1 = ldv_xmalloc(1UL); ldv_6_ldv_param_3_2_default = (char *)tmp___1; tmp___2 = ldv_undef_int(); } if (tmp___2 != 0) { ldv_statevar_6 = 3; } else { ldv_statevar_6 = 10; } goto ldv_59307; case_10: /* CIL Label */ { tmp___3 = ldv_xmalloc(1UL); ldv_6_ldv_param_9_2_default = (char *)tmp___3; } if ((unsigned long )ldv_6_callback_store != (unsigned long )((long (*)(struct device * , struct device_attribute * , char * , unsigned long ))0)) { { ldv_dummy_resourceless_instance_callback_6_9(ldv_6_callback_store, ldv_6_container_struct_device_ptr, ldv_6_container_struct_device_attribute, ldv_6_ldv_param_9_2_default, ldv_6_ldv_param_9_3_default); } } else { } { ldv_free((void *)ldv_6_ldv_param_9_2_default); ldv_free((void *)ldv_6_ldv_param_3_2_default); ldv_statevar_6 = 2; } goto ldv_59307; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59307: ; return; } } void ldv_struct_efx_sw_stat_desc_base_instance_7(void *arg0 ) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; { { if (ldv_statevar_7 == 1) { goto case_1; } else { } if (ldv_statevar_7 == 2) { goto case_2; } else { } if (ldv_statevar_7 == 3) { goto case_3; } else { } if (ldv_statevar_7 == 4) { goto case_4; } else { } if (ldv_statevar_7 == 6) { goto case_6; } else { } if (ldv_statevar_7 == 7) { goto case_7; } else { } if (ldv_statevar_7 == 8) { goto case_8; } else { } if (ldv_statevar_7 == 11) { goto case_11; } else { } if (ldv_statevar_7 == 13) { goto case_13; } else { } if (ldv_statevar_7 == 15) { goto case_15; } else { } if (ldv_statevar_7 == 16) { goto case_16; } else { } if (ldv_statevar_7 == 18) { goto case_18; } else { } if (ldv_statevar_7 == 19) { goto case_19; } else { } if (ldv_statevar_7 == 22) { goto case_22; } else { } goto switch_default; case_1: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_7 = 11; } else { ldv_statevar_7 = 16; } goto ldv_59319; case_2: /* CIL Label */ ldv_statevar_7 = 1; goto ldv_59319; case_3: /* CIL Label */ { ldv_statevar_7 = ldv_switch_5(); } goto ldv_59319; case_4: /* CIL Label */ { ldv_assume(ldv_7_ret_default != 0); ldv_statevar_7 = ldv_switch_5(); } goto ldv_59319; case_6: /* CIL Label */ { ldv_assume(ldv_7_ret_default == 0); ldv_statevar_7 = 3; } goto ldv_59319; case_7: /* CIL Label */ { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_7 = 4; } else { ldv_statevar_7 = 6; } goto ldv_59319; case_8: /* CIL Label */ { ldv_statevar_7 = ldv_switch_5(); } goto ldv_59319; case_11: /* CIL Label */ ldv_7_ret_default = 1; ldv_statevar_7 = 19; goto ldv_59319; case_13: /* CIL Label */ { ldv_assume(ldv_7_ret_default != 0); tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { ldv_statevar_7 = 11; } else { ldv_statevar_7 = 16; } goto ldv_59319; case_15: /* CIL Label */ { ldv_assume(ldv_7_ret_default == 0); ldv_statevar_7 = ldv_switch_5(); } goto ldv_59319; case_16: /* CIL Label */ { tmp___2 = ldv_undef_int(); } if (tmp___2 != 0) { ldv_statevar_7 = 13; } else { ldv_statevar_7 = 15; } goto ldv_59319; case_18: /* CIL Label */ { tmp___3 = ldv_undef_int(); } if (tmp___3 != 0) { ldv_statevar_7 = 11; } else { ldv_statevar_7 = 16; } goto ldv_59319; case_19: /* CIL Label */ ; goto ldv_59319; case_22: /* CIL Label */ { ldv_7_ldv_param_9_0_default = ldv_xmalloc(1UL); ldv_base_instance_callback_7_9(ldv_7_callback_get_stat, ldv_7_ldv_param_9_0_default); ldv_free(ldv_7_ldv_param_9_0_default); ldv_statevar_7 = 8; } goto ldv_59319; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59319: ; return; } } void ldv_struct_efx_sw_stat_desc_base_instance_8(void *arg0 ) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; { { if (ldv_statevar_8 == 1) { goto case_1; } else { } if (ldv_statevar_8 == 2) { goto case_2; } else { } if (ldv_statevar_8 == 3) { goto case_3; } else { } if (ldv_statevar_8 == 4) { goto case_4; } else { } if (ldv_statevar_8 == 6) { goto case_6; } else { } if (ldv_statevar_8 == 7) { goto case_7; } else { } if (ldv_statevar_8 == 8) { goto case_8; } else { } if (ldv_statevar_8 == 11) { goto case_11; } else { } if (ldv_statevar_8 == 13) { goto case_13; } else { } if (ldv_statevar_8 == 15) { goto case_15; } else { } if (ldv_statevar_8 == 16) { goto case_16; } else { } if (ldv_statevar_8 == 18) { goto case_18; } else { } if (ldv_statevar_8 == 19) { goto case_19; } else { } if (ldv_statevar_8 == 22) { goto case_22; } else { } goto switch_default; case_1: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_8 = 11; } else { ldv_statevar_8 = 16; } goto ldv_59338; case_2: /* CIL Label */ ldv_statevar_8 = 1; goto ldv_59338; case_3: /* CIL Label */ { ldv_statevar_8 = ldv_switch_5(); } goto ldv_59338; case_4: /* CIL Label */ { ldv_assume(ldv_8_ret_default != 0); ldv_statevar_8 = ldv_switch_5(); } goto ldv_59338; case_6: /* CIL Label */ { ldv_assume(ldv_8_ret_default == 0); ldv_statevar_8 = 3; } goto ldv_59338; case_7: /* CIL Label */ { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_8 = 4; } else { ldv_statevar_8 = 6; } goto ldv_59338; case_8: /* CIL Label */ { ldv_statevar_8 = ldv_switch_5(); } goto ldv_59338; case_11: /* CIL Label */ ldv_8_ret_default = 1; ldv_statevar_8 = 19; goto ldv_59338; case_13: /* CIL Label */ { ldv_assume(ldv_8_ret_default != 0); tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { ldv_statevar_8 = 11; } else { ldv_statevar_8 = 16; } goto ldv_59338; case_15: /* CIL Label */ { ldv_assume(ldv_8_ret_default == 0); ldv_statevar_8 = ldv_switch_5(); } goto ldv_59338; case_16: /* CIL Label */ { tmp___2 = ldv_undef_int(); } if (tmp___2 != 0) { ldv_statevar_8 = 13; } else { ldv_statevar_8 = 15; } goto ldv_59338; case_18: /* CIL Label */ { tmp___3 = ldv_undef_int(); } if (tmp___3 != 0) { ldv_statevar_8 = 11; } else { ldv_statevar_8 = 16; } goto ldv_59338; case_19: /* CIL Label */ ; goto ldv_59338; case_22: /* CIL Label */ { ldv_8_ldv_param_9_0_default = ldv_xmalloc(1UL); ldv_base_instance_callback_8_9(ldv_8_callback_get_stat, ldv_8_ldv_param_9_0_default); ldv_free(ldv_8_ldv_param_9_0_default); ldv_statevar_8 = 8; } goto ldv_59338; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59338: ; return; } } void ldv_struct_i2c_algo_bit_data_base_instance_19(void *arg0 ) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; { { if (ldv_statevar_19 == 1) { goto case_1; } else { } if (ldv_statevar_19 == 2) { goto case_2; } else { } if (ldv_statevar_19 == 3) { goto case_3; } else { } if (ldv_statevar_19 == 4) { goto case_4; } else { } if (ldv_statevar_19 == 6) { goto case_6; } else { } if (ldv_statevar_19 == 7) { goto case_7; } else { } if (ldv_statevar_19 == 8) { goto case_8; } else { } if (ldv_statevar_19 == 9) { goto case_9; } else { } if (ldv_statevar_19 == 11) { goto case_11; } else { } if (ldv_statevar_19 == 13) { goto case_13; } else { } if (ldv_statevar_19 == 15) { goto case_15; } else { } if (ldv_statevar_19 == 16) { goto case_16; } else { } if (ldv_statevar_19 == 18) { goto case_18; } else { } if (ldv_statevar_19 == 19) { goto case_19; } else { } if (ldv_statevar_19 == 22) { goto case_22; } else { } if (ldv_statevar_19 == 25) { goto case_25; } else { } if (ldv_statevar_19 == 28) { goto case_28; } else { } if (ldv_statevar_19 == 31) { goto case_31; } else { } goto switch_default; case_1: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_19 = 11; } else { ldv_statevar_19 = 16; } goto ldv_59357; case_2: /* CIL Label */ ldv_statevar_19 = 1; goto ldv_59357; case_3: /* CIL Label */ { ldv_statevar_19 = ldv_switch_5(); } goto ldv_59357; case_4: /* CIL Label */ { ldv_assume(ldv_19_ret_default != 0); ldv_statevar_19 = ldv_switch_5(); } goto ldv_59357; case_6: /* CIL Label */ { ldv_assume(ldv_19_ret_default == 0); ldv_statevar_19 = 3; } goto ldv_59357; case_7: /* CIL Label */ { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_19 = 4; } else { ldv_statevar_19 = 6; } goto ldv_59357; case_8: /* CIL Label */ { ldv_statevar_19 = ldv_switch_5(); } goto ldv_59357; case_9: /* CIL Label */ { ldv_base_instance_callback_19_9(ldv_19_callback_getscl, ldv_19_ldv_param_9_0_default); ldv_free(ldv_19_ldv_param_9_0_default); ldv_statevar_19 = 8; } goto ldv_59357; case_11: /* CIL Label */ ldv_19_ret_default = 1; ldv_statevar_19 = 19; goto ldv_59357; case_13: /* CIL Label */ { ldv_assume(ldv_19_ret_default != 0); tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { ldv_statevar_19 = 11; } else { ldv_statevar_19 = 16; } goto ldv_59357; case_15: /* CIL Label */ { ldv_assume(ldv_19_ret_default == 0); ldv_statevar_19 = ldv_switch_5(); } goto ldv_59357; case_16: /* CIL Label */ { tmp___2 = ldv_undef_int(); } if (tmp___2 != 0) { ldv_statevar_19 = 13; } else { ldv_statevar_19 = 15; } goto ldv_59357; case_18: /* CIL Label */ { tmp___3 = ldv_undef_int(); } if (tmp___3 != 0) { ldv_statevar_19 = 11; } else { ldv_statevar_19 = 16; } goto ldv_59357; case_19: /* CIL Label */ ; goto ldv_59357; case_22: /* CIL Label */ { ldv_19_ldv_param_9_0_default = ldv_xmalloc(1UL); ldv_statevar_19 = ldv_switch_8(); } goto ldv_59357; case_25: /* CIL Label */ { ldv_19_ldv_param_24_0_default = ldv_xmalloc(1UL); ldv_base_instance_callback_19_24(ldv_19_callback_getsda, ldv_19_ldv_param_24_0_default); ldv_free(ldv_19_ldv_param_24_0_default); ldv_free(ldv_19_ldv_param_9_0_default); ldv_statevar_19 = 8; } goto ldv_59357; case_28: /* CIL Label */ { ldv_19_ldv_param_27_0_default = ldv_xmalloc(1UL); ldv_base_instance_callback_19_27(ldv_19_callback_setscl, ldv_19_ldv_param_27_0_default, ldv_19_ldv_param_27_1_default); ldv_free(ldv_19_ldv_param_27_0_default); ldv_free(ldv_19_ldv_param_9_0_default); ldv_statevar_19 = 8; } goto ldv_59357; case_31: /* CIL Label */ { ldv_19_ldv_param_30_0_default = ldv_xmalloc(1UL); ldv_base_instance_callback_19_30(ldv_19_callback_setsda, ldv_19_ldv_param_30_0_default, ldv_19_ldv_param_30_1_default); ldv_free(ldv_19_ldv_param_30_0_default); ldv_free(ldv_19_ldv_param_9_0_default); ldv_statevar_19 = 8; } goto ldv_59357; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59357: ; return; } } void ldv_struct_notifier_block_dummy_resourceless_instance_20(void *arg0 ) { int tmp ; int tmp___0 ; { { if (ldv_statevar_20 == 1) { goto case_1; } else { } if (ldv_statevar_20 == 2) { goto case_2; } else { } if (ldv_statevar_20 == 4) { goto case_4; } else { } if (ldv_statevar_20 == 5) { goto case_5; } else { } if (ldv_statevar_20 == 7) { goto case_7; } else { } goto switch_default; case_1: /* CIL Label */ ; goto ldv_59380; case_2: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_20 = 1; } else { ldv_statevar_20 = 7; } goto ldv_59380; case_4: /* CIL Label */ { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_20 = 1; } else { ldv_statevar_20 = 7; } goto ldv_59380; case_5: /* CIL Label */ ; goto ldv_59380; case_7: /* CIL Label */ { ldv_20_ldv_param_3_2_default = ldv_xmalloc(1UL); ldv_dummy_resourceless_instance_callback_20_3(ldv_20_callback_notifier_call, ldv_20_container_struct_notifier_block, ldv_20_ldv_param_3_1_default, ldv_20_ldv_param_3_2_default); ldv_free(ldv_20_ldv_param_3_2_default); ldv_statevar_20 = 2; } goto ldv_59380; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59380: ; return; } } int ldv_switch_0(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } if (tmp == 3) { goto case_3; } else { } if (tmp == 4) { goto case_4; } else { } if (tmp == 5) { goto case_5; } else { } if (tmp == 6) { goto case_6; } else { } if (tmp == 7) { goto case_7; } else { } if (tmp == 8) { goto case_8; } else { } if (tmp == 9) { goto case_9; } else { } if (tmp == 10) { goto case_10; } else { } if (tmp == 11) { goto case_11; } else { } if (tmp == 12) { goto case_12; } else { } if (tmp == 13) { goto case_13; } else { } if (tmp == 14) { goto case_14; } else { } if (tmp == 15) { goto case_15; } else { } if (tmp == 16) { goto case_16; } else { } if (tmp == 17) { goto case_17; } else { } if (tmp == 18) { goto case_18; } else { } if (tmp == 19) { goto case_19; } else { } if (tmp == 20) { goto case_20; } else { } if (tmp == 21) { goto case_21; } else { } if (tmp == 22) { goto case_22; } else { } if (tmp == 23) { goto case_23; } else { } if (tmp == 24) { goto case_24; } else { } if (tmp == 25) { goto case_25; } else { } if (tmp == 26) { goto case_26; } else { } if (tmp == 27) { goto case_27; } else { } if (tmp == 28) { goto case_28; } else { } if (tmp == 29) { goto case_29; } else { } if (tmp == 30) { goto case_30; } else { } if (tmp == 31) { goto case_31; } else { } if (tmp == 32) { goto case_32; } else { } if (tmp == 33) { goto case_33; } else { } if (tmp == 34) { goto case_34; } else { } if (tmp == 35) { goto case_35; } else { } if (tmp == 36) { goto case_36; } else { } if (tmp == 37) { goto case_37; } else { } if (tmp == 38) { goto case_38; } else { } if (tmp == 39) { goto case_39; } else { } if (tmp == 40) { goto case_40; } else { } if (tmp == 41) { goto case_41; } else { } if (tmp == 42) { goto case_42; } else { } if (tmp == 43) { goto case_43; } else { } if (tmp == 44) { goto case_44; } else { } if (tmp == 45) { goto case_45; } else { } if (tmp == 46) { goto case_46; } else { } if (tmp == 47) { goto case_47; } else { } if (tmp == 48) { goto case_48; } else { } if (tmp == 49) { goto case_49; } else { } goto switch_default; case_0: /* CIL Label */ ; return (1); case_1: /* CIL Label */ ; return (3); case_2: /* CIL Label */ ; return (7); case_3: /* CIL Label */ ; return (9); case_4: /* CIL Label */ ; return (11); case_5: /* CIL Label */ ; return (13); case_6: /* CIL Label */ ; return (15); case_7: /* CIL Label */ ; return (16); case_8: /* CIL Label */ ; return (17); case_9: /* CIL Label */ ; return (18); case_10: /* CIL Label */ ; return (19); case_11: /* CIL Label */ ; return (20); case_12: /* CIL Label */ ; return (22); case_13: /* CIL Label */ ; return (24); case_14: /* CIL Label */ ; return (26); case_15: /* CIL Label */ ; return (28); case_16: /* CIL Label */ ; return (30); case_17: /* CIL Label */ ; return (33); case_18: /* CIL Label */ ; return (35); case_19: /* CIL Label */ ; return (36); case_20: /* CIL Label */ ; return (38); case_21: /* CIL Label */ ; return (41); case_22: /* CIL Label */ ; return (43); case_23: /* CIL Label */ ; return (45); case_24: /* CIL Label */ ; return (47); case_25: /* CIL Label */ ; return (48); case_26: /* CIL Label */ ; return (50); case_27: /* CIL Label */ ; return (53); case_28: /* CIL Label */ ; return (55); case_29: /* CIL Label */ ; return (56); case_30: /* CIL Label */ ; return (58); case_31: /* CIL Label */ ; return (61); case_32: /* CIL Label */ ; return (64); case_33: /* CIL Label */ ; return (67); case_34: /* CIL Label */ ; return (69); case_35: /* CIL Label */ ; return (70); case_36: /* CIL Label */ ; return (71); case_37: /* CIL Label */ ; return (72); case_38: /* CIL Label */ ; return (73); case_39: /* CIL Label */ ; return (75); case_40: /* CIL Label */ ; return (78); case_41: /* CIL Label */ ; return (80); case_42: /* CIL Label */ ; return (82); case_43: /* CIL Label */ ; return (84); case_44: /* CIL Label */ ; return (85); case_45: /* CIL Label */ ; return (86); case_46: /* CIL Label */ ; return (88); case_47: /* CIL Label */ ; return (90); case_48: /* CIL Label */ ; return (91); case_49: /* CIL Label */ ; return (92); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_1(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } if (tmp == 3) { goto case_3; } else { } if (tmp == 4) { goto case_4; } else { } goto switch_default; case_0: /* CIL Label */ ; return (3); case_1: /* CIL Label */ ; return (8); case_2: /* CIL Label */ ; return (10); case_3: /* CIL Label */ ; return (23); case_4: /* CIL Label */ ; return (24); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_2(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } if (tmp == 3) { goto case_3; } else { } goto switch_default; case_0: /* CIL Label */ ; return (1); case_1: /* CIL Label */ ; return (22); case_2: /* CIL Label */ ; return (25); case_3: /* CIL Label */ ; return (27); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_3(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } goto switch_default; case_0: /* CIL Label */ ; return (9); case_1: /* CIL Label */ ; return (15); case_2: /* CIL Label */ ; return (21); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_4(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } goto switch_default; case_0: /* CIL Label */ ; return (6); case_1: /* CIL Label */ ; return (7); case_2: /* CIL Label */ ; return (20); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_5(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } goto switch_default; case_0: /* CIL Label */ ; return (2); case_1: /* CIL Label */ ; return (7); case_2: /* CIL Label */ ; return (22); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_6(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } goto switch_default; case_0: /* CIL Label */ ; return (6); case_1: /* CIL Label */ ; return (11); case_2: /* CIL Label */ ; return (161); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_7(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } if (tmp == 3) { goto case_3; } else { } if (tmp == 4) { goto case_4; } else { } if (tmp == 5) { goto case_5; } else { } if (tmp == 6) { goto case_6; } else { } if (tmp == 7) { goto case_7; } else { } if (tmp == 8) { goto case_8; } else { } if (tmp == 9) { goto case_9; } else { } if (tmp == 10) { goto case_10; } else { } if (tmp == 11) { goto case_11; } else { } if (tmp == 12) { goto case_12; } else { } if (tmp == 13) { goto case_13; } else { } if (tmp == 14) { goto case_14; } else { } if (tmp == 15) { goto case_15; } else { } if (tmp == 16) { goto case_16; } else { } if (tmp == 17) { goto case_17; } else { } if (tmp == 18) { goto case_18; } else { } if (tmp == 19) { goto case_19; } else { } if (tmp == 20) { goto case_20; } else { } if (tmp == 21) { goto case_21; } else { } if (tmp == 22) { goto case_22; } else { } if (tmp == 23) { goto case_23; } else { } if (tmp == 24) { goto case_24; } else { } if (tmp == 25) { goto case_25; } else { } if (tmp == 26) { goto case_26; } else { } if (tmp == 27) { goto case_27; } else { } if (tmp == 28) { goto case_28; } else { } if (tmp == 29) { goto case_29; } else { } if (tmp == 30) { goto case_30; } else { } if (tmp == 31) { goto case_31; } else { } if (tmp == 32) { goto case_32; } else { } if (tmp == 33) { goto case_33; } else { } if (tmp == 34) { goto case_34; } else { } if (tmp == 35) { goto case_35; } else { } if (tmp == 36) { goto case_36; } else { } if (tmp == 37) { goto case_37; } else { } if (tmp == 38) { goto case_38; } else { } if (tmp == 39) { goto case_39; } else { } if (tmp == 40) { goto case_40; } else { } if (tmp == 41) { goto case_41; } else { } if (tmp == 42) { goto case_42; } else { } if (tmp == 43) { goto case_43; } else { } if (tmp == 44) { goto case_44; } else { } if (tmp == 45) { goto case_45; } else { } if (tmp == 46) { goto case_46; } else { } if (tmp == 47) { goto case_47; } else { } if (tmp == 48) { goto case_48; } else { } if (tmp == 49) { goto case_49; } else { } if (tmp == 50) { goto case_50; } else { } if (tmp == 51) { goto case_51; } else { } if (tmp == 52) { goto case_52; } else { } if (tmp == 53) { goto case_53; } else { } if (tmp == 54) { goto case_54; } else { } if (tmp == 55) { goto case_55; } else { } if (tmp == 56) { goto case_56; } else { } if (tmp == 57) { goto case_57; } else { } if (tmp == 58) { goto case_58; } else { } if (tmp == 59) { goto case_59; } else { } if (tmp == 60) { goto case_60; } else { } if (tmp == 61) { goto case_61; } else { } if (tmp == 62) { goto case_62; } else { } if (tmp == 63) { goto case_63; } else { } if (tmp == 64) { goto case_64; } else { } if (tmp == 65) { goto case_65; } else { } if (tmp == 66) { goto case_66; } else { } if (tmp == 67) { goto case_67; } else { } if (tmp == 68) { goto case_68; } else { } if (tmp == 69) { goto case_69; } else { } if (tmp == 70) { goto case_70; } else { } if (tmp == 71) { goto case_71; } else { } if (tmp == 72) { goto case_72; } else { } if (tmp == 73) { goto case_73; } else { } if (tmp == 74) { goto case_74; } else { } if (tmp == 75) { goto case_75; } else { } if (tmp == 76) { goto case_76; } else { } if (tmp == 77) { goto case_77; } else { } if (tmp == 78) { goto case_78; } else { } if (tmp == 79) { goto case_79; } else { } if (tmp == 80) { goto case_80; } else { } if (tmp == 81) { goto case_81; } else { } if (tmp == 82) { goto case_82; } else { } if (tmp == 83) { goto case_83; } else { } if (tmp == 84) { goto case_84; } else { } if (tmp == 85) { goto case_85; } else { } if (tmp == 86) { goto case_86; } else { } if (tmp == 87) { goto case_87; } else { } if (tmp == 88) { goto case_88; } else { } if (tmp == 89) { goto case_89; } else { } if (tmp == 90) { goto case_90; } else { } if (tmp == 91) { goto case_91; } else { } if (tmp == 92) { goto case_92; } else { } if (tmp == 93) { goto case_93; } else { } if (tmp == 94) { goto case_94; } else { } if (tmp == 95) { goto case_95; } else { } if (tmp == 96) { goto case_96; } else { } if (tmp == 97) { goto case_97; } else { } goto switch_default; case_0: /* CIL Label */ ; return (2); case_1: /* CIL Label */ ; return (4); case_2: /* CIL Label */ ; return (17); case_3: /* CIL Label */ ; return (18); case_4: /* CIL Label */ ; return (20); case_5: /* CIL Label */ ; return (22); case_6: /* CIL Label */ ; return (23); case_7: /* CIL Label */ ; return (24); case_8: /* CIL Label */ ; return (25); case_9: /* CIL Label */ ; return (27); case_10: /* CIL Label */ ; return (29); case_11: /* CIL Label */ ; return (30); case_12: /* CIL Label */ ; return (31); case_13: /* CIL Label */ ; return (32); case_14: /* CIL Label */ ; return (33); case_15: /* CIL Label */ ; return (34); case_16: /* CIL Label */ ; return (36); case_17: /* CIL Label */ ; return (39); case_18: /* CIL Label */ ; return (42); case_19: /* CIL Label */ ; return (45); case_20: /* CIL Label */ ; return (48); case_21: /* CIL Label */ ; return (50); case_22: /* CIL Label */ ; return (51); case_23: /* CIL Label */ ; return (52); case_24: /* CIL Label */ ; return (53); case_25: /* CIL Label */ ; return (54); case_26: /* CIL Label */ ; return (55); case_27: /* CIL Label */ ; return (56); case_28: /* CIL Label */ ; return (57); case_29: /* CIL Label */ ; return (58); case_30: /* CIL Label */ ; return (60); case_31: /* CIL Label */ ; return (62); case_32: /* CIL Label */ ; return (64); case_33: /* CIL Label */ ; return (66); case_34: /* CIL Label */ ; return (67); case_35: /* CIL Label */ ; return (68); case_36: /* CIL Label */ ; return (69); case_37: /* CIL Label */ ; return (70); case_38: /* CIL Label */ ; return (71); case_39: /* CIL Label */ ; return (72); case_40: /* CIL Label */ ; return (73); case_41: /* CIL Label */ ; return (75); case_42: /* CIL Label */ ; return (78); case_43: /* CIL Label */ ; return (80); case_44: /* CIL Label */ ; return (82); case_45: /* CIL Label */ ; return (84); case_46: /* CIL Label */ ; return (85); case_47: /* CIL Label */ ; return (86); case_48: /* CIL Label */ ; return (88); case_49: /* CIL Label */ ; return (91); case_50: /* CIL Label */ ; return (93); case_51: /* CIL Label */ ; return (94); case_52: /* CIL Label */ ; return (96); case_53: /* CIL Label */ ; return (98); case_54: /* CIL Label */ ; return (100); case_55: /* CIL Label */ ; return (102); case_56: /* CIL Label */ ; return (103); case_57: /* CIL Label */ ; return (105); case_58: /* CIL Label */ ; return (107); case_59: /* CIL Label */ ; return (108); case_60: /* CIL Label */ ; return (109); case_61: /* CIL Label */ ; return (110); case_62: /* CIL Label */ ; return (111); case_63: /* CIL Label */ ; return (112); case_64: /* CIL Label */ ; return (113); case_65: /* CIL Label */ ; return (115); case_66: /* CIL Label */ ; return (118); case_67: /* CIL Label */ ; return (120); case_68: /* CIL Label */ ; return (121); case_69: /* CIL Label */ ; return (122); case_70: /* CIL Label */ ; return (123); case_71: /* CIL Label */ ; return (124); case_72: /* CIL Label */ ; return (125); case_73: /* CIL Label */ ; return (126); case_74: /* CIL Label */ ; return (127); case_75: /* CIL Label */ ; return (128); case_76: /* CIL Label */ ; return (130); case_77: /* CIL Label */ ; return (132); case_78: /* CIL Label */ ; return (133); case_79: /* CIL Label */ ; return (134); case_80: /* CIL Label */ ; return (135); case_81: /* CIL Label */ ; return (136); case_82: /* CIL Label */ ; return (137); case_83: /* CIL Label */ ; return (138); case_84: /* CIL Label */ ; return (140); case_85: /* CIL Label */ ; return (142); case_86: /* CIL Label */ ; return (144); case_87: /* CIL Label */ ; return (146); case_88: /* CIL Label */ ; return (147); case_89: /* CIL Label */ ; return (148); case_90: /* CIL Label */ ; return (149); case_91: /* CIL Label */ ; return (151); case_92: /* CIL Label */ ; return (153); case_93: /* CIL Label */ ; return (154); case_94: /* CIL Label */ ; return (155); case_95: /* CIL Label */ ; return (156); case_96: /* CIL Label */ ; return (157); case_97: /* CIL Label */ ; return (159); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } int ldv_switch_8(void) { int tmp ; { { tmp = ldv_undef_int(); } { if (tmp == 0) { goto case_0; } else { } if (tmp == 1) { goto case_1; } else { } if (tmp == 2) { goto case_2; } else { } if (tmp == 3) { goto case_3; } else { } goto switch_default; case_0: /* CIL Label */ ; return (9); case_1: /* CIL Label */ ; return (25); case_2: /* CIL Label */ ; return (28); case_3: /* CIL Label */ ; return (31); switch_default: /* CIL Label */ { ldv_stop(); } switch_break: /* CIL Label */ ; } return (0); } } void ldv_switch_automaton_state_0_1(void) { { ldv_statevar_0 = 6; return; } } void ldv_switch_automaton_state_0_6(void) { { ldv_statevar_0 = 5; return; } } void ldv_switch_automaton_state_19_10(void) { { ldv_19_ret_default = 1; ldv_statevar_19 = 19; return; } } void ldv_switch_automaton_state_19_19(void) { { ldv_statevar_19 = 18; return; } } void ldv_switch_automaton_state_1_1(void) { { ldv_statevar_1 = 5; return; } } void ldv_switch_automaton_state_1_5(void) { { ldv_statevar_1 = 4; return; } } void ldv_switch_automaton_state_20_1(void) { { ldv_statevar_20 = 5; return; } } void ldv_switch_automaton_state_20_5(void) { { ldv_statevar_20 = 4; return; } } void ldv_switch_automaton_state_22_1(void) { { ldv_statevar_22 = 3; return; } } void ldv_switch_automaton_state_22_3(void) { { ldv_statevar_22 = 2; return; } } void ldv_switch_automaton_state_2_11(void) { { ldv_2_ret_default = 1; ldv_statevar_2 = 20; return; } } void ldv_switch_automaton_state_2_20(void) { { ldv_statevar_2 = 19; return; } } void ldv_switch_automaton_state_3_1(void) { { ldv_statevar_3 = 29; return; } } void ldv_switch_automaton_state_3_29(void) { { ldv_statevar_3 = 28; return; } } void ldv_switch_automaton_state_4_17(void) { { ldv_statevar_4 = 16; return; } } void ldv_switch_automaton_state_4_8(void) { { ldv_4_probed_default = 1; ldv_statevar_4 = 17; return; } } void ldv_switch_automaton_state_6_1(void) { { ldv_statevar_6 = 5; return; } } void ldv_switch_automaton_state_6_5(void) { { ldv_statevar_6 = 4; return; } } void ldv_switch_automaton_state_7_10(void) { { ldv_7_ret_default = 1; ldv_statevar_7 = 19; return; } } void ldv_switch_automaton_state_7_19(void) { { ldv_statevar_7 = 18; return; } } void ldv_switch_automaton_state_8_10(void) { { ldv_8_ret_default = 1; ldv_statevar_8 = 19; return; } } void ldv_switch_automaton_state_8_19(void) { { ldv_statevar_8 = 18; return; } } void ldv_timer_instance_callback_22_2(void (*arg0)(unsigned long ) , unsigned long arg1 ) { { { (*arg0)(arg1); } return; } } void ldv_timer_timer_instance_22(void *arg0 ) { { { if (ldv_statevar_22 == 2) { goto case_2; } else { } if (ldv_statevar_22 == 3) { goto case_3; } else { } goto switch_default; case_2: /* CIL Label */ { ldv_switch_to_interrupt_context(); } if ((unsigned long )ldv_22_container_timer_list->function != (unsigned long )((void (*)(unsigned long ))0)) { { ldv_timer_instance_callback_22_2(ldv_22_container_timer_list->function, ldv_22_container_timer_list->data); } } else { } { ldv_switch_to_process_context(); ldv_statevar_22 = 3; } goto ldv_59639; case_3: /* CIL Label */ ; goto ldv_59639; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_59639: ; return; } } void ldv_unregister_netdevice(void *arg0 , struct net_device *arg1 ) { struct net_device *ldv_29_net_device_net_device ; { { ldv_29_net_device_net_device = arg1; ldv_assume(ldv_statevar_1 == 1); ldv_dispatch_deregister_29_1(ldv_29_net_device_net_device); } return; return; } } int ldv_unregister_netdevice_notifier(int arg0 , struct notifier_block *arg1 ) { struct notifier_block *ldv_33_struct_notifier_block_struct_notifier_block ; { { ldv_33_struct_notifier_block_struct_notifier_block = arg1; ldv_assume(ldv_statevar_20 == 1); ldv_dispatch_deregister_33_1(ldv_33_struct_notifier_block_struct_notifier_block); } return (arg0); return (arg0); } } __inline static void *kzalloc(size_t size , gfp_t flags ) { void *tmp ; { { tmp = ldv_kzalloc(size, flags); } return (tmp); } } __inline static void ldv_spin_lock_46(spinlock_t *lock ) { { { ldv_spin_lock__xmit_lock_of_netdev_queue(); spin_lock(lock); } return; } } __inline static void ldv_spin_unlock_49(spinlock_t *lock ) { { { ldv_spin_unlock__xmit_lock_of_netdev_queue(); spin_unlock(lock); } return; } } __inline static void ldv_spin_lock_51(spinlock_t *lock ) { { { ldv_spin_lock_tx_global_lock_of_net_device(); spin_lock(lock); } return; } } __inline static void ldv_spin_unlock_52(spinlock_t *lock ) { { { ldv_spin_unlock_tx_global_lock_of_net_device(); spin_unlock(lock); } return; } } __inline static void ldv_spin_lock_bh_55(spinlock_t *lock ) { { { ldv_spin_lock_addr_list_lock_of_net_device(); spin_lock_bh(lock); } return; } } __inline static void ldv_spin_unlock_bh_57(spinlock_t *lock ) { { { ldv_spin_unlock_addr_list_lock_of_net_device(); spin_unlock_bh(lock); } return; } } static void *ldv_dev_get_drvdata_58(struct device const *dev ) { void *tmp ; { { tmp = ldv_dev_get_drvdata(dev); } return (tmp); } } static int ldv_dev_set_drvdata_59(struct device *dev , void *data ) { int tmp ; { { tmp = ldv_dev_set_drvdata(dev, data); } return (tmp); } } static int ldv_mod_timer_83(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___0 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; tmp___0 = ldv_mod_timer(ldv_func_res, ldv_func_arg1, ldv_func_arg2); } return (tmp___0); return (ldv_func_res); } } __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) { { { ldv_spin_lock_stats_lock_of_efx_nic(); spin_lock_bh(lock); } return; } } __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) { { { ldv_spin_unlock_stats_lock_of_efx_nic(); spin_unlock_bh(lock); } return; } } static int ldv_register_netdevice_90(struct net_device *ldv_func_arg1 ) { ldv_func_ret_type___1 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = register_netdevice(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_register_netdevice(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } __inline static void ldv_unregister_netdevice_91(struct net_device *dev ) { { { unregister_netdevice(dev); ldv_unregister_netdevice((void *)0, dev); } return; } } static void ldv_free_netdev_93(struct net_device *ldv_func_arg1 ) { { { free_netdev(ldv_func_arg1); ldv_free_netdev((void *)0, ldv_func_arg1); } return; } } static struct net_device *ldv_alloc_etherdev_mqs_94(int ldv_func_arg1 , unsigned int ldv_func_arg2 , unsigned int ldv_func_arg3 ) { ldv_func_ret_type___2 ldv_func_res ; struct net_device *tmp ; struct net_device *tmp___0 ; { { tmp = alloc_etherdev_mqs(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; tmp___0 = ldv_alloc_etherdev_mqs(ldv_func_res, ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); } return (tmp___0); return (ldv_func_res); } } static void ldv_free_netdev_95(struct net_device *ldv_func_arg1 ) { { { free_netdev(ldv_func_arg1); ldv_free_netdev((void *)0, ldv_func_arg1); } return; } } static int ldv_register_netdevice_notifier_96(struct notifier_block *ldv_func_arg1 ) { ldv_func_ret_type___3 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = register_netdevice_notifier(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_register_netdevice_notifier(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } static int ldv___pci_register_driver_97(struct pci_driver *ldv_func_arg1 , struct module *ldv_func_arg2 , char const *ldv_func_arg3 ) { ldv_func_ret_type___4 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = __pci_register_driver(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3); ldv_func_res = tmp; tmp___0 = ldv___pci_register_driver(ldv_func_res, ldv_func_arg1, ldv_func_arg2, (char *)ldv_func_arg3); } return (tmp___0); return (ldv_func_res); } } static int ldv_unregister_netdevice_notifier_98(struct notifier_block *ldv_func_arg1 ) { ldv_func_ret_type___5 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = unregister_netdevice_notifier(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_unregister_netdevice_notifier(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } static void ldv_pci_unregister_driver_99(struct pci_driver *ldv_func_arg1 ) { { { pci_unregister_driver(ldv_func_arg1); ldv_pci_unregister_driver((void *)0, ldv_func_arg1); } return; } } static int ldv_unregister_netdevice_notifier_100(struct notifier_block *ldv_func_arg1 ) { ldv_func_ret_type___6 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = unregister_netdevice_notifier(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_unregister_netdevice_notifier(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } extern struct pv_irq_ops pv_irq_ops ; extern unsigned long find_first_bit(unsigned long const * , unsigned long ) ; __inline static __u64 __le64_to_cpup(__le64 const *p ) { { return ((__u64 )*p); } } __inline static __u32 __le32_to_cpup(__le32 const *p ) { { return ((__u32 )*p); } } __inline static __u16 __le16_to_cpup(__le16 const *p ) { { return ((__u16 )*p); } } __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 *)"/home/debian/klever-work/native-scheduler-work-dir/scheduler/jobs/dfbfd2da522a1f5f4786ee57b863db44/klever-core-work-dir/f860c18/linux-kernel-locking-spinlock/lkbce/arch/x86/include/asm/paravirt.h"), "i" (804), "i" (12UL)); __builtin_unreachable(); } } 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" (44UL), [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 void __ldv_spin_lock(spinlock_t * ) ; static void ldv___ldv_spin_lock_70(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_72(spinlock_t *ldv_func_arg1 ) ; void ldv_spin_lock_biu_lock_of_efx_nic(void) ; void ldv_spin_unlock_biu_lock_of_efx_nic(void) ; 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->__annonCompField19.rlock, flags); } return; } } __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __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 unsigned long readq(void const volatile *addr ) { unsigned long ret ; { __asm__ volatile ("movq %1,%0": "=r" (ret): "m" (*((unsigned long volatile *)addr)): "memory"); return (ret); } } __inline static int is_device_dma_capable(struct device *dev ) { { return ((unsigned long )dev->dma_mask != (unsigned long )((u64 *)0ULL) && *(dev->dma_mask) != 0ULL); } } extern void debug_dma_alloc_coherent(struct device * , size_t , dma_addr_t , void * ) ; extern void debug_dma_free_coherent(struct device * , size_t , void * , dma_addr_t ) ; extern struct device x86_dma_fallback_dev ; extern struct dma_map_ops *dma_ops ; __inline static struct dma_map_ops *get_dma_ops(struct device *dev ) { long tmp ; { { tmp = ldv__builtin_expect((unsigned long )dev == (unsigned long )((struct device *)0), 0L); } if (tmp != 0L || (unsigned long )dev->archdata.dma_ops == (unsigned long )((struct dma_map_ops *)0)) { return (dma_ops); } else { return (dev->archdata.dma_ops); } } } __inline static unsigned long dma_alloc_coherent_mask(struct device *dev , gfp_t gfp ) { unsigned long dma_mask ; { dma_mask = 0UL; dma_mask = (unsigned long )dev->coherent_dma_mask; if (dma_mask == 0UL) { dma_mask = (int )gfp & 1 ? 16777215UL : 4294967295UL; } else { } return (dma_mask); } } __inline static gfp_t dma_alloc_coherent_gfp_flags(struct device *dev , gfp_t gfp ) { unsigned long dma_mask ; unsigned long tmp ; { { tmp = dma_alloc_coherent_mask(dev, gfp); dma_mask = tmp; } if ((unsigned long long )dma_mask <= 16777215ULL) { gfp = gfp | 1U; } else { } if ((unsigned long long )dma_mask <= 4294967295ULL && (gfp & 1U) == 0U) { gfp = gfp | 4U; } else { } return (gfp); } } __inline static void *dma_alloc_attrs(struct device *dev , size_t size , dma_addr_t *dma_handle , gfp_t gfp , struct dma_attrs *attrs ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; void *memory ; int tmp___0 ; gfp_t tmp___1 ; { { tmp = get_dma_ops(dev); ops = tmp; gfp = gfp & 4294967288U; } if ((unsigned long )dev == (unsigned long )((struct device *)0)) { dev = & x86_dma_fallback_dev; } else { } { tmp___0 = is_device_dma_capable(dev); } if (tmp___0 == 0) { return ((void *)0); } else { } if ((unsigned long )ops->alloc == (unsigned long )((void *(*)(struct device * , size_t , dma_addr_t * , gfp_t , struct dma_attrs * ))0)) { return ((void *)0); } else { } { tmp___1 = dma_alloc_coherent_gfp_flags(dev, gfp); memory = (*(ops->alloc))(dev, size, dma_handle, tmp___1, attrs); debug_dma_alloc_coherent(dev, size, *dma_handle, memory); } return (memory); } } __inline static void dma_free_attrs(struct device *dev , size_t size , void *vaddr , dma_addr_t bus , struct dma_attrs *attrs ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; int __ret_warn_on ; unsigned long _flags ; int tmp___0 ; long tmp___1 ; { { tmp = get_dma_ops(dev); ops = tmp; _flags = arch_local_save_flags(); tmp___0 = arch_irqs_disabled_flags(_flags); __ret_warn_on = tmp___0 != 0; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("/home/debian/klever-work/native-scheduler-work-dir/scheduler/jobs/dfbfd2da522a1f5f4786ee57b863db44/klever-core-work-dir/f860c18/linux-kernel-locking-spinlock/lkbce/arch/x86/include/asm/dma-mapping.h", 166); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); debug_dma_free_coherent(dev, size, vaddr, bus); } if ((unsigned long )ops->free != (unsigned long )((void (*)(struct device * , size_t , void * , dma_addr_t , struct dma_attrs * ))0)) { { (*(ops->free))(dev, size, vaddr, bus, attrs); } } else { } return; } } __inline static void *dma_zalloc_coherent(struct device *dev , size_t size , dma_addr_t *dma_handle , gfp_t flag ) { void *ret ; void *tmp ; { { tmp = dma_alloc_attrs(dev, size, dma_handle, flag | 32768U, (struct dma_attrs *)0); ret = tmp; } return (ret); } } extern int request_threaded_irq(unsigned int , irqreturn_t (*)(int , void * ) , irqreturn_t (*)(int , void * ) , unsigned long , char const * , void * ) ; __inline static int request_irq(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) { int tmp ; { { tmp = request_threaded_irq(irq, handler, (irqreturn_t (*)(int , void * ))0, flags, name, dev); } return (tmp); } } __inline static int ldv_request_irq_76(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) ; __inline static int ldv_request_irq_77(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) ; extern void free_irq(unsigned int , void * ) ; static void ldv_free_irq_78(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; static void ldv_free_irq_79(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; static void ldv_free_irq_80(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) ; extern struct cpu_rmap *alloc_cpu_rmap(unsigned int , gfp_t ) ; __inline static struct cpu_rmap *alloc_irq_cpu_rmap(unsigned int size ) { struct cpu_rmap *tmp ; { { tmp = alloc_cpu_rmap(size, 208U); } return (tmp); } } extern void free_irq_cpu_rmap(struct cpu_rmap * ) ; extern int irq_cpu_rmap_add(struct cpu_rmap * , int ) ; __inline static efx_qword_t *efx_event(struct efx_channel *channel , unsigned int index ) { { return ((efx_qword_t *)channel->eventq.buf.addr + (unsigned long )(index & channel->eventq_mask)); } } __inline static int efx_event_present(efx_qword_t *event ) { { return (event->dword[0].u32[0] != 4294967295U && event->dword[1].u32[0] != 4294967295U); } } void efx_nic_event_test_start(struct efx_channel *channel ) ; bool efx_nic_event_present(struct efx_channel *channel ) ; void efx_nic_irq_test_start(struct efx_nic *efx ) ; int efx_nic_alloc_buffer(struct efx_nic *efx , struct efx_buffer *buffer , unsigned int len , gfp_t gfp_flags ) ; void efx_nic_free_buffer(struct efx_nic *efx , struct efx_buffer *buffer ) ; size_t efx_nic_get_regs_len(struct efx_nic *efx ) ; void efx_nic_get_regs(struct efx_nic *efx , void *buf ) ; size_t efx_nic_describe_stats(struct efx_hw_stat_desc const *desc , size_t count , unsigned long const *mask , u8 *names ) ; void efx_nic_update_stats(struct efx_hw_stat_desc const *desc , size_t count , unsigned long const *mask , u64 *stats , void const *dma_buf , bool accumulate ) ; void efx_nic_fix_nodesc_drop_stat(struct efx_nic *efx , u64 *rx_nodesc_drops ) ; __inline static __le32 _efx_readd(struct efx_nic *efx , unsigned int reg ) { unsigned int tmp ; { { tmp = __readl((void const volatile *)efx->membase + (unsigned long )reg); } return (tmp); } } __inline static void efx_reado(struct efx_nic *efx , efx_oword_t *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_70(& efx->biu_lock); value->u32[0] = _efx_readd(efx, reg); value->u32[1] = _efx_readd(efx, reg + 4U); value->u32[2] = _efx_readd(efx, reg + 8U); value->u32[3] = _efx_readd(efx, reg + 12U); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_sram_readq(struct efx_nic *efx , void *membase , efx_qword_t *value , unsigned int index ) { unsigned int addr ; unsigned long flags ; unsigned long tmp ; { { addr = index * 8U; ldv___ldv_spin_lock_72(& efx->biu_lock); tmp = readq((void const volatile *)membase + (unsigned long )addr); value->u64[0] = (unsigned long long )tmp; ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_readd(struct efx_nic *efx , efx_dword_t *value , unsigned int reg ) { { { value->u32[0] = _efx_readd(efx, reg); } return; } } __inline static void efx_reado_table(struct efx_nic *efx , efx_oword_t *value , unsigned int reg , unsigned int index ) { { { efx_reado(efx, value, reg + index * 16U); } return; } } int efx_nic_alloc_buffer(struct efx_nic *efx , struct efx_buffer *buffer , unsigned int len , gfp_t gfp_flags ) { { { buffer->addr = dma_zalloc_coherent(& (efx->pci_dev)->dev, (size_t )len, & buffer->dma_addr, gfp_flags); } if ((unsigned long )buffer->addr == (unsigned long )((void *)0)) { return (-12); } else { } buffer->len = len; return (0); } } void efx_nic_free_buffer(struct efx_nic *efx , struct efx_buffer *buffer ) { { if ((unsigned long )buffer->addr != (unsigned long )((void *)0)) { { dma_free_attrs(& (efx->pci_dev)->dev, (size_t )buffer->len, buffer->addr, buffer->dma_addr, (struct dma_attrs *)0); buffer->addr = (void *)0; } } else { } return; } } bool efx_nic_event_present(struct efx_channel *channel ) { efx_qword_t *tmp ; int tmp___0 ; { { tmp = efx_event(channel, channel->eventq_read_ptr); tmp___0 = efx_event_present(tmp); } return (tmp___0 != 0); } } void efx_nic_event_test_start(struct efx_channel *channel ) { { { channel->event_test_cpu = -1; __asm__ volatile ("": : : "memory"); (*(((channel->efx)->type)->ev_test_generate))(channel); } return; } } void efx_nic_irq_test_start(struct efx_nic *efx ) { { { efx->last_irq_cpu = -1; __asm__ volatile ("": : : "memory"); (*((efx->type)->irq_test_generate))(efx); } return; } } int efx_nic_init_interrupt(struct efx_nic *efx ) { struct efx_channel *channel ; unsigned int n_irqs ; int rc ; unsigned int tmp ; { if ((unsigned int )efx->interrupt_mode > 1U) { { rc = ldv_request_irq_76((unsigned int )efx->legacy_irq, (efx->type)->irq_handle_legacy, 128UL, (char const *)(& efx->name), (void *)efx); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to hook legacy IRQ %d\n", (efx->pci_dev)->irq); } } else { } goto fail1; } else { } return (0); } else { } if ((unsigned int )efx->interrupt_mode == 0U) { { (efx->net_dev)->rx_cpu_rmap = alloc_irq_cpu_rmap(efx->n_rx_channels); } if ((unsigned long )(efx->net_dev)->rx_cpu_rmap == (unsigned long )((struct cpu_rmap *)0)) { rc = -12; goto fail1; } else { } } else { } n_irqs = 0U; channel = efx->channel[0]; goto ldv_47371; ldv_47370: { rc = ldv_request_irq_77((unsigned int )channel->irq, (efx->type)->irq_handle_msi, 256UL, (char const *)(& efx->msi_context[channel->channel].name), (void *)(& efx->msi_context) + (unsigned long )channel->channel); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to hook IRQ %d\n", channel->irq); } } else { } goto fail2; } else { } n_irqs = n_irqs + 1U; if ((unsigned int )efx->interrupt_mode == 0U && (unsigned int )channel->channel < efx->n_rx_channels) { { rc = irq_cpu_rmap_add((efx->net_dev)->rx_cpu_rmap, channel->irq); } if (rc != 0) { goto fail2; } else { } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47371: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47370; } else { } return (0); fail2: { free_irq_cpu_rmap((efx->net_dev)->rx_cpu_rmap); (efx->net_dev)->rx_cpu_rmap = (struct cpu_rmap *)0; channel = efx->channel[0]; } goto ldv_47375; ldv_47374: tmp = n_irqs; n_irqs = n_irqs - 1U; if (tmp == 0U) { goto ldv_47373; } else { } { ldv_free_irq_78((unsigned int )channel->irq, (void *)(& efx->msi_context) + (unsigned long )channel->channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_47375: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47374; } else { } ldv_47373: ; fail1: ; return (rc); } } void efx_nic_fini_interrupt(struct efx_nic *efx ) { struct efx_channel *channel ; { { free_irq_cpu_rmap((efx->net_dev)->rx_cpu_rmap); (efx->net_dev)->rx_cpu_rmap = (struct cpu_rmap *)0; channel = efx->channel[0]; } goto ldv_47381; ldv_47380: { ldv_free_irq_79((unsigned int )channel->irq, (void *)(& efx->msi_context) + (unsigned long )channel->channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_47381: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47380; } else { } if (efx->legacy_irq != 0) { { ldv_free_irq_80((unsigned int )efx->legacy_irq, (void *)efx); } } else { } return; } } static struct efx_nic_reg const efx_nic_regs[86U] = { {0U, 1U, 3U}, {16U, 1U, 3U}, {32U, 2U, 3U}, {48U, 1U, 3U}, {64U, 2U, 3U}, {192U, 1U, 3U}, {256U, 3U, 3U}, {256U, 1U, 2U}, {272U, 1U, 2U}, {288U, 1U, 2U}, {304U, 1U, 2U}, {320U, 1U, 2U}, {512U, 1U, 2U}, {528U, 1U, 2U}, {544U, 1U, 2U}, {592U, 2U, 3U}, {608U, 1U, 3U}, {624U, 1U, 3U}, {768U, 1U, 3U}, {784U, 1U, 3U}, {800U, 1U, 2U}, {816U, 1U, 2U}, {832U, 1U, 2U}, {1104U, 1U, 3U}, {1120U, 1U, 3U}, {1136U, 1U, 3U}, {1536U, 1U, 3U}, {1552U, 1U, 3U}, {1568U, 1U, 3U}, {1584U, 1U, 3U}, {1632U, 1U, 3U}, {1648U, 1U, 3U}, {2048U, 1U, 3U}, {2064U, 2U, 3U}, {2112U, 1U, 3U}, {2128U, 1U, 3U}, {2144U, 2U, 3U}, {2192U, 1U, 1U}, {2256U, 3U, 3U}, {2272U, 3U, 3U}, {2288U, 3U, 3U}, {2592U, 1U, 3U}, {2608U, 1U, 1U}, {2640U, 1U, 3U}, {2688U, 1U, 3U}, {2704U, 2U, 3U}, {2784U, 2U, 2U}, {2800U, 2U, 3U}, {3072U, 1U, 2U}, {3088U, 1U, 2U}, {3104U, 1U, 2U}, {3120U, 1U, 2U}, {3136U, 1U, 2U}, {3168U, 1U, 2U}, {3200U, 1U, 2U}, {3216U, 2U, 2U}, {3232U, 1U, 2U}, {3248U, 1U, 2U}, {3584U, 1U, 2U}, {3600U, 1U, 2U}, {3648U, 1U, 2U}, {3840U, 1U, 2U}, {3856U, 1U, 2U}, {3872U, 1U, 2U}, {3888U, 1U, 2U}, {3904U, 1U, 2U}, {3920U, 1U, 2U}, {3936U, 1U, 2U}, {3952U, 1U, 2U}, {4352U, 2U, 2U}, {4608U, 1U, 2U}, {4624U, 1U, 2U}, {4640U, 1U, 2U}, {4656U, 1U, 2U}, {4672U, 1U, 2U}, {4688U, 1U, 2U}, {4720U, 1U, 2U}, {4752U, 1U, 2U}, {4816U, 1U, 2U}, {4832U, 1U, 2U}, {4864U, 1U, 2U}, {4880U, 1U, 2U}, {4896U, 1U, 2U}, {0U, 4U, 4U}, {512U, 4U, 4U}, {516U, 4U, 4U}}; static struct efx_nic_reg_table const efx_nic_reg_tables[23U] = { {2816U, 2U, 2U, 16U, 16U}, {4096U, 2U, 2U, 16U, 16U}, {71680U, 1U, 1U, 16U, 4U}, {15990784U, 2U, 2U, 16U, 4096U}, {15990784U, 3U, 3U, 16U, 1024U}, {71936U, 1U, 1U, 16U, 8U}, {16056320U, 2U, 2U, 16U, 4096U}, {16056320U, 3U, 3U, 16U, 1024U}, {72192U, 1U, 1U, 16U, 4U}, {16121856U, 2U, 2U, 16U, 4096U}, {16121856U, 3U, 3U, 16U, 1024U}, {98304U, 1U, 1U, 8U, 1024U}, {8388608U, 2U, 3U, 8U, 1024U}, {15728656U, 3U, 3U, 32U, 512U}, {16187392U, 2U, 2U, 16U, 4096U}, {16187392U, 3U, 3U, 16U, 1024U}, {16252928U, 2U, 2U, 16U, 4096U}, {16252928U, 3U, 3U, 16U, 1024U}, {16449536U, 2U, 3U, 16U, 128U}, {16646144U, 3U, 3U, 16U, 512U}, {16711680U, 3U, 3U, 4U, 512U}, {15728640U, 2U, 3U, 32U, 8192U}, {16U, 4U, 4U, 4U, 8U}}; size_t efx_nic_get_regs_len(struct efx_nic *efx ) { struct efx_nic_reg const *reg ; struct efx_nic_reg_table const *table ; size_t len ; size_t __min1 ; size_t __min2 ; { len = 0UL; reg = (struct efx_nic_reg const *)(& efx_nic_regs); goto ldv_47404; ldv_47403: ; if ((int )(efx->type)->revision >= (int )reg->min_revision && (int )(efx->type)->revision <= (int )reg->max_revision) { len = len + 16UL; } else { } reg = reg + 1; ldv_47404: ; if ((unsigned long )reg < (unsigned long )((struct efx_nic_reg const *)(& efx_nic_regs) + 86UL)) { goto ldv_47403; } else { } table = (struct efx_nic_reg_table const *)(& efx_nic_reg_tables); goto ldv_47412; ldv_47411: ; if ((int )(efx->type)->revision >= (int )table->min_revision && (int )(efx->type)->revision <= (int )table->max_revision) { __min1 = (size_t )table->step; __min2 = 16UL; len = len + (size_t )table->rows * (__min1 < __min2 ? __min1 : __min2); } else { } table = table + 1; ldv_47412: ; if ((unsigned long )table < (unsigned long )((struct efx_nic_reg_table const *)(& efx_nic_reg_tables) + 23UL)) { goto ldv_47411; } else { } return (len); } } void efx_nic_get_regs(struct efx_nic *efx , void *buf ) { struct efx_nic_reg const *reg ; struct efx_nic_reg_table const *table ; size_t size ; size_t i ; size_t __min1 ; size_t __min2 ; int __ret_warn_on ; long tmp ; { reg = (struct efx_nic_reg const *)(& efx_nic_regs); goto ldv_47423; ldv_47422: ; if ((int )(efx->type)->revision >= (int )reg->min_revision && (int )(efx->type)->revision <= (int )reg->max_revision) { { efx_reado(efx, (efx_oword_t *)buf, (unsigned int )reg->offset); buf = buf + 16UL; } } else { } reg = reg + 1; ldv_47423: ; if ((unsigned long )reg < (unsigned long )((struct efx_nic_reg const *)(& efx_nic_regs) + 86UL)) { goto ldv_47422; } else { } table = (struct efx_nic_reg_table const *)(& efx_nic_reg_tables); goto ldv_47445; ldv_47444: ; if ((int )(efx->type)->revision < (int )table->min_revision || (int )(efx->type)->revision > (int )table->max_revision) { goto ldv_47429; } else { } __min1 = (size_t )table->step; __min2 = 16UL; size = __min1 < __min2 ? __min1 : __min2; i = 0UL; goto ldv_47442; ldv_47441: ; { if ((int )table->step == 4) { goto case_4; } else { } if ((int )table->step == 8) { goto case_8; } else { } if ((int )table->step == 16) { goto case_16; } else { } if ((int )table->step == 32) { goto case_32; } else { } goto switch_default; case_4: /* CIL Label */ { efx_readd(efx, (efx_dword_t *)buf, (unsigned int )table->offset + (unsigned int )i * 4U); } goto ldv_47434; case_8: /* CIL Label */ { efx_sram_readq(efx, efx->membase + (unsigned long )table->offset, (efx_qword_t *)buf, (unsigned int )i); } goto ldv_47434; case_16: /* CIL Label */ { efx_reado_table(efx, (efx_oword_t *)buf, (unsigned int )table->offset, (unsigned int )i); } goto ldv_47434; case_32: /* CIL Label */ { efx_reado_table(efx, (efx_oword_t *)buf, (unsigned int )table->offset, (unsigned int )i * 2U); } goto ldv_47434; switch_default: /* CIL Label */ { __ret_warn_on = 1; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/nic.c", 435); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } return; switch_break: /* CIL Label */ ; } ldv_47434: buf = buf + size; i = i + 1UL; ldv_47442: ; if (i < (size_t )table->rows) { goto ldv_47441; } else { } ldv_47429: table = table + 1; ldv_47445: ; if ((unsigned long )table < (unsigned long )((struct efx_nic_reg_table const *)(& efx_nic_reg_tables) + 23UL)) { goto ldv_47444; } else { } return; } } size_t efx_nic_describe_stats(struct efx_hw_stat_desc const *desc , size_t count , unsigned long const *mask , u8 *names ) { size_t visible ; size_t index ; { { visible = 0UL; index = find_first_bit(mask, count); } goto ldv_47456; ldv_47455: ; if ((unsigned long )(desc + index)->name != (unsigned long )((char const */* const */)0)) { if ((unsigned long )names != (unsigned long )((u8 *)0U)) { { strlcpy((char *)names, (desc + index)->name, 32UL); names = names + 32UL; } } else { } visible = visible + 1UL; } else { } { index = find_next_bit(mask, count, index + 1UL); } ldv_47456: ; if (index < count) { goto ldv_47455; } else { } return (visible); } } void efx_nic_update_stats(struct efx_hw_stat_desc const *desc , size_t count , unsigned long const *mask , u64 *stats , void const *dma_buf , bool accumulate ) { size_t index ; void const *addr ; u64 val ; __u16 tmp ; __u32 tmp___0 ; int __ret_warn_on ; long tmp___1 ; { { index = find_first_bit(mask, count); } goto ldv_47477; ldv_47476: ; if ((unsigned int )((unsigned short )(desc + index)->dma_width) != 0U) { addr = dma_buf + (unsigned long )(desc + index)->offset; { if ((int )(desc + index)->dma_width == 16) { goto case_16; } else { } if ((int )(desc + index)->dma_width == 32) { goto case_32; } else { } if ((int )(desc + index)->dma_width == 64) { goto case_64; } else { } goto switch_default; case_16: /* CIL Label */ { tmp = __le16_to_cpup((__le16 const *)addr); val = (u64 )tmp; } goto ldv_47470; case_32: /* CIL Label */ { tmp___0 = __le32_to_cpup((__le32 const *)addr); val = (u64 )tmp___0; } goto ldv_47470; case_64: /* CIL Label */ { val = __le64_to_cpup((__le64 const *)addr); } goto ldv_47470; switch_default: /* CIL Label */ { __ret_warn_on = 1; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/nic.c", 510); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); val = 0ULL; } goto ldv_47470; switch_break: /* CIL Label */ ; } ldv_47470: ; if ((int )accumulate) { *(stats + index) = *(stats + index) + val; } else { *(stats + index) = val; } } else { } { index = find_next_bit(mask, count, index + 1UL); } ldv_47477: ; if (index < count) { goto ldv_47476; } else { } return; } } void efx_nic_fix_nodesc_drop_stat(struct efx_nic *efx , u64 *rx_nodesc_drops ) { { if (((efx->net_dev)->flags & 1U) == 0U || ! efx->rx_nodesc_drops_prev_state) { efx->rx_nodesc_drops_while_down = efx->rx_nodesc_drops_while_down + (*rx_nodesc_drops - efx->rx_nodesc_drops_total); } else { } efx->rx_nodesc_drops_total = *rx_nodesc_drops; efx->rx_nodesc_drops_prev_state = ((int )(efx->net_dev)->flags & 1) != 0; *rx_nodesc_drops = *rx_nodesc_drops - efx->rx_nodesc_drops_while_down; return; } } void ldv_dispatch_irq_deregister_25_1(int arg0 ) ; void ldv_dispatch_irq_register_28_2(int arg0 , enum irqreturn (*arg1)(int , void * ) , enum irqreturn (*arg2)(int , void * ) , void *arg3 ) ; void ldv_free_irq(void *arg0 , int arg1 , void *arg2 ) ; int ldv_request_irq(int arg0 , unsigned int arg1 , enum irqreturn (*arg2)(int , void * ) , unsigned long arg3 , char *arg4 , void *arg5 ) ; void ldv_dispatch_irq_deregister_25_1(int arg0 ) { { { ldv_0_line_line = arg0; ldv_switch_automaton_state_0_1(); } return; } } void ldv_dispatch_irq_register_28_2(int arg0 , enum irqreturn (*arg1)(int , void * ) , enum irqreturn (*arg2)(int , void * ) , void *arg3 ) { { { ldv_0_line_line = arg0; ldv_0_callback_handler = arg1; ldv_0_thread_thread = arg2; ldv_0_data_data = arg3; ldv_switch_automaton_state_0_6(); } return; } } void ldv_free_irq(void *arg0 , int arg1 , void *arg2 ) { int ldv_25_line_line ; { { ldv_25_line_line = arg1; ldv_assume(ldv_statevar_0 == 2); ldv_dispatch_irq_deregister_25_1(ldv_25_line_line); } return; return; } } int ldv_request_irq(int arg0 , unsigned int arg1 , enum irqreturn (*arg2)(int , void * ) , unsigned long arg3 , char *arg4 , void *arg5 ) { enum irqreturn (*ldv_28_callback_handler)(int , void * ) ; void *ldv_28_data_data ; int ldv_28_line_line ; enum irqreturn (*ldv_28_thread_thread)(int , void * ) ; int tmp ; { { tmp = ldv_undef_int(); } if (tmp != 0) { { ldv_assume(arg0 == 0); ldv_28_line_line = (int )arg1; ldv_28_callback_handler = arg2; ldv_28_thread_thread = (enum irqreturn (*)(int , void * ))0; ldv_28_data_data = arg5; ldv_assume(ldv_statevar_0 == 6); ldv_dispatch_irq_register_28_2(ldv_28_line_line, ldv_28_callback_handler, ldv_28_thread_thread, ldv_28_data_data); } return (arg0); } else { { ldv_assume(arg0 != 0); } return (arg0); } return (arg0); } } static void ldv___ldv_spin_lock_70(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) { { { ldv_spin_unlock_biu_lock_of_efx_nic(); spin_unlock_irqrestore(lock, flags); } return; } } static void ldv___ldv_spin_lock_72(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } __inline static int ldv_request_irq_76(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) { ldv_func_ret_type___0 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = request_irq(irq, handler, flags, name, dev); ldv_func_res = tmp; tmp___0 = ldv_request_irq(ldv_func_res, irq, handler, flags, (char *)name, dev); } return (tmp___0); return (ldv_func_res); } } __inline static int ldv_request_irq_77(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) { ldv_func_ret_type___1 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = request_irq(irq, handler, flags, name, dev); ldv_func_res = tmp; tmp___0 = ldv_request_irq(ldv_func_res, irq, handler, flags, (char *)name, dev); } return (tmp___0); return (ldv_func_res); } } static void ldv_free_irq_78(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { { free_irq(ldv_func_arg1, ldv_func_arg2); ldv_free_irq((void *)0, (int )ldv_func_arg1, ldv_func_arg2); } return; } } static void ldv_free_irq_79(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { { free_irq(ldv_func_arg1, ldv_func_arg2); ldv_free_irq((void *)0, (int )ldv_func_arg1, ldv_func_arg2); } return; } } static void ldv_free_irq_80(unsigned int ldv_func_arg1 , void *ldv_func_arg2 ) { { { free_irq(ldv_func_arg1, ldv_func_arg2); ldv_free_irq((void *)0, (int )ldv_func_arg1, ldv_func_arg2); } return; } } __inline static void __set_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile ("bts %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr): "memory"); return; } } __inline static void __clear_bit(long nr , unsigned long volatile *addr ) { { __asm__ volatile ("btr %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr)); return; } } __inline static unsigned long __ffs(unsigned long word ) { { __asm__ ("rep; bsf %1,%0": "=r" (word): "rm" (word)); return (word); } } __inline static __u16 __fswab16(__u16 val ) { { return ((__u16 )((int )((short )((int )val << 8)) | (int )((short )((int )val >> 8)))); } } __inline static __u32 __fswab32(__u32 val ) { int tmp ; { { tmp = __builtin_bswap32(val); } return ((__u32 )tmp); } } __inline static void __set_bit_le(int nr , void *addr ) { { { __set_bit((long )nr, (unsigned long volatile *)addr); } return; } } __inline static void __clear_bit_le(int nr , void *addr ) { { { __clear_bit((long )nr, (unsigned long volatile *)addr); } return; } } extern unsigned long __phys_addr(unsigned long ) ; extern int memcmp(void const * , void const * , size_t ) ; extern void __cmpxchg_wrong_size(void) ; __inline static void atomic_set(atomic_t *v , int i ) { { v->counter = i; return; } } __inline static void atomic_dec(atomic_t *v ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; decl %0": "+m" (v->counter)); return; } } __inline static int atomic_cmpxchg(atomic_t *v , int old , int new ) { int __ret ; int __old ; int __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; { __old = old; __new = new; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ __ptr = (u8 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_5487; case_2: /* CIL Label */ __ptr___0 = (u16 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_5487; case_4: /* CIL Label */ __ptr___1 = (u32 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_5487; case_8: /* CIL Label */ __ptr___2 = (u64 volatile *)(& v->counter); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_5487; switch_default: /* CIL Label */ { __cmpxchg_wrong_size(); } switch_break: /* CIL Label */ ; } ldv_5487: ; return (__ret); } } static void ldv___ldv_spin_lock_66(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_68(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_70___0(spinlock_t *ldv_func_arg1 ) ; void ldv_spin_lock_filter_lock_of_efx_nic(void) ; void ldv_spin_unlock_filter_lock_of_efx_nic(void) ; __inline static void ldv_spin_lock_46(spinlock_t *lock ) ; __inline static void ldv_spin_lock_51(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_55(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_49(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_52(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_57(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; 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 __writel(unsigned int val , void volatile *addr ) { { __asm__ volatile ("movl %0,%1": : "r" (val), "m" (*((unsigned int volatile *)addr))); return; } } __inline static void writeq(unsigned long val , void volatile *addr ) { { __asm__ volatile ("movq %0,%1": : "r" (val), "m" (*((unsigned long volatile *)addr)): "memory"); return; } } __inline static phys_addr_t virt_to_phys(void volatile *address ) { unsigned long tmp ; { { tmp = __phys_addr((unsigned long )address); } return ((phys_addr_t )tmp); } } extern void *vzalloc(unsigned long ) ; extern void vfree(void const * ) ; extern long schedule_timeout(long ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern bool rps_may_expire_flow(struct net_device * , u16 , u32 , u16 ) ; __inline static void __netif_tx_lock___0(struct netdev_queue *txq , int cpu ) { { { ldv_spin_lock_46(& txq->_xmit_lock); txq->xmit_lock_owner = cpu; } return; } } __inline static void __netif_tx_unlock___0(struct netdev_queue *txq ) { { { txq->xmit_lock_owner = -1; ldv_spin_unlock_49(& txq->_xmit_lock); } return; } } __inline static void netif_tx_lock___0(struct net_device *dev ) { unsigned int i ; int cpu ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { { ldv_spin_lock_51(& dev->tx_global_lock); __vpp_verify = (void const *)0; } { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_39753; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39753; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39753; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39753; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_39753: pscr_ret__ = pfo_ret__; goto ldv_39759; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39763; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39763; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39763; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39763; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_39763: pscr_ret__ = pfo_ret_____0; goto ldv_39759; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39772; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39772; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39772; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39772; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_39772: pscr_ret__ = pfo_ret_____1; goto ldv_39759; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39781; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39781; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39781; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39781; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_39781: pscr_ret__ = pfo_ret_____2; goto ldv_39759; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_39759; switch_break: /* CIL Label */ ; } ldv_39759: cpu = pscr_ret__; i = 0U; goto ldv_39791; ldv_39790: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; __netif_tx_lock___0(txq, cpu); set_bit(2L, (unsigned long volatile *)(& txq->state)); __netif_tx_unlock___0(txq); i = i + 1U; } ldv_39791: ; if (i < dev->num_tx_queues) { goto ldv_39790; } else { } return; } } __inline static void netif_tx_unlock___0(struct net_device *dev ) { unsigned int i ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { i = 0U; goto ldv_39802; ldv_39801: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; clear_bit(2L, (unsigned long volatile *)(& txq->state)); netif_schedule_queue(txq); i = i + 1U; } ldv_39802: ; if (i < dev->num_tx_queues) { goto ldv_39801; } else { } { ldv_spin_unlock_52(& dev->tx_global_lock); } return; } } __inline static void netif_addr_lock_bh___0(struct net_device *dev ) { { { ldv_spin_lock_bh_55(& dev->addr_list_lock); } return; } } __inline static void netif_addr_unlock_bh___0(struct net_device *dev ) { { { ldv_spin_unlock_bh_57(& dev->addr_list_lock); } return; } } extern void pci_clear_master(struct pci_dev * ) ; extern void disable_irq_nosync(unsigned int ) ; extern u32 crc32_le(u32 , unsigned char const * , size_t ) ; __inline static struct efx_tx_queue *efx_get_tx_queue(struct efx_nic *efx , unsigned int index , unsigned int type ) { { return ((struct efx_tx_queue *)(& (efx->channel[efx->tx_channel_offset + index])->tx_queue) + (unsigned long )type); } } __inline static struct efx_tx_queue *efx_channel_get_tx_queue(struct efx_channel *channel , unsigned int type ) { { return ((struct efx_tx_queue *)(& channel->tx_queue) + (unsigned long )type); } } __inline static struct efx_channel *efx_rx_queue_channel(struct efx_rx_queue *rx_queue ) { struct efx_rx_queue const *__mptr ; { __mptr = (struct efx_rx_queue const *)rx_queue; return ((struct efx_channel *)__mptr + 0xfffffffffffffeb0UL); } } __inline static int efx_rx_queue_index(struct efx_rx_queue *rx_queue ) { struct efx_channel *tmp ; { { tmp = efx_rx_queue_channel(rx_queue); } return (tmp->channel); } } __inline static struct efx_rx_buffer *efx_rx_buffer(struct efx_rx_queue *rx_queue , unsigned int index ) { { return (rx_queue->buffer + (unsigned long )index); } } void efx_xmit_done(struct efx_tx_queue *tx_queue , unsigned int index ) ; void efx_rx_packet(struct efx_rx_queue *rx_queue , unsigned int index , unsigned int n_frags , unsigned int len , u16 flags ) ; __inline static void efx_schedule_channel___0(struct efx_channel *channel ) { int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { if (0) { if (((channel->efx)->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_46273; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46273; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46273; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46273; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_46273: pscr_ret__ = pfo_ret__; goto ldv_46279; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46283; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46283; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46283; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46283; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_46283: pscr_ret__ = pfo_ret_____0; goto ldv_46279; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46292; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46292; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46292; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46292; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_46292: pscr_ret__ = pfo_ret_____1; goto ldv_46279; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46301; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46301; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46301; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46301; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_46301: pscr_ret__ = pfo_ret_____2; goto ldv_46279; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_46279; switch_break: /* CIL Label */ ; } ldv_46279: { netdev_printk("\017", (struct net_device const *)(channel->efx)->net_dev, "channel %d scheduling NAPI poll on CPU%d\n", channel->channel, pscr_ret__); } } else { } } else { } { napi_schedule(& channel->napi_str); } return; } } __inline static void efx_schedule_channel_irq(struct efx_channel *channel ) { int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_46318; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46318; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46318; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46318; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_46318: pscr_ret__ = pfo_ret__; goto ldv_46324; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46328; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46328; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46328; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46328; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_46328: pscr_ret__ = pfo_ret_____0; goto ldv_46324; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46337; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46337; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46337; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46337; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_46337: pscr_ret__ = pfo_ret_____1; goto ldv_46324; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46346; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46346; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46346; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46346; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_46346: pscr_ret__ = pfo_ret_____2; goto ldv_46324; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_46324; switch_break: /* CIL Label */ ; } ldv_46324: { channel->event_test_cpu = pscr_ret__; efx_schedule_channel___0(channel); } return; } } void efx_mcdi_process_event(struct efx_channel *channel , efx_qword_t *event ) ; int efx_mcdi_flush_rxqs(struct efx_nic *efx ) ; u32 efx_farch_fpga_ver(struct efx_nic *efx ) ; __inline static bool efx_nic_is_dual_func(struct efx_nic *efx ) { int tmp ; { { tmp = efx_nic_rev(efx); } return (tmp <= 1); } } __inline static efx_qword_t *efx_tx_desc(struct efx_tx_queue *tx_queue , unsigned int index ) { { return ((efx_qword_t *)tx_queue->txd.buf.addr + (unsigned long )index); } } __inline static bool __efx_nic_tx_is_empty(struct efx_tx_queue *tx_queue , unsigned int write_count ) { unsigned int empty_read_count ; { empty_read_count = *((unsigned int volatile *)(& tx_queue->empty_read_count)); if (empty_read_count == 0U) { return (0); } else { } return (((empty_read_count ^ write_count) & 2147483647U) == 0U); } } __inline static bool efx_nic_may_push_tx_desc(struct efx_tx_queue *tx_queue , unsigned int write_count ) { bool was_empty ; bool tmp ; { { tmp = __efx_nic_tx_is_empty(tx_queue, write_count); was_empty = tmp; tx_queue->empty_read_count = 0U; } return ((bool )((int )was_empty && tx_queue->write_count - write_count == 1U)); } } __inline static efx_qword_t *efx_rx_desc(struct efx_rx_queue *rx_queue , unsigned int index ) { { return ((efx_qword_t *)rx_queue->rxd.buf.addr + (unsigned long )index); } } __inline static bool efx_sriov_enabled(struct efx_nic *efx ) { { return (efx->vf_init_count != 0U); } } void efx_sriov_tx_flush_done(struct efx_nic *efx , efx_qword_t *event ) ; void efx_sriov_rx_flush_done(struct efx_nic *efx , efx_qword_t *event ) ; void efx_sriov_event(struct efx_channel *channel , efx_qword_t *event ) ; void efx_sriov_desc_fetch_err(struct efx_nic *efx , unsigned int dmaq ) ; int efx_farch_tx_probe(struct efx_tx_queue *tx_queue ) ; void efx_farch_tx_init(struct efx_tx_queue *tx_queue ) ; void efx_farch_tx_fini(struct efx_tx_queue *tx_queue ) ; void efx_farch_tx_remove(struct efx_tx_queue *tx_queue ) ; void efx_farch_tx_write(struct efx_tx_queue *tx_queue ) ; int efx_farch_rx_probe(struct efx_rx_queue *rx_queue ) ; void efx_farch_rx_init(struct efx_rx_queue *rx_queue ) ; void efx_farch_rx_fini(struct efx_rx_queue *rx_queue ) ; void efx_farch_rx_remove(struct efx_rx_queue *rx_queue ) ; void efx_farch_rx_write(struct efx_rx_queue *rx_queue ) ; void efx_farch_rx_defer_refill(struct efx_rx_queue *rx_queue ) ; int efx_farch_ev_probe(struct efx_channel *channel ) ; int efx_farch_ev_init(struct efx_channel *channel ) ; void efx_farch_ev_fini(struct efx_channel *channel ) ; void efx_farch_ev_remove(struct efx_channel *channel ) ; int efx_farch_ev_process(struct efx_channel *channel , int budget ) ; void efx_farch_ev_read_ack(struct efx_channel *channel ) ; void efx_farch_ev_test_generate(struct efx_channel *channel ) ; int efx_farch_filter_table_probe(struct efx_nic *efx ) ; void efx_farch_filter_table_restore(struct efx_nic *efx ) ; void efx_farch_filter_table_remove(struct efx_nic *efx ) ; void efx_farch_filter_update_rx_scatter(struct efx_nic *efx ) ; s32 efx_farch_filter_insert(struct efx_nic *efx , struct efx_filter_spec *gen_spec , bool replace_equal ) ; int efx_farch_filter_remove_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id ) ; int efx_farch_filter_get_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id , struct efx_filter_spec *spec_buf ) ; int efx_farch_filter_clear_rx(struct efx_nic *efx , enum efx_filter_priority priority ) ; u32 efx_farch_filter_count_rx_used(struct efx_nic *efx , enum efx_filter_priority priority ) ; u32 efx_farch_filter_get_rx_id_limit(struct efx_nic *efx ) ; s32 efx_farch_filter_get_rx_ids(struct efx_nic *efx , enum efx_filter_priority priority , u32 *buf , u32 size ) ; s32 efx_farch_filter_rfs_insert(struct efx_nic *efx , struct efx_filter_spec *gen_spec ) ; bool efx_farch_filter_rfs_expire_one(struct efx_nic *efx , u32 flow_id , unsigned int index ) ; void efx_farch_filter_sync_rx_mode(struct efx_nic *efx ) ; void efx_farch_irq_enable_master(struct efx_nic *efx ) ; void efx_farch_irq_test_generate(struct efx_nic *efx ) ; void efx_farch_irq_disable_master(struct efx_nic *efx ) ; irqreturn_t efx_farch_msi_interrupt(int irq , void *dev_id ) ; irqreturn_t efx_farch_legacy_interrupt(int irq , void *dev_id ) ; irqreturn_t efx_farch_fatal_interrupt(struct efx_nic *efx ) ; int efx_farch_fini_dmaq(struct efx_nic *efx ) ; void efx_farch_dimension_resources(struct efx_nic *efx , unsigned int sram_lim_qw ) ; void efx_farch_init_common(struct efx_nic *efx ) ; void efx_farch_rx_push_indir_table(struct efx_nic *efx ) ; int efx_farch_test_registers(struct efx_nic *efx , struct efx_farch_register_test const *regs , size_t n_regs ) ; void efx_farch_generate_event(struct efx_nic *efx , unsigned int evq , efx_qword_t *event ) ; __inline static void _efx_writeq(struct efx_nic *efx , __le64 value , unsigned int reg ) { { { writeq((unsigned long )value, (void volatile *)efx->membase + (unsigned long )reg); } return; } } __inline static void _efx_writed(struct efx_nic *efx , __le32 value , unsigned int reg ) { { { __writel(value, (void volatile *)efx->membase + (unsigned long )reg); } return; } } __inline static void efx_writeo(struct efx_nic *efx , efx_oword_t const *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_66(& efx->biu_lock); _efx_writeq(efx, value->u64[0], reg); _efx_writeq(efx, value->u64[1], reg + 8U); __asm__ volatile ("": : : "memory"); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_sram_writeq(struct efx_nic *efx , void *membase , efx_qword_t const *value , unsigned int index ) { unsigned int addr ; unsigned long flags ; { { addr = index * 8U; ldv___ldv_spin_lock_68(& efx->biu_lock); writeq((unsigned long )value->u64[0], (void volatile *)membase + (unsigned long )addr); __asm__ volatile ("": : : "memory"); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_writed(struct efx_nic *efx , efx_dword_t const *value , unsigned int reg ) { { { _efx_writed(efx, value->u32[0], reg); } return; } } __inline static void efx_reado___0(struct efx_nic *efx , efx_oword_t *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_70___0(& efx->biu_lock); value->u32[0] = _efx_readd(efx, reg); value->u32[1] = _efx_readd(efx, reg + 4U); value->u32[2] = _efx_readd(efx, reg + 8U); value->u32[3] = _efx_readd(efx, reg + 12U); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_writeo_table(struct efx_nic *efx , efx_oword_t const *value , unsigned int reg , unsigned int index ) { { { efx_writeo(efx, value, reg + index * 16U); } return; } } __inline static void efx_reado_table___0(struct efx_nic *efx , efx_oword_t *value , unsigned int reg , unsigned int index ) { { { efx_reado___0(efx, value, reg + index * 16U); } return; } } __inline static void _efx_writeo_page(struct efx_nic *efx , efx_oword_t *value , unsigned int reg , unsigned int page ) { { { reg = page * 8192U + reg; _efx_writeq(efx, value->u64[0], reg); _efx_writeq(efx, value->u64[1], reg + 8U); } return; } } __inline static void _efx_writed_page(struct efx_nic *efx , efx_dword_t const *value , unsigned int reg , unsigned int page ) { { { efx_writed(efx, value, page * 8192U + reg); } return; } } static void efx_farch_magic_event(struct efx_channel *channel , u32 magic ) ; __inline static void efx_write_buf_tbl(struct efx_nic *efx , efx_qword_t *value , unsigned int index ) { { { efx_sram_writeq(efx, efx->membase + (unsigned long )(efx->type)->buf_tbl_base, (efx_qword_t const *)value, index); } return; } } static bool efx_masked_compare_oword(efx_oword_t const *a , efx_oword_t const *b , efx_oword_t const *mask ) { { return ((bool )(((a->u64[0] ^ b->u64[0]) & mask->u64[0]) != 0ULL || ((a->u64[1] ^ b->u64[1]) & mask->u64[1]) != 0ULL)); } } int efx_farch_test_registers(struct efx_nic *efx , struct efx_farch_register_test const *regs , size_t n_regs ) { unsigned int address ; unsigned int i ; unsigned int j ; efx_oword_t mask ; efx_oword_t imask ; efx_oword_t original ; efx_oword_t reg ; efx_oword_t buf ; bool tmp ; bool tmp___0 ; { address = 0U; i = 0U; goto ldv_47392; ldv_47391: { address = (regs + (unsigned long )i)->address; imask = (regs + (unsigned long )i)->mask; mask = imask; imask.u64[0] = ~ imask.u64[0]; imask.u64[1] = ~ imask.u64[1]; efx_reado___0(efx, & original, address); j = 0U; } goto ldv_47389; ldv_47388: ; if ((((((j <= 31U ? (j != 0U ? mask.u32[0] >> (int )j : mask.u32[0] << (int )(- j)) : 0U) | (j - 32U <= 31U ? (j > 32U ? mask.u32[1] >> (int )(j - 32U) : mask.u32[1] << (int )(32U - j)) : 0U)) | (j - 64U <= 31U ? (j > 64U ? mask.u32[2] >> (int )(j - 64U) : mask.u32[2] << (int )(64U - j)) : 0U)) | (j - 96U <= 31U ? (j > 96U ? mask.u32[3] >> (int )(j - 96U) : mask.u32[3] << (int )(96U - j)) : 0U)) & 1U) == 0U) { goto ldv_47386; } else { } { reg.u64[0] = original.u64[0] & mask.u64[0]; reg.u64[1] = original.u64[1] & mask.u64[1]; reg.u32[0] = (reg.u32[0] & (j <= 31U ? (j != 0U ? ~ (1U << (int )j) : ~ (1U >> (int )(- j))) : 4294967295U)) | (j <= 31U ? (j != 0U ? 1U << (int )j : 1U >> (int )(- j)) : 0U); reg.u32[1] = (reg.u32[1] & (j - 32U <= 31U ? (j > 32U ? ~ (1U << (int )(j - 32U)) : ~ (1U >> (int )(32U - j))) : 4294967295U)) | (j - 32U <= 31U ? (j > 32U ? 1U << (int )(j - 32U) : 1U >> (int )(32U - j)) : 0U); reg.u32[2] = (reg.u32[2] & (j - 64U <= 31U ? (j > 64U ? ~ (1U << (int )(j - 64U)) : ~ (1U >> (int )(64U - j))) : 4294967295U)) | (j - 64U <= 31U ? (j > 64U ? 1U << (int )(j - 64U) : 1U >> (int )(64U - j)) : 0U); reg.u32[3] = (reg.u32[3] & (j - 96U <= 31U ? (j > 96U ? ~ (1U << (int )(j - 96U)) : ~ (1U >> (int )(96U - j))) : 4294967295U)) | (j - 96U <= 31U ? (j > 96U ? 1U << (int )(j - 96U) : 1U >> (int )(96U - j)) : 0U); efx_writeo(efx, (efx_oword_t const *)(& reg), address); efx_reado___0(efx, & buf, address); tmp = efx_masked_compare_oword((efx_oword_t const *)(& reg), (efx_oword_t const *)(& buf), (efx_oword_t const *)(& mask)); } if ((int )tmp) { goto fail; } else { } { reg.u64[0] = original.u64[0] | mask.u64[0]; reg.u64[1] = original.u64[1] | mask.u64[1]; reg.u32[0] = reg.u32[0] & (j <= 31U ? (j != 0U ? ~ (1U << (int )j) : ~ (1U >> (int )(- j))) : 4294967295U); reg.u32[1] = reg.u32[1] & (j - 32U <= 31U ? (j > 32U ? ~ (1U << (int )(j - 32U)) : ~ (1U >> (int )(32U - j))) : 4294967295U); reg.u32[2] = reg.u32[2] & (j - 64U <= 31U ? (j > 64U ? ~ (1U << (int )(j - 64U)) : ~ (1U >> (int )(64U - j))) : 4294967295U); reg.u32[3] = reg.u32[3] & (j - 96U <= 31U ? (j > 96U ? ~ (1U << (int )(j - 96U)) : ~ (1U >> (int )(96U - j))) : 4294967295U); efx_writeo(efx, (efx_oword_t const *)(& reg), address); efx_reado___0(efx, & buf, address); tmp___0 = efx_masked_compare_oword((efx_oword_t const *)(& reg), (efx_oword_t const *)(& buf), (efx_oword_t const *)(& mask)); } if ((int )tmp___0) { goto fail; } else { } ldv_47386: j = j + 1U; ldv_47389: ; if (j <= 127U) { goto ldv_47388; } else { } { efx_writeo(efx, (efx_oword_t const *)(& original), address); i = i + 1U; } ldv_47392: ; if ((size_t )i < n_regs) { goto ldv_47391; } else { } return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "wrote %08x:%08x:%08x:%08x read %08x:%08x:%08x:%08x at address 0x%x mask %08x:%08x:%08x:%08x\n", reg.u32[3], reg.u32[2], reg.u32[1], reg.u32[0], buf.u32[3], buf.u32[2], buf.u32[1], buf.u32[0], address, mask.u32[3], mask.u32[2], mask.u32[1], mask.u32[0]); } } else { } return (-5); } } static void efx_init_special_buffer(struct efx_nic *efx , struct efx_special_buffer *buffer ) { efx_qword_t buf_desc ; unsigned int index ; dma_addr_t dma_addr ; int i ; struct _ddebug descriptor ; long tmp ; { i = 0; goto ldv_47405; ldv_47404: index = buffer->index + (unsigned int )i; dma_addr = buffer->buf.dma_addr + (dma_addr_t )(i * 4096); if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_init_special_buffer"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "mapping special buffer %d at %llx\n"; descriptor.lineno = 185U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "mapping special buffer %d at %llx\n", index, dma_addr); } } else { } } else { } { buf_desc.u64[0] = (dma_addr >> 12) << 14; efx_write_buf_tbl(efx, & buf_desc, index); i = i + 1; } ldv_47405: ; if ((unsigned int )i < buffer->entries) { goto ldv_47404; } else { } return; } } static void efx_fini_special_buffer(struct efx_nic *efx , struct efx_special_buffer *buffer ) { efx_oword_t buf_tbl_upd ; unsigned int start ; unsigned int end ; struct _ddebug descriptor ; long tmp ; { start = buffer->index; end = (buffer->index + buffer->entries) - 1U; if (buffer->entries == 0U) { return; } else { } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_fini_special_buffer"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "unmapping special buffers %d-%d\n"; descriptor.lineno = 206U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "unmapping special buffers %d-%d\n", buffer->index, (buffer->index + buffer->entries) - 1U); } } else { } } else { } { buf_tbl_upd.u64[0] = (((unsigned long long )end << 32) | (unsigned long long )start) | 4611686018427387904ULL; buf_tbl_upd.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& buf_tbl_upd), 1616U); } return; } } static int efx_alloc_special_buffer(struct efx_nic *efx , struct efx_special_buffer *buffer , unsigned int len ) { int tmp ; long tmp___0 ; bool tmp___1 ; long tmp___2 ; long tmp___3 ; struct _ddebug descriptor ; phys_addr_t tmp___4 ; long tmp___5 ; { { len = (len + 4095U) & 4294963200U; tmp = efx_nic_alloc_buffer(efx, & buffer->buf, len, 208U); } if (tmp != 0) { return (-12); } else { } { buffer->entries = len / 4096U; tmp___0 = ldv__builtin_expect((buffer->buf.dma_addr & 4095ULL) != 0ULL, 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 *)"drivers/net/ethernet/sfc/farch.c"), "i" (234), "i" (12UL)); __builtin_unreachable(); } } else { } { buffer->index = efx->next_buffer_table; efx->next_buffer_table = efx->next_buffer_table + buffer->entries; tmp___1 = efx_sriov_enabled(efx); tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); } if (tmp___2 != 0L) { { tmp___3 = ldv__builtin_expect(efx->vf_buftbl_base < efx->next_buffer_table, 0L); } if (tmp___3 != 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 *)"drivers/net/ethernet/sfc/farch.c"), "i" (241), "i" (12UL)); __builtin_unreachable(); } } else { } } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_alloc_special_buffer"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "allocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n"; descriptor.lineno = 249U; descriptor.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___5 != 0L) { { tmp___4 = virt_to_phys((void volatile *)buffer->buf.addr); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "allocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n", buffer->index, (buffer->index + buffer->entries) - 1U, buffer->buf.dma_addr, len, buffer->buf.addr, tmp___4); } } else { } } else { } return (0); } } static void efx_free_special_buffer(struct efx_nic *efx , struct efx_special_buffer *buffer ) { struct _ddebug descriptor ; phys_addr_t tmp ; long tmp___0 ; { if ((unsigned long )buffer->buf.addr == (unsigned long )((void *)0)) { return; } else { } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_free_special_buffer"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "deallocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n"; descriptor.lineno = 265U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___0 != 0L) { { tmp = virt_to_phys((void volatile *)buffer->buf.addr); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "deallocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n", buffer->index, (buffer->index + buffer->entries) - 1U, buffer->buf.dma_addr, buffer->buf.len, buffer->buf.addr, tmp); } } else { } } else { } { efx_nic_free_buffer(efx, & buffer->buf); buffer->entries = 0U; } return; } } __inline static void efx_farch_notify_tx_desc(struct efx_tx_queue *tx_queue ) { unsigned int write_ptr ; efx_dword_t reg ; { { write_ptr = tx_queue->write_count & tx_queue->ptr_mask; reg.u32[0] = write_ptr; _efx_writed_page(tx_queue->efx, (efx_dword_t const *)(& reg), 2588U, tx_queue->queue); } return; } } extern void __compiletime_assert_296(void) ; extern void __compiletime_assert_297(void) ; __inline static void efx_farch_push_tx_desc(struct efx_tx_queue *tx_queue , efx_qword_t const *txd ) { unsigned int write_ptr ; efx_oword_t reg ; bool __cond ; bool __cond___0 ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_296(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_297(); } } else { } { write_ptr = tx_queue->write_count & tx_queue->ptr_mask; reg.u64[0] = 0ULL; reg.u64[1] = ((unsigned long long )write_ptr << 32) | 2147483648ULL; reg.qword[0] = *txd; _efx_writeo_page(tx_queue->efx, & reg, 2576U, tx_queue->queue); } return; } } extern void __compiletime_assert_331(void) ; void efx_farch_tx_write(struct efx_tx_queue *tx_queue ) { struct efx_tx_buffer *buffer ; efx_qword_t *txd ; unsigned int write_ptr ; unsigned int old_write_count ; long tmp ; bool __cond ; bool tmp___0 ; { { old_write_count = tx_queue->write_count; tmp = ldv__builtin_expect(tx_queue->write_count == tx_queue->insert_count, 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 *)"drivers/net/ethernet/sfc/farch.c"), "i" (320), "i" (12UL)); __builtin_unreachable(); } } else { } ldv_47477: { write_ptr = tx_queue->write_count & tx_queue->ptr_mask; buffer = tx_queue->buffer + (unsigned long )write_ptr; txd = efx_tx_desc(tx_queue, write_ptr); tx_queue->write_count = tx_queue->write_count + 1U; __cond = 0; } if ((int )__cond) { { __compiletime_assert_331(); } } else { } txd->u64[0] = ((((unsigned long long )buffer->flags & 1ULL) << 62) | ((unsigned long long )buffer->len << 48)) | buffer->__annonCompField87.dma_addr; if (tx_queue->write_count != tx_queue->insert_count) { goto ldv_47477; } else { } { __asm__ volatile ("sfence": : : "memory"); tmp___0 = efx_nic_may_push_tx_desc(tx_queue, old_write_count); } if ((int )tmp___0) { { txd = efx_tx_desc(tx_queue, old_write_count & tx_queue->ptr_mask); efx_farch_push_tx_desc(tx_queue, (efx_qword_t const *)txd); tx_queue->pushes = tx_queue->pushes + 1U; } } else { { efx_farch_notify_tx_desc(tx_queue); } } return; } } int efx_farch_tx_probe(struct efx_tx_queue *tx_queue ) { struct efx_nic *efx ; unsigned int entries ; int tmp ; { { efx = tx_queue->efx; entries = tx_queue->ptr_mask + 1U; tmp = efx_alloc_special_buffer(efx, & tx_queue->txd, entries * 8U); } return (tmp); } } extern void __compiletime_assert_398(void) ; void efx_farch_tx_init(struct efx_tx_queue *tx_queue ) { struct efx_nic *efx ; efx_oword_t reg ; unsigned long tmp ; int csum ; int tmp___0 ; bool __cond ; int tmp___1 ; int tmp___2 ; { { efx = tx_queue->efx; efx_init_special_buffer(efx, & tx_queue->txd); tmp = __ffs((unsigned long )tx_queue->txd.entries); reg.u64[0] = ((((unsigned long long )tx_queue->txd.index << 36) | ((unsigned long long )(tx_queue->channel)->channel << 24)) | ((unsigned long long )tx_queue->queue << 5)) | ((unsigned long long )tmp << 3); reg.u64[1] = 150994944ULL; tmp___0 = efx_nic_rev(efx); } if (tmp___0 > 1) { csum = (int )tx_queue->queue & 1; reg.u64[0] = reg.u64[0]; reg.u64[1] = (reg.u64[1] & 0xfffffffffbffffffULL) | (csum == 0 ? 67108864ULL : 0ULL); reg.u64[0] = reg.u64[0]; reg.u64[1] = (reg.u64[1] & 0xfffffffffdffffffULL) | (csum == 0 ? 33554432ULL : 0ULL); } else { } { efx_writeo_table(efx, (efx_oword_t const *)(& reg), (efx->type)->txd_ptr_tbl_base, tx_queue->queue); tmp___1 = efx_nic_rev(efx); } if (tmp___1 <= 1) { __cond = 0; if ((int )__cond) { { __compiletime_assert_398(); } } else { } { efx_reado___0(efx, & reg, 2608U); } if ((int )tx_queue->queue & 1) { { __clear_bit_le((int )tx_queue->queue, (void *)(& reg)); } } else { { __set_bit_le((int )tx_queue->queue, (void *)(& reg)); } } { efx_writeo(efx, (efx_oword_t const *)(& reg), 2608U); } } else { } { tmp___2 = efx_nic_rev(efx); } if (tmp___2 > 1) { { reg.u64[0] = (tx_queue->queue & 2U) != 0U ? 0ULL : 21ULL; reg.u64[1] = 0ULL; efx_writeo_table(efx, (efx_oword_t const *)(& reg), 16252928U, tx_queue->queue); } } else { } return; } } static void efx_farch_flush_tx_queue(struct efx_tx_queue *tx_queue ) { struct efx_nic *efx ; efx_oword_t tx_flush_descq ; int __ret_warn_on ; int tmp ; long tmp___0 ; { { efx = tx_queue->efx; tmp = atomic_read((atomic_t const *)(& tx_queue->flush_outstanding)); __ret_warn_on = tmp != 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/farch.c", 424); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); atomic_set(& tx_queue->flush_outstanding, 1); tx_flush_descq.u64[0] = (unsigned long long )tx_queue->queue | 4096ULL; tx_flush_descq.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& tx_flush_descq), 2560U); } return; } } void efx_farch_tx_fini(struct efx_tx_queue *tx_queue ) { struct efx_nic *efx ; efx_oword_t tx_desc_ptr ; { { efx = tx_queue->efx; tx_desc_ptr.u64[0] = 0ULL; tx_desc_ptr.u64[1] = 0ULL; efx_writeo_table(efx, (efx_oword_t const *)(& tx_desc_ptr), (efx->type)->txd_ptr_tbl_base, tx_queue->queue); efx_fini_special_buffer(efx, & tx_queue->txd); } return; } } void efx_farch_tx_remove(struct efx_tx_queue *tx_queue ) { { { efx_free_special_buffer(tx_queue->efx, & tx_queue->txd); } return; } } __inline static void efx_farch_build_rx_desc(struct efx_rx_queue *rx_queue , unsigned int index ) { struct efx_rx_buffer *rx_buf ; efx_qword_t *rxd ; { { rxd = efx_rx_desc(rx_queue, index); rx_buf = efx_rx_buffer(rx_queue, index); rxd->u64[0] = ((unsigned long long )((unsigned int )rx_buf->len - (unsigned int )((rx_queue->efx)->type)->rx_buffer_padding) << 48) | rx_buf->dma_addr; } return; } } void efx_farch_rx_write(struct efx_rx_queue *rx_queue ) { struct efx_nic *efx ; efx_dword_t reg ; unsigned int write_ptr ; int tmp ; { efx = rx_queue->efx; goto ldv_47522; ldv_47521: { efx_farch_build_rx_desc(rx_queue, rx_queue->notified_count & rx_queue->ptr_mask); rx_queue->notified_count = rx_queue->notified_count + 1U; } ldv_47522: ; if (rx_queue->notified_count != rx_queue->added_count) { goto ldv_47521; } else { } { __asm__ volatile ("sfence": : : "memory"); write_ptr = rx_queue->added_count & rx_queue->ptr_mask; reg.u32[0] = write_ptr; tmp = efx_rx_queue_index(rx_queue); _efx_writed_page(efx, (efx_dword_t const *)(& reg), 2108U, (unsigned int )tmp); } return; } } int efx_farch_rx_probe(struct efx_rx_queue *rx_queue ) { struct efx_nic *efx ; unsigned int entries ; int tmp ; { { efx = rx_queue->efx; entries = rx_queue->ptr_mask + 1U; tmp = efx_alloc_special_buffer(efx, & rx_queue->rxd, entries * 8U); } return (tmp); } } void efx_farch_rx_init(struct efx_rx_queue *rx_queue ) { efx_oword_t rx_desc_ptr ; struct efx_nic *efx ; bool is_b0 ; int tmp ; bool iscsi_digest_en ; bool jumbo_en ; struct _ddebug descriptor ; int tmp___0 ; long tmp___1 ; struct efx_channel *tmp___2 ; int tmp___3 ; unsigned long tmp___4 ; int tmp___5 ; { { efx = rx_queue->efx; tmp = efx_nic_rev(efx); is_b0 = tmp > 1; iscsi_digest_en = is_b0; jumbo_en = (bool )(! is_b0 || (int )efx->rx_scatter); } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_farch_rx_init"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "RX queue %d ring in special buffers %d-%d\n"; descriptor.lineno = 527U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___1 != 0L) { { tmp___0 = efx_rx_queue_index(rx_queue); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "RX queue %d ring in special buffers %d-%d\n", tmp___0, rx_queue->rxd.index, (rx_queue->rxd.index + rx_queue->rxd.entries) - 1U); } } else { } } else { } { rx_queue->scatter_n = 0U; efx_init_special_buffer(efx, & rx_queue->rxd); tmp___2 = efx_rx_queue_channel(rx_queue); tmp___3 = efx_rx_queue_index(rx_queue); tmp___4 = __ffs((unsigned long )rx_queue->rxd.entries); rx_desc_ptr.u64[0] = ((((((unsigned long long )rx_queue->rxd.index << 36) | ((unsigned long long )tmp___2->channel << 24)) | ((unsigned long long )tmp___3 << 5)) | ((unsigned long long )tmp___4 << 3)) | ((unsigned long long )jumbo_en << 1)) | 1ULL; rx_desc_ptr.u64[1] = ((unsigned long long )iscsi_digest_en << 24) | ((unsigned long long )iscsi_digest_en << 23); tmp___5 = efx_rx_queue_index(rx_queue); efx_writeo_table(efx, (efx_oword_t const *)(& rx_desc_ptr), (efx->type)->rxd_ptr_tbl_base, (unsigned int )tmp___5); } return; } } static void efx_farch_flush_rx_queue(struct efx_rx_queue *rx_queue ) { struct efx_nic *efx ; efx_oword_t rx_flush_descq ; int tmp ; { { efx = rx_queue->efx; tmp = efx_rx_queue_index(rx_queue); rx_flush_descq.u64[0] = (unsigned long long )tmp | 16777216ULL; rx_flush_descq.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& rx_flush_descq), 2080U); } return; } } void efx_farch_rx_fini(struct efx_rx_queue *rx_queue ) { efx_oword_t rx_desc_ptr ; struct efx_nic *efx ; int tmp ; { { efx = rx_queue->efx; rx_desc_ptr.u64[0] = 0ULL; rx_desc_ptr.u64[1] = 0ULL; tmp = efx_rx_queue_index(rx_queue); efx_writeo_table(efx, (efx_oword_t const *)(& rx_desc_ptr), (efx->type)->rxd_ptr_tbl_base, (unsigned int )tmp); efx_fini_special_buffer(efx, & rx_queue->rxd); } return; } } void efx_farch_rx_remove(struct efx_rx_queue *rx_queue ) { { { efx_free_special_buffer(rx_queue->efx, & rx_queue->rxd); } return; } } static bool efx_farch_flush_wake(struct efx_nic *efx ) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { { __asm__ volatile ("mfence": : : "memory"); tmp = atomic_read((atomic_t const *)(& efx->active_queues)); } if (tmp == 0) { tmp___2 = 1; } else { { tmp___0 = atomic_read((atomic_t const *)(& efx->rxq_flush_outstanding)); } if (tmp___0 <= 3) { { tmp___1 = atomic_read((atomic_t const *)(& efx->rxq_flush_pending)); } if (tmp___1 > 0) { tmp___2 = 1; } else { tmp___2 = 0; } } else { tmp___2 = 0; } } return ((bool )tmp___2); } } static bool efx_check_tx_flush_complete(struct efx_nic *efx ) { bool i ; efx_oword_t txd_ptr_tbl ; struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; int tmp___1 ; bool tmp___2 ; bool tmp___3 ; int tmp___4 ; { i = 1; channel = efx->channel[0]; goto ldv_47585; ldv_47584: { tmp___3 = efx_channel_has_tx_queues(channel); } if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_47582; ldv_47581: { efx_reado_table___0(efx, & txd_ptr_tbl, 16056320U, tx_queue->queue); } if ((int )txd_ptr_tbl.u64[0] & 1 || (int )(txd_ptr_tbl.u64[1] >> 24) & 1) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_check_tx_flush_complete"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "flush did not complete on TXQ %d\n"; descriptor.lineno = 621U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "flush did not complete on TXQ %d\n", tx_queue->queue); } } else { } } else { } i = 0; } else { { tmp___1 = atomic_cmpxchg(& tx_queue->flush_outstanding, 1, 0); } if (tmp___1 != 0) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_check_tx_flush_complete"; descriptor___0.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor___0.format = "flush complete on TXQ %d, so drain the queue\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 *)efx->net_dev, "flush complete on TXQ %d, so drain the queue\n", tx_queue->queue); } } else { } } else { } { efx_farch_magic_event(channel, tx_queue->queue | 66560U); } } else { } } tx_queue = tx_queue + 1; ldv_47582: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___2 = efx_tx_queue_used(tx_queue); } if ((int )tmp___2) { goto ldv_47581; } else { goto ldv_47583; } } else { } ldv_47583: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47585: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47584; } else { } return (i); } } static int efx_farch_do_flush(struct efx_nic *efx ) { unsigned int timeout ; unsigned long tmp ; struct efx_channel *channel ; struct efx_rx_queue *rx_queue ; struct efx_tx_queue *tx_queue ; int rc ; bool tmp___0 ; bool tmp___1 ; int tmp___2 ; bool tmp___3 ; int tmp___4 ; bool tmp___5 ; int tmp___6 ; bool tmp___7 ; int tmp___8 ; long __ret ; wait_queue_t __wait ; long __ret___0 ; long __int ; long tmp___9 ; bool __cond ; bool tmp___10 ; bool __cond___0 ; bool tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; int tmp___15 ; int tmp___16 ; bool tmp___17 ; int tmp___18 ; { { tmp = msecs_to_jiffies(5000U); timeout = (unsigned int )tmp; rc = 0; channel = efx->channel[0]; } goto ldv_47602; ldv_47601: { tmp___1 = efx_channel_has_tx_queues(channel); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_47596; ldv_47595: { efx_farch_flush_tx_queue(tx_queue); tx_queue = tx_queue + 1; } ldv_47596: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___0 = efx_tx_queue_used(tx_queue); } if ((int )tmp___0) { goto ldv_47595; } else { goto ldv_47597; } } else { } ldv_47597: ; } { tmp___3 = efx_channel_has_rx_queue(channel); } if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { } else { rx_queue = & channel->rx_queue; goto ldv_47599; ldv_47598: { rx_queue->flush_pending = 1; atomic_inc(& efx->rxq_flush_pending); rx_queue = (struct efx_rx_queue *)0; } ldv_47599: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_47598; } else { } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47602: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47601; } else { } goto ldv_47625; ldv_47624: { tmp___5 = efx_sriov_enabled(efx); } if ((int )tmp___5) { { rc = efx_mcdi_flush_rxqs(efx); } if (rc == 0) { goto wait; } else { } } else { } channel = efx->channel[0]; goto ldv_47609; ldv_47608: { tmp___7 = efx_channel_has_rx_queue(channel); } if (tmp___7) { tmp___8 = 0; } else { tmp___8 = 1; } if (tmp___8) { } else { rx_queue = & channel->rx_queue; goto ldv_47607; ldv_47606: { tmp___6 = atomic_read((atomic_t const *)(& efx->rxq_flush_outstanding)); } if (tmp___6 > 3) { goto ldv_47605; } else { } if ((int )rx_queue->flush_pending) { { rx_queue->flush_pending = 0; atomic_dec(& efx->rxq_flush_pending); atomic_inc(& efx->rxq_flush_outstanding); efx_farch_flush_rx_queue(rx_queue); } } else { } rx_queue = (struct efx_rx_queue *)0; ldv_47607: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_47606; } else { } ldv_47605: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47609: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47608; } else { } wait: { __ret = (long )timeout; tmp___11 = efx_farch_flush_wake(efx); __cond___0 = tmp___11; } if ((int )__cond___0 && __ret == 0L) { __ret = 1L; } else { } if (((int )__cond___0 || __ret == 0L) == 0) { { __ret___0 = (long )timeout; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; } ldv_47621: { tmp___9 = prepare_to_wait_event(& efx->flush_wq, & __wait, 2); __int = tmp___9; tmp___10 = efx_farch_flush_wake(efx); __cond = tmp___10; } if ((int )__cond && __ret___0 == 0L) { __ret___0 = 1L; } else { } if (((int )__cond || __ret___0 == 0L) != 0) { goto ldv_47620; } else { } { __ret___0 = schedule_timeout(__ret___0); } goto ldv_47621; ldv_47620: { finish_wait(& efx->flush_wq, & __wait); } __ret = __ret___0; } else { } timeout = (unsigned int )__ret; ldv_47625: ; if (timeout != 0U) { { tmp___12 = atomic_read((atomic_t const *)(& efx->active_queues)); } if (tmp___12 > 0) { goto ldv_47624; } else { goto ldv_47626; } } else { } ldv_47626: { tmp___16 = atomic_read((atomic_t const *)(& efx->active_queues)); } if (tmp___16 != 0) { { tmp___17 = efx_check_tx_flush_complete(efx); } if (tmp___17) { tmp___18 = 0; } else { tmp___18 = 1; } if (tmp___18) { if ((efx->msg_enable & 8192U) != 0U) { { tmp___13 = atomic_read((atomic_t const *)(& efx->rxq_flush_pending)); tmp___14 = atomic_read((atomic_t const *)(& efx->rxq_flush_outstanding)); tmp___15 = atomic_read((atomic_t const *)(& efx->active_queues)); netdev_err((struct net_device const *)efx->net_dev, "failed to flush %d queues (rx %d+%d)\n", tmp___15, tmp___14, tmp___13); } } else { } { rc = -110; atomic_set(& efx->active_queues, 0); atomic_set(& efx->rxq_flush_pending, 0); atomic_set(& efx->rxq_flush_outstanding, 0); } } else { } } else { } return (rc); } } int efx_farch_fini_dmaq(struct efx_nic *efx ) { struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; struct efx_rx_queue *rx_queue ; int rc ; bool tmp ; int tmp___0 ; bool tmp___1 ; bool tmp___2 ; int tmp___3 ; { rc = 0; if ((unsigned int )efx->state != 3U) { if ((unsigned int )*((unsigned char *)efx->pci_dev + 2497UL) != 0U) { { (*((efx->type)->prepare_flush))(efx); rc = efx_farch_do_flush(efx); (*((efx->type)->finish_flush))(efx); } } else { } channel = efx->channel[0]; goto ldv_47641; ldv_47640: { tmp = efx_channel_has_rx_queue(channel); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { } else { rx_queue = & channel->rx_queue; goto ldv_47635; ldv_47634: { efx_farch_rx_fini(rx_queue); rx_queue = (struct efx_rx_queue *)0; } ldv_47635: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_47634; } else { } } { tmp___2 = efx_channel_has_tx_queues(channel); } if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_47638; ldv_47637: { efx_farch_tx_fini(tx_queue); tx_queue = tx_queue + 1; } ldv_47638: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___1 = efx_tx_queue_used(tx_queue); } if ((int )tmp___1) { goto ldv_47637; } else { goto ldv_47639; } } else { } ldv_47639: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47641: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47640; } else { } } else { } return (rc); } } void efx_farch_ev_read_ack(struct efx_channel *channel ) { efx_dword_t reg ; struct efx_nic *efx ; { { efx = channel->efx; reg.u32[0] = channel->eventq_read_ptr & channel->eventq_mask; efx_writed(efx, (efx_dword_t const *)(& reg), (unsigned int )(efx->type)->evq_rptr_tbl_base + (unsigned int )(channel->channel * 16)); } return; } } extern void __compiletime_assert_780(void) ; void efx_farch_generate_event(struct efx_nic *efx , unsigned int evq , efx_qword_t *event ) { efx_oword_t drv_ev_reg ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_780(); } } else { } { drv_ev_reg.u32[0] = event->u32[0]; drv_ev_reg.u32[1] = event->u32[1]; drv_ev_reg.u32[2] = 0U; drv_ev_reg.u32[3] = 0U; drv_ev_reg.u64[0] = drv_ev_reg.u64[0]; drv_ev_reg.u64[1] = (drv_ev_reg.u64[1] & 0xfffffffffffff000ULL) | (unsigned long long )evq; efx_writeo(efx, (efx_oword_t const *)(& drv_ev_reg), 1088U); } return; } } static void efx_farch_magic_event(struct efx_channel *channel , u32 magic ) { efx_qword_t event ; { { event.u64[0] = (unsigned long long )magic | 8070450532247928832ULL; efx_farch_generate_event(channel->efx, (unsigned int )channel->channel, & event); } return; } } static int efx_farch_handle_tx_event(struct efx_channel *channel , efx_qword_t *event ) { unsigned int tx_ev_desc_ptr ; unsigned int tx_ev_q_label ; struct efx_tx_queue *tx_queue ; struct efx_nic *efx ; int tx_packets ; long tmp ; long tmp___0 ; { { efx = channel->efx; tx_packets = 0; tmp = ldv__builtin_expect((unsigned long )*((unsigned long volatile *)(& efx->reset_pending)) != 0UL, 0L); } if (tmp != 0L) { return (0); } else { } { tmp___0 = ldv__builtin_expect((long )((int )(event->u64[0] >> 12)) & 1L, 1L); } if (tmp___0 != 0L) { { tx_ev_desc_ptr = (unsigned int )event->u64[0] & 4095U; tx_ev_q_label = (unsigned int )(event->u64[0] >> 32) & 31U; tx_queue = efx_channel_get_tx_queue(channel, tx_ev_q_label & 3U); tx_packets = (int )((tx_ev_desc_ptr - tx_queue->read_count) & tx_queue->ptr_mask); efx_xmit_done(tx_queue, tx_ev_desc_ptr); } } else if ((int )(event->u64[0] >> 15) & 1) { { tx_ev_q_label = (unsigned int )(event->u64[0] >> 32) & 31U; tx_queue = efx_channel_get_tx_queue(channel, tx_ev_q_label & 3U); netif_tx_lock___0(efx->net_dev); efx_farch_notify_tx_desc(tx_queue); netif_tx_unlock___0(efx->net_dev); } } else if ((int )(event->u64[0] >> 38) & 1) { { efx_schedule_reset(efx, 10); } } else if ((efx->msg_enable & 128U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d unexpected TX event %08x:%08x\n", channel->channel, event->u32[1], event->u32[0]); } } else { } return (tx_packets); } } static u16 efx_farch_handle_rx_not_ok(struct efx_rx_queue *rx_queue , efx_qword_t const *event ) { struct efx_channel *channel ; struct efx_channel *tmp ; struct efx_nic *efx ; bool rx_ev_buf_owner_id_err ; bool rx_ev_ip_hdr_chksum_err ; bool rx_ev_tcp_udp_chksum_err ; bool rx_ev_eth_crc_err ; bool rx_ev_frm_trunc ; bool rx_ev_drib_nib ; bool rx_ev_tobe_disc ; bool rx_ev_other_err ; bool rx_ev_pause_frm ; bool rx_ev_hdr_type ; bool rx_ev_mcast_pkt ; unsigned int rx_ev_pkt_type ; int tmp___0 ; { { tmp = efx_rx_queue_channel(rx_queue); channel = tmp; efx = rx_queue->efx; rx_ev_hdr_type = ((event->u64[0] >> 42) & 3ULL) != 0ULL; rx_ev_mcast_pkt = ((event->u64[0] >> 39) & 1ULL) != 0ULL; rx_ev_tobe_disc = ((event->u64[0] >> 47) & 1ULL) != 0ULL; rx_ev_pkt_type = (unsigned int )(event->u64[0] >> 44) & 7U; rx_ev_buf_owner_id_err = ((event->u64[0] >> 54) & 1ULL) != 0ULL; rx_ev_ip_hdr_chksum_err = ((event->u64[0] >> 52) & 1ULL) != 0ULL; rx_ev_tcp_udp_chksum_err = ((event->u64[0] >> 51) & 1ULL) != 0ULL; rx_ev_eth_crc_err = ((event->u64[0] >> 50) & 1ULL) != 0ULL; rx_ev_frm_trunc = ((event->u64[0] >> 49) & 1ULL) != 0ULL; tmp___0 = efx_nic_rev(efx); rx_ev_drib_nib = tmp___0 <= 1 && ((event->u64[0] >> 49) & 1ULL) != 0ULL; rx_ev_pause_frm = ((event->u64[0] >> 55) & 1ULL) != 0ULL; rx_ev_other_err = ((((((int )rx_ev_drib_nib | (int )rx_ev_tcp_udp_chksum_err) | (int )rx_ev_buf_owner_id_err) | (int )rx_ev_eth_crc_err) | (int )rx_ev_frm_trunc) | (int )rx_ev_ip_hdr_chksum_err) != 0; } if ((int )rx_ev_frm_trunc) { channel->n_rx_frm_trunc = channel->n_rx_frm_trunc + 1U; } else if ((int )rx_ev_tobe_disc) { channel->n_rx_tobe_disc = channel->n_rx_tobe_disc + 1U; } else if ((unsigned long )efx->loopback_selftest == (unsigned long )((void *)0)) { if ((int )rx_ev_ip_hdr_chksum_err) { channel->n_rx_ip_hdr_chksum_err = channel->n_rx_ip_hdr_chksum_err + 1U; } else if ((int )rx_ev_tcp_udp_chksum_err) { channel->n_rx_tcp_udp_chksum_err = channel->n_rx_tcp_udp_chksum_err + 1U; } else { } } else { } return ((((((int )rx_ev_eth_crc_err | (int )rx_ev_frm_trunc) | (int )rx_ev_drib_nib) | (int )rx_ev_tobe_disc) | (int )rx_ev_pause_frm) != 0 ? 4U : 0U); } } static bool efx_farch_handle_rx_bad_index(struct efx_rx_queue *rx_queue , unsigned int index ) { struct efx_channel *channel ; struct efx_channel *tmp ; struct efx_nic *efx ; unsigned int expected ; unsigned int dropped ; int tmp___0 ; { { tmp = efx_rx_queue_channel(rx_queue); channel = tmp; efx = rx_queue->efx; } if (rx_queue->scatter_n != 0U && index == (((rx_queue->removed_count + rx_queue->scatter_n) - 1U) & rx_queue->ptr_mask)) { channel->n_rx_nodesc_trunc = channel->n_rx_nodesc_trunc + 1U; return (1); } else { } expected = rx_queue->removed_count & rx_queue->ptr_mask; dropped = (index - expected) & rx_queue->ptr_mask; if ((efx->msg_enable & 64U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "dropped %d events (index=%d expected=%d)\n", dropped, index, expected); } } else { } { tmp___0 = efx_nic_rev(efx); efx_schedule_reset(efx, tmp___0 <= 1 ? 9 : 5); } return (0); } } static void efx_farch_handle_rx_event(struct efx_channel *channel , efx_qword_t const *event ) { unsigned int rx_ev_desc_ptr ; unsigned int rx_ev_byte_cnt ; unsigned int rx_ev_hdr_type ; unsigned int rx_ev_mcast_pkt ; unsigned int expected_ptr ; bool rx_ev_pkt_ok ; bool rx_ev_sop ; bool rx_ev_cont ; u16 flags ; struct efx_rx_queue *rx_queue ; struct efx_nic *efx ; long tmp ; int __ret_warn_on ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; long tmp___3 ; long tmp___4 ; long tmp___5 ; unsigned int rx_ev_mcast_hash_match ; long tmp___6 ; { { efx = channel->efx; tmp = ldv__builtin_expect((unsigned long )*((unsigned long volatile *)(& efx->reset_pending)) != 0UL, 0L); } if (tmp != 0L) { return; } else { } { rx_ev_cont = ((event->u64[0] >> 31) & 1ULL) != 0ULL; rx_ev_sop = ((event->u64[0] >> 15) & 1ULL) != 0ULL; __ret_warn_on = ((event->u64[0] >> 32) & 31ULL) != (unsigned long long )channel->channel; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/farch.c", 975); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); rx_queue = efx_channel_get_rx_queue(channel); rx_ev_desc_ptr = (unsigned int )event->u64[0] & 4095U; expected_ptr = (rx_queue->removed_count + rx_queue->scatter_n) & rx_queue->ptr_mask; tmp___3 = ldv__builtin_expect(rx_ev_desc_ptr != expected_ptr, 0L); } if (tmp___3 != 0L) { goto _L; } else { { tmp___4 = ldv__builtin_expect((int )rx_ev_sop != (rx_queue->scatter_n == 0U), 0L); } if (tmp___4 != 0L) { _L: /* CIL Label */ if (rx_ev_desc_ptr != expected_ptr) { { tmp___1 = efx_farch_handle_rx_bad_index(rx_queue, rx_ev_desc_ptr); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { return; } else { } } else { } if (rx_queue->scatter_n != 0U) { { efx_rx_packet(rx_queue, rx_queue->removed_count & rx_queue->ptr_mask, rx_queue->scatter_n, 0U, 4); rx_queue->removed_count = rx_queue->removed_count + rx_queue->scatter_n; rx_queue->scatter_n = 0U; } } else { } if (rx_ev_desc_ptr != expected_ptr) { return; } else { } if (! rx_ev_sop) { { efx_rx_packet(rx_queue, rx_queue->removed_count & rx_queue->ptr_mask, 1U, 0U, 4); rx_queue->removed_count = rx_queue->removed_count + 1U; } return; } else { } } else { } } rx_queue->scatter_n = rx_queue->scatter_n + 1U; if ((int )rx_ev_cont) { return; } else { } { rx_ev_byte_cnt = (unsigned int )(event->u64[0] >> 16) & 16383U; rx_ev_pkt_ok = ((event->u64[0] >> 56) & 1ULL) != 0ULL; rx_ev_hdr_type = (unsigned int )(event->u64[0] >> 42) & 3U; tmp___5 = ldv__builtin_expect((long )rx_ev_pkt_ok, 1L); } if (tmp___5 != 0L) { flags = 0U; { if (rx_ev_hdr_type == 0U) { goto case_0; } else { } if (rx_ev_hdr_type == 1U) { goto case_1; } else { } if (rx_ev_hdr_type == 2U) { goto case_2; } else { } if (rx_ev_hdr_type == 3U) { goto case_3; } else { } goto switch_break; case_0: /* CIL Label */ flags = (u16 )((unsigned int )flags | 64U); case_1: /* CIL Label */ flags = (u16 )((unsigned int )flags | 2U); case_2: /* CIL Label */ ; case_3: /* CIL Label */ ; goto ldv_47719; switch_break: /* CIL Label */ ; } ldv_47719: ; } else { { flags = efx_farch_handle_rx_not_ok(rx_queue, event); } } rx_ev_mcast_pkt = (unsigned int )(event->u64[0] >> 39) & 1U; if (rx_ev_mcast_pkt != 0U) { { rx_ev_mcast_hash_match = (unsigned int )(event->u64[0] >> 40) & 1U; tmp___6 = ldv__builtin_expect(rx_ev_mcast_hash_match == 0U, 0L); } if (tmp___6 != 0L) { channel->n_rx_mcast_mismatch = channel->n_rx_mcast_mismatch + 1U; flags = (u16 )((unsigned int )flags | 4U); } else { } } else { } { channel->irq_mod_score = channel->irq_mod_score + 2U; efx_rx_packet(rx_queue, rx_queue->removed_count & rx_queue->ptr_mask, rx_queue->scatter_n, rx_ev_byte_cnt, (int )flags); rx_queue->removed_count = rx_queue->removed_count + rx_queue->scatter_n; rx_queue->scatter_n = 0U; } return; } } static void efx_farch_handle_tx_flush_done(struct efx_nic *efx , efx_qword_t *event ) { struct efx_tx_queue *tx_queue ; int qid ; int tmp ; { qid = (int )event->u64[0] & 16383; if ((unsigned int )qid < efx->n_tx_channels * 4U) { { tx_queue = efx_get_tx_queue(efx, (unsigned int )(qid / 4), (unsigned int )(qid % 4)); tmp = atomic_cmpxchg(& tx_queue->flush_outstanding, 1, 0); } if (tmp != 0) { { efx_farch_magic_event(tx_queue->channel, tx_queue->queue | 66560U); } } else { } } else { } return; } } static void efx_farch_handle_rx_flush_done(struct efx_nic *efx , efx_qword_t *event ) { struct efx_channel *channel ; struct efx_rx_queue *rx_queue ; int qid ; bool failed ; bool tmp ; int tmp___0 ; int tmp___1 ; struct efx_channel *tmp___2 ; bool tmp___3 ; { qid = (int )event->u64[0] & 4095; failed = ((event->u64[0] >> 12) & 1ULL) != 0ULL; if ((unsigned int )qid >= efx->n_channels) { return; } else { } { channel = efx_get_channel(efx, (unsigned int )qid); tmp = efx_channel_has_rx_queue(channel); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return; } else { } { rx_queue = efx_channel_get_rx_queue(channel); } if ((int )failed) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "RXQ %d flush retry\n", qid); } } else { } { rx_queue->flush_pending = 1; atomic_inc(& efx->rxq_flush_pending); } } else { { tmp___1 = efx_rx_queue_index(rx_queue); tmp___2 = efx_rx_queue_channel(rx_queue); efx_farch_magic_event(tmp___2, (u32 )(tmp___1 | 66304)); } } { atomic_dec(& efx->rxq_flush_outstanding); tmp___3 = efx_farch_flush_wake(efx); } if ((int )tmp___3) { { __wake_up(& efx->flush_wq, 3U, 1, (void *)0); } } else { } return; } } static void efx_farch_handle_drain_event(struct efx_channel *channel ) { struct efx_nic *efx ; int __ret_warn_on ; int tmp ; long tmp___0 ; bool tmp___1 ; { { efx = channel->efx; tmp = atomic_read((atomic_t const *)(& efx->active_queues)); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/farch.c", 1126); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); atomic_dec(& efx->active_queues); tmp___1 = efx_farch_flush_wake(efx); } if ((int )tmp___1) { { __wake_up(& efx->flush_wq, 3U, 1, (void *)0); } } else { } return; } } static void efx_farch_handle_generated_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; struct efx_rx_queue *rx_queue ; struct efx_rx_queue *tmp___0 ; struct efx_rx_queue *tmp___1 ; bool tmp___2 ; unsigned int magic ; unsigned int code ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; struct _ddebug descriptor ; long tmp___3 ; int tmp___4 ; int tmp___5 ; { { efx = channel->efx; tmp___2 = efx_channel_has_rx_queue(channel); } if ((int )tmp___2) { { tmp___0 = efx_channel_get_rx_queue(channel); tmp___1 = tmp___0; } } else { tmp___1 = (struct efx_rx_queue *)0; } rx_queue = tmp___1; magic = (unsigned int )event->u64[0]; code = magic >> 8; if (magic == (unsigned int )(channel->channel | 65792)) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_47754; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47754; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47754; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47754; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_47754: pscr_ret__ = pfo_ret__; goto ldv_47760; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47764; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47764; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47764; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47764; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_47764: pscr_ret__ = pfo_ret_____0; goto ldv_47760; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47773; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47773; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47773; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47773; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_47773: pscr_ret__ = pfo_ret_____1; goto ldv_47760; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47782; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47782; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47782; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47782; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_47782: pscr_ret__ = pfo_ret_____2; goto ldv_47760; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_47760; switch_break: /* CIL Label */ ; } ldv_47760: channel->event_test_cpu = pscr_ret__; } else if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { { tmp___5 = efx_rx_queue_index(rx_queue); } if (magic == (unsigned int )(tmp___5 | 66048)) { { efx_fast_push_rx_descriptors(rx_queue, 1); } } else { goto _L___0; } } else _L___0: /* CIL Label */ if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { { tmp___4 = efx_rx_queue_index(rx_queue); } if (magic == (unsigned int )(tmp___4 | 66304)) { { efx_farch_handle_drain_event(channel); } } else { goto _L; } } else _L: /* CIL Label */ if (code == 260U) { { efx_farch_handle_drain_event(channel); } } else if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_farch_handle_generated_event"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "channel %d received generated event %08x:%08x\n"; descriptor.lineno = 1158U; 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 *)efx->net_dev, "channel %d received generated event %08x:%08x\n", channel->channel, event->u32[1], event->u32[0]); } } else { } } else { } return; } } static void efx_farch_handle_driver_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; unsigned int ev_sub_code ; unsigned int ev_sub_data ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { efx = channel->efx; ev_sub_code = (unsigned int )(event->u64[0] >> 56) & 15U; ev_sub_data = (unsigned int )event->u64[0] & 16383U; { if (ev_sub_code == 0U) { goto case_0; } else { } if (ev_sub_code == 1U) { goto case_1; } else { } if (ev_sub_code == 2U) { goto case_2; } else { } if (ev_sub_code == 5U) { goto case_5; } else { } if (ev_sub_code == 6U) { goto case_6; } else { } if (ev_sub_code == 10U) { goto case_10; } else { } if (ev_sub_code == 11U) { goto case_11; } else { } if (ev_sub_code == 14U) { goto case_14; } else { } if (ev_sub_code == 15U) { goto case_15; } else { } goto switch_default; case_0: /* CIL Label */ { efx_farch_handle_tx_flush_done(efx, event); efx_sriov_tx_flush_done(efx, event); } goto ldv_47801; case_1: /* CIL Label */ { efx_farch_handle_rx_flush_done(efx, event); efx_sriov_rx_flush_done(efx, event); } goto ldv_47801; case_2: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_farch_handle_driver_event"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "channel %d EVQ %d initialised\n"; descriptor.lineno = 1188U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "channel %d EVQ %d initialised\n", channel->channel, ev_sub_data); } } else { } } else { } goto ldv_47801; case_5: /* CIL Label */ ; goto ldv_47801; case_6: /* CIL Label */ ; goto ldv_47801; case_10: /* CIL Label */ ; goto ldv_47801; case_11: /* CIL Label */ ; if ((efx->msg_enable & 64U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d seen DRIVER RX_RESET event. Resetting.\n", channel->channel); } } else { } { atomic_inc(& efx->rx_reset); tmp___0 = efx_nic_rev(efx); efx_schedule_reset(efx, tmp___0 <= 1 ? 9 : 5); } goto ldv_47801; case_14: /* CIL Label */ ; if (ev_sub_data <= 127U) { if ((efx->msg_enable & 64U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "RX DMA Q %d reports descriptor fetch error. RX Q %d is disabled.\n", ev_sub_data, ev_sub_data); } } else { } { efx_schedule_reset(efx, 10); } } else { { efx_sriov_desc_fetch_err(efx, ev_sub_data); } } goto ldv_47801; case_15: /* CIL Label */ ; if (ev_sub_data <= 127U) { if ((efx->msg_enable & 128U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "TX DMA Q %d reports descriptor fetch error. TX Q %d is disabled.\n", ev_sub_data, ev_sub_data); } } else { } { efx_schedule_reset(efx, 10); } } else { { efx_sriov_desc_fetch_err(efx, ev_sub_data); } } goto ldv_47801; switch_default: /* CIL Label */ ; goto ldv_47801; switch_break: /* CIL Label */ ; } ldv_47801: ; return; } } int efx_farch_ev_process(struct efx_channel *channel , int budget ) { struct efx_nic *efx ; unsigned int read_ptr ; efx_qword_t event ; efx_qword_t *p_event ; int ev_code ; int tx_packets ; int spent ; int tmp ; int tmp___0 ; bool tmp___1 ; { efx = channel->efx; tx_packets = 0; spent = 0; read_ptr = channel->eventq_read_ptr; ldv_47841: { p_event = efx_event(channel, read_ptr); event = *p_event; tmp = efx_event_present(& event); } if (tmp == 0) { goto ldv_47829; } else { } p_event->u64[0] = 0xffffffffffffffffULL; read_ptr = read_ptr + 1U; ev_code = (int )(event.u64[0] >> 60); { if (ev_code == 0) { goto case_0; } else { } if (ev_code == 2) { goto case_2; } else { } if (ev_code == 7) { goto case_7; } else { } if (ev_code == 5) { goto case_5; } else { } if (ev_code == 8) { goto case_8; } else { } if (ev_code == 12) { goto case_12; } else { } if (ev_code == 6) { goto case_6; } else { } goto switch_default; case_0: /* CIL Label */ { efx_farch_handle_rx_event(channel, (efx_qword_t const *)(& event)); spent = spent + 1; } if (spent == budget) { goto out; } else { } goto ldv_47833; case_2: /* CIL Label */ { tmp___0 = efx_farch_handle_tx_event(channel, & event); tx_packets = tx_packets + tmp___0; } if ((unsigned int )tx_packets > efx->txq_entries) { spent = budget; goto out; } else { } goto ldv_47833; case_7: /* CIL Label */ { efx_farch_handle_generated_event(channel, & event); } goto ldv_47833; case_5: /* CIL Label */ { efx_farch_handle_driver_event(channel, & event); } goto ldv_47833; case_8: /* CIL Label */ { efx_sriov_event(channel, & event); } goto ldv_47833; case_12: /* CIL Label */ { efx_mcdi_process_event(channel, & event); } goto ldv_47833; case_6: /* CIL Label */ ; if ((unsigned long )(efx->type)->handle_global_event != (unsigned long )((bool (*/* const */)(struct efx_channel * , efx_qword_t * ))0)) { { tmp___1 = (*((efx->type)->handle_global_event))(channel, & event); } if ((int )tmp___1) { goto ldv_47833; } else { } } else { } switch_default: /* CIL Label */ ; if (((channel->efx)->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)(channel->efx)->net_dev, "channel %d unknown event type %d (data %08x:%08x)\n", channel->channel, ev_code, event.u32[1], event.u32[0]); } } else { } switch_break: /* CIL Label */ ; } ldv_47833: ; goto ldv_47841; ldv_47829: ; out: channel->eventq_read_ptr = read_ptr; return (spent); } } int efx_farch_ev_probe(struct efx_channel *channel ) { struct efx_nic *efx ; unsigned int entries ; int tmp ; { { efx = channel->efx; entries = channel->eventq_mask + 1U; tmp = efx_alloc_special_buffer(efx, & channel->eventq, entries * 8U); } return (tmp); } } int efx_farch_ev_init(struct efx_channel *channel ) { efx_oword_t reg ; struct efx_nic *efx ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; unsigned long tmp___1 ; { efx = channel->efx; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_farch_ev_init"; descriptor.filename = "drivers/net/ethernet/sfc/farch.c"; descriptor.format = "channel %d event queue in special buffers %d-%d\n"; descriptor.lineno = 1336U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "channel %d event queue in special buffers %d-%d\n", channel->channel, channel->eventq.index, (channel->eventq.index + channel->eventq.entries) - 1U); } } else { } } else { } { tmp___0 = efx_nic_rev(efx); } if (tmp___0 > 2) { { reg.u64[0] = 8589934592ULL; reg.u64[1] = 0ULL; efx_writeo_table(efx, (efx_oword_t const *)(& reg), 16187392U, (unsigned int )channel->channel); } } else { } { efx_init_special_buffer(efx, & channel->eventq); memset(channel->eventq.buf.addr, 255, (size_t )channel->eventq.buf.len); tmp___1 = __ffs((unsigned long )channel->eventq.entries); reg.u64[0] = (((unsigned long long )tmp___1 << 20) | (unsigned long long )channel->eventq.index) | 8388608ULL; reg.u64[1] = 0ULL; efx_writeo_table(efx, (efx_oword_t const *)(& reg), (efx->type)->evq_ptr_tbl_base, (unsigned int )channel->channel); } return (0); } } void efx_farch_ev_fini(struct efx_channel *channel ) { efx_oword_t reg ; struct efx_nic *efx ; int tmp ; { { efx = channel->efx; reg.u64[0] = 0ULL; reg.u64[1] = 0ULL; efx_writeo_table(efx, (efx_oword_t const *)(& reg), (efx->type)->evq_ptr_tbl_base, (unsigned int )channel->channel); tmp = efx_nic_rev(efx); } if (tmp > 2) { { efx_writeo_table(efx, (efx_oword_t const *)(& reg), 16187392U, (unsigned int )channel->channel); } } else { } { efx_fini_special_buffer(efx, & channel->eventq); } return; } } void efx_farch_ev_remove(struct efx_channel *channel ) { { { efx_free_special_buffer(channel->efx, & channel->eventq); } return; } } void efx_farch_ev_test_generate(struct efx_channel *channel ) { { { efx_farch_magic_event(channel, (u32 )(channel->channel | 65792)); } return; } } void efx_farch_rx_defer_refill(struct efx_rx_queue *rx_queue ) { int tmp ; struct efx_channel *tmp___0 ; { { tmp = efx_rx_queue_index(rx_queue); tmp___0 = efx_rx_queue_channel(rx_queue); efx_farch_magic_event(tmp___0, (u32 )(tmp | 66048)); } return; } } __inline static void efx_farch_interrupts(struct efx_nic *efx , bool enabled , bool force ) { efx_oword_t int_en_reg_ker ; { { int_en_reg_ker.u64[0] = (((unsigned long long )efx->irq_level << 8) | ((unsigned long long )force << 3)) | (unsigned long long )enabled; int_en_reg_ker.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& int_en_reg_ker), 16U); } return; } } void efx_farch_irq_enable_master(struct efx_nic *efx ) { { { ((efx_oword_t *)efx->irq_status.addr)->u64[0] = 0ULL; ((efx_oword_t *)efx->irq_status.addr)->u64[1] = 0ULL; __asm__ volatile ("sfence": : : "memory"); efx_farch_interrupts(efx, 1, 0); } return; } } void efx_farch_irq_disable_master(struct efx_nic *efx ) { { { efx_farch_interrupts(efx, 0, 0); } return; } } void efx_farch_irq_test_generate(struct efx_nic *efx ) { { { efx_farch_interrupts(efx, 1, 1); } return; } } irqreturn_t efx_farch_fatal_interrupt(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; efx_oword_t *int_ker ; efx_oword_t fatal_intr ; int error ; int mem_perr ; efx_oword_t reg ; bool tmp ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; int_ker = (efx_oword_t *)efx->irq_status.addr; efx_reado___0(efx, & fatal_intr, 560U); error = (int )fatal_intr.u64[0] & 4095; } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "SYSTEM ERROR %08x:%08x:%08x:%08x status %08x:%08x:%08x:%08x: %s\n", int_ker->u32[3], int_ker->u32[2], int_ker->u32[1], int_ker->u32[0], fatal_intr.u32[3], fatal_intr.u32[2], fatal_intr.u32[1], fatal_intr.u32[0], error != 0 ? (char *)"disabling bus mastering" : (char *)"no recognised error"); } } else { } mem_perr = (int )(fatal_intr.u64[0] >> 8) & 1 || (int )fatal_intr.u64[0] & 1; if (mem_perr != 0) { { efx_reado___0(efx, & reg, 608U); } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "SYSTEM ERROR: memory parity error %08x:%08x:%08x:%08x\n", reg.u32[3], reg.u32[2], reg.u32[1], reg.u32[0]); } } else { } } else { } { pci_clear_master(efx->pci_dev); tmp = efx_nic_is_dual_func(efx); } if ((int )tmp) { { pci_clear_master(nic_data->pci_dev2); } } else { } { efx_farch_irq_disable_master(efx); } if (efx->int_error_count == 0U || (long )(efx->int_error_expire - (unsigned long )jiffies) < 0L) { efx->int_error_count = 0U; efx->int_error_expire = (unsigned long )jiffies + 900000UL; } else { } efx->int_error_count = efx->int_error_count + 1U; if (efx->int_error_count <= 4U) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "SYSTEM ERROR - reset scheduled\n"); } } else { } { efx_schedule_reset(efx, 8); } } else { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "SYSTEM ERROR - max number of errors seen.NIC will be disabled\n"); } } else { } { efx_schedule_reset(efx, 5); } } return (1); } } irqreturn_t efx_farch_legacy_interrupt(int irq , void *dev_id ) { struct efx_nic *efx ; bool soft_enabled ; efx_oword_t *int_ker ; irqreturn_t result ; struct efx_channel *channel ; efx_dword_t reg ; u32 queues ; int syserr ; int tmp ; irqreturn_t tmp___0 ; long tmp___1 ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp___2 ; efx_qword_t *event ; unsigned int tmp___3 ; int tmp___4 ; long tmp___5 ; int pscr_ret_____0 ; void const *__vpp_verify___0 ; int pfo_ret_____3 ; int pfo_ret_____4 ; int pfo_ret_____5 ; int pfo_ret_____6 ; { { efx = (struct efx_nic *)dev_id; soft_enabled = *((bool volatile *)(& efx->irq_soft_enabled)); int_ker = (efx_oword_t *)efx->irq_status.addr; result = 0; efx_readd(efx, & reg, 144U); queues = reg.u32[0]; } if (reg.u32[0] == 4294967295U) { { tmp = efx_try_recovery(efx); } if (tmp != 0) { if (! efx->eeh_disabled_legacy_irq) { { disable_irq_nosync((unsigned int )efx->legacy_irq); efx->eeh_disabled_legacy_irq = 1; } } else { } } else { } } else { } if ((queues & (1U << (int )efx->irq_level)) != 0U && (int )soft_enabled) { { syserr = (int )int_ker->u64[1] & 1; tmp___1 = ldv__builtin_expect(syserr != 0, 0L); } if (tmp___1 != 0L) { { tmp___0 = efx_farch_fatal_interrupt(efx); } return (tmp___0); } else { } __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_47915; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47915; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47915; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47915; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_47915: pscr_ret__ = pfo_ret__; goto ldv_47921; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47925; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47925; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47925; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47925; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_47925: pscr_ret__ = pfo_ret_____0; goto ldv_47921; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47934; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47934; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47934; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47934; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_47934: pscr_ret__ = pfo_ret_____1; goto ldv_47921; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47943; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47943; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47943; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47943; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_47943: pscr_ret__ = pfo_ret_____2; goto ldv_47921; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_47921; switch_break: /* CIL Label */ ; } ldv_47921: efx->last_irq_cpu = pscr_ret__; } else { } if (queues != 0U) { { efx->irq_zero_count = 0U; tmp___2 = ldv__builtin_expect((long )soft_enabled, 1L); } if (tmp___2 != 0L) { channel = efx->channel[0]; goto ldv_47952; ldv_47951: ; if ((int )queues & 1) { { efx_schedule_channel_irq(channel); } } else { } queues = queues >> 1; channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47952: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47951; } else { } } else { } result = 1; } else { tmp___3 = efx->irq_zero_count; efx->irq_zero_count = efx->irq_zero_count + 1U; if (tmp___3 == 0U) { result = 1; } else { } { tmp___5 = ldv__builtin_expect((long )soft_enabled, 1L); } if (tmp___5 != 0L) { channel = efx->channel[0]; goto ldv_47956; ldv_47955: { event = efx_event(channel, channel->eventq_read_ptr); tmp___4 = efx_event_present(event); } if (tmp___4 != 0) { { efx_schedule_channel_irq(channel); } } else { { efx_farch_ev_read_ack(channel); } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47956: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47955; } else { } } else { } } if ((unsigned int )result == 1U) { if (0) { if ((efx->msg_enable & 512U) != 0U) { __vpp_verify___0 = (void const *)0; { if (4UL == 1UL) { goto case_1___4; } else { } if (4UL == 2UL) { goto case_2___5; } else { } if (4UL == 4UL) { goto case_4___6; } else { } if (4UL == 8UL) { goto case_8___7; } else { } goto switch_default___8; case_1___4: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___5; } else { } if (4UL == 2UL) { goto case_2___4; } else { } if (4UL == 4UL) { goto case_4___4; } else { } if (4UL == 8UL) { goto case_8___4; } else { } goto switch_default___4; case_1___5: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47963; case_2___4: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47963; case_4___4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47963; case_8___4: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47963; switch_default___4: /* CIL Label */ { __bad_percpu_size(); } switch_break___5: /* CIL Label */ ; } ldv_47963: pscr_ret_____0 = pfo_ret_____3; goto ldv_47969; case_2___5: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___6; } else { } if (4UL == 2UL) { goto case_2___6; } else { } if (4UL == 4UL) { goto case_4___5; } else { } if (4UL == 8UL) { goto case_8___5; } else { } goto switch_default___5; case_1___6: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47973; case_2___6: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47973; case_4___5: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47973; case_8___5: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47973; switch_default___5: /* CIL Label */ { __bad_percpu_size(); } switch_break___6: /* CIL Label */ ; } ldv_47973: pscr_ret_____0 = pfo_ret_____4; goto ldv_47969; case_4___6: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___7; } else { } if (4UL == 2UL) { goto case_2___7; } else { } if (4UL == 4UL) { goto case_4___7; } else { } if (4UL == 8UL) { goto case_8___6; } else { } goto switch_default___6; case_1___7: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47982; case_2___7: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47982; case_4___7: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47982; case_8___6: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47982; switch_default___6: /* CIL Label */ { __bad_percpu_size(); } switch_break___7: /* CIL Label */ ; } ldv_47982: pscr_ret_____0 = pfo_ret_____5; goto ldv_47969; case_8___7: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___8; } else { } if (4UL == 2UL) { goto case_2___8; } else { } if (4UL == 4UL) { goto case_4___8; } else { } if (4UL == 8UL) { goto case_8___8; } else { } goto switch_default___7; case_1___8: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47991; case_2___8: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47991; case_4___8: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47991; case_8___8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47991; switch_default___7: /* CIL Label */ { __bad_percpu_size(); } switch_break___8: /* CIL Label */ ; } ldv_47991: pscr_ret_____0 = pfo_ret_____6; goto ldv_47969; switch_default___8: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_47969; switch_break___4: /* CIL Label */ ; } ldv_47969: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "IRQ %d on CPU %d status %08x\n", irq, pscr_ret_____0, reg.u32[0]); } } else { } } else { } } else { } return (result); } } irqreturn_t efx_farch_msi_interrupt(int irq , void *dev_id ) { struct efx_msi_context *context ; struct efx_nic *efx ; efx_oword_t *int_ker ; int syserr ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp ; irqreturn_t tmp___0 ; long tmp___1 ; int pscr_ret_____0 ; void const *__vpp_verify___0 ; int pfo_ret_____3 ; int pfo_ret_____4 ; int pfo_ret_____5 ; int pfo_ret_____6 ; { context = (struct efx_msi_context *)dev_id; efx = context->efx; int_ker = (efx_oword_t *)efx->irq_status.addr; if (0) { if ((efx->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_48013; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_48013; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_48013; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_48013; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_48013: pscr_ret__ = pfo_ret__; goto ldv_48019; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_48023; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_48023; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_48023; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_48023; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_48023: pscr_ret__ = pfo_ret_____0; goto ldv_48019; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_48032; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_48032; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_48032; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_48032; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_48032: pscr_ret__ = pfo_ret_____1; goto ldv_48019; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_48041; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_48041; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_48041; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_48041; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_48041: pscr_ret__ = pfo_ret_____2; goto ldv_48019; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_48019; switch_break: /* CIL Label */ ; } ldv_48019: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "IRQ %d on CPU %d status %08x:%08x:%08x:%08x\n", irq, pscr_ret__, int_ker->u32[3], int_ker->u32[2], int_ker->u32[1], int_ker->u32[0]); } } else { } } else { } { tmp = ldv__builtin_expect((long )*((bool volatile *)(& efx->irq_soft_enabled)), 1L); } if (tmp == 0L) { return (1); } else { } if (context->index == efx->irq_level) { { syserr = (int )int_ker->u64[1] & 1; tmp___1 = ldv__builtin_expect(syserr != 0, 0L); } if (tmp___1 != 0L) { { tmp___0 = efx_farch_fatal_interrupt(efx); } return (tmp___0); } else { } __vpp_verify___0 = (void const *)0; { if (4UL == 1UL) { goto case_1___4; } else { } if (4UL == 2UL) { goto case_2___5; } else { } if (4UL == 4UL) { goto case_4___6; } else { } if (4UL == 8UL) { goto case_8___7; } else { } goto switch_default___8; case_1___4: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___5; } else { } if (4UL == 2UL) { goto case_2___4; } else { } if (4UL == 4UL) { goto case_4___4; } else { } if (4UL == 8UL) { goto case_8___4; } else { } goto switch_default___4; case_1___5: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____3): "m" (cpu_number)); goto ldv_48055; case_2___4: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_48055; case_4___4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_48055; case_8___4: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_48055; switch_default___4: /* CIL Label */ { __bad_percpu_size(); } switch_break___5: /* CIL Label */ ; } ldv_48055: pscr_ret_____0 = pfo_ret_____3; goto ldv_48061; case_2___5: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___6; } else { } if (4UL == 2UL) { goto case_2___6; } else { } if (4UL == 4UL) { goto case_4___5; } else { } if (4UL == 8UL) { goto case_8___5; } else { } goto switch_default___5; case_1___6: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____4): "m" (cpu_number)); goto ldv_48065; case_2___6: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_48065; case_4___5: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_48065; case_8___5: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_48065; switch_default___5: /* CIL Label */ { __bad_percpu_size(); } switch_break___6: /* CIL Label */ ; } ldv_48065: pscr_ret_____0 = pfo_ret_____4; goto ldv_48061; case_4___6: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___7; } else { } if (4UL == 2UL) { goto case_2___7; } else { } if (4UL == 4UL) { goto case_4___7; } else { } if (4UL == 8UL) { goto case_8___6; } else { } goto switch_default___6; case_1___7: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____5): "m" (cpu_number)); goto ldv_48074; case_2___7: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_48074; case_4___7: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_48074; case_8___6: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_48074; switch_default___6: /* CIL Label */ { __bad_percpu_size(); } switch_break___7: /* CIL Label */ ; } ldv_48074: pscr_ret_____0 = pfo_ret_____5; goto ldv_48061; case_8___7: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___8; } else { } if (4UL == 2UL) { goto case_2___8; } else { } if (4UL == 4UL) { goto case_4___8; } else { } if (4UL == 8UL) { goto case_8___8; } else { } goto switch_default___7; case_1___8: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____6): "m" (cpu_number)); goto ldv_48083; case_2___8: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_48083; case_4___8: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_48083; case_8___8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_48083; switch_default___7: /* CIL Label */ { __bad_percpu_size(); } switch_break___8: /* CIL Label */ ; } ldv_48083: pscr_ret_____0 = pfo_ret_____6; goto ldv_48061; switch_default___8: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_48061; switch_break___4: /* CIL Label */ ; } ldv_48061: efx->last_irq_cpu = pscr_ret_____0; } else { } { efx_schedule_channel_irq(efx->channel[context->index]); } return (1); } } extern void __compiletime_assert_1624(void) ; void efx_farch_rx_push_indir_table(struct efx_nic *efx ) { size_t i ; efx_dword_t dword ; int tmp ; long tmp___0 ; bool __cond ; { { i = 0UL; tmp = efx_nic_rev(efx); tmp___0 = ldv__builtin_expect(tmp <= 1, 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 *)"drivers/net/ethernet/sfc/farch.c"), "i" (1621), "i" (12UL)); __builtin_unreachable(); } } else { } __cond = 0; if ((int )__cond) { { __compiletime_assert_1624(); } } else { } i = 0UL; goto ldv_48103; ldv_48102: { dword.u32[0] = efx->rx_indir_table[i]; efx_writed(efx, (efx_dword_t const *)(& dword), (unsigned int )(i + 1028096UL) * 16U); i = i + 1UL; } ldv_48103: ; if (i <= 127UL) { goto ldv_48102; } else { } return; } } void efx_farch_dimension_resources(struct efx_nic *efx , unsigned int sram_lim_qw ) { unsigned int vi_count ; unsigned int buftbl_min ; unsigned int _max1 ; unsigned int _max2 ; unsigned int vi_dc_entries ; unsigned int buftbl_free ; unsigned int entries_per_vf ; unsigned int vf_limit ; unsigned int _max1___0 ; unsigned int _max2___0 ; unsigned int tmp ; unsigned int _min1 ; unsigned int _min2 ; unsigned int tmp___0 ; bool tmp___1 ; { { buftbl_min = (unsigned int )(((((unsigned long )efx->n_rx_channels + (unsigned long )(efx->n_tx_channels * 4U)) + (unsigned long )efx->n_channels * 4UL) * 32768UL) / 4096UL); _max1 = efx->n_channels; _max2 = efx->n_tx_channels * 4U; vi_count = _max1 > _max2 ? _max1 : _max2; tmp___1 = efx_sriov_wanted(efx); } if ((int )tmp___1) { { efx->vf_buftbl_base = buftbl_min; vi_dc_entries = 80U; _max1___0 = vi_count; _max2___0 = 128U; vi_count = _max1___0 > _max2___0 ? _max1___0 : _max2___0; buftbl_free = (sram_lim_qw - buftbl_min) - vi_count * vi_dc_entries; tmp = efx_vf_size(efx); entries_per_vf = (unsigned int )((unsigned long )vi_dc_entries + 32UL) * tmp; _min1 = buftbl_free / entries_per_vf; _min2 = 896U >> (int )efx->vi_scale; vf_limit = _min1 < _min2 ? _min1 : _min2; } if (efx->vf_count > vf_limit) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Reducing VF count from from %d to %d\n", efx->vf_count, vf_limit); } } else { } efx->vf_count = vf_limit; } else { } { tmp___0 = efx_vf_size(efx); vi_count = vi_count + efx->vf_count * tmp___0; } } else { } efx->tx_dc_base = sram_lim_qw - vi_count * 16U; efx->rx_dc_base = efx->tx_dc_base - vi_count * 64U; return; } } u32 efx_farch_fpga_ver(struct efx_nic *efx ) { efx_oword_t altera_build ; { { efx_reado___0(efx, & altera_build, 768U); } return ((u32 )altera_build.u64[0]); } } extern void __compiletime_assert_1705(void) ; extern void __compiletime_assert_1712(void) ; void efx_farch_init_common(struct efx_nic *efx ) { efx_oword_t temp ; bool __cond ; bool __cond___0 ; int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { { temp.u64[0] = (unsigned long long )efx->tx_dc_base; temp.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& temp), 1568U); temp.u64[0] = (unsigned long long )efx->rx_dc_base; temp.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& temp), 1552U); __cond = 0; } if ((int )__cond) { { __compiletime_assert_1705(); } } else { } { temp.u64[0] = 1ULL; temp.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& temp), 2592U); __cond___0 = 0; } if ((int )__cond___0) { { __compiletime_assert_1712(); } } else { } { temp.u64[0] = 3ULL; temp.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& temp), 2112U); temp.u64[0] = 56ULL; temp.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& temp), 2128U); temp.u64[0] = efx->irq_status.dma_addr; temp.u64[1] = (unsigned int )efx->interrupt_mode <= 1U; efx_writeo(efx, (efx_oword_t const *)(& temp), 48U); tmp = efx_nic_rev(efx); } if (tmp == 3 && (unsigned int )efx->interrupt_mode > 1U) { efx->irq_level = 31U; } else { efx->irq_level = 0U; } { temp.u64[0] = 833223655424ULL; temp.u64[1] = 0ULL; tmp___0 = efx_nic_rev(efx); } if (tmp___0 > 2) { temp.u64[0] = temp.u64[0] | 17592186044416ULL; temp.u64[1] = temp.u64[1]; } else { } { temp.u64[0] = ~ temp.u64[0]; temp.u64[1] = ~ temp.u64[1]; efx_writeo(efx, (efx_oword_t const *)(& temp), 560U); efx_reado___0(efx, & temp, 2688U); temp.u64[0] = temp.u64[0]; temp.u64[1] = (temp.u64[1] & 0xffffffffffffff00ULL) | 254ULL; temp.u64[0] = temp.u64[0] | 144115188075855872ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 262144ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0]; temp.u64[1] = temp.u64[1] | 33554432ULL; temp.u64[0] = temp.u64[0] | 131072ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 576460752303423488ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = (temp.u64[0] & 0xffffffffffe7ffffULL) | 1048576ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 17592181850112ULL; temp.u64[1] = temp.u64[1]; tmp___1 = efx_nic_rev(efx); } if (tmp___1 > 1) { temp.u64[0] = temp.u64[0] | 128ULL; temp.u64[1] = temp.u64[1]; } else { } { efx_writeo(efx, (efx_oword_t const *)(& temp), 2688U); tmp___2 = efx_nic_rev(efx); } if (tmp___2 > 1) { { temp.u64[0] = 11015701ULL; temp.u64[1] = 0ULL; efx_writeo(efx, (efx_oword_t const *)(& temp), 2704U); } } else { } return; } } static void efx_farch_filter_table_clear_entry(struct efx_nic *efx , struct efx_farch_filter_table *table , unsigned int filter_idx ) ; static u16 efx_farch_filter_hash(u32 key ) { u16 tmp ; { tmp = (unsigned int )((u16 )(key >> 16)) ^ 8191U; tmp = (u16 )(((int )tmp ^ ((int )tmp >> 3)) ^ ((int )tmp >> 6)); tmp = (u16 )((int )tmp ^ ((int )tmp >> 9)); tmp = (int )((u16 )((int )((short )tmp) ^ (int )((short )((int )tmp << 13)))) ^ (int )((u16 )key); tmp = (u16 )(((int )tmp ^ ((int )tmp >> 3)) ^ ((int )tmp >> 6)); return ((u16 )((int )tmp ^ ((int )tmp >> 9))); } } static u16 efx_farch_filter_increment(u32 key ) { { return ((unsigned int )((u16 )key) * 2U - 1U); } } extern void __compiletime_assert_1886(void) ; extern void __compiletime_assert_1888(void) ; extern void __compiletime_assert_1890(void) ; extern void __compiletime_assert_1892(void) ; extern void __compiletime_assert_1894(void) ; extern void __compiletime_assert_1896(void) ; extern void __compiletime_assert_1898(void) ; static enum efx_farch_filter_table_id efx_farch_filter_spec_table_id(struct efx_farch_filter_spec const *spec ) { bool __cond ; bool __cond___0 ; bool __cond___1 ; bool __cond___2 ; bool __cond___3 ; bool __cond___4 ; bool __cond___5 ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1886(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_1888(); } } else { } __cond___1 = 0; if ((int )__cond___1) { { __compiletime_assert_1890(); } } else { } __cond___2 = 0; if ((int )__cond___2) { { __compiletime_assert_1892(); } } else { } __cond___3 = 0; if ((int )__cond___3) { { __compiletime_assert_1894(); } } else { } __cond___4 = 0; if ((int )__cond___4) { { __compiletime_assert_1896(); } } else { } __cond___5 = 0; if ((int )__cond___5) { { __compiletime_assert_1898(); } } else { } return ((enum efx_farch_filter_table_id )(((int )spec->type >> 2) + (((int )spec->flags & 16) != 0 ? 2 : 0))); } } static void efx_farch_filter_push_rx_config(struct efx_nic *efx ) { struct efx_farch_filter_state *state ; struct efx_farch_filter_table *table ; efx_oword_t filter_ctl ; int tmp ; { { state = (struct efx_farch_filter_state *)efx->filter_state; efx_reado___0(efx, & filter_ctl, 2064U); table = (struct efx_farch_filter_table *)(& state->table); filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xffffffffffffff00ULL) | (unsigned long long )(table->search_limit[0] + 1U); filter_ctl.u64[1] = filter_ctl.u64[1]; filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xffffffffffff00ffULL) | ((unsigned long long )(table->search_limit[1] + 3U) << 8); filter_ctl.u64[1] = filter_ctl.u64[1]; filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xffffff00ffffffffULL) | ((unsigned long long )(table->search_limit[2] + 1U) << 32); filter_ctl.u64[1] = filter_ctl.u64[1]; filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xffffffffff00ffffULL) | ((unsigned long long )(table->search_limit[3] + 3U) << 16); filter_ctl.u64[1] = filter_ctl.u64[1]; table = (struct efx_farch_filter_table *)(& state->table) + 1UL; } if (table->size != 0U) { filter_ctl.u64[0] = filter_ctl.u64[0]; filter_ctl.u64[1] = (filter_ctl.u64[1] & 0xffffffffc03fffffULL) | ((unsigned long long )(table->search_limit[4] + 1U) << 22); filter_ctl.u64[0] = filter_ctl.u64[0]; filter_ctl.u64[1] = (filter_ctl.u64[1] & 0xffffffc03fffffffULL) | ((unsigned long long )(table->search_limit[5] + 3U) << 30); } else { } table = (struct efx_farch_filter_table *)(& state->table) + 2UL; if (table->size != 0U) { filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xff8007ffffffffffULL) | ((unsigned long long )(table->spec)->dmaq_id << 43); filter_ctl.u64[1] = filter_ctl.u64[1]; filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xfffffbffffffffffULL) | (((unsigned long long )(table->spec)->flags & 1ULL) << 42); filter_ctl.u64[1] = filter_ctl.u64[1]; filter_ctl.u64[0] = (filter_ctl.u64[0] & 144115188075855871ULL) | ((unsigned long long )(table->spec + 1UL)->dmaq_id << 57); filter_ctl.u64[1] = (filter_ctl.u64[1] & 0xffffffffffffffe0ULL) | (unsigned long long )((int )(table->spec + 1UL)->dmaq_id >> 7); filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xfeffffffffffffffULL) | (((unsigned long long )(table->spec + 1UL)->flags & 1ULL) << 56); filter_ctl.u64[1] = filter_ctl.u64[1]; filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xfffffeffffffffffULL) | ((((int )(table->spec)->flags & (int )(table->spec + 1UL)->flags) & 2) != 0 ? 1099511627776ULL : 0ULL); filter_ctl.u64[1] = filter_ctl.u64[1]; } else { { tmp = efx_nic_rev(efx); } if (tmp > 1) { filter_ctl.u64[0] = (filter_ctl.u64[0] & 0xfffffeffffffffffULL) | ((unsigned long long )efx->rx_scatter << 40); filter_ctl.u64[1] = filter_ctl.u64[1]; } else { } } { efx_writeo(efx, (efx_oword_t const *)(& filter_ctl), 2064U); } return; } } static void efx_farch_filter_push_tx_limits(struct efx_nic *efx ) { struct efx_farch_filter_state *state ; struct efx_farch_filter_table *table ; efx_oword_t tx_cfg ; { { state = (struct efx_farch_filter_state *)efx->filter_state; efx_reado___0(efx, & tx_cfg, 2640U); table = (struct efx_farch_filter_table *)(& state->table) + 3UL; } if (table->size != 0U) { tx_cfg.u64[0] = tx_cfg.u64[0]; tx_cfg.u64[1] = (tx_cfg.u64[1] & 0xfffffe01ffffffffULL) | ((unsigned long long )(table->search_limit[4] + 1U) << 33); tx_cfg.u64[0] = tx_cfg.u64[0]; tx_cfg.u64[1] = (tx_cfg.u64[1] & 0xfffe01ffffffffffULL) | ((unsigned long long )(table->search_limit[5] + 3U) << 41); } else { } { efx_writeo(efx, (efx_oword_t const *)(& tx_cfg), 2640U); } return; } } static int efx_farch_filter_from_gen_spec(struct efx_farch_filter_spec *spec , struct efx_filter_spec const *gen_spec ) { bool is_full ; __be32 rhost ; __be32 host1 ; __be32 host2 ; __be16 rport ; __be16 port1 ; __be16 port2 ; __u32 tmp ; __u16 tmp___0 ; __u16 tmp___1 ; __u32 tmp___2 ; __u32 tmp___3 ; __u16 tmp___4 ; bool tmp___5 ; { is_full = 0; if ((int )gen_spec->flags & 1 && (unsigned int )gen_spec->rss_context != 4294967295U) { return (-22); } else { } spec->priority = gen_spec->priority; spec->flags = (u8 )gen_spec->flags; spec->dmaq_id = (u16 )gen_spec->dmaq_id; { if ((int )gen_spec->match_flags == 619) { goto case_619; } else { } if ((int )gen_spec->match_flags == 610) { goto case_610; } else { } if ((int )gen_spec->match_flags == 272) { goto case_272; } else { } if ((int )gen_spec->match_flags == 16) { goto case_16; } else { } if ((int )gen_spec->match_flags == 1024) { goto case_1024; } else { } goto switch_default___0; case_619: /* CIL Label */ is_full = 1; case_610: /* CIL Label */ ; if ((unsigned int )((unsigned short )gen_spec->ether_type) != 8U) { return (-93); } else { } if ((unsigned int )((unsigned short )gen_spec->loc_port) == 0U || ((int )is_full && (unsigned int )((unsigned short )gen_spec->rem_port) == 0U)) { return (-99); } else { } { if ((int )gen_spec->ip_proto == 6) { goto case_6; } else { } if ((int )gen_spec->ip_proto == 17) { goto case_17; } else { } goto switch_default; case_6: /* CIL Label */ spec->type = (int )is_full ? 0U : 1U; goto ldv_48245; case_17: /* CIL Label */ spec->type = (int )is_full ? 2U : 3U; goto ldv_48245; switch_default: /* CIL Label */ ; return (-93); switch_break___0: /* CIL Label */ ; } ldv_48245: rhost = (int )is_full ? (unsigned int const )gen_spec->rem_host[0] : 0U; rport = (int )is_full ? (__be16 )gen_spec->rem_port : 0U; host1 = rhost; host2 = gen_spec->loc_host[0]; if (! is_full && (unsigned int )((unsigned char )gen_spec->ip_proto) == 17U) { port1 = gen_spec->loc_port; port2 = rport; } else { port1 = rport; port2 = gen_spec->loc_port; } { tmp = __fswab32(host1); tmp___0 = __fswab16((int )port1); spec->data[0] = (tmp << 16) | (unsigned int )tmp___0; tmp___1 = __fswab16((int )port2); tmp___2 = __fswab32(host1); spec->data[1] = (unsigned int )((int )tmp___1 << 16) | (tmp___2 >> 16); tmp___3 = __fswab32(host2); spec->data[2] = tmp___3; } goto ldv_48248; case_272: /* CIL Label */ is_full = 1; case_16: /* CIL Label */ spec->type = (int )is_full ? 4U : 5U; if ((int )is_full) { { tmp___4 = __fswab16((int )gen_spec->outer_vid); spec->data[0] = (u32 )tmp___4; } } else { spec->data[0] = 0U; } spec->data[1] = (u32 )(((((int )gen_spec->loc_mac[2] << 24) | ((int )gen_spec->loc_mac[3] << 16)) | ((int )gen_spec->loc_mac[4] << 8)) | (int )gen_spec->loc_mac[5]); spec->data[2] = (u32 )(((int )gen_spec->loc_mac[0] << 8) | (int )gen_spec->loc_mac[1]); goto ldv_48248; case_1024: /* CIL Label */ { tmp___5 = is_multicast_ether_addr((u8 const *)(& gen_spec->loc_mac)); spec->type = (int )tmp___5 ? 9U : 8U; memset((void *)(& spec->data), 0, 12UL); } goto ldv_48248; switch_default___0: /* CIL Label */ ; return (-93); switch_break: /* CIL Label */ ; } ldv_48248: ; return (0); } } static void efx_farch_filter_to_gen_spec(struct efx_filter_spec *gen_spec , struct efx_farch_filter_spec const *spec ) { bool is_full ; __be32 host1 ; __be32 host2 ; __be16 port1 ; __be16 port2 ; __u32 tmp ; __u16 tmp___0 ; __u32 tmp___1 ; __u16 tmp___2 ; __u16 tmp___3 ; int __ret_warn_on ; long tmp___4 ; { { is_full = 0; memset((void *)gen_spec, 0, 64UL); gen_spec->priority = (unsigned char )spec->priority; gen_spec->flags = (unsigned char )spec->flags; gen_spec->dmaq_id = (unsigned short )spec->dmaq_id; } { if ((int )spec->type == 0) { goto case_0; } else { } if ((int )spec->type == 2) { goto case_2; } else { } if ((int )spec->type == 1) { goto case_1; } else { } if ((int )spec->type == 3) { goto case_3; } else { } if ((int )spec->type == 4) { goto case_4; } else { } if ((int )spec->type == 5) { goto case_5; } else { } if ((int )spec->type == 8) { goto case_8; } else { } if ((int )spec->type == 9) { goto case_9; } else { } goto switch_default; case_0: /* CIL Label */ ; case_2: /* CIL Label */ is_full = 1; case_1: /* CIL Label */ ; case_3: /* CIL Label */ gen_spec->match_flags = 610U; if ((int )is_full) { gen_spec->match_flags = (unsigned int )((unsigned short )gen_spec->match_flags) | 9U; } else { } { gen_spec->ether_type = 8U; gen_spec->ip_proto = (unsigned int )*((unsigned char *)spec + 0UL) <= 1U ? 6U : 17U; tmp = __fswab32((spec->data[0] >> 16) | (spec->data[1] << 16)); host1 = tmp; tmp___0 = __fswab16((int )((__u16 )spec->data[0])); port1 = tmp___0; tmp___1 = __fswab32(spec->data[2]); host2 = tmp___1; tmp___2 = __fswab16((int )((__u16 )(spec->data[1] >> 16))); port2 = tmp___2; } if (((int )spec->flags & 16) != 0) { gen_spec->loc_host[0] = host1; gen_spec->rem_host[0] = host2; } else { gen_spec->loc_host[0] = host2; gen_spec->rem_host[0] = host1; } if ((((int )gen_spec->flags & 16) != 0) ^ (int )((_Bool )(! is_full && (unsigned int )gen_spec->ip_proto == 17U))) { gen_spec->loc_port = port1; gen_spec->rem_port = port2; } else { gen_spec->loc_port = port2; gen_spec->rem_port = port1; } goto ldv_48266; case_4: /* CIL Label */ is_full = 1; case_5: /* CIL Label */ gen_spec->match_flags = 16U; if ((int )is_full) { gen_spec->match_flags = (unsigned int )((unsigned short )gen_spec->match_flags) | 256U; } else { } { gen_spec->loc_mac[0] = (u8 )(spec->data[2] >> 8); gen_spec->loc_mac[1] = (u8 )spec->data[2]; gen_spec->loc_mac[2] = (u8 )(spec->data[1] >> 24); gen_spec->loc_mac[3] = (u8 )(spec->data[1] >> 16); gen_spec->loc_mac[4] = (u8 )(spec->data[1] >> 8); gen_spec->loc_mac[5] = (u8 )spec->data[1]; tmp___3 = __fswab16((int )((__u16 )spec->data[0])); gen_spec->outer_vid = tmp___3; } goto ldv_48266; case_8: /* CIL Label */ ; case_9: /* CIL Label */ gen_spec->match_flags = 1024U; gen_spec->loc_mac[0] = (unsigned int )*((unsigned char *)spec + 0UL) == 9U; goto ldv_48266; switch_default: /* CIL Label */ { __ret_warn_on = 1; tmp___4 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___4 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/farch.c", 2181); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } goto ldv_48266; switch_break: /* CIL Label */ ; } ldv_48266: ; return; } } static void efx_farch_filter_init_rx_auto(struct efx_nic *efx , struct efx_farch_filter_spec *spec ) { { spec->priority = 1U; spec->flags = (u8 )((efx->n_rx_channels > 1U ? 9 : 8) | ((int )efx->rx_scatter ? 2 : 0)); spec->dmaq_id = 0U; return; } } static u32 efx_farch_filter_build(efx_oword_t *filter , struct efx_farch_filter_spec *spec ) { u32 data3 ; enum efx_farch_filter_table_id tmp ; bool is_udp ; bool is_wild ; bool is_wild___0 ; { { tmp = efx_farch_filter_spec_table_id((struct efx_farch_filter_spec const *)spec); } { if ((unsigned int )tmp == 0U) { goto case_0; } else { } if ((unsigned int )tmp == 1U) { goto case_1; } else { } if ((unsigned int )tmp == 3U) { goto case_3; } else { } goto switch_default; case_0: /* CIL Label */ is_udp = (unsigned int )*((unsigned char *)spec + 0UL) - 2U <= 1U; filter->u64[0] = ((unsigned long long )spec->data[1] << 32) | (unsigned long long )spec->data[0]; filter->u64[1] = ((((((unsigned long long )spec->flags & 1ULL) << 46) | (((int )spec->flags & 2) != 0 ? 35184372088832ULL : 0ULL)) | ((unsigned long long )is_udp << 44)) | ((unsigned long long )spec->dmaq_id << 32)) | (unsigned long long )spec->data[2]; data3 = (u32 )is_udp; goto ldv_48285; case_1: /* CIL Label */ is_wild = (unsigned int )*((unsigned char *)spec + 0UL) == 5U; filter->u64[0] = (((((unsigned long long )spec->dmaq_id << 61) | ((unsigned long long )is_wild << 60)) | ((unsigned long long )spec->data[2] << 44)) | ((unsigned long long )spec->data[1] << 12)) | (unsigned long long )spec->data[0]; filter->u64[1] = ((((unsigned long long )spec->flags & 1ULL) << 11) | (((int )spec->flags & 2) != 0 ? 1024ULL : 0ULL)) | (unsigned long long )((int )spec->dmaq_id >> 3); data3 = (u32 )is_wild; goto ldv_48285; case_3: /* CIL Label */ is_wild___0 = (unsigned int )*((unsigned char *)spec + 0UL) == 5U; filter->u64[0] = (((((unsigned long long )spec->dmaq_id << 61) | ((unsigned long long )is_wild___0 << 60)) | ((unsigned long long )spec->data[2] << 44)) | ((unsigned long long )spec->data[1] << 12)) | (unsigned long long )spec->data[0]; filter->u64[1] = (unsigned long long )((int )spec->dmaq_id >> 3); data3 = (u32 )((int )is_wild___0 | ((int )spec->dmaq_id << 1)); goto ldv_48285; switch_default: /* CIL Label */ { __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 *)"drivers/net/ethernet/sfc/farch.c"), "i" (2255), "i" (12UL)); __builtin_unreachable(); } switch_break: /* CIL Label */ ; } ldv_48285: ; return (((spec->data[0] ^ spec->data[1]) ^ spec->data[2]) ^ data3); } } static bool efx_farch_filter_equal(struct efx_farch_filter_spec const *left , struct efx_farch_filter_spec const *right ) { int tmp ; { if (((unsigned int )((int )*((unsigned char *)left + 0UL) ^ (int )*((unsigned char *)right + 0UL)) & 15U) != 0U) { return (0); } else { { tmp = memcmp((void const *)(& left->data), (void const *)(& right->data), 12UL); } if (tmp != 0) { return (0); } else { } } if (((int )left->flags & 16) != 0 && (int )((unsigned short )left->dmaq_id) != (int )((unsigned short )right->dmaq_id)) { return (0); } else { } return (1); } } static u8 const efx_farch_filter_type_match_pri[10U] = { 0U, 1U, 0U, 1U, 2U, 3U, (unsigned char)0, (unsigned char)0, 4U, 4U}; static enum efx_farch_filter_table_id const efx_farch_filter_range_table[7U] = { 0, 0, 1, 1, 2, 3, 3}; __inline static u32 efx_farch_filter_make_id(struct efx_farch_filter_spec const *spec , unsigned int index ) { unsigned int range ; { range = (unsigned int )efx_farch_filter_type_match_pri[(int )spec->type]; if (((int )spec->flags & 8) == 0) { range = range + 5U; } else { } return ((range << 13) | index); } } __inline static enum efx_farch_filter_table_id efx_farch_filter_id_table_id(u32 id ) { unsigned int range ; { range = id >> 13; if (range <= 6U) { return ((enum efx_farch_filter_table_id )efx_farch_filter_range_table[range]); } else { return (4); } } } __inline static unsigned int efx_farch_filter_id_index(u32 id ) { { return (id & 8191U); } } u32 efx_farch_filter_get_rx_id_limit(struct efx_nic *efx ) { struct efx_farch_filter_state *state ; unsigned int range ; enum efx_farch_filter_table_id table_id ; unsigned int tmp ; { state = (struct efx_farch_filter_state *)efx->filter_state; range = 4U; ldv_48317: table_id = efx_farch_filter_range_table[range]; if (state->table[(unsigned int )table_id].size != 0U) { return ((range << 13) | state->table[(unsigned int )table_id].size); } else { } tmp = range; range = range - 1U; if (tmp != 0U) { goto ldv_48317; } else { } return (0U); } } extern void __compiletime_assert_2381(void) ; extern void __compiletime_assert_2383(void) ; s32 efx_farch_filter_insert(struct efx_nic *efx , struct efx_filter_spec *gen_spec , bool replace_equal ) { struct efx_farch_filter_state *state ; struct efx_farch_filter_table *table ; struct efx_farch_filter_spec spec ; efx_oword_t filter ; int rep_index ; int ins_index ; unsigned int depth ; int rc ; enum efx_farch_filter_table_id tmp ; bool __cond ; bool __cond___0 ; u32 key ; u32 tmp___0 ; unsigned int hash ; u16 tmp___1 ; unsigned int incr ; u16 tmp___2 ; unsigned int max_rep_depth ; unsigned int max_ins_depth ; unsigned int i ; bool tmp___3 ; int tmp___5 ; struct efx_farch_filter_spec *saved_spec ; u32 tmp___6 ; { { state = (struct efx_farch_filter_state *)efx->filter_state; depth = 0U; rc = efx_farch_filter_from_gen_spec(& spec, (struct efx_filter_spec const *)gen_spec); } if (rc != 0) { return (rc); } else { } { tmp = efx_farch_filter_spec_table_id((struct efx_farch_filter_spec const *)(& spec)); table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )tmp; } if (table->size == 0U) { return (-22); } else { } if ((unsigned int )table->id == 2U) { __cond = 0; if ((int )__cond) { { __compiletime_assert_2381(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_2383(); } } else { } { rep_index = (int )spec.type + -8; ins_index = rep_index; ldv_spin_lock_bh_76(& efx->filter_lock); } } else { { tmp___0 = efx_farch_filter_build(& filter, & spec); key = tmp___0; tmp___1 = efx_farch_filter_hash(key); hash = (unsigned int )tmp___1; tmp___2 = efx_farch_filter_increment(key); incr = (unsigned int )tmp___2; max_rep_depth = table->search_limit[(int )spec.type]; max_ins_depth = (int )spec.priority <= 0 ? 5U : 200U; i = hash & (table->size - 1U); ins_index = -1; depth = 1U; ldv_spin_lock_bh_76(& efx->filter_lock); } ldv_48350: { tmp___5 = variable_test_bit((long )i, (unsigned long const volatile *)table->used_bitmap); } if (tmp___5 == 0) { if (ins_index < 0) { ins_index = (int )i; } else { } } else { { tmp___3 = efx_farch_filter_equal((struct efx_farch_filter_spec const *)(& spec), (struct efx_farch_filter_spec const *)table->spec + (unsigned long )i); } if ((int )tmp___3) { if (ins_index < 0) { ins_index = (int )i; } else { } rep_index = (int )i; goto ldv_48348; } else { } } if (depth >= max_rep_depth && (ins_index >= 0 || depth >= max_ins_depth)) { if (ins_index < 0) { rc = -16; goto out; } else { } rep_index = -1; goto ldv_48348; } else { } i = (i + incr) & (table->size - 1U); depth = depth + 1U; goto ldv_48350; ldv_48348: ; } if (rep_index >= 0) { saved_spec = table->spec + (unsigned long )rep_index; if (((unsigned int )((int )*((unsigned char *)(& spec) + 0UL) ^ (int )*((unsigned char *)saved_spec + 0UL)) & 240U) == 0U && ! replace_equal) { rc = -17; goto out; } else { } if ((int )spec.priority < (int )saved_spec->priority) { rc = -1; goto out; } else { } if ((unsigned int )*((unsigned char *)saved_spec + 0UL) == 16U || ((int )saved_spec->flags & 4) != 0) { spec.flags = (u8 )((unsigned int )spec.flags | 4U); } else { } } else { } if (ins_index != rep_index) { { __set_bit((long )ins_index, (unsigned long volatile *)table->used_bitmap); table->used = table->used + 1U; } } else { } *(table->spec + (unsigned long )ins_index) = spec; if ((unsigned int )table->id == 2U) { { efx_farch_filter_push_rx_config(efx); } } else { if (table->search_limit[(int )spec.type] < depth) { table->search_limit[(int )spec.type] = depth; if (((int )spec.flags & 16) != 0) { { efx_farch_filter_push_tx_limits(efx); } } else { { efx_farch_filter_push_rx_config(efx); } } } else { } { efx_writeo(efx, (efx_oword_t const *)(& filter), table->offset + table->step * (unsigned int )ins_index); } if (ins_index != rep_index && rep_index >= 0) { { efx_farch_filter_table_clear_entry(efx, table, (unsigned int )rep_index); } } else { } } { tmp___6 = efx_farch_filter_make_id((struct efx_farch_filter_spec const *)(& spec), (unsigned int )ins_index); rc = (int )tmp___6; } out: { ldv_spin_unlock_bh_78(& efx->filter_lock); } return (rc); } } static void efx_farch_filter_table_clear_entry(struct efx_nic *efx , struct efx_farch_filter_table *table , unsigned int filter_idx ) { efx_oword_t filter ; long tmp ; long tmp___0 ; { { tmp = ldv__builtin_expect(table->offset == 0U, 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 *)"drivers/net/ethernet/sfc/farch.c"), "i" (2515), "i" (12UL)); __builtin_unreachable(); } } else { } { __clear_bit((long )filter_idx, (unsigned long volatile *)table->used_bitmap); table->used = table->used - 1U; memset((void *)table->spec + (unsigned long )filter_idx, 0, 16UL); efx_writeo(efx, (efx_oword_t const *)(& filter), table->offset + table->step * filter_idx); tmp___0 = ldv__builtin_expect(table->used == 0U, 0L); } if (tmp___0 != 0L) { { memset((void *)(& table->search_limit), 0, 40UL); } if ((unsigned int )table->id == 3U) { { efx_farch_filter_push_tx_limits(efx); } } else { { efx_farch_filter_push_rx_config(efx); } } } else { } return; } } static int efx_farch_filter_remove(struct efx_nic *efx , struct efx_farch_filter_table *table , unsigned int filter_idx , enum efx_filter_priority priority ) { struct efx_farch_filter_spec *spec ; int tmp___0 ; { { spec = table->spec + (unsigned long )filter_idx; tmp___0 = variable_test_bit((long )filter_idx, (unsigned long const volatile *)table->used_bitmap); } if (tmp___0 == 0 || (unsigned int )spec->priority != (unsigned int )priority) { return (-2); } else { } if (((int )spec->flags & 4) != 0) { { efx_farch_filter_init_rx_auto(efx, spec); efx_farch_filter_push_rx_config(efx); } } else { { efx_farch_filter_table_clear_entry(efx, table, filter_idx); } } return (0); } } int efx_farch_filter_remove_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id ) { struct efx_farch_filter_state *state ; enum efx_farch_filter_table_id table_id ; struct efx_farch_filter_table *table ; unsigned int filter_idx ; struct efx_farch_filter_spec *spec ; int rc ; { { state = (struct efx_farch_filter_state *)efx->filter_state; table_id = efx_farch_filter_id_table_id(filter_id); } if ((unsigned int )table_id > 3U) { return (-2); } else { } { table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; filter_idx = efx_farch_filter_id_index(filter_id); } if (filter_idx >= table->size) { return (-2); } else { } { spec = table->spec + (unsigned long )filter_idx; ldv_spin_lock_bh_76(& efx->filter_lock); rc = efx_farch_filter_remove(efx, table, filter_idx, priority); ldv_spin_unlock_bh_78(& efx->filter_lock); } return (rc); } } int efx_farch_filter_get_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id , struct efx_filter_spec *spec_buf ) { struct efx_farch_filter_state *state ; enum efx_farch_filter_table_id table_id ; struct efx_farch_filter_table *table ; struct efx_farch_filter_spec *spec ; unsigned int filter_idx ; int rc ; int tmp___0 ; { { state = (struct efx_farch_filter_state *)efx->filter_state; table_id = efx_farch_filter_id_table_id(filter_id); } if ((unsigned int )table_id > 3U) { return (-2); } else { } { table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; filter_idx = efx_farch_filter_id_index(filter_id); } if (filter_idx >= table->size) { return (-2); } else { } { spec = table->spec + (unsigned long )filter_idx; ldv_spin_lock_bh_76(& efx->filter_lock); tmp___0 = variable_test_bit((long )filter_idx, (unsigned long const volatile *)table->used_bitmap); } if (tmp___0 != 0 && (unsigned int )spec->priority == (unsigned int )priority) { { efx_farch_filter_to_gen_spec(spec_buf, (struct efx_farch_filter_spec const *)spec); rc = 0; } } else { rc = -2; } { ldv_spin_unlock_bh_78(& efx->filter_lock); } return (rc); } } static void efx_farch_filter_table_clear(struct efx_nic *efx , enum efx_farch_filter_table_id table_id , enum efx_filter_priority priority ) { struct efx_farch_filter_state *state ; struct efx_farch_filter_table *table ; unsigned int filter_idx ; { { state = (struct efx_farch_filter_state *)efx->filter_state; table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; ldv_spin_lock_bh_76(& efx->filter_lock); filter_idx = 0U; } goto ldv_48398; ldv_48397: ; if ((unsigned int )*((unsigned char *)(table->spec + (unsigned long )filter_idx) + 0UL) != 16U) { { efx_farch_filter_remove(efx, table, filter_idx, priority); } } else { } filter_idx = filter_idx + 1U; ldv_48398: ; if (filter_idx < table->size) { goto ldv_48397; } else { } { ldv_spin_unlock_bh_78(& efx->filter_lock); } return; } } int efx_farch_filter_clear_rx(struct efx_nic *efx , enum efx_filter_priority priority ) { { { efx_farch_filter_table_clear(efx, 0, priority); efx_farch_filter_table_clear(efx, 1, priority); efx_farch_filter_table_clear(efx, 2, priority); } return (0); } } u32 efx_farch_filter_count_rx_used(struct efx_nic *efx , enum efx_filter_priority priority ) { struct efx_farch_filter_state *state ; enum efx_farch_filter_table_id table_id ; struct efx_farch_filter_table *table ; unsigned int filter_idx ; u32 count ; int tmp___0 ; { { state = (struct efx_farch_filter_state *)efx->filter_state; count = 0U; ldv_spin_lock_bh_76(& efx->filter_lock); table_id = 0; } goto ldv_48417; ldv_48416: table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; filter_idx = 0U; goto ldv_48414; ldv_48413: { tmp___0 = variable_test_bit((long )filter_idx, (unsigned long const volatile *)table->used_bitmap); } if (tmp___0 != 0 && (unsigned int )(table->spec + (unsigned long )filter_idx)->priority == (unsigned int )priority) { count = count + 1U; } else { } filter_idx = filter_idx + 1U; ldv_48414: ; if (filter_idx < table->size) { goto ldv_48413; } else { } table_id = (enum efx_farch_filter_table_id )((unsigned int )table_id + 1U); ldv_48417: ; if ((unsigned int )table_id <= 2U) { goto ldv_48416; } else { } { ldv_spin_unlock_bh_78(& efx->filter_lock); } return (count); } } s32 efx_farch_filter_get_rx_ids(struct efx_nic *efx , enum efx_filter_priority priority , u32 *buf , u32 size ) { struct efx_farch_filter_state *state ; enum efx_farch_filter_table_id table_id ; struct efx_farch_filter_table *table ; unsigned int filter_idx ; s32 count ; s32 tmp ; int tmp___1 ; { { state = (struct efx_farch_filter_state *)efx->filter_state; count = 0; ldv_spin_lock_bh_76(& efx->filter_lock); table_id = 0; } goto ldv_48435; ldv_48434: table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; filter_idx = 0U; goto ldv_48432; ldv_48431: { tmp___1 = variable_test_bit((long )filter_idx, (unsigned long const volatile *)table->used_bitmap); } if (tmp___1 != 0 && (unsigned int )(table->spec + (unsigned long )filter_idx)->priority == (unsigned int )priority) { if ((u32 )count == size) { count = -90; goto out; } else { } { tmp = count; count = count + 1; *(buf + (unsigned long )tmp) = efx_farch_filter_make_id((struct efx_farch_filter_spec const *)table->spec + (unsigned long )filter_idx, filter_idx); } } else { } filter_idx = filter_idx + 1U; ldv_48432: ; if (filter_idx < table->size) { goto ldv_48431; } else { } table_id = (enum efx_farch_filter_table_id )((unsigned int )table_id + 1U); ldv_48435: ; if ((unsigned int )table_id <= 2U) { goto ldv_48434; } else { } out: { ldv_spin_unlock_bh_78(& efx->filter_lock); } return (count); } } void efx_farch_filter_table_restore(struct efx_nic *efx ) { struct efx_farch_filter_state *state ; enum efx_farch_filter_table_id table_id ; struct efx_farch_filter_table *table ; efx_oword_t filter ; unsigned int filter_idx ; int tmp___0 ; { { state = (struct efx_farch_filter_state *)efx->filter_state; ldv_spin_lock_bh_76(& efx->filter_lock); table_id = 0; } goto ldv_48451; ldv_48450: table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; if (table->step == 0U) { goto ldv_48445; } else { } filter_idx = 0U; goto ldv_48448; ldv_48447: { tmp___0 = variable_test_bit((long )filter_idx, (unsigned long const volatile *)table->used_bitmap); } if (tmp___0 == 0) { goto ldv_48446; } else { } { efx_farch_filter_build(& filter, table->spec + (unsigned long )filter_idx); efx_writeo(efx, (efx_oword_t const *)(& filter), table->offset + table->step * filter_idx); } ldv_48446: filter_idx = filter_idx + 1U; ldv_48448: ; if (filter_idx < table->size) { goto ldv_48447; } else { } ldv_48445: table_id = (enum efx_farch_filter_table_id )((unsigned int )table_id + 1U); ldv_48451: ; if ((unsigned int )table_id <= 3U) { goto ldv_48450; } else { } { efx_farch_filter_push_rx_config(efx); efx_farch_filter_push_tx_limits(efx); ldv_spin_unlock_bh_78(& efx->filter_lock); } return; } } void efx_farch_filter_table_remove(struct efx_nic *efx ) { struct efx_farch_filter_state *state ; enum efx_farch_filter_table_id table_id ; { state = (struct efx_farch_filter_state *)efx->filter_state; table_id = 0; goto ldv_48459; ldv_48458: { kfree((void const *)state->table[(unsigned int )table_id].used_bitmap); vfree((void const *)state->table[(unsigned int )table_id].spec); table_id = (enum efx_farch_filter_table_id )((unsigned int )table_id + 1U); } ldv_48459: ; if ((unsigned int )table_id <= 3U) { goto ldv_48458; } else { } { kfree((void const *)state); } return; } } int efx_farch_filter_table_probe(struct efx_nic *efx ) { struct efx_farch_filter_state *state ; struct efx_farch_filter_table *table ; unsigned int table_id ; void *tmp ; int tmp___0 ; int tmp___1 ; void *tmp___2 ; void *tmp___3 ; struct efx_farch_filter_spec *spec ; unsigned int i ; { { tmp = kzalloc(320UL, 208U); state = (struct efx_farch_filter_state *)tmp; } if ((unsigned long )state == (unsigned long )((struct efx_farch_filter_state *)0)) { return (-12); } else { } { efx->filter_state = (void *)state; tmp___0 = efx_nic_rev(efx); } if (tmp___0 > 1) { table = (struct efx_farch_filter_table *)(& state->table); table->id = 0; table->offset = 15728640U; table->size = 8192U; table->step = 32U; } else { } { tmp___1 = efx_nic_rev(efx); } if (tmp___1 > 2) { table = (struct efx_farch_filter_table *)(& state->table) + 1UL; table->id = 1; table->offset = 15728656U; table->size = 512U; table->step = 32U; table = (struct efx_farch_filter_table *)(& state->table) + 2UL; table->id = 2; table->size = 2U; table = (struct efx_farch_filter_table *)(& state->table) + 3UL; table->id = 3; table->offset = 16646144U; table->size = 512U; table->step = 16U; } else { } table_id = 0U; goto ldv_48470; ldv_48469: table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; if (table->size == 0U) { goto ldv_48467; } else { } { tmp___2 = kcalloc(((unsigned long )table->size + 63UL) / 64UL, 8UL, 208U); table->used_bitmap = (unsigned long *)tmp___2; } if ((unsigned long )table->used_bitmap == (unsigned long )((unsigned long *)0UL)) { goto fail; } else { } { tmp___3 = vzalloc((unsigned long )table->size * 16UL); table->spec = (struct efx_farch_filter_spec *)tmp___3; } if ((unsigned long )table->spec == (unsigned long )((struct efx_farch_filter_spec *)0)) { goto fail; } else { } ldv_48467: table_id = table_id + 1U; ldv_48470: ; if (table_id <= 3U) { goto ldv_48469; } else { } table = (struct efx_farch_filter_table *)(& state->table) + 2UL; if (table->size != 0U) { i = 0U; goto ldv_48475; ldv_48474: { spec = table->spec + (unsigned long )i; spec->type = (unsigned int )((unsigned char )i) + 8U; efx_farch_filter_init_rx_auto(efx, spec); __set_bit((long )i, (unsigned long volatile *)table->used_bitmap); i = i + 1U; } ldv_48475: ; if (i <= 1U) { goto ldv_48474; } else { } } else { } { efx_farch_filter_push_rx_config(efx); } return (0); fail: { efx_farch_filter_table_remove(efx); } return (-12); } } void efx_farch_filter_update_rx_scatter(struct efx_nic *efx ) { struct efx_farch_filter_state *state ; enum efx_farch_filter_table_id table_id ; struct efx_farch_filter_table *table ; efx_oword_t filter ; unsigned int filter_idx ; int tmp___0 ; { { state = (struct efx_farch_filter_state *)efx->filter_state; ldv_spin_lock_bh_76(& efx->filter_lock); table_id = 0; } goto ldv_48490; ldv_48489: table = (struct efx_farch_filter_table *)(& state->table) + (unsigned long )table_id; filter_idx = 0U; goto ldv_48487; ldv_48486: { tmp___0 = variable_test_bit((long )filter_idx, (unsigned long const volatile *)table->used_bitmap); } if (tmp___0 == 0 || (unsigned int )(table->spec + (unsigned long )filter_idx)->dmaq_id >= efx->n_rx_channels) { goto ldv_48485; } else { } if ((int )efx->rx_scatter) { (table->spec + (unsigned long )filter_idx)->flags = (u8 )((unsigned int )(table->spec + (unsigned long )filter_idx)->flags | 2U); } else { (table->spec + (unsigned long )filter_idx)->flags = (unsigned int )(table->spec + (unsigned long )filter_idx)->flags & 253U; } if ((unsigned int )table_id == 2U) { goto ldv_48485; } else { } { efx_farch_filter_build(& filter, table->spec + (unsigned long )filter_idx); efx_writeo(efx, (efx_oword_t const *)(& filter), table->offset + table->step * filter_idx); } ldv_48485: filter_idx = filter_idx + 1U; ldv_48487: ; if (filter_idx < table->size) { goto ldv_48486; } else { } table_id = (enum efx_farch_filter_table_id )((unsigned int )table_id + 1U); ldv_48490: ; if ((unsigned int )table_id <= 2U) { goto ldv_48489; } else { } { efx_farch_filter_push_rx_config(efx); ldv_spin_unlock_bh_78(& efx->filter_lock); } return; } } s32 efx_farch_filter_rfs_insert(struct efx_nic *efx , struct efx_filter_spec *gen_spec ) { s32 tmp ; { { tmp = efx_farch_filter_insert(efx, gen_spec, 1); } return (tmp); } } bool efx_farch_filter_rfs_expire_one(struct efx_nic *efx , u32 flow_id , unsigned int index ) { struct efx_farch_filter_state *state ; struct efx_farch_filter_table *table ; int tmp___0 ; bool tmp___1 ; { { state = (struct efx_farch_filter_state *)efx->filter_state; table = (struct efx_farch_filter_table *)(& state->table); tmp___0 = variable_test_bit((long )index, (unsigned long const volatile *)table->used_bitmap); } if (tmp___0 != 0 && (unsigned int )*((unsigned char *)(table->spec + (unsigned long )index) + 0UL) == 0U) { { tmp___1 = rps_may_expire_flow(efx->net_dev, (int )(table->spec + (unsigned long )index)->dmaq_id, flow_id, (int )((u16 )index)); } if ((int )tmp___1) { { efx_farch_filter_table_clear_entry(efx, table, index); } return (1); } else { } } else { } return (0); } } void efx_farch_filter_sync_rx_mode(struct efx_nic *efx ) { struct net_device *net_dev ; struct netdev_hw_addr *ha ; union efx_multicast_hash *mc_hash ; u32 crc ; int bit ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { { net_dev = efx->net_dev; mc_hash = & efx->multicast_hash; netif_addr_lock_bh___0(net_dev); efx->unicast_filter = (net_dev->flags & 256U) == 0U; } if ((net_dev->flags & 768U) != 0U) { { memset((void *)mc_hash, 255, 32UL); } } else { { memset((void *)mc_hash, 0, 32UL); __mptr = (struct list_head const *)net_dev->mc.list.next; ha = (struct netdev_hw_addr *)__mptr; } goto ldv_48516; ldv_48515: { crc = crc32_le(4294967295U, (unsigned char const *)(& ha->addr), 6UL); bit = (int )crc & 255; __set_bit_le(bit, (void *)mc_hash); __mptr___0 = (struct list_head const *)ha->list.next; ha = (struct netdev_hw_addr *)__mptr___0; } ldv_48516: ; if ((unsigned long )(& ha->list) != (unsigned long )(& net_dev->mc.list)) { goto ldv_48515; } else { } { __set_bit_le(255, (void *)mc_hash); } } { netif_addr_unlock_bh___0(net_dev); } return; } } static void ldv___ldv_spin_lock_66(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static void ldv___ldv_spin_lock_68(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static void ldv___ldv_spin_lock_70___0(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) { { { ldv_spin_lock_filter_lock_of_efx_nic(); spin_lock_bh(lock); } return; } } __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) { { { ldv_spin_unlock_filter_lock_of_efx_nic(); spin_unlock_bh(lock); } return; } } extern struct task_struct *current_task ; __inline static struct task_struct *get_current(void) { struct task_struct *pfo_ret__ ; { { if (8UL == 1UL) { goto case_1; } else { } if (8UL == 2UL) { goto case_2; } else { } if (8UL == 4UL) { goto case_4; } else { } if (8UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "p" (& current_task)); goto ldv_2908; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2908; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2908; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2908; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break: /* CIL Label */ ; } ldv_2908: ; return (pfo_ret__); } } static void ldv___ldv_spin_lock_66___0(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_70___1(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_74(spinlock_t *ldv_func_arg1 ) ; extern int mutex_lock_interruptible_nested(struct mutex * , unsigned int ) ; __inline static int test_ti_thread_flag(struct thread_info *ti , int flag ) { int tmp___0 ; { { tmp___0 = variable_test_bit((long )flag, (unsigned long const volatile *)(& ti->flags)); } return (tmp___0); } } __inline static void ldv_spin_lock_77(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; static int ldv_mod_timer_76(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; extern int del_timer_sync(struct timer_list * ) ; static int ldv_del_timer_sync_83(struct timer_list *ldv_func_arg1 ) ; extern unsigned long round_jiffies_up(unsigned long ) ; extern void __const_udelay(unsigned long ) ; extern long schedule_timeout_uninterruptible(long ) ; __inline static int test_tsk_thread_flag(struct task_struct *tsk , int flag ) { int tmp ; { { tmp = test_ti_thread_flag((struct thread_info *)tsk->stack, flag); } return (tmp); } } __inline static int signal_pending(struct task_struct *p ) { int tmp ; long tmp___0 ; { { tmp = test_tsk_thread_flag(p, 2); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); } return ((int )tmp___0); } } extern int _cond_resched(void) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern struct pci_dev *pci_dev_get(struct pci_dev * ) ; extern void pci_dev_put(struct pci_dev * ) ; extern struct pci_dev *pci_get_device(unsigned int , unsigned int , struct pci_dev * ) ; extern void i2c_del_adapter(struct i2c_adapter * ) ; __inline static bool efx_link_state_equal(struct efx_link_state const *left , struct efx_link_state const *right ) { { return ((bool )(*((unsigned int *)left + 0UL) == *((unsigned int *)right + 0UL) && (unsigned int )left->speed == (unsigned int )right->speed)); } } __inline static bool efx_phy_mode_disabled(enum efx_phy_mode mode ) { { return (((unsigned int )mode & 4294967294U) != 0U); } } int efx_mtd_add(struct efx_nic *efx , struct efx_mtd_partition *parts , size_t n_parts , size_t sizeof_part ) ; __inline static void efx_schedule_channel___1(struct efx_channel *channel ) { int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { if (0) { if (((channel->efx)->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_45874; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45874; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45874; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45874; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_45874: pscr_ret__ = pfo_ret__; goto ldv_45880; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45884; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45884; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45884; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45884; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_45884: pscr_ret__ = pfo_ret_____0; goto ldv_45880; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45893; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45893; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45893; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45893; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_45893: pscr_ret__ = pfo_ret_____1; goto ldv_45880; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45902; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45902; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45902; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45902; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_45902: pscr_ret__ = pfo_ret_____2; goto ldv_45880; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_45880; switch_break: /* CIL Label */ ; } ldv_45880: { netdev_printk("\017", (struct net_device const *)(channel->efx)->net_dev, "channel %d scheduling NAPI poll on CPU%d\n", channel->channel, pscr_ret__); } } else { } } else { } { napi_schedule(& channel->napi_str); } return; } } __inline static void efx_schedule_channel_irq___0(struct efx_channel *channel ) { int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_45919; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45919; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45919; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45919; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_45919: pscr_ret__ = pfo_ret__; goto ldv_45925; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45929; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45929; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45929; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45929; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_45929: pscr_ret__ = pfo_ret_____0; goto ldv_45925; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45938; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45938; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45938; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45938; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_45938: pscr_ret__ = pfo_ret_____1; goto ldv_45925; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45947; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45947; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45947; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45947; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_45947: pscr_ret__ = pfo_ret_____2; goto ldv_45925; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_45925; switch_break: /* CIL Label */ ; } ldv_45925: { channel->event_test_cpu = pscr_ret__; efx_schedule_channel___1(channel); } return; } } extern int i2c_bit_add_bus(struct i2c_adapter * ) ; __inline static bool falcon_spi_present(struct falcon_spi_device const *spi ) { { return ((unsigned int )spi->size != 0U); } } __inline static struct falcon_board *falcon_board(struct efx_nic *efx ) { struct falcon_nic_data *data ; { data = (struct falcon_nic_data *)efx->nic_data; return (& data->board); } } int falcon_probe_board(struct efx_nic *efx , u16 revision_info ) ; __inline static void efx_update_diff_stat(u64 *stat , u64 diff ) { { if ((long long )(diff - *stat) > 0LL) { *stat = diff; } else { } return; } } void falcon_start_nic_stats(struct efx_nic *efx ) ; void falcon_stop_nic_stats(struct efx_nic *efx ) ; int falcon_reset_xaui(struct efx_nic *efx ) ; __inline static void efx_writeo___0(struct efx_nic *efx , efx_oword_t const *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_66___0(& efx->biu_lock); _efx_writeq(efx, value->u64[0], reg); _efx_writeq(efx, value->u64[1], reg + 8U); __asm__ volatile ("": : : "memory"); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_reado___1(struct efx_nic *efx , efx_oword_t *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_70___1(& efx->biu_lock); value->u32[0] = _efx_readd(efx, reg); value->u32[1] = _efx_readd(efx, reg + 4U); value->u32[2] = _efx_readd(efx, reg + 8U); value->u32[3] = _efx_readd(efx, reg + 12U); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void _efx_writed_page_locked(struct efx_nic *efx , efx_dword_t const *value , unsigned int reg , unsigned int page ) { unsigned long flags ; { if (page == 0U) { { ldv___ldv_spin_lock_74(& efx->biu_lock); efx_writed(efx, value, page * 8192U + reg); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } } else { { efx_writed(efx, value, page * 8192U + reg); } } return; } } struct efx_phy_operations const falcon_sfx7101_phy_ops ; struct efx_phy_operations const falcon_qt202x_phy_ops ; struct efx_phy_operations const falcon_txc_phy_ops ; __inline static int efx_mdio_read(struct efx_nic *efx , int devad , int addr ) { int tmp ; { { tmp = (*(efx->mdio.mdio_read))(efx->net_dev, efx->mdio.prtad, devad, (int )((u16 )addr)); } return (tmp); } } __inline static bool efx_mdio_phyxgxs_lane_sync(struct efx_nic *efx ) { int i ; int lane_status ; bool sync ; struct _ddebug descriptor ; long tmp ; { i = 0; goto ldv_47039; ldv_47038: { lane_status = efx_mdio_read(efx, 4, 24); i = i + 1; } ldv_47039: ; if (i <= 1) { goto ldv_47038; } else { } sync = (lane_status & 4096) != 0; if (! sync) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_mdio_phyxgxs_lane_sync"; descriptor.filename = "drivers/net/ethernet/sfc/mdio_10g.h"; descriptor.format = "XGXS lane status: %x\n"; descriptor.lineno = 55U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "XGXS lane status: %x\n", lane_status); } } else { } } else { } } else { } return (sync); } } static struct efx_hw_stat_desc const falcon_stat_desc[47U] = { {"tx_bytes", 64U, 136U}, {"tx_packets", 32U, 128U}, {"tx_pause", 32U, 160U}, {"tx_control", 32U, 156U}, {"tx_unicast", 32U, 152U}, {"tx_multicast", 32U, 144U}, {"tx_broadcast", 32U, 148U}, {"tx_lt64", 32U, 192U}, {"tx_64", 32U, 164U}, {"tx_65_to_127", 32U, 168U}, {"tx_128_to_255", 32U, 172U}, {"tx_256_to_511", 32U, 176U}, {"tx_512_to_1023", 32U, 180U}, {"tx_1024_to_15xx", 32U, 184U}, {"tx_15xx_to_jumbo", 32U, 188U}, {"tx_gtjumbo", 32U, 196U}, {"tx_non_tcpudp", 16U, 200U}, {"tx_mac_src_error", 16U, 204U}, {"tx_ip_src_error", 16U, 208U}, {"rx_bytes", 64U, 0U}, {"rx_good_bytes", 64U, 8U}, {"rx_bad_bytes", 0U, 0U}, {"rx_packets", 32U, 16U}, {"rx_good", 32U, 20U}, {"rx_bad", 32U, 56U}, {"rx_pause", 32U, 76U}, {"rx_control", 32U, 72U}, {"rx_unicast", 32U, 32U}, {"rx_multicast", 32U, 28U}, {"rx_broadcast", 32U, 24U}, {"rx_lt64", 32U, 36U}, {"rx_64", 32U, 80U}, {"rx_65_to_127", 32U, 84U}, {"rx_128_to_255", 32U, 88U}, {"rx_256_to_511", 32U, 92U}, {"rx_512_to_1023", 32U, 96U}, {"rx_1024_to_15xx", 32U, 100U}, {"rx_15xx_to_jumbo", 32U, 104U}, {"rx_gtjumbo", 32U, 40U}, {"rx_bad_lt64", 32U, 48U}, {"rx_bad_gtjumbo", 32U, 44U}, {"rx_overflow", 32U, 52U}, {"rx_symbol_error", 32U, 64U}, {"rx_align_error", 32U, 60U}, {"rx_length_error", 32U, 108U}, {"rx_internal_error", 32U, 68U}, {"rx_nodesc_drop_cnt", 0U, 0U}}; static unsigned long const falcon_stat_mask[1U] = { 0xffffffffffffffffUL}; static int falcon_reset_hw(struct efx_nic *efx , enum reset_type method ) ; static void falcon_reconfigure_mac_wrapper(struct efx_nic *efx ) ; static unsigned int const large_eeprom_type = 83886221U; static unsigned int const default_flash_type = 135221969U; static void falcon_setsda(void *data , int state ) { struct efx_nic *efx ; efx_oword_t reg ; { { efx = (struct efx_nic *)data; efx_reado___1(efx, & reg, 528U); reg.u64[0] = (reg.u64[0] & 0xfffffffff7ffffffULL) | (state == 0 ? 134217728ULL : 0ULL); reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 528U); } return; } } static void falcon_setscl(void *data , int state ) { struct efx_nic *efx ; efx_oword_t reg ; { { efx = (struct efx_nic *)data; efx_reado___1(efx, & reg, 528U); reg.u64[0] = (reg.u64[0] & 0xfffffffffeffffffULL) | (state == 0 ? 16777216ULL : 0ULL); reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 528U); } return; } } static int falcon_getsda(void *data ) { struct efx_nic *efx ; efx_oword_t reg ; { { efx = (struct efx_nic *)data; efx_reado___1(efx, & reg, 528U); } return ((int )(reg.u64[0] >> 11) & 1); } } static int falcon_getscl(void *data ) { struct efx_nic *efx ; efx_oword_t reg ; { { efx = (struct efx_nic *)data; efx_reado___1(efx, & reg, 528U); } return ((int )(reg.u64[0] >> 8) & 1); } } static struct i2c_algo_bit_data const falcon_i2c_bit_operations = {0, & falcon_setsda, & falcon_setscl, & falcon_getsda, & falcon_getscl, 0, 0, 5, 13}; extern void __compiletime_assert_389(void) ; static void falcon_push_irq_moderation(struct efx_channel *channel ) { efx_dword_t timer_cmd ; struct efx_nic *efx ; bool __cond ; { efx = channel->efx; if (channel->irq_moderation != 0U) { timer_cmd.u32[0] = (channel->irq_moderation - 1U) | 8192U; } else { timer_cmd.u32[0] = 0U; } __cond = 0; if ((int )__cond) { { __compiletime_assert_389(); } } else { } { _efx_writed_page_locked(efx, (efx_dword_t const *)(& timer_cmd), 1056U, (unsigned int )channel->channel); } return; } } static void falcon_deconfigure_mac_wrapper(struct efx_nic *efx ) ; static void falcon_prepare_flush(struct efx_nic *efx ) { { { falcon_deconfigure_mac_wrapper(efx); msleep(10U); } return; } } __inline static void falcon_irq_ack_a1(struct efx_nic *efx ) { efx_dword_t reg ; { { reg.u32[0] = 12053374U; efx_writed(efx, (efx_dword_t const *)(& reg), 80U); efx_readd(efx, & reg, 112U); } return; } } extern void __compiletime_assert_458(void) ; static irqreturn_t falcon_legacy_interrupt_a1(int irq , void *dev_id ) { struct efx_nic *efx ; efx_oword_t *int_ker ; int syserr ; int queues ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp ; int pscr_ret_____0 ; void const *__vpp_verify___0 ; int pfo_ret_____3 ; int pfo_ret_____4 ; int pfo_ret_____5 ; int pfo_ret_____6 ; int pscr_ret_____1 ; void const *__vpp_verify___1 ; int pfo_ret_____7 ; int pfo_ret_____8 ; int pfo_ret_____9 ; int pfo_ret_____10 ; long tmp___0 ; irqreturn_t tmp___1 ; long tmp___2 ; bool __cond ; struct efx_channel *tmp___3 ; struct efx_channel *tmp___4 ; { { efx = (struct efx_nic *)dev_id; int_ker = (efx_oword_t *)efx->irq_status.addr; tmp = ldv__builtin_expect((int_ker->u64[0] | int_ker->u64[1]) == 0ULL, 0L); } if (tmp != 0L) { if (0) { if ((efx->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_47175; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47175; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47175; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47175; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_47175: pscr_ret__ = pfo_ret__; goto ldv_47181; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47185; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47185; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47185; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47185; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_47185: pscr_ret__ = pfo_ret_____0; goto ldv_47181; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47194; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47194; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47194; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47194; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_47194: pscr_ret__ = pfo_ret_____1; goto ldv_47181; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47203; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47203; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47203; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47203; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_47203: pscr_ret__ = pfo_ret_____2; goto ldv_47181; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_47181; switch_break: /* CIL Label */ ; } ldv_47181: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "IRQ %d on CPU %d not for me\n", irq, pscr_ret__); } } else { } } else { } return (0); } else { } __vpp_verify___0 = (void const *)0; { if (4UL == 1UL) { goto case_1___4; } else { } if (4UL == 2UL) { goto case_2___5; } else { } if (4UL == 4UL) { goto case_4___6; } else { } if (4UL == 8UL) { goto case_8___7; } else { } goto switch_default___8; case_1___4: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___5; } else { } if (4UL == 2UL) { goto case_2___4; } else { } if (4UL == 4UL) { goto case_4___4; } else { } if (4UL == 8UL) { goto case_8___4; } else { } goto switch_default___4; case_1___5: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47217; case_2___4: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47217; case_4___4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47217; case_8___4: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_47217; switch_default___4: /* CIL Label */ { __bad_percpu_size(); } switch_break___5: /* CIL Label */ ; } ldv_47217: pscr_ret_____0 = pfo_ret_____3; goto ldv_47223; case_2___5: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___6; } else { } if (4UL == 2UL) { goto case_2___6; } else { } if (4UL == 4UL) { goto case_4___5; } else { } if (4UL == 8UL) { goto case_8___5; } else { } goto switch_default___5; case_1___6: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47227; case_2___6: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47227; case_4___5: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47227; case_8___5: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_47227; switch_default___5: /* CIL Label */ { __bad_percpu_size(); } switch_break___6: /* CIL Label */ ; } ldv_47227: pscr_ret_____0 = pfo_ret_____4; goto ldv_47223; case_4___6: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___7; } else { } if (4UL == 2UL) { goto case_2___7; } else { } if (4UL == 4UL) { goto case_4___7; } else { } if (4UL == 8UL) { goto case_8___6; } else { } goto switch_default___6; case_1___7: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47236; case_2___7: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47236; case_4___7: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47236; case_8___6: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_47236; switch_default___6: /* CIL Label */ { __bad_percpu_size(); } switch_break___7: /* CIL Label */ ; } ldv_47236: pscr_ret_____0 = pfo_ret_____5; goto ldv_47223; case_8___7: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___8; } else { } if (4UL == 2UL) { goto case_2___8; } else { } if (4UL == 4UL) { goto case_4___8; } else { } if (4UL == 8UL) { goto case_8___8; } else { } goto switch_default___7; case_1___8: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47245; case_2___8: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47245; case_4___8: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47245; case_8___8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_47245; switch_default___7: /* CIL Label */ { __bad_percpu_size(); } switch_break___8: /* CIL Label */ ; } ldv_47245: pscr_ret_____0 = pfo_ret_____6; goto ldv_47223; switch_default___8: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_47223; switch_break___4: /* CIL Label */ ; } ldv_47223: efx->last_irq_cpu = pscr_ret_____0; if (0) { if ((efx->msg_enable & 512U) != 0U) { __vpp_verify___1 = (void const *)0; { if (4UL == 1UL) { goto case_1___9; } else { } if (4UL == 2UL) { goto case_2___10; } else { } if (4UL == 4UL) { goto case_4___11; } else { } if (4UL == 8UL) { goto case_8___12; } else { } goto switch_default___13; case_1___9: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___10; } else { } if (4UL == 2UL) { goto case_2___9; } else { } if (4UL == 4UL) { goto case_4___9; } else { } if (4UL == 8UL) { goto case_8___9; } else { } goto switch_default___9; case_1___10: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____7): "m" (cpu_number)); goto ldv_47258; case_2___9: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____7): "m" (cpu_number)); goto ldv_47258; case_4___9: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____7): "m" (cpu_number)); goto ldv_47258; case_8___9: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____7): "m" (cpu_number)); goto ldv_47258; switch_default___9: /* CIL Label */ { __bad_percpu_size(); } switch_break___10: /* CIL Label */ ; } ldv_47258: pscr_ret_____1 = pfo_ret_____7; goto ldv_47264; case_2___10: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___11; } else { } if (4UL == 2UL) { goto case_2___11; } else { } if (4UL == 4UL) { goto case_4___10; } else { } if (4UL == 8UL) { goto case_8___10; } else { } goto switch_default___10; case_1___11: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____8): "m" (cpu_number)); goto ldv_47268; case_2___11: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____8): "m" (cpu_number)); goto ldv_47268; case_4___10: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____8): "m" (cpu_number)); goto ldv_47268; case_8___10: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____8): "m" (cpu_number)); goto ldv_47268; switch_default___10: /* CIL Label */ { __bad_percpu_size(); } switch_break___11: /* CIL Label */ ; } ldv_47268: pscr_ret_____1 = pfo_ret_____8; goto ldv_47264; case_4___11: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___12; } else { } if (4UL == 2UL) { goto case_2___12; } else { } if (4UL == 4UL) { goto case_4___12; } else { } if (4UL == 8UL) { goto case_8___11; } else { } goto switch_default___11; case_1___12: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____9): "m" (cpu_number)); goto ldv_47277; case_2___12: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____9): "m" (cpu_number)); goto ldv_47277; case_4___12: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____9): "m" (cpu_number)); goto ldv_47277; case_8___11: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____9): "m" (cpu_number)); goto ldv_47277; switch_default___11: /* CIL Label */ { __bad_percpu_size(); } switch_break___12: /* CIL Label */ ; } ldv_47277: pscr_ret_____1 = pfo_ret_____9; goto ldv_47264; case_8___12: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___13; } else { } if (4UL == 2UL) { goto case_2___13; } else { } if (4UL == 4UL) { goto case_4___13; } else { } if (4UL == 8UL) { goto case_8___13; } else { } goto switch_default___12; case_1___13: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____10): "m" (cpu_number)); goto ldv_47286; case_2___13: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____10): "m" (cpu_number)); goto ldv_47286; case_4___13: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____10): "m" (cpu_number)); goto ldv_47286; case_8___13: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____10): "m" (cpu_number)); goto ldv_47286; switch_default___12: /* CIL Label */ { __bad_percpu_size(); } switch_break___13: /* CIL Label */ ; } ldv_47286: pscr_ret_____1 = pfo_ret_____10; goto ldv_47264; switch_default___13: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_47264; switch_break___9: /* CIL Label */ ; } ldv_47264: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "IRQ %d on CPU %d status %08x:%08x:%08x:%08x\n", irq, pscr_ret_____1, int_ker->u32[3], int_ker->u32[2], int_ker->u32[1], int_ker->u32[0]); } } else { } } else { } { tmp___0 = ldv__builtin_expect((long )*((bool volatile *)(& efx->irq_soft_enabled)), 1L); } if (tmp___0 == 0L) { return (1); } else { } { syserr = (int )int_ker->u64[1] & 1; tmp___2 = ldv__builtin_expect(syserr != 0, 0L); } if (tmp___2 != 0L) { { tmp___1 = efx_farch_fatal_interrupt(efx); } return (tmp___1); } else { } __cond = 0; if ((int )__cond) { { __compiletime_assert_458(); } } else { } { queues = (int )(int_ker->u64[0] >> 40) & 15; int_ker->u64[0] = 0ULL; int_ker->u64[1] = 0ULL; __asm__ volatile ("sfence": : : "memory"); falcon_irq_ack_a1(efx); } if (queues & 1) { { tmp___3 = efx_get_channel(efx, 0U); efx_schedule_channel_irq___0(tmp___3); } } else { } if ((queues & 2) != 0) { { tmp___4 = efx_get_channel(efx, 1U); efx_schedule_channel_irq___0(tmp___4); } } else { } return (1); } } static void falcon_b0_rx_push_rss_config(struct efx_nic *efx ) { efx_oword_t temp ; { { memcpy((void *)(& temp), (void const *)(& efx->rx_hash_key), 16UL); efx_writeo___0(efx, (efx_oword_t const *)(& temp), 2144U); efx_farch_rx_push_indir_table(efx); } return; } } static int falcon_spi_poll(struct efx_nic *efx ) { efx_oword_t reg ; { { efx_reado___1(efx, & reg, 256U); } return ((int )(reg.u64[0] >> 31) & 1 ? -16 : 0); } } static int falcon_spi_wait(struct efx_nic *efx ) { unsigned long timeout ; int i ; int tmp ; int tmp___0 ; { timeout = (unsigned long )jiffies + 26UL; i = 0; goto ldv_47313; ldv_47312: { tmp = falcon_spi_poll(efx); } if (tmp == 0) { return (0); } else { } { __const_udelay(42950UL); i = i + 1; } ldv_47313: ; if (i <= 9) { goto ldv_47312; } else { } ldv_47321: { tmp___0 = falcon_spi_poll(efx); } if (tmp___0 == 0) { return (0); } else { } if ((long )((unsigned long )jiffies - timeout) >= 0L) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for SPI\n"); } } else { } return (-110); } else { } { schedule_timeout_uninterruptible(1L); } goto ldv_47321; } } static int falcon_spi_cmd(struct efx_nic *efx , struct falcon_spi_device const *spi , unsigned int command , int address , void const *in , void *out , size_t len ) { bool addressed ; bool reading ; efx_oword_t reg ; int rc ; { addressed = address >= 0; reading = (unsigned long )out != (unsigned long )((void *)0); if (len > 16UL) { return (-22); } else { } { rc = falcon_spi_poll(efx); } if (rc != 0) { return (rc); } else { } if ((int )addressed) { { reg.u64[0] = (unsigned long long )address; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 272U); } } else { } if ((unsigned long )in != (unsigned long )((void const *)0)) { { memcpy((void *)(& reg), in, len); efx_writeo___0(efx, (efx_oword_t const *)(& reg), 288U); } } else { } { reg.u64[0] = ((((((unsigned long long )spi->device_id << 24) | ((unsigned long long )len << 16)) | ((unsigned long long )reading << 15)) | ((int )addressed ? (unsigned long long )spi->addr_len << 8 : 0ULL)) | (unsigned long long )command) | 2147483648ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 256U); rc = falcon_spi_wait(efx); } if (rc != 0) { return (rc); } else { } if ((unsigned long )out != (unsigned long )((void *)0)) { { efx_reado___1(efx, & reg, 288U); memcpy(out, (void const *)(& reg), len); } } else { } return (0); } } __inline static u8 falcon_spi_munge_command(struct falcon_spi_device const *spi , u8 const command , unsigned int const address ) { { return ((int )((u8 )command) | (((int )((u8 )(address >> 8)) & (int )((u8 )spi->munge_address)) << 3U)); } } static int falcon_spi_read(struct efx_nic *efx , struct falcon_spi_device const *spi , loff_t start , size_t len , size_t *retlen , u8 *buffer ) { size_t block_len ; size_t pos ; unsigned int command ; int rc ; size_t _min1 ; unsigned long _min2 ; u8 tmp ; struct task_struct *tmp___0 ; int tmp___1 ; { pos = 0UL; rc = 0; goto ldv_47358; ldv_47357: { _min1 = len - pos; _min2 = 16UL; block_len = _min1 < _min2 ? _min1 : _min2; tmp = falcon_spi_munge_command(spi, 3, (unsigned int const )start + (unsigned int const )pos); command = (unsigned int )tmp; rc = falcon_spi_cmd(efx, spi, command, (int )((unsigned int )start + (unsigned int )pos), (void const *)0, (void *)(buffer + pos), block_len); } if (rc != 0) { goto ldv_47355; } else { } { pos = pos + block_len; __might_sleep("drivers/net/ethernet/sfc/falcon.c", 615, 0); _cond_resched(); tmp___0 = get_current(); tmp___1 = signal_pending(tmp___0); } if (tmp___1 != 0) { rc = -4; goto ldv_47355; } else { } ldv_47358: ; if (pos < len) { goto ldv_47357; } else { } ldv_47355: ; if ((unsigned long )retlen != (unsigned long )((size_t *)0UL)) { *retlen = pos; } else { } return (rc); } } static size_t falcon_spi_write_limit(struct falcon_spi_device const *spi , size_t start ) { unsigned long _min1 ; size_t _min2 ; { _min1 = 16UL; _min2 = (size_t )spi->block_size - (start & (size_t )((unsigned int )spi->block_size - 1U)); return (_min1 < _min2 ? _min1 : _min2); } } static int falcon_spi_wait_write(struct efx_nic *efx , struct falcon_spi_device const *spi ) { unsigned long timeout ; u8 status ; int rc ; { timeout = (unsigned long )jiffies + 4UL; ldv_47383: { rc = falcon_spi_cmd(efx, spi, 5U, -1, (void const *)0, (void *)(& status), 1UL); } if (rc != 0) { return (rc); } else { } if (((int )status & 1) == 0) { return (0); } else { } if ((long )((unsigned long )jiffies - timeout) >= 0L) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "SPI write timeout on device %d last status=0x%02x\n", spi->device_id, (int )status); } } else { } return (-110); } else { } { schedule_timeout_uninterruptible(1L); } goto ldv_47383; } } static int falcon_spi_write(struct efx_nic *efx , struct falcon_spi_device const *spi , loff_t start , size_t len , size_t *retlen , u8 const *buffer ) { u8 verify_buffer[16U] ; size_t block_len ; size_t pos ; unsigned int command ; int rc ; size_t _min1 ; size_t _min2 ; size_t tmp ; u8 tmp___0 ; u8 tmp___1 ; int tmp___2 ; struct task_struct *tmp___3 ; int tmp___4 ; { pos = 0UL; rc = 0; goto ldv_47403; ldv_47402: { rc = falcon_spi_cmd(efx, spi, 6U, -1, (void const *)0, (void *)0, 0UL); } if (rc != 0) { goto ldv_47397; } else { } { _min1 = len - pos; tmp = falcon_spi_write_limit(spi, (size_t )((unsigned long long )start + (unsigned long long )pos)); _min2 = tmp; block_len = _min1 < _min2 ? _min1 : _min2; tmp___0 = falcon_spi_munge_command(spi, 2, (unsigned int const )start + (unsigned int const )pos); command = (unsigned int )tmp___0; rc = falcon_spi_cmd(efx, spi, command, (int )((unsigned int )start + (unsigned int )pos), (void const *)(buffer + pos), (void *)0, block_len); } if (rc != 0) { goto ldv_47397; } else { } { rc = falcon_spi_wait_write(efx, spi); } if (rc != 0) { goto ldv_47397; } else { } { tmp___1 = falcon_spi_munge_command(spi, 3, (unsigned int const )start + (unsigned int const )pos); command = (unsigned int )tmp___1; rc = falcon_spi_cmd(efx, spi, command, (int )((unsigned int )start + (unsigned int )pos), (void const *)0, (void *)(& verify_buffer), block_len); tmp___2 = memcmp((void const *)(& verify_buffer), (void const *)(buffer + pos), block_len); } if (tmp___2 != 0) { rc = -5; goto ldv_47397; } else { } { pos = pos + block_len; __might_sleep("drivers/net/ethernet/sfc/falcon.c", 708, 0); _cond_resched(); tmp___3 = get_current(); tmp___4 = signal_pending(tmp___3); } if (tmp___4 != 0) { rc = -4; goto ldv_47397; } else { } ldv_47403: ; if (pos < len) { goto ldv_47402; } else { } ldv_47397: ; if ((unsigned long )retlen != (unsigned long )((size_t *)0UL)) { *retlen = pos; } else { } return (rc); } } static int falcon_spi_slow_wait(struct falcon_mtd_partition *part , bool uninterruptible ) { struct falcon_spi_device const *spi ; struct efx_nic *efx ; u8 status ; int rc ; int i ; struct task_struct *tmp ; struct task_struct *tmp___0 ; int tmp___1 ; { spi = part->spi; efx = (struct efx_nic *)part->common.mtd.priv; i = 0; goto ldv_47414; ldv_47413: { tmp = get_current(); tmp->state = (int )uninterruptible ? 2L : 1L; schedule_timeout(25L); rc = falcon_spi_cmd(efx, spi, 5U, -1, (void const *)0, (void *)(& status), 1UL); } if (rc != 0) { return (rc); } else { } if (((int )status & 1) == 0) { return (0); } else { } { tmp___0 = get_current(); tmp___1 = signal_pending(tmp___0); } if (tmp___1 != 0) { return (-4); } else { } i = i + 1; ldv_47414: ; if (i <= 39) { goto ldv_47413; } else { } { printk("\v%s: timed out waiting for %s\n", (char *)(& part->common.name), part->common.dev_type_name); } return (-110); } } static int falcon_spi_unlock(struct efx_nic *efx , struct falcon_spi_device const *spi ) { u8 unlock_mask ; u8 status ; int rc ; { { unlock_mask = 28U; rc = falcon_spi_cmd(efx, spi, 5U, -1, (void const *)0, (void *)(& status), 1UL); } if (rc != 0) { return (rc); } else { } if (((unsigned int )status & 28U) == 0U) { return (0); } else { } { rc = falcon_spi_cmd(efx, spi, 6U, -1, (void const *)0, (void *)0, 0UL); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_cmd(efx, spi, 80U, -1, (void const *)0, (void *)0, 0UL); } if (rc != 0) { return (rc); } else { } { status = (unsigned int )status & 227U; rc = falcon_spi_cmd(efx, spi, 1U, -1, (void const *)(& status), (void *)0, 1UL); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_wait_write(efx, spi); } if (rc != 0) { return (rc); } else { } return (0); } } static int falcon_spi_erase(struct falcon_mtd_partition *part , loff_t start , size_t len ) { struct falcon_spi_device const *spi ; struct efx_nic *efx ; unsigned int pos ; unsigned int block_len ; u8 empty[16U] ; u8 buffer[16U] ; int rc ; size_t _min1 ; unsigned long _min2 ; int tmp ; struct task_struct *tmp___0 ; int tmp___1 ; { spi = part->spi; efx = (struct efx_nic *)part->common.mtd.priv; if (len != (size_t )spi->erase_size) { return (-22); } else { } if ((unsigned int )((unsigned char )spi->erase_command) == 0U) { return (-95); } else { } { rc = falcon_spi_unlock(efx, spi); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_cmd(efx, spi, 6U, -1, (void const *)0, (void *)0, 0UL); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_cmd(efx, spi, (unsigned int )spi->erase_command, (int )start, (void const *)0, (void *)0, 0UL); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_slow_wait(part, 0); memset((void *)(& empty), 255, 16UL); pos = 0U; } goto ldv_47440; ldv_47439: { _min1 = len - (size_t )pos; _min2 = 16UL; block_len = (unsigned int )(_min1 < _min2 ? _min1 : _min2); rc = falcon_spi_read(efx, spi, start + (loff_t )pos, (size_t )block_len, (size_t *)0UL, (u8 *)(& buffer)); } if (rc != 0) { return (rc); } else { } { tmp = memcmp((void const *)(& empty), (void const *)(& buffer), (size_t )block_len); } if (tmp != 0) { return (-5); } else { } { __might_sleep("drivers/net/ethernet/sfc/falcon.c", 824, 0); _cond_resched(); tmp___0 = get_current(); tmp___1 = signal_pending(tmp___0); } if (tmp___1 != 0) { return (-4); } else { } pos = pos + block_len; ldv_47440: ; if ((size_t )pos < len) { goto ldv_47439; } else { } return (rc); } } static void falcon_mtd_rename(struct efx_mtd_partition *part ) { struct efx_nic *efx ; { { efx = (struct efx_nic *)part->mtd.priv; snprintf((char *)(& part->name), 36UL, "%s %s", (char *)(& efx->name), part->type_name); } return; } } static int falcon_mtd_read(struct mtd_info *mtd , loff_t start , size_t len , size_t *retlen , u8 *buffer ) { struct falcon_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; struct falcon_nic_data *nic_data ; int rc ; { { __mptr = (struct mtd_info const *)mtd; part = (struct falcon_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; nic_data = (struct falcon_nic_data *)efx->nic_data; rc = mutex_lock_interruptible_nested(& nic_data->spi_lock, 0U); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_read(efx, part->spi, (loff_t )((unsigned long long )part->offset + (unsigned long long )start), len, retlen, buffer); mutex_unlock(& nic_data->spi_lock); } return (rc); } } static int falcon_mtd_erase(struct mtd_info *mtd , loff_t start , size_t len ) { struct falcon_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; struct falcon_nic_data *nic_data ; int rc ; { { __mptr = (struct mtd_info const *)mtd; part = (struct falcon_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; nic_data = (struct falcon_nic_data *)efx->nic_data; rc = mutex_lock_interruptible_nested(& nic_data->spi_lock, 0U); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_erase(part, (loff_t )((unsigned long long )part->offset + (unsigned long long )start), len); mutex_unlock(& nic_data->spi_lock); } return (rc); } } static int falcon_mtd_write(struct mtd_info *mtd , loff_t start , size_t len , size_t *retlen , u8 const *buffer ) { struct falcon_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; struct falcon_nic_data *nic_data ; int rc ; { { __mptr = (struct mtd_info const *)mtd; part = (struct falcon_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; nic_data = (struct falcon_nic_data *)efx->nic_data; rc = mutex_lock_interruptible_nested(& nic_data->spi_lock, 0U); } if (rc != 0) { return (rc); } else { } { rc = falcon_spi_write(efx, part->spi, (loff_t )((unsigned long long )part->offset + (unsigned long long )start), len, retlen, buffer); mutex_unlock(& nic_data->spi_lock); } return (rc); } } static int falcon_mtd_sync(struct mtd_info *mtd ) { struct falcon_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; struct falcon_nic_data *nic_data ; int rc ; { { __mptr = (struct mtd_info const *)mtd; part = (struct falcon_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; nic_data = (struct falcon_nic_data *)efx->nic_data; mutex_lock_nested(& nic_data->spi_lock, 0U); rc = falcon_spi_slow_wait(part, 1); mutex_unlock(& nic_data->spi_lock); } return (rc); } } static int falcon_mtd_probe(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; struct falcon_mtd_partition *parts ; struct falcon_spi_device *spi ; size_t n_parts ; int rc ; int tmp ; long tmp___0 ; void *tmp___1 ; bool tmp___2 ; unsigned int _min1 ; unsigned int _min2 ; bool tmp___3 ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; rc = -19; tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/falcon.c", 910); dump_stack(); } } else { } { tmp___1 = kcalloc(2UL, 1864UL, 208U); parts = (struct falcon_mtd_partition *)tmp___1; } if ((unsigned long )parts == (unsigned long )((struct falcon_mtd_partition *)0)) { return (-12); } else { } { n_parts = 0UL; spi = & nic_data->spi_flash; tmp___2 = falcon_spi_present((struct falcon_spi_device const *)spi); } if ((int )tmp___2 && spi->size > 32768U) { (parts + n_parts)->spi = (struct falcon_spi_device const *)spi; (parts + n_parts)->offset = 32768UL; (parts + n_parts)->common.dev_type_name = "flash"; (parts + n_parts)->common.type_name = "sfc_flash_bootrom"; (parts + n_parts)->common.mtd.type = 3U; (parts + n_parts)->common.mtd.flags = 3072U; (parts + n_parts)->common.mtd.size = (uint64_t )(spi->size - 32768U); (parts + n_parts)->common.mtd.erasesize = spi->erase_size; n_parts = n_parts + 1UL; } else { } { spi = & nic_data->spi_eeprom; tmp___3 = falcon_spi_present((struct falcon_spi_device const *)spi); } if ((int )tmp___3 && spi->size > 2048U) { (parts + n_parts)->spi = (struct falcon_spi_device const *)spi; (parts + n_parts)->offset = 2048UL; (parts + n_parts)->common.dev_type_name = "EEPROM"; (parts + n_parts)->common.type_name = "sfc_bootconfig"; (parts + n_parts)->common.mtd.type = 1U; (parts + n_parts)->common.mtd.flags = 7168U; _min1 = spi->size; _min2 = 6144U; (parts + n_parts)->common.mtd.size = (uint64_t )((_min1 < _min2 ? _min1 : _min2) - 2048U); (parts + n_parts)->common.mtd.erasesize = spi->erase_size; n_parts = n_parts + 1UL; } else { } { rc = efx_mtd_add(efx, & parts->common, n_parts, 1864UL); } if (rc != 0) { { kfree((void const *)parts); } } else { } return (rc); } } static void falcon_setup_xaui(struct efx_nic *efx ) { efx_oword_t sdctl ; efx_oword_t txdrv ; { if (efx->phy_type == 0U) { return; } else { } { efx_reado___1(efx, & sdctl, 4880U); sdctl.u64[0] = sdctl.u64[0] & 0xffffffffffff7fffULL; sdctl.u64[1] = sdctl.u64[1]; sdctl.u64[0] = sdctl.u64[0] & 0xffffffffffffbfffULL; sdctl.u64[1] = sdctl.u64[1]; sdctl.u64[0] = sdctl.u64[0] & 0xffffffffffffdfffULL; sdctl.u64[1] = sdctl.u64[1]; sdctl.u64[0] = sdctl.u64[0] & 0xffffffffffffefffULL; sdctl.u64[1] = sdctl.u64[1]; sdctl.u64[0] = sdctl.u64[0] & 0xfffffffffffff7ffULL; sdctl.u64[1] = sdctl.u64[1]; sdctl.u64[0] = sdctl.u64[0] & 0xfffffffffffffbffULL; sdctl.u64[1] = sdctl.u64[1]; sdctl.u64[0] = sdctl.u64[0] & 0xfffffffffffffdffULL; sdctl.u64[1] = sdctl.u64[1]; sdctl.u64[0] = sdctl.u64[0] & 0xfffffffffffffeffULL; sdctl.u64[1] = sdctl.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& sdctl), 4880U); txdrv.u64[0] = 4008596821ULL; txdrv.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& txdrv), 4896U); } return; } } int falcon_reset_xaui(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; efx_oword_t reg ; int count ; int __ret_warn_on ; long tmp ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; __ret_warn_on = nic_data->stats_disable_count == 0U; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1001); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); reg.u64[0] = 1ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4864U); count = 0; } goto ldv_47517; ldv_47516: { efx_reado___1(efx, & reg, 4864U); } if ((reg.u64[0] & 1ULL) == 0ULL && ((reg.u64[0] >> 16) & 1ULL) == 0ULL) { { falcon_setup_xaui(efx); } return (0); } else { } { __const_udelay(42950UL); count = count + 1; } ldv_47517: ; if (count <= 999) { goto ldv_47516; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for XAUI/XGXS reset\n"); } } else { } return (-110); } } static void falcon_ack_status_intr(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; efx_oword_t reg ; int tmp ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; tmp = efx_nic_rev(efx); } if (tmp != 2 || (66600958 >> (int )efx->loopback_mode) & 1) { return; } else { } if (! efx->link_state.up) { return; } else { } if ((int )nic_data->xmac_poll_required) { return; } else { } { efx_reado___1(efx, & reg, 4848U); } return; } } static bool falcon_xgxs_link_ok(struct efx_nic *efx ) { efx_oword_t reg ; bool align_done ; bool link_ok ; int sync_status ; { { link_ok = 0; efx_reado___1(efx, & reg, 4960U); align_done = ((reg.u64[0] >> 20) & 1ULL) != 0ULL; sync_status = (int )(reg.u64[0] >> 16) & 15; } if ((int )align_done && sync_status == 15) { link_ok = 1; } else { } { reg.u64[0] = reg.u64[0] | 61440ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 240ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 15ULL; reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4960U); } return (link_ok); } } static bool falcon_xmac_link_ok(struct efx_nic *efx ) { bool tmp ; bool tmp___0 ; int tmp___1 ; { if ((unsigned int )efx->loopback_mode == 3U) { goto _L; } else { { tmp = falcon_xgxs_link_ok(efx); } if ((int )tmp) { _L: /* CIL Label */ if ((efx->mdio.mmds & 16U) == 0U || (66600958 >> (int )efx->loopback_mode) & 1) { tmp___1 = 1; } else { { tmp___0 = efx_mdio_phyxgxs_lane_sync(efx); } if ((int )tmp___0) { tmp___1 = 1; } else { tmp___1 = 0; } } } else { tmp___1 = 0; } } return ((bool )tmp___1); } } static void falcon_reconfigure_xmac_core(struct efx_nic *efx ) { unsigned int max_frame_len ; efx_oword_t reg ; bool rx_fc ; bool tx_fc ; { { rx_fc = ((int )efx->link_state.fc & 2) != 0; tx_fc = ((int )efx->link_state.fc & 1) != 0; reg.u64[0] = 3136ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4640U); reg.u64[0] = ((unsigned long long )tx_fc << 10) | 196902ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4656U); reg.u64[0] = ((unsigned long long )(! efx->unicast_filter) << 9) | 33556482ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4672U); max_frame_len = (((efx->net_dev)->mtu + 29U) & 4294967288U) + 16U; reg.u64[0] = (unsigned long long )max_frame_len; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4832U); reg.u64[0] = ((unsigned long long )max_frame_len << 16) | 2147483648ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4816U); reg.u64[0] = (unsigned long long )(! rx_fc) | 4294836224ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4720U); memcpy((void *)(& reg), (void const *)(efx->net_dev)->dev_addr, 4UL); efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4608U); memcpy((void *)(& reg), (void const *)(efx->net_dev)->dev_addr + 4U, 2UL); efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4624U); } return; } } static void falcon_reconfigure_xgxs_core(struct efx_nic *efx ) { efx_oword_t reg ; bool xgxs_loopback ; bool xaui_loopback ; bool xgmii_loopback ; bool old_xgmii_loopback ; bool old_xgxs_loopback ; bool old_xaui_loopback ; { { xgxs_loopback = (unsigned int )efx->loopback_mode == 4U; xaui_loopback = (unsigned int )efx->loopback_mode == 5U; xgmii_loopback = (unsigned int )efx->loopback_mode == 3U; efx_reado___1(efx, & reg, 4960U); old_xgxs_loopback = ((reg.u64[0] >> 23) & 1ULL) != 0ULL; old_xgmii_loopback = ((reg.u64[0] >> 22) & 1ULL) != 0ULL; efx_reado___1(efx, & reg, 4880U); old_xaui_loopback = (reg.u64[0] & 1ULL) != 0ULL; } if (((int )xgxs_loopback != (int )old_xgxs_loopback || (int )xaui_loopback != (int )old_xaui_loopback) || (int )xgmii_loopback != (int )old_xgmii_loopback) { { falcon_reset_xaui(efx); } } else { } { efx_reado___1(efx, & reg, 4960U); reg.u64[0] = (reg.u64[0] & 0xffffffff00ffffffULL) | ((int )xgxs_loopback || (int )xaui_loopback ? 4278190080ULL : 0ULL); reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xffffffffff7fffffULL) | ((unsigned long long )xgxs_loopback << 23); reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xffffffffffbfffffULL) | ((unsigned long long )xgmii_loopback << 22); reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4960U); efx_reado___1(efx, & reg, 4880U); reg.u64[0] = (reg.u64[0] & 0xfffffffffffffff7ULL) | ((unsigned long long )xaui_loopback << 3); reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffffffffbULL) | ((unsigned long long )xaui_loopback << 2); reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffffffffdULL) | ((unsigned long long )xaui_loopback << 1); reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffffffffeULL) | (unsigned long long )xaui_loopback; reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4880U); } return; } } static bool falcon_xmac_link_ok_retry(struct efx_nic *efx , int tries ) { bool mac_up ; bool tmp ; bool tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; { { tmp = falcon_xmac_link_ok(efx); mac_up = tmp; } if ((((u64 )(1 << (int )efx->loopback_mode) & efx->loopback_modes) & 67108864ULL) != 0ULL) { return (mac_up); } else { { tmp___0 = efx_phy_mode_disabled(efx->phy_mode); } if ((int )tmp___0) { return (mac_up); } else { } } { falcon_stop_nic_stats(efx); } goto ldv_47559; ldv_47558: ; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_xmac_link_ok_retry"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "bashing xaui\n"; descriptor.lineno = 1187U; 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 *)efx->net_dev, "bashing xaui\n"); } } else { } } else { } { falcon_reset_xaui(efx); __const_udelay(859000UL); mac_up = falcon_xmac_link_ok(efx); tries = tries - 1; } ldv_47559: ; if (! mac_up && tries != 0) { goto ldv_47558; } else { } { falcon_start_nic_stats(efx); } return (mac_up); } } static bool falcon_xmac_check_fault(struct efx_nic *efx ) { bool tmp ; int tmp___0 ; { { tmp = falcon_xmac_link_ok_retry(efx, 5); } if ((int )tmp != 0) { tmp___0 = 0; } else { tmp___0 = 1; } return ((bool )tmp___0); } } static int falcon_reconfigure_xmac(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; bool tmp ; int tmp___0 ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; efx_farch_filter_sync_rx_mode(efx); falcon_reconfigure_xgxs_core(efx); falcon_reconfigure_xmac_core(efx); falcon_reconfigure_mac_wrapper(efx); tmp = falcon_xmac_link_ok_retry(efx, 5); } if ((int )tmp != 0) { tmp___0 = 0; } else { tmp___0 = 1; } { nic_data->xmac_poll_required = (bool )tmp___0; falcon_ack_status_intr(efx); } return (0); } } static void falcon_poll_xmac(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; bool tmp ; int tmp___0 ; { nic_data = (struct falcon_nic_data *)efx->nic_data; if (! efx->link_state.up || ! nic_data->xmac_poll_required) { return; } else { } { tmp = falcon_xmac_link_ok_retry(efx, 1); } if ((int )tmp != 0) { tmp___0 = 0; } else { tmp___0 = 1; } { nic_data->xmac_poll_required = (bool )tmp___0; falcon_ack_status_intr(efx); } return; } } static void falcon_push_multicast_hash(struct efx_nic *efx ) { union efx_multicast_hash *mc_hash ; int __ret_warn_on ; int tmp ; long tmp___0 ; { { mc_hash = & efx->multicast_hash; tmp = mutex_is_locked(& efx->mac_lock); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1245); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); efx_writeo___0(efx, (efx_oword_t const *)(& mc_hash->oword), 3232U); efx_writeo___0(efx, (efx_oword_t const *)(& mc_hash->oword) + 1U, 3248U); } return; } } static void falcon_reset_macs(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; efx_oword_t reg ; efx_oword_t mac_ctrl ; int count ; int tmp ; int __ret_warn_on ; long tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; tmp = efx_nic_rev(efx); } if (tmp <= 1) { { reg.u64[0] = 1ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 4640U); count = 0; } goto ldv_47586; ldv_47585: { efx_reado___1(efx, & reg, 4640U); } if ((reg.u64[0] & 1ULL) == 0ULL) { return; } else { } { __const_udelay(42950UL); count = count + 1; } ldv_47586: ; if (count <= 9999) { goto ldv_47585; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for XMAC core reset\n"); } } else { } } else { } { __ret_warn_on = nic_data->stats_disable_count == 0U; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1277); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); efx_reado___1(efx, & mac_ctrl, 3200U); mac_ctrl.u64[0] = mac_ctrl.u64[0] | 128ULL; mac_ctrl.u64[1] = mac_ctrl.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& mac_ctrl), 3200U); efx_reado___1(efx, & reg, 544U); reg.u64[0] = reg.u64[0] | 8388608ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 16777216ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 4194304ULL; reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 544U); count = 0; } ldv_47593: { efx_reado___1(efx, & reg, 544U); } if ((((reg.u64[0] >> 23) & 1ULL) == 0ULL && ((reg.u64[0] >> 24) & 1ULL) == 0ULL) && ((reg.u64[0] >> 22) & 1ULL) == 0ULL) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_reset_macs"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "Completed MAC reset after %d loops\n"; descriptor.lineno = 1297U; 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 *)efx->net_dev, "Completed MAC reset after %d loops\n", count); } } else { } } else { } goto ldv_47592; } else { } if (count > 20) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MAC reset failed\n"); } } else { } goto ldv_47592; } else { } { count = count + 1; __const_udelay(42950UL); } goto ldv_47593; ldv_47592: { efx_writeo___0(efx, (efx_oword_t const *)(& mac_ctrl), 3200U); falcon_setup_xaui(efx); } return; } } static void falcon_drain_tx_fifo(struct efx_nic *efx ) { efx_oword_t reg ; int tmp ; { { tmp = efx_nic_rev(efx); } if (tmp <= 1 || (unsigned int )efx->loopback_mode != 0U) { return; } else { } { efx_reado___1(efx, & reg, 3200U); } if ((int )(reg.u64[0] >> 7) & 1) { return; } else { } { falcon_reset_macs(efx); } return; } } static void falcon_deconfigure_mac_wrapper(struct efx_nic *efx ) { efx_oword_t reg ; int tmp ; { { tmp = efx_nic_rev(efx); } if (tmp <= 1) { return; } else { } { efx_reado___1(efx, & reg, 2048U); reg.u64[0] = reg.u64[0] & 0xffff7fffffffffffULL; reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 2048U); falcon_drain_tx_fifo(efx); } return; } } static void falcon_reconfigure_mac_wrapper(struct efx_nic *efx ) { struct efx_link_state *link_state ; efx_oword_t reg ; int link_speed ; int isolate ; int tmp ; int tmp___0 ; { link_state = & efx->link_state; isolate = (unsigned long )*((unsigned long volatile *)(& efx->reset_pending)) != 0UL; { if (link_state->speed == 10000U) { goto case_10000; } else { } if (link_state->speed == 1000U) { goto case_1000; } else { } if (link_state->speed == 100U) { goto case_100; } else { } goto switch_default; case_10000: /* CIL Label */ link_speed = 3; goto ldv_47610; case_1000: /* CIL Label */ link_speed = 2; goto ldv_47610; case_100: /* CIL Label */ link_speed = 1; goto ldv_47610; switch_default: /* CIL Label */ link_speed = 0; goto ldv_47610; switch_break: /* CIL Label */ ; } ldv_47610: { reg.u64[0] = (((unsigned long long )(! efx->unicast_filter) << 3) | (unsigned long long )link_speed) | 4294901780ULL; reg.u64[1] = 0ULL; tmp = efx_nic_rev(efx); } if (tmp > 1) { reg.u64[0] = (reg.u64[0] & 0xffffffffffffff7fULL) | ((unsigned long long )(! link_state->up || isolate != 0) << 7); reg.u64[1] = reg.u64[1]; } else { } { efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3200U); falcon_push_multicast_hash(efx); efx_reado___1(efx, & reg, 2048U); reg.u64[0] = reg.u64[0] | 1ULL; reg.u64[1] = reg.u64[1]; tmp___0 = efx_nic_rev(efx); } if (tmp___0 > 1) { reg.u64[0] = (reg.u64[0] & 0xffff7fffffffffffULL) | (isolate == 0 ? 140737488355328ULL : 0ULL); reg.u64[1] = reg.u64[1]; } else { } { efx_writeo___0(efx, (efx_oword_t const *)(& reg), 2048U); } return; } } static void falcon_stats_request(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; efx_oword_t reg ; int __ret_warn_on ; long tmp ; int __ret_warn_on___0 ; long tmp___0 ; unsigned long tmp___1 ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; __ret_warn_on = (int )nic_data->stats_pending; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1398); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); __ret_warn_on___0 = nic_data->stats_disable_count != 0U; tmp___0 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1399); } } else { } { ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); *((u32 *)efx->stats_buffer.addr + 212U) = 0U; nic_data->stats_pending = 1; __asm__ volatile ("sfence": : : "memory"); reg.u64[0] = efx->stats_buffer.dma_addr | 281474976710656ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3168U); tmp___1 = round_jiffies_up((unsigned long )jiffies + 125UL); ldv_mod_timer_76(& nic_data->stats_timer, tmp___1); } return; } } static void falcon_stats_complete(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; { nic_data = (struct falcon_nic_data *)efx->nic_data; if (! nic_data->stats_pending) { return; } else { } nic_data->stats_pending = 0; if (*((u32 *)efx->stats_buffer.addr + 212U) != 0U) { { __asm__ volatile ("lfence": : : "memory"); efx_nic_update_stats((struct efx_hw_stat_desc const *)(& falcon_stat_desc), 47UL, (unsigned long const *)(& falcon_stat_mask), (u64 *)(& nic_data->stats), (void const *)efx->stats_buffer.addr, 1); } } else if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for statistics\n"); } } else { } return; } } static void falcon_stats_timer_func(unsigned long context ) { struct efx_nic *efx ; struct falcon_nic_data *nic_data ; { { efx = (struct efx_nic *)context; nic_data = (struct falcon_nic_data *)efx->nic_data; ldv_spin_lock_77(& efx->stats_lock); falcon_stats_complete(efx); } if (nic_data->stats_disable_count == 0U) { { falcon_stats_request(efx); } } else { } { ldv_spin_unlock_78(& efx->stats_lock); } return; } } static bool falcon_loopback_link_poll(struct efx_nic *efx ) { struct efx_link_state old_state ; int __ret_warn_on ; int tmp ; long tmp___0 ; int __ret_warn_on___0 ; long tmp___1 ; bool tmp___2 ; int tmp___3 ; { { old_state = efx->link_state; tmp = mutex_is_locked(& efx->mac_lock); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1452); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); __ret_warn_on___0 = ((66600958 >> (int )efx->loopback_mode) & 1) == 0; tmp___1 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1453); } } else { } { ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); efx->link_state.fd = 1; efx->link_state.fc = efx->wanted_fc; efx->link_state.up = 1; efx->link_state.speed = 10000U; tmp___2 = efx_link_state_equal((struct efx_link_state const *)(& efx->link_state), (struct efx_link_state const *)(& old_state)); } if ((int )tmp___2 != 0) { tmp___3 = 0; } else { tmp___3 = 1; } return ((bool )tmp___3); } } static int falcon_reconfigure_port(struct efx_nic *efx ) { int rc ; int __ret_warn_on ; int tmp ; long tmp___0 ; long tmp___1 ; { { tmp = efx_nic_rev(efx); __ret_warn_on = tmp > 2; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 1467); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } if ((66600958 >> (int )efx->loopback_mode) & 1) { { falcon_loopback_link_poll(efx); } } else { { (*((efx->phy_op)->poll))(efx); } } { falcon_stop_nic_stats(efx); falcon_deconfigure_mac_wrapper(efx); falcon_reset_macs(efx); (*((efx->phy_op)->reconfigure))(efx); rc = falcon_reconfigure_xmac(efx); tmp___1 = ldv__builtin_expect(rc != 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 *)"drivers/net/ethernet/sfc/falcon.c"), "i" (1485), "i" (12UL)); __builtin_unreachable(); } } else { } { falcon_start_nic_stats(efx); efx_link_status_changed(efx); } return (0); } } static void falcon_a1_prepare_enable_fc_tx(struct efx_nic *efx ) { { { efx_schedule_reset(efx, 0); } return; } } static void falcon_b0_prepare_enable_fc_tx(struct efx_nic *efx ) { { { falcon_stop_nic_stats(efx); falcon_drain_tx_fifo(efx); falcon_reconfigure_xmac(efx); falcon_start_nic_stats(efx); } return; } } static int falcon_gmii_wait(struct efx_nic *efx ) { efx_oword_t md_stat ; int count ; { count = 0; goto ldv_47658; ldv_47657: { efx_reado___1(efx, & md_stat, 3152U); } if ((md_stat.u64[0] & 1ULL) == 0ULL) { if ((int )(md_stat.u64[0] >> 1) & 1 || (int )(md_stat.u64[0] >> 2) & 1) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "error from GMII access %08x:%08x:%08x:%08x\n", md_stat.u32[3], md_stat.u32[2], md_stat.u32[1], md_stat.u32[0]); } } else { } return (-5); } else { } return (0); } else { } { __const_udelay(42950UL); count = count + 1; } ldv_47658: ; if (count <= 4999) { goto ldv_47657; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for GMII\n"); } } else { } return (-110); } } static int falcon_mdio_write(struct net_device *net_dev , int prtad , int devad , u16 addr , u16 value ) { struct efx_nic *efx ; void *tmp ; struct falcon_nic_data *nic_data ; efx_oword_t reg ; int rc ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; nic_data = (struct falcon_nic_data *)efx->nic_data; mutex_lock_nested(& nic_data->mdio_lock, 0U); rc = falcon_gmii_wait(efx); } if (rc != 0) { goto out; } else { } { reg.u64[0] = (unsigned long long )addr; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3120U); reg.u64[0] = ((unsigned long long )prtad << 11) | ((unsigned long long )devad << 6); reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3136U); reg.u64[0] = (unsigned long long )value; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3072U); reg.u64[0] = 1ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3104U); rc = falcon_gmii_wait(efx); } if (rc != 0) { { reg.u64[0] = 16ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3104U); __const_udelay(42950UL); } } else { } out: { mutex_unlock(& nic_data->mdio_lock); } return (rc); } } static int falcon_mdio_read(struct net_device *net_dev , int prtad , int devad , u16 addr ) { struct efx_nic *efx ; void *tmp ; struct falcon_nic_data *nic_data ; efx_oword_t reg ; int rc ; struct _ddebug descriptor ; long tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; nic_data = (struct falcon_nic_data *)efx->nic_data; mutex_lock_nested(& nic_data->mdio_lock, 0U); rc = falcon_gmii_wait(efx); } if (rc != 0) { goto out; } else { } { reg.u64[0] = (unsigned long long )addr; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3120U); reg.u64[0] = ((unsigned long long )prtad << 11) | ((unsigned long long )devad << 6); reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3136U); reg.u64[0] = 2ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3104U); rc = falcon_gmii_wait(efx); } if (rc == 0) { { efx_reado___1(efx, & reg, 3088U); rc = (int )reg.u64[0] & 65535; } } else { { reg.u64[0] = 16ULL; reg.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 3104U); } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_mdio_read"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "read from MDIO %d register %d.%d, got error %d\n"; descriptor.lineno = 1647U; 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 *)efx->net_dev, "read from MDIO %d register %d.%d, got error %d\n", prtad, devad, (int )addr, rc); } } else { } } else { } } out: { mutex_unlock(& nic_data->mdio_lock); } return (rc); } } static int falcon_probe_port(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; int rc ; struct lock_class_key __key ; int tmp ; struct _ddebug descriptor ; phys_addr_t tmp___0 ; long tmp___1 ; { nic_data = (struct falcon_nic_data *)efx->nic_data; { if (efx->phy_type == 3U) { goto case_3; } else { } if (efx->phy_type == 4U) { goto case_4; } else { } if (efx->phy_type == 9U) { goto case_9; } else { } if (efx->phy_type == 1U) { goto case_1; } else { } goto switch_default; case_3: /* CIL Label */ efx->phy_op = & falcon_sfx7101_phy_ops; goto ldv_47693; case_4: /* CIL Label */ ; case_9: /* CIL Label */ efx->phy_op = & falcon_qt202x_phy_ops; goto ldv_47693; case_1: /* CIL Label */ efx->phy_op = & falcon_txc_phy_ops; goto ldv_47693; switch_default: /* CIL Label */ ; if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Unknown PHY type %d\n", efx->phy_type); } } else { } return (-19); switch_break: /* CIL Label */ ; } ldv_47693: { __mutex_init(& nic_data->mdio_lock, "&nic_data->mdio_lock", & __key); efx->mdio.mdio_read = & falcon_mdio_read; efx->mdio.mdio_write = & falcon_mdio_write; rc = (*((efx->phy_op)->probe))(efx); } if (rc != 0) { return (rc); } else { } { efx->link_state.speed = 10000U; efx->link_state.fd = 1; tmp = efx_nic_rev(efx); } if (tmp > 1) { efx->wanted_fc = 3U; } else { efx->wanted_fc = 2U; } if ((efx->mdio.mmds & 128U) != 0U) { efx->wanted_fc = (u8 )((unsigned int )efx->wanted_fc | 4U); } else { } { rc = efx_nic_alloc_buffer(efx, & efx->stats_buffer, 256U, 208U); } if (rc != 0) { return (rc); } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_probe_port"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "stats buffer at %llx (virt %p phys %llx)\n"; descriptor.lineno = 1707U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___1 != 0L) { { tmp___0 = virt_to_phys((void volatile *)efx->stats_buffer.addr); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "stats buffer at %llx (virt %p phys %llx)\n", efx->stats_buffer.dma_addr, efx->stats_buffer.addr, tmp___0); } } else { } } else { } return (0); } } static void falcon_remove_port(struct efx_nic *efx ) { { { (*((efx->phy_op)->remove))(efx); efx_nic_free_buffer(efx, & efx->stats_buffer); } return; } } static bool falcon_handle_global_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; struct falcon_nic_data *nic_data ; int tmp ; int tmp___0 ; int tmp___1 ; { efx = channel->efx; nic_data = (struct falcon_nic_data *)efx->nic_data; if (((int )(event->u64[0] >> 7) & 1 || (int )(event->u64[0] >> 9) & 1) || (int )(event->u64[0] >> 10) & 1) { return (1); } else { } { tmp = efx_nic_rev(efx); } if (tmp == 2 && (int )(event->u64[0] >> 11) & 1) { nic_data->xmac_poll_required = 1; return (1); } else { } { tmp___1 = efx_nic_rev(efx); } if (tmp___1 <= 1 ? (int )(event->u64[0] >> 11) & 1 : (int )(event->u64[0] >> 12) & 1) { if ((efx->msg_enable & 64U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d seen global RX_RESET event. Resetting.\n", channel->channel); } } else { } { atomic_inc(& efx->rx_reset); tmp___0 = efx_nic_rev(efx); efx_schedule_reset(efx, tmp___0 <= 1 ? 9 : 5); } return (1); } else { } return (0); } } static int falcon_read_nvram(struct efx_nic *efx , struct falcon_nvconfig *nvconfig_out ) { struct falcon_nic_data *nic_data ; struct falcon_nvconfig *nvconfig ; struct falcon_spi_device *spi ; void *region ; int rc ; int magic_num ; int struct_ver ; __le16 *word ; __le16 *limit ; u32 csum ; bool tmp ; bool tmp___0 ; bool tmp___1 ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; tmp___0 = falcon_spi_present((struct falcon_spi_device const *)(& nic_data->spi_flash)); } if ((int )tmp___0) { spi = & nic_data->spi_flash; } else { { tmp = falcon_spi_present((struct falcon_spi_device const *)(& nic_data->spi_eeprom)); } if ((int )tmp) { spi = & nic_data->spi_eeprom; } else { return (-22); } } { region = kmalloc(1024UL, 208U); } if ((unsigned long )region == (unsigned long )((void *)0)) { return (-12); } else { } { nvconfig = (struct falcon_nvconfig *)region + 768U; mutex_lock_nested(& nic_data->spi_lock, 0U); rc = falcon_spi_read(efx, (struct falcon_spi_device const *)spi, 0LL, 1024UL, (size_t *)0UL, (u8 *)region); mutex_unlock(& nic_data->spi_lock); } if (rc != 0) { if ((efx->msg_enable & 8192U) != 0U) { { tmp___1 = falcon_spi_present((struct falcon_spi_device const *)(& nic_data->spi_flash)); netdev_err((struct net_device const *)efx->net_dev, "Failed to read %s\n", (int )tmp___1 ? (char *)"flash" : (char *)"EEPROM"); } } else { } rc = -5; goto out; } else { } magic_num = (int )nvconfig->board_magic_num; struct_ver = (int )nvconfig->board_struct_ver; rc = -22; if (magic_num != 64028) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "NVRAM bad magic 0x%x\n", magic_num); } } else { } goto out; } else { } if (struct_ver <= 1) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "NVRAM has ancient version 0x%x\n", struct_ver); } } else { } goto out; } else if (struct_ver <= 3) { word = & nvconfig->board_magic_num; limit = (__le16 *)nvconfig + 1U; } else { word = (__le16 *)region; limit = (__le16 *)region + 1024U; } csum = 0U; goto ldv_47726; ldv_47725: csum = csum + (u32 )*word; word = word + 1; ldv_47726: ; if ((unsigned long )word < (unsigned long )limit) { goto ldv_47725; } else { } if ((~ csum & 65535U) != 0U) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "NVRAM has incorrect checksum\n"); } } else { } goto out; } else { } rc = 0; if ((unsigned long )nvconfig_out != (unsigned long )((struct falcon_nvconfig *)0)) { { memcpy((void *)nvconfig_out, (void const *)nvconfig, 200UL); } } else { } out: { kfree((void const *)region); } return (rc); } } static int falcon_test_nvram(struct efx_nic *efx ) { int tmp ; { { tmp = falcon_read_nvram(efx, (struct falcon_nvconfig *)0); } return (tmp); } } static struct efx_farch_register_test const falcon_b0_register_tests[18U] = { {0U, {.u32 = {262143U, 262143U, 262143U, 262143U}}}, {2048U, {.u32 = {4294967294U, 98303U, 0U, 0U}}}, {2640U, {.u32 = {2147418167U, 0U, 0U, 0U}}}, {2688U, {.u32 = {4294901376U, 536870911U, 33554686U, 8388607U}}}, {3200U, {.u32 = {4294901760U, 0U, 0U, 0U}}}, {1568U, {.u32 = {2097151U, 0U, 0U, 0U}}}, {2112U, {.u32 = {15U, 0U, 0U, 0U}}}, {2128U, {.u32 = {1023U, 0U, 0U, 0U}}}, {592U, {.u32 = {4095U, 0U, 0U, 0U}}}, {3600U, {.u32 = {29495U, 0U, 0U, 0U}}}, {3872U, {.u32 = {7967U, 0U, 0U, 0U}}}, {4640U, {.u32 = {3176U, 0U, 0U, 0U}}}, {4656U, {.u32 = {524644U, 0U, 0U, 0U}}}, {4672U, {.u32 = {118491660U, 0U, 0U, 0U}}}, {4832U, {.u32 = {8184U, 0U, 0U, 0U}}}, {4720U, {.u32 = {4294901761U, 0U, 0U, 0U}}}, {4608U, {.u32 = {4294967295U, 0U, 0U, 0U}}}, {4880U, {.u32 = {261903U, 0U, 0U, 0U}}}}; static int falcon_b0_test_chip(struct efx_nic *efx , struct efx_self_tests *tests ) { enum reset_type reset_method ; int rc ; int rc2 ; unsigned long tmp ; int tmp___0 ; { { reset_method = 0; mutex_lock_nested(& efx->mac_lock, 0U); } if (efx->loopback_modes != 0ULL) { if ((efx->loopback_modes & 8ULL) != 0ULL) { efx->loopback_mode = 3; } else { { tmp = __ffs((unsigned long )efx->loopback_modes); efx->loopback_mode = (enum efx_loopback_mode )tmp; } } } else { } { __efx_reconfigure_port(efx); mutex_unlock(& efx->mac_lock); efx_reset_down(efx, reset_method); tmp___0 = efx_farch_test_registers(efx, (struct efx_farch_register_test const *)(& falcon_b0_register_tests), 18UL); tests->registers = tmp___0 != 0 ? -1 : 1; rc = falcon_reset_hw(efx, reset_method); rc2 = efx_reset_up(efx, reset_method, rc == 0); } return (rc != 0 ? rc : rc2); } } static enum reset_type falcon_map_reset_reason(enum reset_type reason ) { { { if ((unsigned int )reason == 9U) { goto case_9; } else { } if ((unsigned int )reason == 10U) { goto case_10; } else { } if ((unsigned int )reason == 11U) { goto case_11; } else { } goto switch_default; case_9: /* CIL Label */ ; case_10: /* CIL Label */ ; case_11: /* CIL Label */ ; return (0); switch_default: /* CIL Label */ ; return (2); switch_break: /* CIL Label */ ; } } } static int falcon_map_reset_flags(u32 *flags ) { { if ((*flags & 126U) == 126U) { *flags = *flags & 4294967169U; return (3); } else { } if ((*flags & 124U) == 124U) { *flags = *flags & 4294967171U; return (2); } else { } if ((*flags & 60U) == 60U) { *flags = *flags & 4294967235U; return (0); } else { } return (-22); } } static int __falcon_reset_hw(struct efx_nic *efx , enum reset_type method ) { struct falcon_nic_data *nic_data ; efx_oword_t glb_ctl_reg_ker ; int rc ; struct _ddebug descriptor ; long tmp ; bool tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; bool tmp___2 ; struct _ddebug descriptor___1 ; long tmp___3 ; struct _ddebug descriptor___2 ; long tmp___4 ; { nic_data = (struct falcon_nic_data *)efx->nic_data; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "__falcon_reset_hw"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "performing %s hardware reset\n"; descriptor.lineno = 1963U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "performing %s hardware reset\n", (unsigned int )method < (unsigned int )efx_reset_type_max ? efx_reset_type_names[(unsigned int )method] : (char const */* const */)"(invalid)"); } } else { } } else { } if ((unsigned int )method == 3U) { { rc = pci_save_state(efx->pci_dev); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to backup PCI state of primary function prior to hardware reset\n"); } } else { } goto fail1; } else { } { tmp___0 = efx_nic_is_dual_func(efx); } if ((int )tmp___0) { { rc = pci_save_state(nic_data->pci_dev2); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to backup PCI state of secondary function prior to hardware reset\n"); } } else { } goto fail2; } else { } } else { } glb_ctl_reg_ker.u64[0] = 15ULL; glb_ctl_reg_ker.u64[1] = 0ULL; } else { glb_ctl_reg_ker.u64[0] = (unsigned int )method == 0U ? 0xa60200000000000fULL : 2738751523394682895ULL; glb_ctl_reg_ker.u64[1] = 0ULL; } { efx_writeo___0(efx, (efx_oword_t const *)(& glb_ctl_reg_ker), 544U); } if ((efx->msg_enable & 8192U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "__falcon_reset_hw"; descriptor___0.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor___0.format = "waiting for hardware reset\n"; descriptor___0.lineno = 2005U; 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 *)efx->net_dev, "waiting for hardware reset\n"); } } else { } } else { } { schedule_timeout_uninterruptible(12L); } if ((unsigned int )method == 3U) { { tmp___2 = efx_nic_is_dual_func(efx); } if ((int )tmp___2) { { pci_restore_state(nic_data->pci_dev2); } } else { } { pci_restore_state(efx->pci_dev); } if ((int )efx->msg_enable & 1) { { descriptor___1.modname = "sfc"; descriptor___1.function = "__falcon_reset_hw"; descriptor___1.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor___1.format = "successfully restored PCI config\n"; descriptor___1.lineno = 2014U; 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 *)efx->net_dev, "successfully restored PCI config\n"); } } else { } } else { } } else { } { efx_reado___1(efx, & glb_ctl_reg_ker, 544U); } if ((int )glb_ctl_reg_ker.u64[0] & 1) { rc = -110; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for hardware reset\n"); } } else { } goto fail3; } else { } if ((efx->msg_enable & 8192U) != 0U) { { descriptor___2.modname = "sfc"; descriptor___2.function = "__falcon_reset_hw"; descriptor___2.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor___2.format = "hardware reset complete\n"; descriptor___2.lineno = 2025U; 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 *)efx->net_dev, "hardware reset complete\n"); } } else { } } else { } return (0); fail2: { pci_restore_state(efx->pci_dev); } fail1: ; fail3: ; return (rc); } } static int falcon_reset_hw(struct efx_nic *efx , enum reset_type method ) { struct falcon_nic_data *nic_data ; int rc ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; mutex_lock_nested(& nic_data->spi_lock, 0U); rc = __falcon_reset_hw(efx, method); mutex_unlock(& nic_data->spi_lock); } return (rc); } } static void falcon_monitor(struct efx_nic *efx ) { bool link_changed ; int rc ; int tmp ; long tmp___0 ; struct falcon_board *tmp___1 ; int __ret_warn_on ; long tmp___2 ; long tmp___3 ; { { tmp = mutex_is_locked(& efx->mac_lock); 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 *)"drivers/net/ethernet/sfc/falcon.c"), "i" (2054), "i" (12UL)); __builtin_unreachable(); } } else { } { tmp___1 = falcon_board(efx); rc = (*((tmp___1->type)->monitor))(efx); } if (rc != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Board sensor %s; shutting down PHY\n", rc == -34 ? (char *)"reported fault" : (char *)"failed"); } } else { } { efx->phy_mode = (enum efx_phy_mode )((unsigned int )efx->phy_mode | 2U); rc = __efx_reconfigure_port(efx); __ret_warn_on = rc != 0; tmp___2 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___2 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/falcon.c", 2063); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } } else { } if ((66600958 >> (int )efx->loopback_mode) & 1) { { link_changed = falcon_loopback_link_poll(efx); } } else { { link_changed = (*((efx->phy_op)->poll))(efx); } } if ((int )link_changed) { { falcon_stop_nic_stats(efx); falcon_deconfigure_mac_wrapper(efx); falcon_reset_macs(efx); rc = falcon_reconfigure_xmac(efx); tmp___3 = ldv__builtin_expect(rc != 0, 0L); } if (tmp___3 != 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 *)"drivers/net/ethernet/sfc/falcon.c"), "i" (2077), "i" (12UL)); __builtin_unreachable(); } } else { } { falcon_start_nic_stats(efx); efx_link_status_changed(efx); } } else { } { falcon_poll_xmac(efx); } return; } } static int falcon_reset_sram(struct efx_nic *efx ) { efx_oword_t srm_cfg_reg_ker ; efx_oword_t gpio_cfg_reg_ker ; int count ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; { { efx_reado___1(efx, & gpio_cfg_reg_ker, 528U); gpio_cfg_reg_ker.u64[0] = gpio_cfg_reg_ker.u64[0] | 33554432ULL; gpio_cfg_reg_ker.u64[1] = gpio_cfg_reg_ker.u64[1]; gpio_cfg_reg_ker.u64[0] = gpio_cfg_reg_ker.u64[0] | 131072ULL; gpio_cfg_reg_ker.u64[1] = gpio_cfg_reg_ker.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& gpio_cfg_reg_ker), 528U); srm_cfg_reg_ker.u64[0] = 8ULL; srm_cfg_reg_ker.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& srm_cfg_reg_ker), 1584U); count = 0; } ldv_47792: ; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_reset_sram"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "waiting for SRAM reset (attempt %d)...\n"; descriptor.lineno = 2111U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "waiting for SRAM reset (attempt %d)...\n", count); } } else { } } else { } { schedule_timeout_uninterruptible(5L); efx_reado___1(efx, & srm_cfg_reg_ker, 1584U); } if (((srm_cfg_reg_ker.u64[0] >> 3) & 1ULL) == 0ULL) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "falcon_reset_sram"; descriptor___0.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor___0.format = "SRAM reset complete\n"; descriptor___0.lineno = 2120U; 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 *)efx->net_dev, "SRAM reset complete\n"); } } else { } } else { } return (0); } else { } count = count + 1; if (count <= 19) { goto ldv_47792; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for SRAM reset\n"); } } else { } return (-110); } } static void falcon_spi_device_init(struct efx_nic *efx , struct falcon_spi_device *spi_device , unsigned int device_id , u32 device_type ) { { if (device_type != 0U) { spi_device->device_id = (int )device_id; spi_device->size = (unsigned int )(1 << ((int )device_type & 31)); spi_device->addr_len = (device_type >> 6) & 3U; spi_device->munge_address = (unsigned char )(spi_device->size == 512U && spi_device->addr_len == 1U); spi_device->erase_command = (u8 )(device_type >> 8); spi_device->erase_size = (unsigned int )(1 << ((int )(device_type >> 16) & 31)); spi_device->block_size = (unsigned int )(1 << ((int )(device_type >> 24) & 31)); } else { spi_device->size = 0U; } return; } } static int falcon_probe_nvconfig(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; struct falcon_nvconfig *nvconfig ; int rc ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; tmp = kmalloc(200UL, 208U); nvconfig = (struct falcon_nvconfig *)tmp; } if ((unsigned long )nvconfig == (unsigned long )((struct falcon_nvconfig *)0)) { return (-12); } else { } { rc = falcon_read_nvram(efx, nvconfig); } if (rc != 0) { goto out; } else { } efx->phy_type = (unsigned int )nvconfig->board_v2.port0_phy_type; efx->mdio.prtad = (int )nvconfig->board_v2.port0_phy_addr; if ((unsigned int )nvconfig->board_struct_ver > 2U) { { falcon_spi_device_init(efx, & nic_data->spi_flash, 1U, nvconfig->board_v3.spi_device_type[1]); falcon_spi_device_init(efx, & nic_data->spi_eeprom, 0U, nvconfig->board_v3.spi_device_type[0]); } } else { } { memcpy((void *)(& (efx->net_dev)->perm_addr), (void const *)(& nvconfig->mac_address), 6UL); } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_probe_nvconfig"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "PHY is %d phy_id %d\n"; descriptor.lineno = 2188U; 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 *)efx->net_dev, "PHY is %d phy_id %d\n", efx->phy_type, efx->mdio.prtad); } } else { } } else { } { rc = falcon_probe_board(efx, (int )nvconfig->board_v2.board_revision); } out: { kfree((void const *)nvconfig); } return (rc); } } static int falcon_dimension_resources(struct efx_nic *efx ) { { efx->rx_dc_base = 131072U; efx->tx_dc_base = 155648U; return (0); } } static void falcon_probe_spi_devices(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; efx_oword_t nic_stat ; efx_oword_t gpio_ctl ; efx_oword_t ee_vpd_cfg ; int boot_dev ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct lock_class_key __key ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; efx_reado___1(efx, & gpio_ctl, 528U); efx_reado___1(efx, & nic_stat, 512U); efx_reado___1(efx, & ee_vpd_cfg, 320U); } if ((int )(gpio_ctl.u64[0] >> 3) & 1) { boot_dev = (int )(nic_stat.u64[0] >> 9) & 1; if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_probe_spi_devices"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "Booted from %s\n"; descriptor.lineno = 2220U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "Booted from %s\n", boot_dev == 1 ? (char *)"flash" : (char *)"EEPROM"); } } else { } } else { } } else { boot_dev = -1; if ((efx->msg_enable & 2U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "falcon_probe_spi_devices"; descriptor___0.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor___0.format = "Booted from internal ASIC settings; setting SPI config\n"; descriptor___0.lineno = 2227U; 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 *)efx->net_dev, "Booted from internal ASIC settings; setting SPI config\n"); } } else { } } else { } { ee_vpd_cfg.u64[0] = 0ULL; ee_vpd_cfg.u64[1] = 522136081798266880ULL; efx_writeo___0(efx, (efx_oword_t const *)(& ee_vpd_cfg), 320U); } } { __mutex_init(& nic_data->spi_lock, "&nic_data->spi_lock", & __key); } if (boot_dev == 1) { { falcon_spi_device_init(efx, & nic_data->spi_flash, 1U, default_flash_type); } } else { } if (boot_dev == 0) { { falcon_spi_device_init(efx, & nic_data->spi_eeprom, 0U, large_eeprom_type); } } else { } return; } } static unsigned int falcon_a1_mem_map_size(struct efx_nic *efx ) { { return (131072U); } } static unsigned int falcon_b0_mem_map_size(struct efx_nic *efx ) { { return (16451584U); } } static int falcon_probe_nic(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; struct falcon_board *board ; int rc ; void *tmp ; u32 tmp___0 ; efx_oword_t nic_stat ; struct pci_dev *dev ; u8 pci_rev ; int tmp___1 ; long tmp___2 ; struct _ddebug descriptor ; phys_addr_t tmp___3 ; long tmp___4 ; int tmp___5 ; struct falcon_board *tmp___6 ; struct lock_class_key __key ; { { efx->primary = efx; tmp = kzalloc(2912UL, 208U); nic_data = (struct falcon_nic_data *)tmp; } if ((unsigned long )nic_data == (unsigned long )((struct falcon_nic_data *)0)) { return (-12); } else { } { efx->nic_data = (void *)nic_data; rc = -19; tmp___0 = efx_farch_fpga_ver(efx); } if (tmp___0 != 0U) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Falcon FPGA not supported\n"); } } else { } goto fail1; } else { } { tmp___1 = efx_nic_rev(efx); } if (tmp___1 <= 1) { pci_rev = (efx->pci_dev)->revision; if ((unsigned int )pci_rev - 1U > 253U) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Falcon rev A0 not supported\n"); } } else { } goto fail1; } else { } { efx_reado___1(efx, & nic_stat, 512U); } if (((nic_stat.u64[0] >> 2) & 1ULL) == 0ULL) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Falcon rev A1 1G not supported\n"); } } else { } goto fail1; } else { } if ((nic_stat.u64[0] & 1ULL) == 0ULL) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Falcon rev A1 PCI-X not supported\n"); } } else { } goto fail1; } else { } { dev = pci_dev_get(efx->pci_dev); } goto ldv_47842; ldv_47841: ; if ((unsigned long )dev->bus == (unsigned long )(efx->pci_dev)->bus && dev->devfn == (efx->pci_dev)->devfn + 1U) { nic_data->pci_dev2 = dev; goto ldv_47840; } else { } ldv_47842: { dev = pci_get_device(6436U, 26371U, dev); } if ((unsigned long )dev != (unsigned long )((struct pci_dev *)0)) { goto ldv_47841; } else { } ldv_47840: ; if ((unsigned long )nic_data->pci_dev2 == (unsigned long )((struct pci_dev *)0)) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to find secondary function\n"); } } else { } rc = -19; goto fail2; } else { } } else { } { rc = __falcon_reset_hw(efx, 2); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to reset NIC\n"); } } else { } goto fail3; } else { } { rc = efx_nic_alloc_buffer(efx, & efx->irq_status, 16U, 208U); } if (rc != 0) { goto fail4; } else { } { tmp___2 = ldv__builtin_expect((efx->irq_status.dma_addr & 15ULL) != 0ULL, 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 *)"drivers/net/ethernet/sfc/falcon.c"), "i" (2336), "i" (12UL)); __builtin_unreachable(); } } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "falcon_probe_nic"; descriptor.filename = "drivers/net/ethernet/sfc/falcon.c"; descriptor.format = "INT_KER at %llx (virt %p phys %llx)\n"; descriptor.lineno = 2342U; descriptor.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___4 != 0L) { { tmp___3 = virt_to_phys((void volatile *)efx->irq_status.addr); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "INT_KER at %llx (virt %p phys %llx)\n", efx->irq_status.dma_addr, efx->irq_status.addr, tmp___3); } } else { } } else { } { falcon_probe_spi_devices(efx); rc = falcon_probe_nvconfig(efx); } if (rc != 0) { if (rc == -22) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "NVRAM is invalid\n"); } } else { } } else { } goto fail5; } else { } { tmp___5 = efx_nic_rev(efx); efx->max_channels = tmp___5 <= 1 ? 4U : 32U; efx->timer_quantum_ns = 4968U; board = falcon_board(efx); board->i2c_adap.owner = & __this_module; board->i2c_data = falcon_i2c_bit_operations; board->i2c_data.data = (void *)efx; board->i2c_adap.algo_data = (void *)(& board->i2c_data); board->i2c_adap.dev.parent = & (efx->pci_dev)->dev; strlcpy((char *)(& board->i2c_adap.name), "SFC4000 GPIO", 48UL); rc = i2c_bit_add_bus(& board->i2c_adap); } if (rc != 0) { goto fail5; } else { } { tmp___6 = falcon_board(efx); rc = (*((tmp___6->type)->init))(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to initialise board\n"); } } else { } goto fail6; } else { } { nic_data->stats_disable_count = 1U; init_timer_key(& nic_data->stats_timer, 0U, "((&nic_data->stats_timer))", & __key); nic_data->stats_timer.function = & falcon_stats_timer_func; nic_data->stats_timer.data = (unsigned long )efx; } return (0); fail6: { i2c_del_adapter(& board->i2c_adap); memset((void *)(& board->i2c_adap), 0, 1904UL); } fail5: { efx_nic_free_buffer(efx, & efx->irq_status); } fail4: ; fail3: ; if ((unsigned long )nic_data->pci_dev2 != (unsigned long )((struct pci_dev *)0)) { { pci_dev_put(nic_data->pci_dev2); nic_data->pci_dev2 = (struct pci_dev *)0; } } else { } fail2: ; fail1: { kfree((void const *)efx->nic_data); } return (rc); } } static void falcon_init_rx_cfg(struct efx_nic *efx ) { unsigned int ctrl_xon_thr ; unsigned int ctrl_xoff_thr ; efx_oword_t reg ; int tmp ; { { ctrl_xon_thr = 20U; ctrl_xoff_thr = 25U; efx_reado___1(efx, & reg, 2048U); tmp = efx_nic_rev(efx); } if (tmp <= 1) { reg.u64[0] = reg.u64[0] & 0xfffffff7ffffffffULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffff007ffULL) | 786432ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffffff83fULL) | 128ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xffffffffffffffc1ULL) | 16ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xffffffffc1ffffffULL) | 671088640ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffe0fffffULL) | 26214400ULL; reg.u64[1] = reg.u64[1]; } else { reg.u64[0] = reg.u64[0] & 0xfffff7ffffffffffULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffff007ffffULL) | 29360128ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffff803ffULL) | 110592ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffffffffc01ULL) | 424ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xffffffc1ffffffffULL) | 171798691840ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = (reg.u64[0] & 0xfffffffe0fffffffULL) | 6710886400ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 140737488355328ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 17592186044416ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 35184372088832ULL; reg.u64[1] = reg.u64[1]; reg.u64[0] = reg.u64[0] | 70368744177664ULL; reg.u64[1] = reg.u64[1]; } { reg.u64[0] = reg.u64[0] | 1ULL; reg.u64[1] = reg.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& reg), 2048U); } return; } } static int falcon_init_nic(struct efx_nic *efx ) { efx_oword_t temp ; int rc ; int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; { { efx_reado___1(efx, & temp, 512U); temp.u64[0] = temp.u64[0] | 65536ULL; temp.u64[1] = temp.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& temp), 512U); rc = falcon_reset_sram(efx); } if (rc != 0) { return (rc); } else { } { tmp = efx_nic_rev(efx); } if (tmp <= 1) { { efx_reado___1(efx, & temp, 784U); temp.u64[0] = temp.u64[0]; temp.u64[1] = temp.u64[1] & 0xfffffffffffffcffULL; efx_writeo___0(efx, (efx_oword_t const *)(& temp), 784U); } } else { } { tmp___0 = efx_nic_rev(efx); } if (tmp___0 <= 1) { { efx_reado___1(efx, & temp, 2064U); temp.u64[0] = (temp.u64[0] & 0xffffff00ffffffffULL) | 34359738368ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = (temp.u64[0] & 0xffffffffff00ffffULL) | 524288ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = (temp.u64[0] & 0xffffffffffffff00ULL) | 8ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = (temp.u64[0] & 0xffffffffffff00ffULL) | 2048ULL; temp.u64[1] = temp.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& temp), 2064U); } } else { } { efx_reado___1(efx, & temp, 2192U); temp.u64[0] = temp.u64[0] | 512ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 256ULL; temp.u64[1] = temp.u64[1]; tmp___1 = efx_nic_rev(efx); } if (tmp___1 <= 1) { temp.u64[0] = temp.u64[0] | 131072ULL; temp.u64[1] = temp.u64[1]; } else { } { efx_writeo___0(efx, (efx_oword_t const *)(& temp), 2192U); efx_reado___1(efx, & temp, 2640U); temp.u64[0] = temp.u64[0] & 0xffffffffffffffdfULL; temp.u64[1] = temp.u64[1]; efx_writeo___0(efx, (efx_oword_t const *)(& temp), 2640U); falcon_init_rx_cfg(efx); tmp___2 = efx_nic_rev(efx); } if (tmp___2 > 1) { { falcon_b0_rx_push_rss_config(efx); temp.u64[0] = 0ULL; temp.u64[1] = 0ULL; efx_writeo___0(efx, (efx_oword_t const *)(& temp), 592U); } } else { } { efx_farch_init_common(efx); } return (0); } } static void falcon_remove_nic(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; struct falcon_board *board ; struct falcon_board *tmp ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; tmp = falcon_board(efx); board = tmp; (*((board->type)->fini))(efx); i2c_del_adapter(& board->i2c_adap); memset((void *)(& board->i2c_adap), 0, 1904UL); efx_nic_free_buffer(efx, & efx->irq_status); __falcon_reset_hw(efx, 2); } if ((unsigned long )nic_data->pci_dev2 != (unsigned long )((struct pci_dev *)0)) { { pci_dev_put(nic_data->pci_dev2); nic_data->pci_dev2 = (struct pci_dev *)0; } } else { } { kfree((void const *)efx->nic_data); efx->nic_data = (void *)0; } return; } } static size_t falcon_describe_nic_stats(struct efx_nic *efx , u8 *names ) { size_t tmp ; { { tmp = efx_nic_describe_stats((struct efx_hw_stat_desc const *)(& falcon_stat_desc), 47UL, (unsigned long const *)(& falcon_stat_mask), names); } return (tmp); } } static size_t falcon_update_nic_stats(struct efx_nic *efx , u64 *full_stats , struct rtnl_link_stats64 *core_stats ) { struct falcon_nic_data *nic_data ; u64 *stats ; efx_oword_t cnt ; { nic_data = (struct falcon_nic_data *)efx->nic_data; stats = (u64 *)(& nic_data->stats); if (nic_data->stats_disable_count == 0U) { { efx_reado___1(efx, & cnt, 2176U); *(stats + 46UL) = *(stats + 46UL) + (cnt.u64[0] & 65535ULL); } if ((int )nic_data->stats_pending && *((u32 *)efx->stats_buffer.addr + 212U) != 0U) { { nic_data->stats_pending = 0; __asm__ volatile ("lfence": : : "memory"); efx_nic_update_stats((struct efx_hw_stat_desc const *)(& falcon_stat_desc), 47UL, (unsigned long const *)(& falcon_stat_mask), stats, (void const *)efx->stats_buffer.addr, 1); } } else { } { efx_update_diff_stat(stats + 21UL, (*(stats + 19UL) - *(stats + 20UL)) - *(stats + 26UL) * 64ULL); } } else { } if ((unsigned long )full_stats != (unsigned long )((u64 *)0ULL)) { { memcpy((void *)full_stats, (void const *)stats, 376UL); } } else { } if ((unsigned long )core_stats != (unsigned long )((struct rtnl_link_stats64 *)0)) { core_stats->rx_packets = *(stats + 22UL); core_stats->tx_packets = *(stats + 1UL); core_stats->rx_bytes = *(stats + 19UL); core_stats->tx_bytes = *stats; core_stats->rx_dropped = *(stats + 46UL); core_stats->multicast = *(stats + 28UL); core_stats->rx_length_errors = *(stats + 38UL) + *(stats + 44UL); core_stats->rx_crc_errors = *(stats + 24UL); core_stats->rx_frame_errors = *(stats + 43UL); core_stats->rx_fifo_errors = *(stats + 41UL); core_stats->rx_errors = ((core_stats->rx_length_errors + core_stats->rx_crc_errors) + core_stats->rx_frame_errors) + *(stats + 42UL); } else { } return (47UL); } } void falcon_start_nic_stats(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; ldv_spin_lock_bh_84(& efx->stats_lock); nic_data->stats_disable_count = nic_data->stats_disable_count - 1U; } if (nic_data->stats_disable_count == 0U) { { falcon_stats_request(efx); } } else { } { ldv_spin_unlock_bh_85(& efx->stats_lock); } return; } } static void falcon_pull_nic_stats(struct efx_nic *efx ) { { { msleep(10U); } return; } } void falcon_stop_nic_stats(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; int i ; { { nic_data = (struct falcon_nic_data *)efx->nic_data; __might_sleep("drivers/net/ethernet/sfc/falcon.c", 2627, 0); ldv_spin_lock_bh_84(& efx->stats_lock); nic_data->stats_disable_count = nic_data->stats_disable_count + 1U; ldv_spin_unlock_bh_85(& efx->stats_lock); ldv_del_timer_sync_83(& nic_data->stats_timer); i = 0; } goto ldv_47893; ldv_47892: ; if (*((u32 *)efx->stats_buffer.addr + 212U) != 0U) { goto ldv_47891; } else { } { msleep(1U); i = i + 1; } ldv_47893: ; if (i <= 3 && (int )nic_data->stats_pending) { goto ldv_47892; } else { } ldv_47891: { ldv_spin_lock_bh_84(& efx->stats_lock); falcon_stats_complete(efx); ldv_spin_unlock_bh_85(& efx->stats_lock); } return; } } static void falcon_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) { struct falcon_board *tmp ; { { tmp = falcon_board(efx); (*((tmp->type)->set_id_led))(efx, mode); } return; } } static void falcon_get_wol(struct efx_nic *efx , struct ethtool_wolinfo *wol ) { { { wol->supported = 0U; wol->wolopts = 0U; memset((void *)(& wol->sopass), 0, 6UL); } return; } } static int falcon_set_wol(struct efx_nic *efx , u32 type ) { { if (type != 0U) { return (-22); } else { } return (0); } } struct efx_nic_type const falcon_a1_nic_type = {& falcon_a1_mem_map_size, & falcon_probe_nic, & falcon_remove_nic, & falcon_init_nic, & falcon_dimension_resources, & falcon_irq_ack_a1, & falcon_monitor, & falcon_map_reset_reason, & falcon_map_reset_flags, & falcon_reset_hw, & falcon_probe_port, & falcon_remove_port, & falcon_handle_global_event, & efx_farch_fini_dmaq, & falcon_prepare_flush, & efx_port_dummy_op_void, & falcon_describe_nic_stats, & falcon_update_nic_stats, & falcon_start_nic_stats, & falcon_pull_nic_stats, & falcon_stop_nic_stats, & falcon_set_id_led, & falcon_push_irq_moderation, & falcon_reconfigure_port, & falcon_a1_prepare_enable_fc_tx, & falcon_reconfigure_xmac, & falcon_xmac_check_fault, & falcon_get_wol, & falcon_set_wol, & efx_port_dummy_op_void, 0, & falcon_test_nvram, 0, 0, 0, 0, & efx_farch_irq_enable_master, & efx_farch_irq_test_generate, & efx_farch_irq_disable_master, & efx_farch_msi_interrupt, & falcon_legacy_interrupt_a1, & efx_farch_tx_probe, & efx_farch_tx_init, & efx_farch_tx_remove, & efx_farch_tx_write, & efx_port_dummy_op_void, & efx_farch_rx_probe, & efx_farch_rx_init, & efx_farch_rx_remove, & efx_farch_rx_write, & efx_farch_rx_defer_refill, & efx_farch_ev_probe, & efx_farch_ev_init, & efx_farch_ev_fini, & efx_farch_ev_remove, & efx_farch_ev_process, & efx_farch_ev_read_ack, & efx_farch_ev_test_generate, & efx_farch_filter_table_probe, & efx_farch_filter_table_restore, & efx_farch_filter_table_remove, 0, & efx_farch_filter_insert, & efx_farch_filter_remove_safe, & efx_farch_filter_get_safe, & efx_farch_filter_clear_rx, & efx_farch_filter_count_rx_used, & efx_farch_filter_get_rx_id_limit, & efx_farch_filter_get_rx_ids, 0, 0, & falcon_mtd_probe, & falcon_mtd_rename, & falcon_mtd_read, & falcon_mtd_erase, & falcon_mtd_write, & falcon_mtd_sync, 0, 0, 0, 1, 71936U, 71680U, 98304U, 72192U, 72448U, 70368744177663ULL, 0U, 0U, 0U, 36U, 0, (_Bool)0, 1U, 4096U, 2ULL, -1, 0U, 0U}; struct efx_nic_type const falcon_b0_nic_type = {& falcon_b0_mem_map_size, & falcon_probe_nic, & falcon_remove_nic, & falcon_init_nic, & falcon_dimension_resources, & efx_port_dummy_op_void, & falcon_monitor, & falcon_map_reset_reason, & falcon_map_reset_flags, & falcon_reset_hw, & falcon_probe_port, & falcon_remove_port, & falcon_handle_global_event, & efx_farch_fini_dmaq, & falcon_prepare_flush, & efx_port_dummy_op_void, & falcon_describe_nic_stats, & falcon_update_nic_stats, & falcon_start_nic_stats, & falcon_pull_nic_stats, & falcon_stop_nic_stats, & falcon_set_id_led, & falcon_push_irq_moderation, & falcon_reconfigure_port, & falcon_b0_prepare_enable_fc_tx, & falcon_reconfigure_xmac, & falcon_xmac_check_fault, & falcon_get_wol, & falcon_set_wol, & efx_port_dummy_op_void, & falcon_b0_test_chip, & falcon_test_nvram, 0, 0, 0, 0, & efx_farch_irq_enable_master, & efx_farch_irq_test_generate, & efx_farch_irq_disable_master, & efx_farch_msi_interrupt, & efx_farch_legacy_interrupt, & efx_farch_tx_probe, & efx_farch_tx_init, & efx_farch_tx_remove, & efx_farch_tx_write, & falcon_b0_rx_push_rss_config, & efx_farch_rx_probe, & efx_farch_rx_init, & efx_farch_rx_remove, & efx_farch_rx_write, & efx_farch_rx_defer_refill, & efx_farch_ev_probe, & efx_farch_ev_init, & efx_farch_ev_fini, & efx_farch_ev_remove, & efx_farch_ev_process, & efx_farch_ev_read_ack, & efx_farch_ev_test_generate, & efx_farch_filter_table_probe, & efx_farch_filter_table_restore, & efx_farch_filter_table_remove, & efx_farch_filter_update_rx_scatter, & efx_farch_filter_insert, & efx_farch_filter_remove_safe, & efx_farch_filter_get_safe, & efx_farch_filter_clear_rx, & efx_farch_filter_count_rx_used, & efx_farch_filter_get_rx_id_limit, & efx_farch_filter_get_rx_ids, & efx_farch_filter_rfs_insert, & efx_farch_filter_rfs_expire_one, & falcon_mtd_probe, & falcon_mtd_rename, & falcon_mtd_read, & falcon_mtd_erase, & falcon_mtd_write, & falcon_mtd_sync, 0, 0, 0, 2, 16056320U, 15990784U, 8388608U, 16121856U, 16384000U, 70368744177663ULL, 16U, 12U, 0U, 0U, 1, (_Bool)0, 0U, 4096U, 3221225474ULL, -1, 8192U, 0U}; extern int ldv_del_timer_sync(int , struct timer_list * ) ; void ldv_io_instance_callback_10_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_10_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_10_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_10_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_10_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_10_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_10_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_10_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_10_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_10_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_10_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_10_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_10_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_10_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_10_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_10_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_10_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_10_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_10_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_10_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_10_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_10_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_10_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_10_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_10_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_10_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_10_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_10_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_10_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_10_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_10_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_10_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_10_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_10_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_10_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_10_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_10_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_10_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_10_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_10_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_10_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_10_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_11_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_11_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_11_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_11_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_11_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_11_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_11_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_11_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_11_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_11_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_11_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_11_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_11_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_11_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_11_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_11_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_11_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_11_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_11_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_11_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_11_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_11_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_11_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_11_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_11_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_11_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_11_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_11_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_11_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_11_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_11_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) ; void ldv_io_instance_callback_11_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) ; void ldv_io_instance_callback_11_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_11_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_11_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_11_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) ; void ldv_io_instance_callback_11_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_11_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_11_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_11_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_11_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_11_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_11_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_13_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_10_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_10_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_11_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_11_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_10_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_10_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_11_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_11_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; _Bool (*ldv_10_callback_check_mac_fault)(struct efx_nic * ) ; unsigned long (*ldv_10_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_10_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_10_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_10_callback_ev_init)(struct efx_channel * ) ; int (*ldv_10_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_10_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_10_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_10_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_10_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_10_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_10_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_10_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_10_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_10_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_10_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_10_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; int (*ldv_10_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_10_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_10_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_10_callback_fini)(struct efx_nic * ) ; int (*ldv_10_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_10_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_10_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_10_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_10_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_10_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_10_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; void (*ldv_10_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; _Bool (*ldv_10_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; void (*ldv_10_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_10_callback_init)(struct efx_nic * ) ; void (*ldv_10_callback_init_phy)(struct efx_nic * ) ; void (*ldv_10_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_10_callback_irq_enable_master)(struct efx_nic * ) ; enum irqreturn (*ldv_10_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_10_callback_irq_handle_msi)(int , void * ) ; void (*ldv_10_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_10_callback_map_reset_flags)(unsigned int * ) ; enum reset_type (*ldv_10_callback_map_reset_reason)(enum reset_type ) ; unsigned int (*ldv_10_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_10_callback_monitor)(struct efx_nic * ) ; int (*ldv_10_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_10_callback_mtd_probe)(struct efx_nic * ) ; int (*ldv_10_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_10_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_10_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_10_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; _Bool (*ldv_10_callback_poll)(struct efx_nic * ) ; void (*ldv_10_callback_post_remove)(struct efx_channel * ) ; int (*ldv_10_callback_pre_probe)(struct efx_channel * ) ; void (*ldv_10_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_10_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_10_callback_probe_port)(struct efx_nic * ) ; void (*ldv_10_callback_pull_stats)(struct efx_nic * ) ; void (*ldv_10_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_10_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_10_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_10_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_10_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_10_callback_remove_port)(struct efx_nic * ) ; int (*ldv_10_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_10_callback_resume_wol)(struct efx_nic * ) ; int (*ldv_10_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_10_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_10_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_10_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_10_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_10_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_10_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_10_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_10_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_10_callback_set_wol)(struct efx_nic * , unsigned int ) ; void (*ldv_10_callback_start_stats)(struct efx_nic * ) ; void (*ldv_10_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_10_callback_test_alive)(struct efx_nic * ) ; char *(*ldv_10_callback_test_name)(struct efx_nic * , unsigned int ) ; int (*ldv_10_callback_test_nvram)(struct efx_nic * ) ; void (*ldv_10_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_10_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_10_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_10_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_10_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_10_container_struct_efx_nic_type ; struct efx_phy_operations *ldv_10_container_struct_efx_phy_operations ; _Bool (*ldv_11_callback_check_mac_fault)(struct efx_nic * ) ; unsigned long (*ldv_11_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_11_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_11_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_11_callback_ev_init)(struct efx_channel * ) ; int (*ldv_11_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_11_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_11_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_11_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_11_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_11_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_11_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_11_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_11_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_11_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_11_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_11_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_11_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_11_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_11_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_11_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_11_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_11_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_11_callback_fini)(struct efx_nic * ) ; int (*ldv_11_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_11_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_11_callback_func_6_ptr)(struct efx_nic * ) ; int (*ldv_11_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) ; int (*ldv_11_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) ; void (*ldv_11_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_11_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; void (*ldv_11_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; _Bool (*ldv_11_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) ; void (*ldv_11_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_11_callback_init)(struct efx_nic * ) ; void (*ldv_11_callback_init_phy)(struct efx_nic * ) ; void (*ldv_11_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_11_callback_irq_enable_master)(struct efx_nic * ) ; enum irqreturn (*ldv_11_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_11_callback_irq_handle_msi)(int , void * ) ; void (*ldv_11_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_11_callback_map_reset_flags)(unsigned int * ) ; enum reset_type (*ldv_11_callback_map_reset_reason)(enum reset_type ) ; unsigned int (*ldv_11_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_11_callback_monitor)(struct efx_nic * ) ; int (*ldv_11_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_11_callback_mtd_probe)(struct efx_nic * ) ; int (*ldv_11_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_11_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_11_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_11_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; _Bool (*ldv_11_callback_poll)(struct efx_nic * ) ; void (*ldv_11_callback_post_remove)(struct efx_channel * ) ; int (*ldv_11_callback_pre_probe)(struct efx_channel * ) ; void (*ldv_11_callback_prepare_enable_fc_tx)(struct efx_nic * ) ; void (*ldv_11_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_11_callback_probe_port)(struct efx_nic * ) ; void (*ldv_11_callback_pull_stats)(struct efx_nic * ) ; void (*ldv_11_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_11_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_11_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_11_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_11_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_11_callback_remove_port)(struct efx_nic * ) ; int (*ldv_11_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_11_callback_resume_wol)(struct efx_nic * ) ; void (*ldv_11_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_11_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_11_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_11_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_11_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_11_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_11_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_11_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_11_callback_set_wol)(struct efx_nic * , unsigned int ) ; void (*ldv_11_callback_start_stats)(struct efx_nic * ) ; void (*ldv_11_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_11_callback_test_alive)(struct efx_nic * ) ; int (*ldv_11_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; int (*ldv_11_callback_test_nvram)(struct efx_nic * ) ; void (*ldv_11_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_11_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_11_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_11_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_11_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_11_container_struct_efx_nic_type ; struct efx_phy_operations *ldv_11_container_struct_efx_phy_operations ; void (*ldv_13_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_13_callback_irq_enable_master)(struct efx_nic * ) ; void (*ldv_13_callback_resume_wol)(struct efx_nic * ) ; void (*ldv_14_callback_fini)(struct efx_nic * ) ; void (*ldv_14_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_14_callback_irq_enable_master)(struct efx_nic * ) ; void (*ldv_14_callback_resume_wol)(struct efx_nic * ) ; void (*ldv_15_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_15_callback_irq_enable_master)(struct efx_nic * ) ; void (*ldv_15_callback_resume_wol)(struct efx_nic * ) ; void (*ldv_16_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_16_callback_irq_enable_master)(struct efx_nic * ) ; void (*ldv_16_callback_resume_wol)(struct efx_nic * ) ; void (*ldv_17_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_17_callback_irq_enable_master)(struct efx_nic * ) ; void (*ldv_17_callback_resume_wol)(struct efx_nic * ) ; void (*ldv_18_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_18_callback_irq_enable_master)(struct efx_nic * ) ; void (*ldv_18_callback_resume_wol)(struct efx_nic * ) ; void (*ldv_9_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_9_callback_irq_enable_master)(struct efx_nic * ) ; void (*ldv_9_callback_resume_wol)(struct efx_nic * ) ; int ldv_statevar_10 ; int ldv_statevar_11 ; _Bool (*ldv_10_callback_check_mac_fault)(struct efx_nic * ) = & falcon_xmac_check_fault; unsigned long (*ldv_10_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & falcon_describe_nic_stats; int (*ldv_10_callback_dimension_resources)(struct efx_nic * ) = & falcon_dimension_resources; void (*ldv_10_callback_fini)(struct efx_nic * ) = & falcon_irq_ack_a1; void (*ldv_10_callback_finish_flush)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_10_callback_func_6_ptr)(struct efx_nic * ) = & falcon_monitor; void (*ldv_10_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & falcon_get_wol; _Bool (*ldv_10_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) = & falcon_handle_global_event; int (*ldv_10_callback_init)(struct efx_nic * ) = & falcon_init_nic; enum irqreturn (*ldv_10_callback_irq_handle_legacy)(int , void * ) = & falcon_legacy_interrupt_a1; int (*ldv_10_callback_map_reset_flags)(unsigned int * ) = & falcon_map_reset_flags; enum reset_type (*ldv_10_callback_map_reset_reason)(enum reset_type ) = & falcon_map_reset_reason; unsigned int (*ldv_10_callback_mem_map_size)(struct efx_nic * ) = & falcon_a1_mem_map_size; int (*ldv_10_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & falcon_mtd_erase; int (*ldv_10_callback_mtd_probe)(struct efx_nic * ) = & falcon_mtd_probe; int (*ldv_10_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & falcon_mtd_read; void (*ldv_10_callback_mtd_rename)(struct efx_mtd_partition * ) = & falcon_mtd_rename; int (*ldv_10_callback_mtd_sync)(struct mtd_info * ) = & falcon_mtd_sync; int (*ldv_10_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& falcon_mtd_write); void (*ldv_10_callback_prepare_enable_fc_tx)(struct efx_nic * ) = & falcon_a1_prepare_enable_fc_tx; void (*ldv_10_callback_prepare_flush)(struct efx_nic * ) = & falcon_prepare_flush; int (*ldv_10_callback_probe_port)(struct efx_nic * ) = & falcon_probe_port; void (*ldv_10_callback_pull_stats)(struct efx_nic * ) = & falcon_pull_nic_stats; void (*ldv_10_callback_push_irq_moderation)(struct efx_channel * ) = & falcon_push_irq_moderation; int (*ldv_10_callback_reconfigure_mac)(struct efx_nic * ) = & falcon_reconfigure_xmac; int (*ldv_10_callback_reconfigure_port)(struct efx_nic * ) = & falcon_reconfigure_port; void (*ldv_10_callback_remove_port)(struct efx_nic * ) = & falcon_remove_port; int (*ldv_10_callback_reset)(struct efx_nic * , enum reset_type ) = & falcon_reset_hw; void (*ldv_10_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_10_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_port_dummy_op_void; int (*ldv_10_callback_set_wol)(struct efx_nic * , unsigned int ) = & falcon_set_wol; void (*ldv_10_callback_start_stats)(struct efx_nic * ) = & falcon_start_nic_stats; void (*ldv_10_callback_stop_stats)(struct efx_nic * ) = & falcon_stop_nic_stats; int (*ldv_10_callback_test_nvram)(struct efx_nic * ) = & falcon_test_nvram; unsigned long (*ldv_10_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & falcon_update_nic_stats; _Bool (*ldv_11_callback_check_mac_fault)(struct efx_nic * ) = & falcon_xmac_check_fault; unsigned long (*ldv_11_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & falcon_describe_nic_stats; int (*ldv_11_callback_dimension_resources)(struct efx_nic * ) = & falcon_dimension_resources; void (*ldv_11_callback_finish_flush)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_11_callback_func_6_ptr)(struct efx_nic * ) = & falcon_monitor; void (*ldv_11_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & falcon_get_wol; _Bool (*ldv_11_callback_handle_global_event)(struct efx_channel * , union efx_qword * ) = & falcon_handle_global_event; int (*ldv_11_callback_map_reset_flags)(unsigned int * ) = & falcon_map_reset_flags; enum reset_type (*ldv_11_callback_map_reset_reason)(enum reset_type ) = & falcon_map_reset_reason; unsigned int (*ldv_11_callback_mem_map_size)(struct efx_nic * ) = & falcon_b0_mem_map_size; int (*ldv_11_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & falcon_mtd_erase; int (*ldv_11_callback_mtd_probe)(struct efx_nic * ) = & falcon_mtd_probe; int (*ldv_11_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & falcon_mtd_read; void (*ldv_11_callback_mtd_rename)(struct efx_mtd_partition * ) = & falcon_mtd_rename; int (*ldv_11_callback_mtd_sync)(struct mtd_info * ) = & falcon_mtd_sync; int (*ldv_11_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& falcon_mtd_write); void (*ldv_11_callback_prepare_enable_fc_tx)(struct efx_nic * ) = & falcon_b0_prepare_enable_fc_tx; void (*ldv_11_callback_prepare_flush)(struct efx_nic * ) = & falcon_prepare_flush; int (*ldv_11_callback_probe_port)(struct efx_nic * ) = & falcon_probe_port; void (*ldv_11_callback_pull_stats)(struct efx_nic * ) = & falcon_pull_nic_stats; void (*ldv_11_callback_push_irq_moderation)(struct efx_channel * ) = & falcon_push_irq_moderation; int (*ldv_11_callback_reconfigure_mac)(struct efx_nic * ) = & falcon_reconfigure_xmac; int (*ldv_11_callback_reconfigure_port)(struct efx_nic * ) = & falcon_reconfigure_port; void (*ldv_11_callback_remove_port)(struct efx_nic * ) = & falcon_remove_port; int (*ldv_11_callback_reset)(struct efx_nic * , enum reset_type ) = & falcon_reset_hw; void (*ldv_11_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_11_callback_rx_push_rss_config)(struct efx_nic * ) = & falcon_b0_rx_push_rss_config; int (*ldv_11_callback_set_wol)(struct efx_nic * , unsigned int ) = & falcon_set_wol; void (*ldv_11_callback_start_stats)(struct efx_nic * ) = & falcon_start_nic_stats; void (*ldv_11_callback_stop_stats)(struct efx_nic * ) = & falcon_stop_nic_stats; int (*ldv_11_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & falcon_b0_test_chip; int (*ldv_11_callback_test_nvram)(struct efx_nic * ) = & falcon_test_nvram; unsigned long (*ldv_11_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & falcon_update_nic_stats; void (*ldv_13_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_13_callback_irq_enable_master)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_13_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_14_callback_fini)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_14_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_14_callback_irq_enable_master)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_14_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_15_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_15_callback_irq_enable_master)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_15_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_16_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_16_callback_irq_enable_master)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_16_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_17_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_17_callback_irq_enable_master)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_17_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_18_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_18_callback_irq_enable_master)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_18_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; int (*ldv_19_callback_getscl)(void * ) = & falcon_getscl; int (*ldv_19_callback_getsda)(void * ) = & falcon_getsda; void (*ldv_19_callback_setscl)(void * , int ) = & falcon_setscl; void (*ldv_19_callback_setsda)(void * , int ) = & falcon_setsda; void (*ldv_9_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_9_callback_irq_enable_master)(struct efx_nic * ) = & efx_port_dummy_op_void; void (*ldv_9_callback_resume_wol)(struct efx_nic * ) = & efx_port_dummy_op_void; void ldv_base_instance_callback_19_24(int (*arg0)(void * ) , void *arg1 ) { { { falcon_getsda(arg1); } return; } } void ldv_base_instance_callback_19_27(void (*arg0)(void * , int ) , void *arg1 , int arg2 ) { { { falcon_setscl(arg1, arg2); } return; } } void ldv_base_instance_callback_19_30(void (*arg0)(void * , int ) , void *arg1 , int arg2 ) { { { falcon_setsda(arg1, arg2); } return; } } void ldv_base_instance_callback_19_9(int (*arg0)(void * ) , void *arg1 ) { { { falcon_getscl(arg1); } return; } } void ldv_io_instance_callback_10_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { falcon_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_10_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { falcon_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_10_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { falcon_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_10_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_a1_prepare_enable_fc_tx(arg1); } return; } } void ldv_io_instance_callback_10_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_prepare_flush(arg1); } return; } } void ldv_io_instance_callback_10_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_probe_port(arg1); } return; } } void ldv_io_instance_callback_10_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_pull_nic_stats(arg1); } return; } } void ldv_io_instance_callback_10_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { falcon_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_10_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_reconfigure_xmac(arg1); } return; } } void ldv_io_instance_callback_10_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_reconfigure_port(arg1); } return; } } void ldv_io_instance_callback_10_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_remove_port(arg1); } return; } } void ldv_io_instance_callback_10_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { falcon_reset_hw(arg1, arg2); } return; } } void ldv_io_instance_callback_10_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_10_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_10_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { falcon_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_10_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_start_nic_stats(arg1); } return; } } void ldv_io_instance_callback_10_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_stop_nic_stats(arg1); } return; } } void ldv_io_instance_callback_10_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_test_nvram(arg1); } return; } } void ldv_io_instance_callback_10_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { falcon_update_nic_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_10_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { falcon_describe_nic_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_10_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_10_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_xmac_check_fault(arg1); } return; } } void ldv_io_instance_callback_10_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_irq_ack_a1(arg1); } return; } } void ldv_io_instance_callback_10_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_10_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_monitor(arg1); } return; } } void ldv_io_instance_callback_10_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { falcon_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_10_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { falcon_handle_global_event(arg1, arg2); } return; } } void ldv_io_instance_callback_10_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_init_nic(arg1); } return; } } void ldv_io_instance_callback_10_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { falcon_legacy_interrupt_a1(arg1, arg2); } return; } } void ldv_io_instance_callback_10_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { falcon_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_10_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { falcon_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_10_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_a1_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_10_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { falcon_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_10_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_10_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { falcon_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_11_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { falcon_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_11_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { falcon_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_11_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { falcon_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_11_110(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_b0_prepare_enable_fc_tx(arg1); } return; } } void ldv_io_instance_callback_11_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_prepare_flush(arg1); } return; } } void ldv_io_instance_callback_11_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_probe_port(arg1); } return; } } void ldv_io_instance_callback_11_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_pull_nic_stats(arg1); } return; } } void ldv_io_instance_callback_11_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { falcon_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_11_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_reconfigure_xmac(arg1); } return; } } void ldv_io_instance_callback_11_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_reconfigure_port(arg1); } return; } } void ldv_io_instance_callback_11_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_remove_port(arg1); } return; } } void ldv_io_instance_callback_11_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { falcon_reset_hw(arg1, arg2); } return; } } void ldv_io_instance_callback_11_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_11_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_b0_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_11_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { falcon_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_11_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_start_nic_stats(arg1); } return; } } void ldv_io_instance_callback_11_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_stop_nic_stats(arg1); } return; } } void ldv_io_instance_callback_11_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { falcon_b0_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_11_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_test_nvram(arg1); } return; } } void ldv_io_instance_callback_11_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { falcon_update_nic_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_11_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { falcon_describe_nic_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_11_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_11_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_xmac_check_fault(arg1); } return; } } void ldv_io_instance_callback_11_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_11_58(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_monitor(arg1); } return; } } void ldv_io_instance_callback_11_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { falcon_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_11_68(_Bool (*arg0)(struct efx_channel * , union efx_qword * ) , struct efx_channel *arg1 , union efx_qword *arg2 ) { { { falcon_handle_global_event(arg1, arg2); } return; } } void ldv_io_instance_callback_11_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { falcon_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_11_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { falcon_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_11_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_b0_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_11_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { falcon_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_11_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_11_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { falcon_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_13_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_13_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_13_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_14_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_14_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_14_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_14_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_15_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_15_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_15_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_16_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_16_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_16_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_17_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_17_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_17_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_18_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_18_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_18_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_9_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_9_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_9_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_port_dummy_op_void(arg1); } return; } } int ldv_io_instance_probe_11_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = falcon_probe_nic(arg1); } return (tmp); } } int ldv_io_instance_probe_11_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = falcon_probe_nic(arg1); } return (tmp); } } void ldv_io_instance_release_11_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_remove_nic(arg1); } return; } } void ldv_io_instance_release_11_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { falcon_remove_nic(arg1); } return; } } void ldv_struct_falcon_board_type_io_instance_10(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_10 == 1) { goto case_1; } else { } if (ldv_statevar_10 == 2) { goto case_2; } else { } if (ldv_statevar_10 == 3) { goto case_3; } else { } if (ldv_statevar_10 == 4) { goto case_4; } else { } if (ldv_statevar_10 == 6) { goto case_6; } else { } if (ldv_statevar_10 == 8) { goto case_8; } else { } if (ldv_statevar_10 == 10) { goto case_10; } else { } if (ldv_statevar_10 == 11) { goto case_11; } else { } if (ldv_statevar_10 == 13) { goto case_13; } else { } if (ldv_statevar_10 == 14) { goto case_14; } else { } if (ldv_statevar_10 == 17) { goto case_17; } else { } if (ldv_statevar_10 == 18) { goto case_18; } else { } if (ldv_statevar_10 == 20) { goto case_20; } else { } if (ldv_statevar_10 == 22) { goto case_22; } else { } if (ldv_statevar_10 == 23) { goto case_23; } else { } if (ldv_statevar_10 == 24) { goto case_24; } else { } if (ldv_statevar_10 == 25) { goto case_25; } else { } if (ldv_statevar_10 == 27) { goto case_27; } else { } if (ldv_statevar_10 == 29) { goto case_29; } else { } if (ldv_statevar_10 == 30) { goto case_30; } else { } if (ldv_statevar_10 == 31) { goto case_31; } else { } if (ldv_statevar_10 == 32) { goto case_32; } else { } if (ldv_statevar_10 == 33) { goto case_33; } else { } if (ldv_statevar_10 == 34) { goto case_34; } else { } if (ldv_statevar_10 == 36) { goto case_36; } else { } if (ldv_statevar_10 == 39) { goto case_39; } else { } if (ldv_statevar_10 == 42) { goto case_42; } else { } if (ldv_statevar_10 == 45) { goto case_45; } else { } if (ldv_statevar_10 == 48) { goto case_48; } else { } if (ldv_statevar_10 == 50) { goto case_50; } else { } if (ldv_statevar_10 == 51) { goto case_51; } else { } if (ldv_statevar_10 == 52) { goto case_52; } else { } if (ldv_statevar_10 == 53) { goto case_53; } else { } if (ldv_statevar_10 == 54) { goto case_54; } else { } if (ldv_statevar_10 == 55) { goto case_55; } else { } if (ldv_statevar_10 == 56) { goto case_56; } else { } if (ldv_statevar_10 == 57) { goto case_57; } else { } if (ldv_statevar_10 == 58) { goto case_58; } else { } if (ldv_statevar_10 == 60) { goto case_60; } else { } if (ldv_statevar_10 == 62) { goto case_62; } else { } if (ldv_statevar_10 == 64) { goto case_64; } else { } if (ldv_statevar_10 == 66) { goto case_66; } else { } if (ldv_statevar_10 == 67) { goto case_67; } else { } if (ldv_statevar_10 == 68) { goto case_68; } else { } if (ldv_statevar_10 == 69) { goto case_69; } else { } if (ldv_statevar_10 == 70) { goto case_70; } else { } if (ldv_statevar_10 == 71) { goto case_71; } else { } if (ldv_statevar_10 == 72) { goto case_72; } else { } if (ldv_statevar_10 == 73) { goto case_73; } else { } if (ldv_statevar_10 == 75) { goto case_75; } else { } if (ldv_statevar_10 == 78) { goto case_78; } else { } if (ldv_statevar_10 == 80) { goto case_80; } else { } if (ldv_statevar_10 == 82) { goto case_82; } else { } if (ldv_statevar_10 == 84) { goto case_84; } else { } if (ldv_statevar_10 == 85) { goto case_85; } else { } if (ldv_statevar_10 == 86) { goto case_86; } else { } if (ldv_statevar_10 == 88) { goto case_88; } else { } if (ldv_statevar_10 == 91) { goto case_91; } else { } if (ldv_statevar_10 == 93) { goto case_93; } else { } if (ldv_statevar_10 == 94) { goto case_94; } else { } if (ldv_statevar_10 == 96) { goto case_96; } else { } if (ldv_statevar_10 == 98) { goto case_98; } else { } if (ldv_statevar_10 == 100) { goto case_100; } else { } if (ldv_statevar_10 == 102) { goto case_102; } else { } if (ldv_statevar_10 == 103) { goto case_103; } else { } if (ldv_statevar_10 == 105) { goto case_105; } else { } if (ldv_statevar_10 == 107) { goto case_107; } else { } if (ldv_statevar_10 == 108) { goto case_108; } else { } if (ldv_statevar_10 == 109) { goto case_109; } else { } if (ldv_statevar_10 == 110) { goto case_110; } else { } if (ldv_statevar_10 == 111) { goto case_111; } else { } if (ldv_statevar_10 == 112) { goto case_112; } else { } if (ldv_statevar_10 == 113) { goto case_113; } else { } if (ldv_statevar_10 == 115) { goto case_115; } else { } if (ldv_statevar_10 == 118) { goto case_118; } else { } if (ldv_statevar_10 == 120) { goto case_120; } else { } if (ldv_statevar_10 == 121) { goto case_121; } else { } if (ldv_statevar_10 == 122) { goto case_122; } else { } if (ldv_statevar_10 == 123) { goto case_123; } else { } if (ldv_statevar_10 == 124) { goto case_124; } else { } if (ldv_statevar_10 == 125) { goto case_125; } else { } if (ldv_statevar_10 == 126) { goto case_126; } else { } if (ldv_statevar_10 == 127) { goto case_127; } else { } if (ldv_statevar_10 == 128) { goto case_128; } else { } if (ldv_statevar_10 == 130) { goto case_130; } else { } if (ldv_statevar_10 == 132) { goto case_132; } else { } if (ldv_statevar_10 == 133) { goto case_133; } else { } if (ldv_statevar_10 == 134) { goto case_134; } else { } if (ldv_statevar_10 == 135) { goto case_135; } else { } if (ldv_statevar_10 == 136) { goto case_136; } else { } if (ldv_statevar_10 == 137) { goto case_137; } else { } if (ldv_statevar_10 == 138) { goto case_138; } else { } if (ldv_statevar_10 == 140) { goto case_140; } else { } if (ldv_statevar_10 == 142) { goto case_142; } else { } if (ldv_statevar_10 == 144) { goto case_144; } else { } if (ldv_statevar_10 == 146) { goto case_146; } else { } if (ldv_statevar_10 == 147) { goto case_147; } else { } if (ldv_statevar_10 == 148) { goto case_148; } else { } if (ldv_statevar_10 == 149) { goto case_149; } else { } if (ldv_statevar_10 == 151) { goto case_151; } else { } if (ldv_statevar_10 == 153) { goto case_153; } else { } if (ldv_statevar_10 == 154) { goto case_154; } else { } if (ldv_statevar_10 == 155) { goto case_155; } else { } if (ldv_statevar_10 == 156) { goto case_156; } else { } if (ldv_statevar_10 == 157) { goto case_157; } else { } if (ldv_statevar_10 == 159) { goto case_159; } else { } if (ldv_statevar_10 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_10 = ldv_switch_6(); } goto ldv_50585; case_2: /* CIL Label */ { ldv_io_instance_release_10_2(ldv_10_container_struct_efx_nic_type->remove, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 1; } goto ldv_50585; case_3: /* CIL Label */ { ldv_statevar_10 = ldv_switch_7(); } goto ldv_50585; case_4: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_10_4(ldv_10_callback_check_mac_fault, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_6: /* CIL Label */ { ldv_free((void *)ldv_10_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_10_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_10_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_10_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_10_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_10_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_10_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_10_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_10_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_10_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_10_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_10_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_10_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_10_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_10_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_10_resource_union_efx_dword_ptr); ldv_free((void *)ldv_10_resource_union_efx_qword_ptr); ldv_10_ret_default = 1; ldv_statevar_10 = 14; } goto ldv_50585; case_8: /* CIL Label */ { ldv_assume(ldv_10_ret_default != 0); ldv_statevar_10 = ldv_switch_6(); } goto ldv_50585; case_10: /* CIL Label */ { ldv_assume(ldv_10_ret_default == 0); ldv_statevar_10 = ldv_switch_7(); } goto ldv_50585; case_11: /* CIL Label */ { ldv_10_ret_default = ldv_io_instance_probe_10_11(ldv_10_container_struct_efx_nic_type->probe, ldv_10_resource_struct_efx_nic_ptr); ldv_10_ret_default = ldv_filter_err_code(ldv_10_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_10 = 8; } else { ldv_statevar_10 = 10; } goto ldv_50585; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_10_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_10_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_10_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_10_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_10_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_10_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_10_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_10_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_10_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_10_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_10_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_10_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_10_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_10_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_10_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_10_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_10_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_10 = ldv_switch_6(); } goto ldv_50585; case_14: /* CIL Label */ ; goto ldv_50585; case_17: /* CIL Label */ { ldv_io_instance_release_10_17(ldv_10_container_struct_efx_phy_operations->remove, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 1; } goto ldv_50585; case_18: /* CIL Label */ { ldv_io_instance_callback_10_18(ldv_10_callback_copy, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_10_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_10_19(ldv_10_callback_describe_stats, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_19_1_default); ldv_free((void *)ldv_10_ldv_param_19_1_default); ldv_statevar_10 = 3; } goto ldv_50585; case_22: /* CIL Label */ { ldv_io_instance_callback_10_22(ldv_10_callback_dimension_resources, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_23: /* CIL Label */ { ldv_io_instance_callback_10_23(ldv_10_callback_ev_fini, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_24: /* CIL Label */ { ldv_io_instance_callback_10_24(ldv_10_callback_ev_init, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_25: /* CIL Label */ { ldv_io_instance_callback_10_25(ldv_10_callback_ev_probe, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_27: /* CIL Label */ { ldv_io_instance_callback_10_26(ldv_10_callback_ev_process, ldv_10_resource_struct_efx_channel_ptr, ldv_10_ldv_param_26_1_default); ldv_statevar_10 = 3; } goto ldv_50585; case_29: /* CIL Label */ { ldv_io_instance_callback_10_29(ldv_10_callback_ev_read_ack, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_30: /* CIL Label */ { ldv_io_instance_callback_10_30(ldv_10_callback_ev_remove, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_31: /* CIL Label */ { ldv_io_instance_callback_10_31(ldv_10_callback_ev_test_generate, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_32: /* CIL Label */ { ldv_io_instance_callback_10_32(ldv_10_callback_filter_clear_rx, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_enum_efx_filter_priority); ldv_statevar_10 = 3; } goto ldv_50585; case_33: /* CIL Label */ { ldv_io_instance_callback_10_33(ldv_10_callback_filter_count_rx_used, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_enum_efx_filter_priority); ldv_statevar_10 = 3; } goto ldv_50585; case_34: /* CIL Label */ { ldv_io_instance_callback_10_34(ldv_10_callback_filter_get_rx_id_limit, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_10_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_10_35(ldv_10_callback_filter_get_rx_ids, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_enum_efx_filter_priority, ldv_10_ldv_param_35_2_default, ldv_10_ldv_param_35_3_default); ldv_free((void *)ldv_10_ldv_param_35_2_default); ldv_statevar_10 = 3; } goto ldv_50585; case_39: /* CIL Label */ { ldv_io_instance_callback_10_38(ldv_10_callback_filter_get_safe, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_enum_efx_filter_priority, ldv_10_ldv_param_38_2_default, ldv_10_resource_struct_efx_filter_spec_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_42: /* CIL Label */ { ldv_io_instance_callback_10_41(ldv_10_callback_filter_insert, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_efx_filter_spec_ptr, (int )ldv_10_ldv_param_41_2_default); ldv_statevar_10 = 3; } goto ldv_50585; case_45: /* CIL Label */ { ldv_io_instance_callback_10_44(ldv_10_callback_filter_remove_safe, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_enum_efx_filter_priority, ldv_10_ldv_param_44_2_default); ldv_statevar_10 = 3; } goto ldv_50585; case_48: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_filter_rfs_expire_one != (unsigned long )((_Bool (*)(struct efx_nic * , unsigned int , unsigned int ))0)) { { ldv_io_instance_callback_10_47(ldv_10_callback_filter_rfs_expire_one, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_47_1_default, ldv_10_ldv_param_47_2_default); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_50: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_filter_rfs_insert != (unsigned long )((int (*)(struct efx_nic * , struct efx_filter_spec * ))0)) { { ldv_io_instance_callback_10_50(ldv_10_callback_filter_rfs_insert, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_efx_filter_spec_ptr); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_51: /* CIL Label */ { ldv_io_instance_callback_10_51(ldv_10_callback_filter_table_probe, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_52: /* CIL Label */ { ldv_io_instance_callback_10_52(ldv_10_callback_filter_table_remove, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_53: /* CIL Label */ { ldv_io_instance_callback_10_53(ldv_10_callback_filter_table_restore, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_54: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_filter_update_rx_scatter != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_10_54(ldv_10_callback_filter_update_rx_scatter, ldv_10_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_55: /* CIL Label */ { ldv_io_instance_callback_10_55(ldv_10_callback_fini, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_56: /* CIL Label */ { ldv_io_instance_callback_10_56(ldv_10_callback_fini_dmaq, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_57: /* CIL Label */ { ldv_io_instance_callback_10_57(ldv_10_callback_finish_flush, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_58: /* CIL Label */ { ldv_assume((unsigned int )ldv_statevar_22 - 2U <= 1U); ldv_io_instance_callback_10_58(ldv_10_callback_func_6_ptr, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_10_ldv_param_59_2_default = (unsigned char *)tmp___19; ldv_io_instance_callback_10_59(ldv_10_callback_get_module_eeprom, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_ethtool_eeprom_ptr, ldv_10_ldv_param_59_2_default); ldv_free((void *)ldv_10_ldv_param_59_2_default); ldv_statevar_10 = 3; } goto ldv_50585; case_62: /* CIL Label */ { ldv_io_instance_callback_10_62(ldv_10_callback_get_module_info, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_ethtool_modinfo_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_10_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_10_63(ldv_10_callback_get_name, ldv_10_resource_struct_efx_channel_ptr, ldv_10_ldv_param_63_1_default, ldv_10_ldv_param_63_2_default); ldv_free((void *)ldv_10_ldv_param_63_1_default); ldv_statevar_10 = 3; } goto ldv_50585; case_66: /* CIL Label */ { ldv_io_instance_callback_10_66(ldv_10_callback_get_settings, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_ethtool_cmd_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_67: /* CIL Label */ { ldv_io_instance_callback_10_67(ldv_10_callback_get_wol, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_68: /* CIL Label */ { ldv_io_instance_callback_10_68(ldv_10_callback_handle_global_event, ldv_10_resource_struct_efx_channel_ptr, ldv_10_resource_union_efx_qword_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_69: /* CIL Label */ { ldv_io_instance_callback_10_69(ldv_10_callback_handle_no_channel, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_70: /* CIL Label */ { ldv_io_instance_callback_10_70(ldv_10_callback_init, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_71: /* CIL Label */ { ldv_io_instance_callback_10_71(ldv_10_callback_init_phy, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_72: /* CIL Label */ { ldv_io_instance_callback_10_72(ldv_10_callback_irq_disable_non_ev, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_73: /* CIL Label */ { ldv_io_instance_callback_10_73(ldv_10_callback_irq_enable_master, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_75: /* CIL Label */ { ldv_io_instance_callback_10_74(ldv_10_callback_irq_handle_legacy, ldv_10_ldv_param_74_0_default, (void *)ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_78: /* CIL Label */ { ldv_io_instance_callback_10_77(ldv_10_callback_irq_handle_msi, ldv_10_ldv_param_77_0_default, (void *)ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_80: /* CIL Label */ { ldv_io_instance_callback_10_80(ldv_10_callback_irq_test_generate, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_10_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_10_81(ldv_10_callback_map_reset_flags, ldv_10_ldv_param_81_0_default); ldv_free((void *)ldv_10_ldv_param_81_0_default); ldv_statevar_10 = 3; } goto ldv_50585; case_84: /* CIL Label */ { ldv_io_instance_callback_10_84(ldv_10_callback_map_reset_reason, ldv_10_resource_enum_reset_type); ldv_statevar_10 = 3; } goto ldv_50585; case_85: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_mcdi_poll_reboot != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_10_85(ldv_10_callback_mcdi_poll_reboot, ldv_10_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_86: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_mcdi_poll_response != (unsigned long )((_Bool (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_10_86(ldv_10_callback_mcdi_poll_response, ldv_10_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_88: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_mcdi_read_response != (unsigned long )((void (*)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ))0)) { { ldv_io_instance_callback_10_87(ldv_10_callback_mcdi_read_response, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_union_efx_dword_ptr, ldv_10_ldv_param_87_2_default, ldv_10_ldv_param_87_3_default); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_10_ldv_param_90_3_default = (union efx_dword *)tmp___22; } if ((unsigned long )ldv_10_callback_mcdi_request != (unsigned long )((void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))0)) { { ldv_io_instance_callback_10_90(ldv_10_callback_mcdi_request, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_union_efx_dword_ptr, ldv_10_ldv_param_90_2_default, ldv_10_ldv_param_90_3_default, ldv_10_ldv_param_90_4_default); } } else { } { ldv_free((void *)ldv_10_ldv_param_90_3_default); ldv_statevar_10 = 3; } goto ldv_50585; case_93: /* CIL Label */ { ldv_io_instance_callback_10_93(ldv_10_callback_mem_map_size, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_94: /* CIL Label */ { ldv_io_instance_callback_10_94(ldv_10_callback_monitor, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_96: /* CIL Label */ { ldv_io_instance_callback_10_95(ldv_10_callback_mtd_erase, ldv_10_resource_struct_mtd_info_ptr, ldv_10_ldv_param_95_1_default, ldv_10_ldv_param_95_2_default); ldv_statevar_10 = 3; } goto ldv_50585; case_98: /* CIL Label */ { ldv_io_instance_callback_10_98(ldv_10_callback_mtd_probe, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_10_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_10_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_10_99(ldv_10_callback_mtd_read, ldv_10_resource_struct_mtd_info_ptr, ldv_10_ldv_param_99_1_default, ldv_10_ldv_param_99_2_default, ldv_10_ldv_param_99_3_default, ldv_10_ldv_param_99_4_default); ldv_free((void *)ldv_10_ldv_param_99_3_default); ldv_free((void *)ldv_10_ldv_param_99_4_default); ldv_statevar_10 = 3; } goto ldv_50585; case_102: /* CIL Label */ { ldv_io_instance_callback_10_102(ldv_10_callback_mtd_rename, ldv_10_resource_struct_efx_mtd_partition_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_103: /* CIL Label */ { ldv_io_instance_callback_10_103(ldv_10_callback_mtd_sync, ldv_10_resource_struct_mtd_info_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_10_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_10_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_10_104(ldv_10_callback_mtd_write, ldv_10_resource_struct_mtd_info_ptr, ldv_10_ldv_param_104_1_default, ldv_10_ldv_param_104_2_default, ldv_10_ldv_param_104_3_default, ldv_10_ldv_param_104_4_default); ldv_free((void *)ldv_10_ldv_param_104_3_default); ldv_free((void *)ldv_10_ldv_param_104_4_default); ldv_statevar_10 = 3; } goto ldv_50585; case_107: /* CIL Label */ { ldv_io_instance_callback_10_107(ldv_10_callback_poll, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_108: /* CIL Label */ { ldv_io_instance_callback_10_108(ldv_10_callback_post_remove, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_109: /* CIL Label */ { ldv_io_instance_callback_10_109(ldv_10_callback_pre_probe, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_110: /* CIL Label */ { ldv_io_instance_callback_10_110(ldv_10_callback_prepare_enable_fc_tx, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_111: /* CIL Label */ { ldv_io_instance_callback_10_111(ldv_10_callback_prepare_flush, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_112: /* CIL Label */ { ldv_io_instance_callback_10_112(ldv_10_callback_probe_port, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_113: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_ptp_set_ts_config != (unsigned long )((int (*)(struct efx_nic * , struct hwtstamp_config * ))0)) { { ldv_io_instance_callback_10_113(ldv_10_callback_ptp_set_ts_config, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_hwtstamp_config_ptr); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_115: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_ptp_set_ts_sync_events != (unsigned long )((int (*)(struct efx_nic * , _Bool , _Bool ))0)) { { ldv_io_instance_callback_10_114(ldv_10_callback_ptp_set_ts_sync_events, ldv_10_resource_struct_efx_nic_ptr, (int )ldv_10_ldv_param_114_1_default, (int )ldv_10_ldv_param_114_2_default); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_118: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_ptp_write_host_time != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_10_117(ldv_10_callback_ptp_write_host_time, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_117_1_default); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_120: /* CIL Label */ { ldv_io_instance_callback_10_120(ldv_10_callback_pull_stats, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_121: /* CIL Label */ { ldv_io_instance_callback_10_121(ldv_10_callback_push_irq_moderation, ldv_10_resource_struct_efx_channel_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_122: /* CIL Label */ { ldv_io_instance_callback_10_122(ldv_10_callback_receive_skb, ldv_10_resource_struct_efx_channel_ptr, ldv_10_resource_struct_sk_buff_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_123: /* CIL Label */ { ldv_io_instance_callback_10_123(ldv_10_callback_reconfigure, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_124: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_10_124(ldv_10_callback_reconfigure_mac, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_125: /* CIL Label */ { ldv_assume((unsigned int )ldv_statevar_22 - 2U <= 1U); ldv_io_instance_callback_10_125(ldv_10_callback_reconfigure_port, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_126: /* CIL Label */ { ldv_io_instance_callback_10_126(ldv_10_callback_remove_port, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_127: /* CIL Label */ { ldv_io_instance_callback_10_127(ldv_10_callback_reset, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_enum_reset_type); ldv_statevar_10 = 3; } goto ldv_50585; case_128: /* CIL Label */ { ldv_io_instance_callback_10_128(ldv_10_callback_resume_wol, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_10_ldv_param_129_1_default = (int *)tmp___27; ldv_io_instance_callback_10_129(ldv_10_callback_run_tests, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_129_1_default, ldv_10_ldv_param_129_2_default); ldv_free((void *)ldv_10_ldv_param_129_1_default); ldv_statevar_10 = 3; } goto ldv_50585; case_132: /* CIL Label */ { ldv_io_instance_callback_10_132(ldv_10_callback_rx_defer_refill, ldv_10_resource_struct_efx_rx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_133: /* CIL Label */ { ldv_io_instance_callback_10_133(ldv_10_callback_rx_init, ldv_10_resource_struct_efx_rx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_134: /* CIL Label */ { ldv_io_instance_callback_10_134(ldv_10_callback_rx_probe, ldv_10_resource_struct_efx_rx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_135: /* CIL Label */ { ldv_io_instance_callback_10_135(ldv_10_callback_rx_push_rss_config, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_136: /* CIL Label */ { ldv_io_instance_callback_10_136(ldv_10_callback_rx_remove, ldv_10_resource_struct_efx_rx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_137: /* CIL Label */ { ldv_io_instance_callback_10_137(ldv_10_callback_rx_write, ldv_10_resource_struct_efx_rx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_138: /* CIL Label */ { ldv_io_instance_callback_10_138(ldv_10_callback_set_id_led, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_enum_efx_led_mode); ldv_statevar_10 = 3; } goto ldv_50585; case_140: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_10_139(ldv_10_callback_set_npage_adv, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_139_1_default); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_142: /* CIL Label */ { ldv_io_instance_callback_10_142(ldv_10_callback_set_settings, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_ethtool_cmd_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_144: /* CIL Label */ { ldv_io_instance_callback_10_143(ldv_10_callback_set_wol, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_143_1_default); ldv_statevar_10 = 3; } goto ldv_50585; case_146: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_10_146(ldv_10_callback_start_stats, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_147: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_10_147(ldv_10_callback_stop_stats, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_148: /* CIL Label */ { ldv_io_instance_callback_10_148(ldv_10_callback_test_alive, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_149: /* CIL Label */ ; if ((unsigned long )ldv_10_callback_test_chip != (unsigned long )((int (*)(struct efx_nic * , struct efx_self_tests * ))0)) { { ldv_io_instance_callback_10_149(ldv_10_callback_test_chip, ldv_10_resource_struct_efx_nic_ptr, ldv_10_resource_struct_efx_self_tests_ptr); } } else { } ldv_statevar_10 = 3; goto ldv_50585; case_151: /* CIL Label */ { ldv_io_instance_callback_10_150(ldv_10_callback_test_name, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_150_1_default); ldv_statevar_10 = 3; } goto ldv_50585; case_153: /* CIL Label */ { ldv_io_instance_callback_10_153(ldv_10_callback_test_nvram, ldv_10_resource_struct_efx_nic_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_154: /* CIL Label */ { ldv_io_instance_callback_10_154(ldv_10_callback_tx_init, ldv_10_resource_struct_efx_tx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_155: /* CIL Label */ { ldv_io_instance_callback_10_155(ldv_10_callback_tx_probe, ldv_10_resource_struct_efx_tx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_156: /* CIL Label */ { ldv_io_instance_callback_10_156(ldv_10_callback_tx_remove, ldv_10_resource_struct_efx_tx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_157: /* CIL Label */ { ldv_io_instance_callback_10_157(ldv_10_callback_tx_write, ldv_10_resource_struct_efx_tx_queue_ptr); ldv_statevar_10 = 3; } goto ldv_50585; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_10_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_10_158(ldv_10_callback_update_stats, ldv_10_resource_struct_efx_nic_ptr, ldv_10_ldv_param_158_1_default, ldv_10_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_10_ldv_param_158_1_default); ldv_statevar_10 = 3; } goto ldv_50585; case_161: /* CIL Label */ { ldv_10_ret_default = ldv_io_instance_probe_10_161(ldv_10_container_struct_efx_phy_operations->probe, ldv_10_resource_struct_efx_nic_ptr); ldv_10_ret_default = ldv_filter_err_code(ldv_10_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_10 = 8; } else { ldv_statevar_10 = 10; } goto ldv_50585; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_50585: ; return; } } void ldv_struct_falcon_board_type_io_instance_11(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_11 == 1) { goto case_1; } else { } if (ldv_statevar_11 == 2) { goto case_2; } else { } if (ldv_statevar_11 == 3) { goto case_3; } else { } if (ldv_statevar_11 == 4) { goto case_4; } else { } if (ldv_statevar_11 == 6) { goto case_6; } else { } if (ldv_statevar_11 == 8) { goto case_8; } else { } if (ldv_statevar_11 == 10) { goto case_10; } else { } if (ldv_statevar_11 == 11) { goto case_11; } else { } if (ldv_statevar_11 == 13) { goto case_13; } else { } if (ldv_statevar_11 == 14) { goto case_14; } else { } if (ldv_statevar_11 == 17) { goto case_17; } else { } if (ldv_statevar_11 == 18) { goto case_18; } else { } if (ldv_statevar_11 == 20) { goto case_20; } else { } if (ldv_statevar_11 == 22) { goto case_22; } else { } if (ldv_statevar_11 == 23) { goto case_23; } else { } if (ldv_statevar_11 == 24) { goto case_24; } else { } if (ldv_statevar_11 == 25) { goto case_25; } else { } if (ldv_statevar_11 == 27) { goto case_27; } else { } if (ldv_statevar_11 == 29) { goto case_29; } else { } if (ldv_statevar_11 == 30) { goto case_30; } else { } if (ldv_statevar_11 == 31) { goto case_31; } else { } if (ldv_statevar_11 == 32) { goto case_32; } else { } if (ldv_statevar_11 == 33) { goto case_33; } else { } if (ldv_statevar_11 == 34) { goto case_34; } else { } if (ldv_statevar_11 == 36) { goto case_36; } else { } if (ldv_statevar_11 == 39) { goto case_39; } else { } if (ldv_statevar_11 == 42) { goto case_42; } else { } if (ldv_statevar_11 == 45) { goto case_45; } else { } if (ldv_statevar_11 == 48) { goto case_48; } else { } if (ldv_statevar_11 == 50) { goto case_50; } else { } if (ldv_statevar_11 == 51) { goto case_51; } else { } if (ldv_statevar_11 == 52) { goto case_52; } else { } if (ldv_statevar_11 == 53) { goto case_53; } else { } if (ldv_statevar_11 == 54) { goto case_54; } else { } if (ldv_statevar_11 == 55) { goto case_55; } else { } if (ldv_statevar_11 == 56) { goto case_56; } else { } if (ldv_statevar_11 == 57) { goto case_57; } else { } if (ldv_statevar_11 == 58) { goto case_58; } else { } if (ldv_statevar_11 == 60) { goto case_60; } else { } if (ldv_statevar_11 == 62) { goto case_62; } else { } if (ldv_statevar_11 == 64) { goto case_64; } else { } if (ldv_statevar_11 == 66) { goto case_66; } else { } if (ldv_statevar_11 == 67) { goto case_67; } else { } if (ldv_statevar_11 == 68) { goto case_68; } else { } if (ldv_statevar_11 == 69) { goto case_69; } else { } if (ldv_statevar_11 == 70) { goto case_70; } else { } if (ldv_statevar_11 == 71) { goto case_71; } else { } if (ldv_statevar_11 == 72) { goto case_72; } else { } if (ldv_statevar_11 == 73) { goto case_73; } else { } if (ldv_statevar_11 == 75) { goto case_75; } else { } if (ldv_statevar_11 == 78) { goto case_78; } else { } if (ldv_statevar_11 == 80) { goto case_80; } else { } if (ldv_statevar_11 == 82) { goto case_82; } else { } if (ldv_statevar_11 == 84) { goto case_84; } else { } if (ldv_statevar_11 == 85) { goto case_85; } else { } if (ldv_statevar_11 == 86) { goto case_86; } else { } if (ldv_statevar_11 == 88) { goto case_88; } else { } if (ldv_statevar_11 == 91) { goto case_91; } else { } if (ldv_statevar_11 == 93) { goto case_93; } else { } if (ldv_statevar_11 == 94) { goto case_94; } else { } if (ldv_statevar_11 == 96) { goto case_96; } else { } if (ldv_statevar_11 == 98) { goto case_98; } else { } if (ldv_statevar_11 == 100) { goto case_100; } else { } if (ldv_statevar_11 == 102) { goto case_102; } else { } if (ldv_statevar_11 == 103) { goto case_103; } else { } if (ldv_statevar_11 == 105) { goto case_105; } else { } if (ldv_statevar_11 == 107) { goto case_107; } else { } if (ldv_statevar_11 == 108) { goto case_108; } else { } if (ldv_statevar_11 == 109) { goto case_109; } else { } if (ldv_statevar_11 == 110) { goto case_110; } else { } if (ldv_statevar_11 == 111) { goto case_111; } else { } if (ldv_statevar_11 == 112) { goto case_112; } else { } if (ldv_statevar_11 == 113) { goto case_113; } else { } if (ldv_statevar_11 == 115) { goto case_115; } else { } if (ldv_statevar_11 == 118) { goto case_118; } else { } if (ldv_statevar_11 == 120) { goto case_120; } else { } if (ldv_statevar_11 == 121) { goto case_121; } else { } if (ldv_statevar_11 == 122) { goto case_122; } else { } if (ldv_statevar_11 == 123) { goto case_123; } else { } if (ldv_statevar_11 == 124) { goto case_124; } else { } if (ldv_statevar_11 == 125) { goto case_125; } else { } if (ldv_statevar_11 == 126) { goto case_126; } else { } if (ldv_statevar_11 == 127) { goto case_127; } else { } if (ldv_statevar_11 == 128) { goto case_128; } else { } if (ldv_statevar_11 == 130) { goto case_130; } else { } if (ldv_statevar_11 == 132) { goto case_132; } else { } if (ldv_statevar_11 == 133) { goto case_133; } else { } if (ldv_statevar_11 == 134) { goto case_134; } else { } if (ldv_statevar_11 == 135) { goto case_135; } else { } if (ldv_statevar_11 == 136) { goto case_136; } else { } if (ldv_statevar_11 == 137) { goto case_137; } else { } if (ldv_statevar_11 == 138) { goto case_138; } else { } if (ldv_statevar_11 == 140) { goto case_140; } else { } if (ldv_statevar_11 == 142) { goto case_142; } else { } if (ldv_statevar_11 == 144) { goto case_144; } else { } if (ldv_statevar_11 == 146) { goto case_146; } else { } if (ldv_statevar_11 == 147) { goto case_147; } else { } if (ldv_statevar_11 == 148) { goto case_148; } else { } if (ldv_statevar_11 == 149) { goto case_149; } else { } if (ldv_statevar_11 == 151) { goto case_151; } else { } if (ldv_statevar_11 == 153) { goto case_153; } else { } if (ldv_statevar_11 == 154) { goto case_154; } else { } if (ldv_statevar_11 == 155) { goto case_155; } else { } if (ldv_statevar_11 == 156) { goto case_156; } else { } if (ldv_statevar_11 == 157) { goto case_157; } else { } if (ldv_statevar_11 == 159) { goto case_159; } else { } if (ldv_statevar_11 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_11 = ldv_switch_6(); } goto ldv_50697; case_2: /* CIL Label */ { ldv_io_instance_release_11_2(ldv_11_container_struct_efx_nic_type->remove, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 1; } goto ldv_50697; case_3: /* CIL Label */ { ldv_statevar_11 = ldv_switch_7(); } goto ldv_50697; case_4: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_11_4(ldv_11_callback_check_mac_fault, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_6: /* CIL Label */ { ldv_free((void *)ldv_11_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_11_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_11_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_11_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_11_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_11_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_11_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_11_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_11_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_11_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_11_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_11_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_11_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_11_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_11_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_11_resource_union_efx_dword_ptr); ldv_free((void *)ldv_11_resource_union_efx_qword_ptr); ldv_11_ret_default = 1; ldv_statevar_11 = 14; } goto ldv_50697; case_8: /* CIL Label */ { ldv_assume(ldv_11_ret_default != 0); ldv_statevar_11 = ldv_switch_6(); } goto ldv_50697; case_10: /* CIL Label */ { ldv_assume(ldv_11_ret_default == 0); ldv_statevar_11 = ldv_switch_7(); } goto ldv_50697; case_11: /* CIL Label */ { ldv_11_ret_default = ldv_io_instance_probe_11_11(ldv_11_container_struct_efx_nic_type->probe, ldv_11_resource_struct_efx_nic_ptr); ldv_11_ret_default = ldv_filter_err_code(ldv_11_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_11 = 8; } else { ldv_statevar_11 = 10; } goto ldv_50697; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_11_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_11_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_11_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_11_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_11_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_11_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_11_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_11_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_11_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_11_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_11_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_11_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_11_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_11_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_11_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_11_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_11_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_11 = ldv_switch_6(); } goto ldv_50697; case_14: /* CIL Label */ ; goto ldv_50697; case_17: /* CIL Label */ { ldv_io_instance_release_11_17(ldv_11_container_struct_efx_phy_operations->remove, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 1; } goto ldv_50697; case_18: /* CIL Label */ { ldv_io_instance_callback_11_18(ldv_11_callback_copy, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_11_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_11_19(ldv_11_callback_describe_stats, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_19_1_default); ldv_free((void *)ldv_11_ldv_param_19_1_default); ldv_statevar_11 = 3; } goto ldv_50697; case_22: /* CIL Label */ { ldv_io_instance_callback_11_22(ldv_11_callback_dimension_resources, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_23: /* CIL Label */ { ldv_io_instance_callback_11_23(ldv_11_callback_ev_fini, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_24: /* CIL Label */ { ldv_io_instance_callback_11_24(ldv_11_callback_ev_init, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_25: /* CIL Label */ { ldv_io_instance_callback_11_25(ldv_11_callback_ev_probe, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_27: /* CIL Label */ { ldv_io_instance_callback_11_26(ldv_11_callback_ev_process, ldv_11_resource_struct_efx_channel_ptr, ldv_11_ldv_param_26_1_default); ldv_statevar_11 = 3; } goto ldv_50697; case_29: /* CIL Label */ { ldv_io_instance_callback_11_29(ldv_11_callback_ev_read_ack, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_30: /* CIL Label */ { ldv_io_instance_callback_11_30(ldv_11_callback_ev_remove, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_31: /* CIL Label */ { ldv_io_instance_callback_11_31(ldv_11_callback_ev_test_generate, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_32: /* CIL Label */ { ldv_io_instance_callback_11_32(ldv_11_callback_filter_clear_rx, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_enum_efx_filter_priority); ldv_statevar_11 = 3; } goto ldv_50697; case_33: /* CIL Label */ { ldv_io_instance_callback_11_33(ldv_11_callback_filter_count_rx_used, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_enum_efx_filter_priority); ldv_statevar_11 = 3; } goto ldv_50697; case_34: /* CIL Label */ { ldv_io_instance_callback_11_34(ldv_11_callback_filter_get_rx_id_limit, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_11_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_11_35(ldv_11_callback_filter_get_rx_ids, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_enum_efx_filter_priority, ldv_11_ldv_param_35_2_default, ldv_11_ldv_param_35_3_default); ldv_free((void *)ldv_11_ldv_param_35_2_default); ldv_statevar_11 = 3; } goto ldv_50697; case_39: /* CIL Label */ { ldv_io_instance_callback_11_38(ldv_11_callback_filter_get_safe, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_enum_efx_filter_priority, ldv_11_ldv_param_38_2_default, ldv_11_resource_struct_efx_filter_spec_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_42: /* CIL Label */ { ldv_io_instance_callback_11_41(ldv_11_callback_filter_insert, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_efx_filter_spec_ptr, (int )ldv_11_ldv_param_41_2_default); ldv_statevar_11 = 3; } goto ldv_50697; case_45: /* CIL Label */ { ldv_io_instance_callback_11_44(ldv_11_callback_filter_remove_safe, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_enum_efx_filter_priority, ldv_11_ldv_param_44_2_default); ldv_statevar_11 = 3; } goto ldv_50697; case_48: /* CIL Label */ { ldv_io_instance_callback_11_47(ldv_11_callback_filter_rfs_expire_one, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_47_1_default, ldv_11_ldv_param_47_2_default); ldv_statevar_11 = 3; } goto ldv_50697; case_50: /* CIL Label */ { ldv_io_instance_callback_11_50(ldv_11_callback_filter_rfs_insert, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_efx_filter_spec_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_51: /* CIL Label */ { ldv_io_instance_callback_11_51(ldv_11_callback_filter_table_probe, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_52: /* CIL Label */ { ldv_io_instance_callback_11_52(ldv_11_callback_filter_table_remove, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_53: /* CIL Label */ { ldv_io_instance_callback_11_53(ldv_11_callback_filter_table_restore, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_54: /* CIL Label */ { ldv_io_instance_callback_11_54(ldv_11_callback_filter_update_rx_scatter, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_55: /* CIL Label */ { ldv_io_instance_callback_11_55(ldv_11_callback_fini, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_56: /* CIL Label */ { ldv_io_instance_callback_11_56(ldv_11_callback_fini_dmaq, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_57: /* CIL Label */ { ldv_io_instance_callback_11_57(ldv_11_callback_finish_flush, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_58: /* CIL Label */ { ldv_assume((unsigned int )ldv_statevar_22 - 2U <= 1U); ldv_io_instance_callback_11_58(ldv_11_callback_func_6_ptr, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_11_ldv_param_59_2_default = (unsigned char *)tmp___19; ldv_io_instance_callback_11_59(ldv_11_callback_get_module_eeprom, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_ethtool_eeprom_ptr, ldv_11_ldv_param_59_2_default); ldv_free((void *)ldv_11_ldv_param_59_2_default); ldv_statevar_11 = 3; } goto ldv_50697; case_62: /* CIL Label */ { ldv_io_instance_callback_11_62(ldv_11_callback_get_module_info, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_ethtool_modinfo_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_11_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_11_63(ldv_11_callback_get_name, ldv_11_resource_struct_efx_channel_ptr, ldv_11_ldv_param_63_1_default, ldv_11_ldv_param_63_2_default); ldv_free((void *)ldv_11_ldv_param_63_1_default); ldv_statevar_11 = 3; } goto ldv_50697; case_66: /* CIL Label */ { ldv_io_instance_callback_11_66(ldv_11_callback_get_settings, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_ethtool_cmd_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_67: /* CIL Label */ { ldv_io_instance_callback_11_67(ldv_11_callback_get_wol, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_68: /* CIL Label */ { ldv_io_instance_callback_11_68(ldv_11_callback_handle_global_event, ldv_11_resource_struct_efx_channel_ptr, ldv_11_resource_union_efx_qword_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_69: /* CIL Label */ { ldv_io_instance_callback_11_69(ldv_11_callback_handle_no_channel, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_70: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_11_70(ldv_11_callback_init, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_71: /* CIL Label */ { ldv_io_instance_callback_11_71(ldv_11_callback_init_phy, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_72: /* CIL Label */ { ldv_io_instance_callback_11_72(ldv_11_callback_irq_disable_non_ev, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_73: /* CIL Label */ { ldv_io_instance_callback_11_73(ldv_11_callback_irq_enable_master, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_75: /* CIL Label */ { ldv_io_instance_callback_11_74(ldv_11_callback_irq_handle_legacy, ldv_11_ldv_param_74_0_default, (void *)ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_78: /* CIL Label */ { ldv_io_instance_callback_11_77(ldv_11_callback_irq_handle_msi, ldv_11_ldv_param_77_0_default, (void *)ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_80: /* CIL Label */ { ldv_io_instance_callback_11_80(ldv_11_callback_irq_test_generate, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_11_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_11_81(ldv_11_callback_map_reset_flags, ldv_11_ldv_param_81_0_default); ldv_free((void *)ldv_11_ldv_param_81_0_default); ldv_statevar_11 = 3; } goto ldv_50697; case_84: /* CIL Label */ { ldv_io_instance_callback_11_84(ldv_11_callback_map_reset_reason, ldv_11_resource_enum_reset_type); ldv_statevar_11 = 3; } goto ldv_50697; case_85: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_mcdi_poll_reboot != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_11_85(ldv_11_callback_mcdi_poll_reboot, ldv_11_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_86: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_mcdi_poll_response != (unsigned long )((_Bool (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_11_86(ldv_11_callback_mcdi_poll_response, ldv_11_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_88: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_mcdi_read_response != (unsigned long )((void (*)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ))0)) { { ldv_io_instance_callback_11_87(ldv_11_callback_mcdi_read_response, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_union_efx_dword_ptr, ldv_11_ldv_param_87_2_default, ldv_11_ldv_param_87_3_default); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_11_ldv_param_90_3_default = (union efx_dword *)tmp___22; } if ((unsigned long )ldv_11_callback_mcdi_request != (unsigned long )((void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))0)) { { ldv_io_instance_callback_11_90(ldv_11_callback_mcdi_request, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_union_efx_dword_ptr, ldv_11_ldv_param_90_2_default, ldv_11_ldv_param_90_3_default, ldv_11_ldv_param_90_4_default); } } else { } { ldv_free((void *)ldv_11_ldv_param_90_3_default); ldv_statevar_11 = 3; } goto ldv_50697; case_93: /* CIL Label */ { ldv_io_instance_callback_11_93(ldv_11_callback_mem_map_size, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_94: /* CIL Label */ { ldv_io_instance_callback_11_94(ldv_11_callback_monitor, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_96: /* CIL Label */ { ldv_io_instance_callback_11_95(ldv_11_callback_mtd_erase, ldv_11_resource_struct_mtd_info_ptr, ldv_11_ldv_param_95_1_default, ldv_11_ldv_param_95_2_default); ldv_statevar_11 = 3; } goto ldv_50697; case_98: /* CIL Label */ { ldv_io_instance_callback_11_98(ldv_11_callback_mtd_probe, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_11_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_11_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_11_99(ldv_11_callback_mtd_read, ldv_11_resource_struct_mtd_info_ptr, ldv_11_ldv_param_99_1_default, ldv_11_ldv_param_99_2_default, ldv_11_ldv_param_99_3_default, ldv_11_ldv_param_99_4_default); ldv_free((void *)ldv_11_ldv_param_99_3_default); ldv_free((void *)ldv_11_ldv_param_99_4_default); ldv_statevar_11 = 3; } goto ldv_50697; case_102: /* CIL Label */ { ldv_io_instance_callback_11_102(ldv_11_callback_mtd_rename, ldv_11_resource_struct_efx_mtd_partition_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_103: /* CIL Label */ { ldv_io_instance_callback_11_103(ldv_11_callback_mtd_sync, ldv_11_resource_struct_mtd_info_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_11_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_11_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_11_104(ldv_11_callback_mtd_write, ldv_11_resource_struct_mtd_info_ptr, ldv_11_ldv_param_104_1_default, ldv_11_ldv_param_104_2_default, ldv_11_ldv_param_104_3_default, ldv_11_ldv_param_104_4_default); ldv_free((void *)ldv_11_ldv_param_104_3_default); ldv_free((void *)ldv_11_ldv_param_104_4_default); ldv_statevar_11 = 3; } goto ldv_50697; case_107: /* CIL Label */ { ldv_io_instance_callback_11_107(ldv_11_callback_poll, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_108: /* CIL Label */ { ldv_io_instance_callback_11_108(ldv_11_callback_post_remove, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_109: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_io_instance_callback_11_109(ldv_11_callback_pre_probe, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_110: /* CIL Label */ { ldv_assume((unsigned int )ldv_statevar_22 - 2U <= 1U); ldv_io_instance_callback_11_110(ldv_11_callback_prepare_enable_fc_tx, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_111: /* CIL Label */ { ldv_io_instance_callback_11_111(ldv_11_callback_prepare_flush, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_112: /* CIL Label */ { ldv_io_instance_callback_11_112(ldv_11_callback_probe_port, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_113: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_ptp_set_ts_config != (unsigned long )((int (*)(struct efx_nic * , struct hwtstamp_config * ))0)) { { ldv_io_instance_callback_11_113(ldv_11_callback_ptp_set_ts_config, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_hwtstamp_config_ptr); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_115: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_ptp_set_ts_sync_events != (unsigned long )((int (*)(struct efx_nic * , _Bool , _Bool ))0)) { { ldv_io_instance_callback_11_114(ldv_11_callback_ptp_set_ts_sync_events, ldv_11_resource_struct_efx_nic_ptr, (int )ldv_11_ldv_param_114_1_default, (int )ldv_11_ldv_param_114_2_default); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_118: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_ptp_write_host_time != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_11_117(ldv_11_callback_ptp_write_host_time, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_117_1_default); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_120: /* CIL Label */ { ldv_io_instance_callback_11_120(ldv_11_callback_pull_stats, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_121: /* CIL Label */ { ldv_io_instance_callback_11_121(ldv_11_callback_push_irq_moderation, ldv_11_resource_struct_efx_channel_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_122: /* CIL Label */ { ldv_io_instance_callback_11_122(ldv_11_callback_receive_skb, ldv_11_resource_struct_efx_channel_ptr, ldv_11_resource_struct_sk_buff_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_123: /* CIL Label */ { ldv_io_instance_callback_11_123(ldv_11_callback_reconfigure, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_124: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_11_124(ldv_11_callback_reconfigure_mac, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_125: /* CIL Label */ { ldv_assume((unsigned int )ldv_statevar_22 - 2U <= 1U); ldv_io_instance_callback_11_125(ldv_11_callback_reconfigure_port, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_126: /* CIL Label */ { ldv_io_instance_callback_11_126(ldv_11_callback_remove_port, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_127: /* CIL Label */ { ldv_io_instance_callback_11_127(ldv_11_callback_reset, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_enum_reset_type); ldv_statevar_11 = 3; } goto ldv_50697; case_128: /* CIL Label */ { ldv_io_instance_callback_11_128(ldv_11_callback_resume_wol, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_11_ldv_param_129_1_default = (int *)tmp___27; } if ((unsigned long )ldv_11_callback_run_tests != (unsigned long )((int (*)(struct efx_nic * , int * , unsigned int ))0)) { { ldv_io_instance_callback_11_129(ldv_11_callback_run_tests, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_129_1_default, ldv_11_ldv_param_129_2_default); } } else { } { ldv_free((void *)ldv_11_ldv_param_129_1_default); ldv_statevar_11 = 3; } goto ldv_50697; case_132: /* CIL Label */ { ldv_io_instance_callback_11_132(ldv_11_callback_rx_defer_refill, ldv_11_resource_struct_efx_rx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_133: /* CIL Label */ { ldv_io_instance_callback_11_133(ldv_11_callback_rx_init, ldv_11_resource_struct_efx_rx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_134: /* CIL Label */ { ldv_io_instance_callback_11_134(ldv_11_callback_rx_probe, ldv_11_resource_struct_efx_rx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_135: /* CIL Label */ { ldv_io_instance_callback_11_135(ldv_11_callback_rx_push_rss_config, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_136: /* CIL Label */ { ldv_io_instance_callback_11_136(ldv_11_callback_rx_remove, ldv_11_resource_struct_efx_rx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_137: /* CIL Label */ { ldv_io_instance_callback_11_137(ldv_11_callback_rx_write, ldv_11_resource_struct_efx_rx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_138: /* CIL Label */ { ldv_io_instance_callback_11_138(ldv_11_callback_set_id_led, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_enum_efx_led_mode); ldv_statevar_11 = 3; } goto ldv_50697; case_140: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_11_139(ldv_11_callback_set_npage_adv, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_139_1_default); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_142: /* CIL Label */ { ldv_io_instance_callback_11_142(ldv_11_callback_set_settings, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_ethtool_cmd_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_144: /* CIL Label */ { ldv_io_instance_callback_11_143(ldv_11_callback_set_wol, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_143_1_default); ldv_statevar_11 = 3; } goto ldv_50697; case_146: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_11_146(ldv_11_callback_start_stats, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_147: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_11_147(ldv_11_callback_stop_stats, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_148: /* CIL Label */ { ldv_io_instance_callback_11_148(ldv_11_callback_test_alive, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_149: /* CIL Label */ { ldv_io_instance_callback_11_149(ldv_11_callback_test_chip, ldv_11_resource_struct_efx_nic_ptr, ldv_11_resource_struct_efx_self_tests_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_151: /* CIL Label */ ; if ((unsigned long )ldv_11_callback_test_name != (unsigned long )((char *(*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_11_150(ldv_11_callback_test_name, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_150_1_default); } } else { } ldv_statevar_11 = 3; goto ldv_50697; case_153: /* CIL Label */ { ldv_io_instance_callback_11_153(ldv_11_callback_test_nvram, ldv_11_resource_struct_efx_nic_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_154: /* CIL Label */ { ldv_io_instance_callback_11_154(ldv_11_callback_tx_init, ldv_11_resource_struct_efx_tx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_155: /* CIL Label */ { ldv_io_instance_callback_11_155(ldv_11_callback_tx_probe, ldv_11_resource_struct_efx_tx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_156: /* CIL Label */ { ldv_io_instance_callback_11_156(ldv_11_callback_tx_remove, ldv_11_resource_struct_efx_tx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_157: /* CIL Label */ { ldv_io_instance_callback_11_157(ldv_11_callback_tx_write, ldv_11_resource_struct_efx_tx_queue_ptr); ldv_statevar_11 = 3; } goto ldv_50697; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_11_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_11_158(ldv_11_callback_update_stats, ldv_11_resource_struct_efx_nic_ptr, ldv_11_ldv_param_158_1_default, ldv_11_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_11_ldv_param_158_1_default); ldv_statevar_11 = 3; } goto ldv_50697; case_161: /* CIL Label */ { ldv_11_ret_default = ldv_io_instance_probe_11_161(ldv_11_container_struct_efx_phy_operations->probe, ldv_11_resource_struct_efx_nic_ptr); ldv_11_ret_default = ldv_filter_err_code(ldv_11_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_11 = 8; } else { ldv_statevar_11 = 10; } goto ldv_50697; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_50697: ; return; } } void ldv_switch_automaton_state_10_14(void) { { ldv_statevar_10 = 13; return; } } void ldv_switch_automaton_state_10_5(void) { { ldv_10_ret_default = 1; ldv_statevar_10 = 14; return; } } void ldv_switch_automaton_state_11_14(void) { { ldv_statevar_11 = 13; return; } } void ldv_switch_automaton_state_11_5(void) { { ldv_11_ret_default = 1; ldv_statevar_11 = 14; return; } } static void ldv___ldv_spin_lock_66___0(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static void ldv___ldv_spin_lock_70___1(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static void ldv___ldv_spin_lock_74(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static int ldv_mod_timer_76(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___0 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; tmp___0 = ldv_mod_timer(ldv_func_res, ldv_func_arg1, ldv_func_arg2); } return (tmp___0); return (ldv_func_res); } } __inline static void ldv_spin_lock_77(spinlock_t *lock ) { { { ldv_spin_lock_stats_lock_of_efx_nic(); spin_lock(lock); } return; } } __inline static void ldv_spin_unlock_78(spinlock_t *lock ) { { { ldv_spin_unlock_stats_lock_of_efx_nic(); spin_unlock(lock); } return; } } static int ldv_del_timer_sync_83(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___1 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_del_timer_sync(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } __inline static unsigned int __arch_hweight32(unsigned int w ) { unsigned int res ; { res = 0U; __asm__ ("661:\n\tcall __sw_hweight32\n662:\n.pushsection .altinstructions,\"a\"\n .long 661b - .\n .long 6631f - .\n .word (4*32+23)\n .byte 662b-661b\n .byte 6641f-6631f\n.popsection\n.pushsection .discard,\"aw\",@progbits\n .byte 0xff + (6641f-6631f) - (662b-661b)\n.popsection\n.pushsection .altinstr_replacement, \"ax\"\n6631:\n\t.byte 0xf3,0x40,0x0f,0xb8,0xc7\n6641:\n\t.popsection": "=a" (res): "D" (w)); return (res); } } static void ldv___ldv_spin_lock_66___1(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_70___2(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_74___0(spinlock_t *ldv_func_arg1 ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern int pci_wake_from_d3(struct pci_dev * , bool ) ; __inline static unsigned int efx_port_num(struct efx_nic *efx ) { { return (efx->port_num); } } int efx_mcdi_init(struct efx_nic *efx ) ; void efx_mcdi_fini(struct efx_nic *efx ) ; int efx_mcdi_rpc(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) ; int efx_mcdi_get_board_cfg(struct efx_nic *efx , u8 *mac_address , u16 *fw_subtype_list , u32 *capabilities ) ; int efx_mcdi_log_ctrl(struct efx_nic *efx , bool evq , bool uart , u32 dest_evq ) ; int efx_mcdi_nvram_types(struct efx_nic *efx , u32 *nvram_types_out ) ; int efx_mcdi_nvram_info(struct efx_nic *efx , unsigned int type , size_t *size_out , size_t *erase_size_out , bool *protected_out ) ; int efx_mcdi_nvram_test_all(struct efx_nic *efx ) ; int efx_mcdi_handle_assertion(struct efx_nic *efx ) ; void efx_mcdi_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) ; int efx_mcdi_wol_filter_set_magic(struct efx_nic *efx , u8 const *mac , int *id_out ) ; int efx_mcdi_wol_filter_get_magic(struct efx_nic *efx , int *id_out ) ; int efx_mcdi_wol_filter_remove(struct efx_nic *efx , int id ) ; int efx_mcdi_wol_filter_reset(struct efx_nic *efx ) ; int efx_mcdi_port_probe(struct efx_nic *efx ) ; void efx_mcdi_port_remove(struct efx_nic *efx ) ; int efx_mcdi_port_reconfigure(struct efx_nic *efx ) ; int efx_mcdi_set_mac(struct efx_nic *efx ) ; void efx_mcdi_mac_start_stats(struct efx_nic *efx ) ; void efx_mcdi_mac_stop_stats(struct efx_nic *efx ) ; void efx_mcdi_mac_pull_stats(struct efx_nic *efx ) ; bool efx_mcdi_mac_check_fault(struct efx_nic *efx ) ; enum reset_type efx_mcdi_map_reset_reason(enum reset_type reason ) ; int efx_mcdi_reset(struct efx_nic *efx , enum reset_type method ) ; int efx_mcdi_mon_probe(struct efx_nic *efx ) ; void efx_mcdi_mon_remove(struct efx_nic *efx ) ; int efx_mcdi_mtd_read(struct mtd_info *mtd , loff_t start , size_t len , size_t *retlen , u8 *buffer ) ; int efx_mcdi_mtd_erase(struct mtd_info *mtd , loff_t start , size_t len ) ; int efx_mcdi_mtd_write(struct mtd_info *mtd , loff_t start , size_t len , size_t *retlen , u8 const *buffer ) ; int efx_mcdi_mtd_sync(struct mtd_info *mtd ) ; void efx_mcdi_mtd_rename(struct efx_mtd_partition *part ) ; void efx_sriov_probe(struct efx_nic *efx ) ; void efx_ptp_defer_probe_with_channel(struct efx_nic *efx ) ; int efx_ptp_get_mode(struct efx_nic *efx ) ; int efx_ptp_change_mode(struct efx_nic *efx , bool enable_wanted , unsigned int new_mode ) ; void siena_prepare_flush(struct efx_nic *efx ) ; void siena_finish_flush(struct efx_nic *efx ) ; __inline static void efx_writeo___1(struct efx_nic *efx , efx_oword_t const *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_66___1(& efx->biu_lock); _efx_writeq(efx, value->u64[0], reg); _efx_writeq(efx, value->u64[1], reg + 8U); __asm__ volatile ("": : : "memory"); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_reado___2(struct efx_nic *efx , efx_oword_t *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_70___2(& efx->biu_lock); value->u32[0] = _efx_readd(efx, reg); value->u32[1] = _efx_readd(efx, reg + 4U); value->u32[2] = _efx_readd(efx, reg + 8U); value->u32[3] = _efx_readd(efx, reg + 12U); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void _efx_writed_page_locked___0(struct efx_nic *efx , efx_dword_t const *value , unsigned int reg , unsigned int page ) { unsigned long flags ; { if (page == 0U) { { ldv___ldv_spin_lock_74___0(& efx->biu_lock); efx_writed(efx, value, page * 8192U + reg); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } } else { { efx_writed(efx, value, page * 8192U + reg); } } return; } } static void siena_init_wol(struct efx_nic *efx ) ; static void siena_push_irq_moderation(struct efx_channel *channel ) { efx_dword_t timer_cmd ; { if (channel->irq_moderation != 0U) { timer_cmd.u32[0] = (channel->irq_moderation - 1U) | 49152U; } else { timer_cmd.u32[0] = 0U; } { _efx_writed_page_locked___0(channel->efx, (efx_dword_t const *)(& timer_cmd), 1056U, (unsigned int )channel->channel); } return; } } void siena_prepare_flush(struct efx_nic *efx ) { unsigned int tmp ; { tmp = efx->fc_disable; efx->fc_disable = efx->fc_disable + 1U; if (tmp == 0U) { { efx_mcdi_set_mac(efx); } } else { } return; } } void siena_finish_flush(struct efx_nic *efx ) { { efx->fc_disable = efx->fc_disable - 1U; if (efx->fc_disable == 0U) { { efx_mcdi_set_mac(efx); } } else { } return; } } static struct efx_farch_register_test const siena_register_tests[13U] = { {0U, {.u32 = {262143U, 262143U, 262143U, 262143U}}}, {256U, {.u32 = {66559U, 0U, 0U, 0U}}}, {2048U, {.u32 = {4294967294U, 4294967295U, 262143U, 0U}}}, {2640U, {.u32 = {2147418167U, 4294934528U, 4294967295U, 67108863U}}}, {2688U, {.u32 = {4294901376U, 536870911U, 33554686U, 8388607U}}}, {1568U, {.u32 = {2097151U, 0U, 0U, 0U}}}, {2112U, {.u32 = {3U, 0U, 0U, 0U}}}, {2128U, {.u32 = {1023U, 0U, 0U, 0U}}}, {592U, {.u32 = {4095U, 0U, 0U, 0U}}}, {2144U, {.u32 = {4294967295U, 4294967295U, 4294967295U, 4294967295U}}}, {2256U, {.u32 = {4294967295U, 4294967295U, 4294967295U, 4294967295U}}}, {2272U, {.u32 = {4294967295U, 4294967295U, 4294967295U, 4294967295U}}}, {2288U, {.u32 = {4294967295U, 4294967295U, 7U, 0U}}}}; static int siena_test_chip(struct efx_nic *efx , struct efx_self_tests *tests ) { enum reset_type reset_method ; int rc ; int rc2 ; int tmp ; { { reset_method = 2; efx_reset_down(efx, reset_method); rc = efx_mcdi_reset(efx, reset_method); } if (rc != 0) { goto out; } else { } { tmp = efx_farch_test_registers(efx, (struct efx_farch_register_test const *)(& siena_register_tests), 13UL); tests->registers = tmp != 0 ? -1 : 1; rc = efx_mcdi_reset(efx, reset_method); } out: { rc2 = efx_reset_up(efx, reset_method, rc == 0); } return (rc != 0 ? rc : rc2); } } static void siena_ptp_write_host_time(struct efx_nic *efx , u32 host_time ) { { { _efx_writed(efx, host_time, 16713712U); } return; } } static int siena_ptp_set_ts_config(struct efx_nic *efx , struct hwtstamp_config *init ) { int rc ; int tmp ; int tmp___0 ; int tmp___1 ; { { if (init->rx_filter == 0) { goto case_0; } else { } if (init->rx_filter == 3) { goto case_3; } else { } if (init->rx_filter == 4) { goto case_4; } else { } if (init->rx_filter == 5) { goto case_5; } else { } if (init->rx_filter == 6) { goto case_6; } else { } if (init->rx_filter == 7) { goto case_7; } else { } if (init->rx_filter == 8) { goto case_8; } else { } goto switch_default; case_0: /* CIL Label */ { tmp = efx_ptp_get_mode(efx); tmp___0 = efx_ptp_change_mode(efx, init->tx_type != 0, (unsigned int )tmp); } return (tmp___0); case_3: /* CIL Label */ ; case_4: /* CIL Label */ ; case_5: /* CIL Label */ { init->rx_filter = 3; tmp___1 = efx_ptp_change_mode(efx, 1, 0U); } return (tmp___1); case_6: /* CIL Label */ ; case_7: /* CIL Label */ ; case_8: /* CIL Label */ { init->rx_filter = 6; rc = efx_ptp_change_mode(efx, 1, 4U); } if (rc != 0) { { rc = efx_ptp_change_mode(efx, 1, 2U); } } else { } return (rc); switch_default: /* CIL Label */ ; return (-34); switch_break: /* CIL Label */ ; } } } static int siena_map_reset_flags(u32 *flags ) { { if ((*flags & 65660U) == 65660U) { *flags = *flags & 4294901635U; return (3); } else { } if ((*flags & 124U) == 124U) { *flags = *flags & 4294967171U; return (2); } else { } return (-22); } } static int siena_probe_nvconfig(struct efx_nic *efx ) { u32 caps ; int rc ; { { caps = 0U; rc = efx_mcdi_get_board_cfg(efx, (u8 *)(& (efx->net_dev)->perm_addr), (u16 *)0U, & caps); efx->timer_quantum_ns = (caps & 4U) != 0U ? 3072U : 6144U; } return (rc); } } static int siena_dimension_resources(struct efx_nic *efx ) { { { efx_farch_dimension_resources(efx, 73728U); } return (0); } } static unsigned int siena_mem_map_size(struct efx_nic *efx ) { { return (16713728U); } } static int siena_probe_nic(struct efx_nic *efx ) { struct siena_nic_data *nic_data ; efx_oword_t reg ; int rc ; void *tmp ; u32 tmp___0 ; long tmp___1 ; struct _ddebug descriptor ; phys_addr_t tmp___2 ; long tmp___3 ; { { tmp = kzalloc(464UL, 208U); nic_data = (struct siena_nic_data *)tmp; } if ((unsigned long )nic_data == (unsigned long )((struct siena_nic_data *)0)) { return (-12); } else { } { efx->nic_data = (void *)nic_data; tmp___0 = efx_farch_fpga_ver(efx); } if (tmp___0 != 0U) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Siena FPGA not supported\n"); } } else { } rc = -19; goto fail1; } else { } { efx->max_channels = 32U; efx_reado___2(efx, & reg, 624U); efx->port_num = ((unsigned int )(reg.u64[0] >> 40) & 3U) - 1U; rc = efx_mcdi_init(efx); } if (rc != 0) { goto fail1; } else { } { rc = efx_mcdi_reset(efx, 2); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to reset NIC\n"); } } else { } goto fail3; } else { } { siena_init_wol(efx); rc = efx_nic_alloc_buffer(efx, & efx->irq_status, 16U, 208U); } if (rc != 0) { goto fail4; } else { } { tmp___1 = ldv__builtin_expect((efx->irq_status.dma_addr & 15ULL) != 0ULL, 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 *)"drivers/net/ethernet/sfc/siena.c"), "i" (286), "i" (12UL)); __builtin_unreachable(); } } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "siena_probe_nic"; descriptor.filename = "drivers/net/ethernet/sfc/siena.c"; descriptor.format = "INT_KER at %llx (virt %p phys %llx)\n"; descriptor.lineno = 292U; descriptor.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___3 != 0L) { { tmp___2 = virt_to_phys((void volatile *)efx->irq_status.addr); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "INT_KER at %llx (virt %p phys %llx)\n", efx->irq_status.dma_addr, efx->irq_status.addr, tmp___2); } } else { } } else { } { rc = siena_probe_nvconfig(efx); } if (rc == -22) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "NVRAM is invalid therefore using defaults\n"); } } else { } efx->phy_type = 0U; efx->mdio.prtad = -1; } else if (rc != 0) { goto fail5; } else { } { rc = efx_mcdi_mon_probe(efx); } if (rc != 0) { goto fail5; } else { } { efx_sriov_probe(efx); efx_ptp_defer_probe_with_channel(efx); } return (0); fail5: { efx_nic_free_buffer(efx, & efx->irq_status); } fail4: ; fail3: { efx_mcdi_fini(efx); } fail1: { kfree((void const *)efx->nic_data); } return (rc); } } extern void __compiletime_assert_335(void) ; static void siena_rx_push_rss_config(struct efx_nic *efx ) { efx_oword_t temp ; bool __cond ; { { memcpy((void *)(& temp), (void const *)(& efx->rx_hash_key), 16UL); efx_writeo___1(efx, (efx_oword_t const *)(& temp), 2144U); __cond = 0; } if ((int )__cond) { { __compiletime_assert_335(); } } else { } { memcpy((void *)(& temp), (void const *)(& efx->rx_hash_key), 16UL); efx_writeo___1(efx, (efx_oword_t const *)(& temp), 2256U); memcpy((void *)(& temp), (void const *)(& efx->rx_hash_key) + 16U, 16UL); efx_writeo___1(efx, (efx_oword_t const *)(& temp), 2272U); temp.u64[0] = 0ULL; temp.u64[1] = 6ULL; memcpy((void *)(& temp), (void const *)(& efx->rx_hash_key) + 32U, 8UL); efx_writeo___1(efx, (efx_oword_t const *)(& temp), 2288U); efx_farch_rx_push_indir_table(efx); } return; } } static int siena_init_nic(struct efx_nic *efx ) { efx_oword_t temp ; int rc ; { { rc = efx_mcdi_handle_assertion(efx); } if (rc != 0) { return (rc); } else { } { efx_reado___2(efx, & temp, 2688U); temp.u64[0] = temp.u64[0] | 128ULL; temp.u64[1] = temp.u64[1]; efx_writeo___1(efx, (efx_oword_t const *)(& temp), 2688U); efx_reado___2(efx, & temp, 2640U); temp.u64[0] = temp.u64[0] & 0xffffffffffffffdfULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 140737488355328ULL; temp.u64[1] = temp.u64[1]; efx_writeo___1(efx, (efx_oword_t const *)(& temp), 2640U); efx_reado___2(efx, & temp, 2048U); temp.u64[0] = temp.u64[0] & 0xfffff7ffffffffffULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 140737488355328ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 17592186044416ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 35184372088832ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = temp.u64[0] | 70368744177664ULL; temp.u64[1] = temp.u64[1]; temp.u64[0] = (temp.u64[0] & 0xfffffffff007ffffULL) | 29360128ULL; temp.u64[1] = temp.u64[1]; efx_writeo___1(efx, (efx_oword_t const *)(& temp), 2048U); siena_rx_push_rss_config(efx); rc = efx_mcdi_log_ctrl(efx, 1, 0, 0U); } if (rc != 0) { return (rc); } else { } { temp.u64[0] = 0ULL; temp.u64[1] = 0ULL; efx_writeo___1(efx, (efx_oword_t const *)(& temp), 592U); temp.u64[0] = 65536ULL; temp.u64[1] = 0ULL; efx_writeo___1(efx, (efx_oword_t const *)(& temp), 256U); efx_farch_init_common(efx); } return (0); } } static void siena_remove_nic(struct efx_nic *efx ) { { { efx_mcdi_mon_remove(efx); efx_nic_free_buffer(efx, & efx->irq_status); efx_mcdi_reset(efx, 2); efx_mcdi_fini(efx); kfree((void const *)efx->nic_data); efx->nic_data = (void *)0; } return; } } static struct efx_hw_stat_desc const siena_stat_desc[57U] = { {"tx_bytes", 64U, 56U}, {"tx_good_bytes", 0U, 0U}, {"tx_bad_bytes", 64U, 64U}, {"tx_packets", 64U, 8U}, {"tx_bad", 64U, 144U}, {"tx_pause", 64U, 16U}, {"tx_control", 64U, 24U}, {"tx_unicast", 64U, 32U}, {"tx_multicast", 64U, 40U}, {"tx_broadcast", 64U, 48U}, {"tx_lt64", 64U, 72U}, {"tx_64", 64U, 80U}, {"tx_65_to_127", 64U, 88U}, {"tx_128_to_255", 64U, 96U}, {"tx_256_to_511", 64U, 104U}, {"tx_512_to_1023", 64U, 112U}, {"tx_1024_to_15xx", 64U, 120U}, {"tx_15xx_to_jumbo", 64U, 128U}, {"tx_gtjumbo", 64U, 136U}, {"tx_collision", 0U, 0U}, {"tx_single_collision", 64U, 152U}, {"tx_multiple_collision", 64U, 160U}, {"tx_excessive_collision", 64U, 168U}, {"tx_deferred", 64U, 184U}, {"tx_late_collision", 64U, 176U}, {"tx_excessive_deferred", 64U, 192U}, {"tx_non_tcpudp", 64U, 200U}, {"tx_mac_src_error", 64U, 208U}, {"tx_ip_src_error", 64U, 216U}, {"rx_bytes", 64U, 280U}, {"rx_good_bytes", 0U, 0U}, {"rx_bad_bytes", 64U, 288U}, {"rx_packets", 64U, 224U}, {"rx_good", 64U, 240U}, {"rx_bad", 64U, 368U}, {"rx_pause", 64U, 232U}, {"rx_control", 64U, 248U}, {"rx_unicast", 64U, 256U}, {"rx_multicast", 64U, 264U}, {"rx_broadcast", 64U, 272U}, {"rx_lt64", 64U, 360U}, {"rx_64", 64U, 296U}, {"rx_65_to_127", 64U, 304U}, {"rx_128_to_255", 64U, 312U}, {"rx_256_to_511", 64U, 320U}, {"rx_512_to_1023", 64U, 328U}, {"rx_1024_to_15xx", 64U, 336U}, {"rx_15xx_to_jumbo", 64U, 344U}, {"rx_gtjumbo", 64U, 352U}, {"rx_bad_gtjumbo", 64U, 424U}, {"rx_overflow", 64U, 376U}, {"rx_false_carrier", 64U, 384U}, {"rx_symbol_error", 64U, 392U}, {"rx_align_error", 64U, 400U}, {"rx_length_error", 64U, 408U}, {"rx_internal_error", 64U, 416U}, {"rx_nodesc_drop_cnt", 64U, 432U}}; static unsigned long const siena_stat_mask[1U] = { 0xffffffffffffffffUL}; static size_t siena_describe_nic_stats(struct efx_nic *efx , u8 *names ) { size_t tmp ; { { tmp = efx_nic_describe_stats((struct efx_hw_stat_desc const *)(& siena_stat_desc), 57UL, (unsigned long const *)(& siena_stat_mask), names); } return (tmp); } } static int siena_try_update_nic_stats(struct efx_nic *efx ) { struct siena_nic_data *nic_data ; u64 *stats ; __le64 *dma_stats ; __le64 generation_start ; __le64 generation_end ; { nic_data = (struct siena_nic_data *)efx->nic_data; stats = (u64 *)(& nic_data->stats); dma_stats = (__le64 *)efx->stats_buffer.addr; generation_end = *(dma_stats + 96UL); if (generation_end == 0xffffffffffffffffULL) { return (0); } else { } { __asm__ volatile ("lfence": : : "memory"); efx_nic_update_stats((struct efx_hw_stat_desc const *)(& siena_stat_desc), 57UL, (unsigned long const *)(& siena_stat_mask), stats, (void const *)efx->stats_buffer.addr, 0); __asm__ volatile ("lfence": : : "memory"); generation_start = *dma_stats; } if (generation_end != generation_start) { return (-11); } else { } { efx_nic_fix_nodesc_drop_stat(efx, stats + 56UL); efx_update_diff_stat(stats + 1UL, *stats - *(stats + 2UL)); *(stats + 19UL) = ((*(stats + 20UL) + *(stats + 21UL)) + *(stats + 22UL)) + *(stats + 24UL); efx_update_diff_stat(stats + 30UL, *(stats + 29UL) - *(stats + 31UL)); } return (0); } } static size_t siena_update_nic_stats(struct efx_nic *efx , u64 *full_stats , struct rtnl_link_stats64 *core_stats ) { struct siena_nic_data *nic_data ; u64 *stats ; int retry ; int tmp ; { nic_data = (struct siena_nic_data *)efx->nic_data; stats = (u64 *)(& nic_data->stats); retry = 0; goto ldv_47068; ldv_47067: { tmp = siena_try_update_nic_stats(efx); } if (tmp == 0) { goto ldv_47066; } else { } { __const_udelay(429500UL); retry = retry + 1; } ldv_47068: ; if (retry <= 99) { goto ldv_47067; } else { } ldv_47066: ; if ((unsigned long )full_stats != (unsigned long )((u64 *)0ULL)) { { memcpy((void *)full_stats, (void const *)stats, 456UL); } } else { } if ((unsigned long )core_stats != (unsigned long )((struct rtnl_link_stats64 *)0)) { core_stats->rx_packets = *(stats + 32UL); core_stats->tx_packets = *(stats + 3UL); core_stats->rx_bytes = *(stats + 29UL); core_stats->tx_bytes = *stats; core_stats->rx_dropped = *(stats + 56UL); core_stats->multicast = *(stats + 38UL); core_stats->collisions = *(stats + 19UL); core_stats->rx_length_errors = *(stats + 48UL) + *(stats + 54UL); core_stats->rx_crc_errors = *(stats + 34UL); core_stats->rx_frame_errors = *(stats + 53UL); core_stats->rx_fifo_errors = *(stats + 50UL); core_stats->tx_window_errors = *(stats + 24UL); core_stats->rx_errors = ((core_stats->rx_length_errors + core_stats->rx_crc_errors) + core_stats->rx_frame_errors) + *(stats + 52UL); core_stats->tx_errors = core_stats->tx_window_errors + *(stats + 4UL); } else { } return (57UL); } } extern void __compiletime_assert_587(void) ; static int siena_mac_reconfigure(struct efx_nic *efx ) { efx_dword_t inbuf[8U] ; int rc ; bool __cond ; int __ret_warn_on ; int tmp ; long tmp___0 ; int tmp___1 ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_587(); } } else { } { efx_farch_filter_sync_rx_mode(efx); tmp = mutex_is_locked(& efx->mac_lock); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/siena.c", 591); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); rc = efx_mcdi_set_mac(efx); } if (rc != 0) { return (rc); } else { } { memcpy((void *)(& inbuf), (void const *)(& efx->multicast_hash.byte), 32UL); tmp___1 = efx_mcdi_rpc(efx, 53U, (efx_dword_t const *)(& inbuf), 32UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (tmp___1); } } static void siena_get_wol(struct efx_nic *efx , struct ethtool_wolinfo *wol ) { struct siena_nic_data *nic_data ; { nic_data = (struct siena_nic_data *)efx->nic_data; wol->supported = 32U; if (nic_data->wol_filter_id != -1) { wol->wolopts = 32U; } else { wol->wolopts = 0U; } { memset((void *)(& wol->sopass), 0, 6UL); } return; } } static int siena_set_wol(struct efx_nic *efx , u32 type ) { struct siena_nic_data *nic_data ; int rc ; { nic_data = (struct siena_nic_data *)efx->nic_data; if ((type & 4294967263U) != 0U) { return (-22); } else { } if ((type & 32U) != 0U) { if (nic_data->wol_filter_id != -1) { { efx_mcdi_wol_filter_remove(efx, nic_data->wol_filter_id); } } else { } { rc = efx_mcdi_wol_filter_set_magic(efx, (u8 const *)(efx->net_dev)->dev_addr, & nic_data->wol_filter_id); } if (rc != 0) { goto fail; } else { } { pci_wake_from_d3(efx->pci_dev, 1); } } else { { rc = efx_mcdi_wol_filter_reset(efx); nic_data->wol_filter_id = -1; pci_wake_from_d3(efx->pci_dev, 0); } if (rc != 0) { goto fail; } else { } } return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s failed: type=%d rc=%d\n", "siena_set_wol", type, rc); } } else { } return (rc); } } static void siena_init_wol(struct efx_nic *efx ) { struct siena_nic_data *nic_data ; int rc ; { { nic_data = (struct siena_nic_data *)efx->nic_data; rc = efx_mcdi_wol_filter_get_magic(efx, & nic_data->wol_filter_id); } if (rc != 0) { { efx_mcdi_wol_filter_reset(efx); nic_data->wol_filter_id = -1; } } else if (nic_data->wol_filter_id != -1) { { pci_wake_from_d3(efx->pci_dev, 1); } } else { } return; } } static void siena_mcdi_request(struct efx_nic *efx , efx_dword_t const *hdr , size_t hdr_len , efx_dword_t const *sdu , size_t sdu_len ) { unsigned int pdu ; unsigned int tmp ; unsigned int doorbell ; unsigned int tmp___0 ; unsigned int i ; unsigned int inlen_dw ; { { tmp = efx_port_num(efx); pdu = tmp != 0U ? 16711944U : 16711688U; tmp___0 = efx_port_num(efx); doorbell = tmp___0 != 0U ? 16711684U : 16711680U; inlen_dw = (unsigned int )((sdu_len + 3UL) / 4UL); efx_writed(efx, hdr, pdu); i = 0U; } goto ldv_47110; ldv_47109: { efx_writed(efx, sdu + (unsigned long )i, (pdu + (unsigned int )hdr_len) + i * 4U); i = i + 1U; } ldv_47110: ; if (i < inlen_dw) { goto ldv_47109; } else { } { __asm__ volatile ("sfence": : : "memory"); _efx_writed(efx, 1165531836U, doorbell); } return; } } static bool siena_mcdi_poll_response(struct efx_nic *efx ) { unsigned int pdu ; unsigned int tmp ; efx_dword_t hdr ; { { tmp = efx_port_num(efx); pdu = tmp != 0U ? 16711944U : 16711688U; efx_readd(efx, & hdr, pdu); } return ((bool )(hdr.u32[0] != 4294967295U && (hdr.u32[0] & 8388608U) != 0U)); } } static void siena_mcdi_read_response(struct efx_nic *efx , efx_dword_t *outbuf , size_t offset , size_t outlen ) { unsigned int pdu ; unsigned int tmp ; unsigned int outlen_dw ; int i ; { { tmp = efx_port_num(efx); pdu = tmp != 0U ? 16711944U : 16711688U; outlen_dw = (unsigned int )((outlen + 3UL) / 4UL); i = 0; } goto ldv_47127; ldv_47126: { efx_readd(efx, outbuf + (unsigned long )i, (pdu + (unsigned int )offset) + (unsigned int )(i * 4)); i = i + 1; } ldv_47127: ; if ((unsigned int )i < outlen_dw) { goto ldv_47126; } else { } return; } } static int siena_mcdi_poll_reboot(struct efx_nic *efx ) { struct siena_nic_data *nic_data ; unsigned int addr ; unsigned int tmp ; efx_dword_t reg ; u32 value ; { { nic_data = (struct siena_nic_data *)efx->nic_data; tmp = efx_port_num(efx); addr = tmp != 0U ? 16713724U : 16713720U; efx_readd(efx, & reg, addr); value = reg.u32[0]; } if (value == 0U) { return (0); } else { } { reg.u32[0] = 0U; efx_writed(efx, (efx_dword_t const *)(& reg), addr); nic_data->stats[1] = 0ULL; nic_data->stats[30] = 0ULL; } if (value == 3735936685U) { return (-4); } else { return (-5); } } } static struct siena_nvram_type_info const siena_nvram_types[14U] = { {0, "sfc_dummy_phy"}, {0, "sfc_mcfw"}, {0, "sfc_mcfw_backup"}, {0, "sfc_static_cfg"}, {1, "sfc_static_cfg"}, {0, "sfc_dynamic_cfg"}, {1, "sfc_dynamic_cfg"}, {0, "sfc_exp_rom"}, {0, "sfc_exp_rom_cfg"}, {1, "sfc_exp_rom_cfg"}, {0, "sfc_phy_fw"}, {1, "sfc_phy_fw"}, {0, 0}, {0, "sfc_fpga"}}; static int siena_mtd_probe_partition(struct efx_nic *efx , struct efx_mcdi_mtd_partition *part , unsigned int type ) { struct siena_nvram_type_info const *info ; size_t size ; size_t erase_size ; bool protected ; int rc ; unsigned int tmp ; { if (type > 13U || (unsigned long )siena_nvram_types[type].name == (unsigned long )((char const */* const */)0)) { return (-19); } else { } { info = (struct siena_nvram_type_info const *)(& siena_nvram_types) + (unsigned long )type; tmp = efx_port_num(efx); } if ((unsigned int )info->port != tmp) { return (-19); } else { } { rc = efx_mcdi_nvram_info(efx, type, & size, & erase_size, & protected); } if (rc != 0) { return (rc); } else { } if ((int )protected) { return (-19); } else { } part->nvram_type = (u16 )type; part->common.dev_type_name = "Siena NVRAM manager"; part->common.type_name = info->name; part->common.mtd.type = 3U; part->common.mtd.flags = 3072U; part->common.mtd.size = (uint64_t )size; part->common.mtd.erasesize = (uint32_t )erase_size; return (0); } } static int siena_mtd_get_fw_subtypes(struct efx_nic *efx , struct efx_mcdi_mtd_partition *parts , size_t n_parts ) { uint16_t fw_subtype_list[32U] ; size_t i ; int rc ; { { rc = efx_mcdi_get_board_cfg(efx, (u8 *)0U, (u16 *)(& fw_subtype_list), (u32 *)0U); } if (rc != 0) { return (rc); } else { } i = 0UL; goto ldv_47161; ldv_47160: (parts + i)->fw_subtype = fw_subtype_list[(int )(parts + i)->nvram_type]; i = i + 1UL; ldv_47161: ; if (i < n_parts) { goto ldv_47160; } else { } return (0); } } static int siena_mtd_probe(struct efx_nic *efx ) { struct efx_mcdi_mtd_partition *parts ; u32 nvram_types ; unsigned int type ; size_t n_parts ; int rc ; int tmp ; long tmp___0 ; unsigned int tmp___1 ; void *tmp___2 ; { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/siena.c", 858); dump_stack(); } } else { } { rc = efx_mcdi_nvram_types(efx, & nvram_types); } if (rc != 0) { return (rc); } else { } { tmp___1 = __arch_hweight32(nvram_types); tmp___2 = kcalloc((size_t )tmp___1, 1856UL, 208U); parts = (struct efx_mcdi_mtd_partition *)tmp___2; } if ((unsigned long )parts == (unsigned long )((struct efx_mcdi_mtd_partition *)0)) { return (-12); } else { } type = 0U; n_parts = 0UL; goto ldv_47173; ldv_47172: ; if ((int )nvram_types & 1) { { rc = siena_mtd_probe_partition(efx, parts + n_parts, type); } if (rc == 0) { n_parts = n_parts + 1UL; } else if (rc != -19) { goto fail; } else { } } else { } type = type + 1U; nvram_types = nvram_types >> 1; ldv_47173: ; if (nvram_types != 0U) { goto ldv_47172; } else { } { rc = siena_mtd_get_fw_subtypes(efx, parts, n_parts); } if (rc != 0) { goto fail; } else { } { rc = efx_mtd_add(efx, & parts->common, n_parts, 1856UL); } fail: ; if (rc != 0) { { kfree((void const *)parts); } } else { } return (rc); } } struct efx_nic_type const siena_a0_nic_type = {& siena_mem_map_size, & siena_probe_nic, & siena_remove_nic, & siena_init_nic, & siena_dimension_resources, & efx_port_dummy_op_void, (void (*)(struct efx_nic * ))0, & efx_mcdi_map_reset_reason, & siena_map_reset_flags, & efx_mcdi_reset, & efx_mcdi_port_probe, & efx_mcdi_port_remove, 0, & efx_farch_fini_dmaq, & siena_prepare_flush, & siena_finish_flush, & siena_describe_nic_stats, & siena_update_nic_stats, & efx_mcdi_mac_start_stats, & efx_mcdi_mac_pull_stats, & efx_mcdi_mac_stop_stats, & efx_mcdi_set_id_led, & siena_push_irq_moderation, & efx_mcdi_port_reconfigure, 0, & siena_mac_reconfigure, & efx_mcdi_mac_check_fault, & siena_get_wol, & siena_set_wol, & siena_init_wol, & siena_test_chip, & efx_mcdi_nvram_test_all, & siena_mcdi_request, & siena_mcdi_poll_response, & siena_mcdi_read_response, & siena_mcdi_poll_reboot, & efx_farch_irq_enable_master, & efx_farch_irq_test_generate, & efx_farch_irq_disable_master, & efx_farch_msi_interrupt, & efx_farch_legacy_interrupt, & efx_farch_tx_probe, & efx_farch_tx_init, & efx_farch_tx_remove, & efx_farch_tx_write, & siena_rx_push_rss_config, & efx_farch_rx_probe, & efx_farch_rx_init, & efx_farch_rx_remove, & efx_farch_rx_write, & efx_farch_rx_defer_refill, & efx_farch_ev_probe, & efx_farch_ev_init, & efx_farch_ev_fini, & efx_farch_ev_remove, & efx_farch_ev_process, & efx_farch_ev_read_ack, & efx_farch_ev_test_generate, & efx_farch_filter_table_probe, & efx_farch_filter_table_restore, & efx_farch_filter_table_remove, & efx_farch_filter_update_rx_scatter, & efx_farch_filter_insert, & efx_farch_filter_remove_safe, & efx_farch_filter_get_safe, & efx_farch_filter_clear_rx, & efx_farch_filter_count_rx_used, & efx_farch_filter_get_rx_id_limit, & efx_farch_filter_get_rx_ids, & efx_farch_filter_rfs_insert, & efx_farch_filter_rfs_expire_one, & siena_mtd_probe, & efx_mcdi_mtd_rename, & efx_mcdi_mtd_read, & efx_mcdi_mtd_erase, & efx_mcdi_mtd_write, & efx_mcdi_mtd_sync, & siena_ptp_write_host_time, 0, & siena_ptp_set_ts_config, 3, 16056320U, 15990784U, 8388608U, 16121856U, 16384000U, 70368744177663ULL, 16U, 12U, 0U, 0U, 1, (_Bool)0, 0U, 16384U, 3221225490ULL, 1, 8192U, 505U}; void ldv_io_instance_callback_12_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_12_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_12_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_12_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_12_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_12_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_12_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_12_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_12_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_12_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_12_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_12_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_12_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_12_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_12_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_12_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_12_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_12_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_12_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_12_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_12_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_12_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_12_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_12_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_12_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_12_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_12_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_12_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_12_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_12_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_12_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_12_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_12_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_12_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_12_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_12_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_12_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_12_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_12_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_12_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_12_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_12_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_12_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_12_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_12_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_12_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_12_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_13_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_13_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_13_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_13_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_13_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_13_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_14_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_14_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_14_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_14_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_14_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_14_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_15_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_15_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_15_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_15_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_15_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_15_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_16_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_16_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_16_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_16_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_16_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_16_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_17_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_17_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_17_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_17_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_17_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_17_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_18_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_18_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_18_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_18_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_18_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_18_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_9_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) ; void ldv_io_instance_callback_9_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) ; void ldv_io_instance_callback_9_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; void ldv_io_instance_callback_9_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_9_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) ; void ldv_io_instance_callback_9_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_9_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) ; int ldv_io_instance_probe_12_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_12_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_12_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_12_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; _Bool (*ldv_12_callback_check_mac_fault)(struct efx_nic * ) ; unsigned long (*ldv_12_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_12_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_12_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_12_callback_ev_init)(struct efx_channel * ) ; int (*ldv_12_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_12_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_12_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_12_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_12_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_12_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_12_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_12_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_12_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_12_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_12_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_12_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_12_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_12_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_12_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_12_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_12_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_12_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_12_callback_fini)(struct efx_nic * ) ; int (*ldv_12_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_12_callback_finish_flush)(struct efx_nic * ) ; void (*ldv_12_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_12_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; void (*ldv_12_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_12_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_12_callback_init)(struct efx_nic * ) ; void (*ldv_12_callback_init_phy)(struct efx_nic * ) ; void (*ldv_12_callback_irq_disable_non_ev)(struct efx_nic * ) ; void (*ldv_12_callback_irq_enable_master)(struct efx_nic * ) ; enum irqreturn (*ldv_12_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_12_callback_irq_handle_msi)(int , void * ) ; void (*ldv_12_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_12_callback_map_reset_flags)(unsigned int * ) ; enum reset_type (*ldv_12_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_12_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_12_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_12_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_12_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_12_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_12_callback_monitor)(struct efx_nic * ) ; int (*ldv_12_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_12_callback_mtd_probe)(struct efx_nic * ) ; int (*ldv_12_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_12_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_12_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_12_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; _Bool (*ldv_12_callback_poll)(struct efx_nic * ) ; void (*ldv_12_callback_post_remove)(struct efx_channel * ) ; int (*ldv_12_callback_pre_probe)(struct efx_channel * ) ; void (*ldv_12_callback_prepare_flush)(struct efx_nic * ) ; int (*ldv_12_callback_probe_port)(struct efx_nic * ) ; int (*ldv_12_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; void (*ldv_12_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_12_callback_pull_stats)(struct efx_nic * ) ; void (*ldv_12_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_12_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_12_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_12_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_12_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_12_callback_remove_port)(struct efx_nic * ) ; int (*ldv_12_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_12_callback_resume_wol)(struct efx_nic * ) ; int (*ldv_12_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_12_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_12_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_12_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_12_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_12_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_12_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_12_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; void (*ldv_12_callback_set_npage_adv)(struct efx_nic * , unsigned int ) ; int (*ldv_12_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_12_callback_set_wol)(struct efx_nic * , unsigned int ) ; void (*ldv_12_callback_start_stats)(struct efx_nic * ) ; void (*ldv_12_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_12_callback_test_alive)(struct efx_nic * ) ; int (*ldv_12_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; char *(*ldv_12_callback_test_name)(struct efx_nic * , unsigned int ) ; int (*ldv_12_callback_test_nvram)(struct efx_nic * ) ; void (*ldv_12_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_12_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_12_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_12_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_12_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_12_container_struct_efx_nic_type ; struct efx_phy_operations *ldv_12_container_struct_efx_phy_operations ; _Bool (*ldv_13_callback_check_mac_fault)(struct efx_nic * ) ; enum reset_type (*ldv_13_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_13_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_13_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_13_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_13_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_13_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; int (*ldv_13_callback_probe_port)(struct efx_nic * ) ; void (*ldv_13_callback_pull_stats)(struct efx_nic * ) ; int (*ldv_13_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_13_callback_remove_port)(struct efx_nic * ) ; void (*ldv_13_callback_start_stats)(struct efx_nic * ) ; void (*ldv_13_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_13_callback_test_nvram)(struct efx_nic * ) ; _Bool (*ldv_14_callback_check_mac_fault)(struct efx_nic * ) ; enum reset_type (*ldv_14_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_14_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_14_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_14_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_14_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_14_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; int (*ldv_14_callback_probe_port)(struct efx_nic * ) ; void (*ldv_14_callback_pull_stats)(struct efx_nic * ) ; int (*ldv_14_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_14_callback_remove_port)(struct efx_nic * ) ; void (*ldv_14_callback_start_stats)(struct efx_nic * ) ; void (*ldv_14_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_14_callback_test_nvram)(struct efx_nic * ) ; _Bool (*ldv_15_callback_check_mac_fault)(struct efx_nic * ) ; enum reset_type (*ldv_15_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_15_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_15_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_15_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_15_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_15_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; int (*ldv_15_callback_probe_port)(struct efx_nic * ) ; void (*ldv_15_callback_pull_stats)(struct efx_nic * ) ; int (*ldv_15_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_15_callback_remove_port)(struct efx_nic * ) ; void (*ldv_15_callback_start_stats)(struct efx_nic * ) ; void (*ldv_15_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_15_callback_test_nvram)(struct efx_nic * ) ; _Bool (*ldv_16_callback_check_mac_fault)(struct efx_nic * ) ; enum reset_type (*ldv_16_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_16_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_16_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_16_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_16_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_16_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; int (*ldv_16_callback_probe_port)(struct efx_nic * ) ; void (*ldv_16_callback_pull_stats)(struct efx_nic * ) ; int (*ldv_16_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_16_callback_remove_port)(struct efx_nic * ) ; void (*ldv_16_callback_start_stats)(struct efx_nic * ) ; void (*ldv_16_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_16_callback_test_nvram)(struct efx_nic * ) ; _Bool (*ldv_17_callback_check_mac_fault)(struct efx_nic * ) ; enum reset_type (*ldv_17_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_17_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_17_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_17_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_17_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_17_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; int (*ldv_17_callback_probe_port)(struct efx_nic * ) ; void (*ldv_17_callback_pull_stats)(struct efx_nic * ) ; int (*ldv_17_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_17_callback_remove_port)(struct efx_nic * ) ; void (*ldv_17_callback_start_stats)(struct efx_nic * ) ; void (*ldv_17_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_17_callback_test_nvram)(struct efx_nic * ) ; _Bool (*ldv_18_callback_check_mac_fault)(struct efx_nic * ) ; enum reset_type (*ldv_18_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_18_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_18_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_18_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_18_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_18_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; int (*ldv_18_callback_probe_port)(struct efx_nic * ) ; void (*ldv_18_callback_pull_stats)(struct efx_nic * ) ; int (*ldv_18_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_18_callback_remove_port)(struct efx_nic * ) ; void (*ldv_18_callback_start_stats)(struct efx_nic * ) ; void (*ldv_18_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_18_callback_test_nvram)(struct efx_nic * ) ; _Bool (*ldv_9_callback_check_mac_fault)(struct efx_nic * ) ; enum reset_type (*ldv_9_callback_map_reset_reason)(enum reset_type ) ; int (*ldv_9_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) ; int (*ldv_9_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; void (*ldv_9_callback_mtd_rename)(struct efx_mtd_partition * ) ; int (*ldv_9_callback_mtd_sync)(struct mtd_info * ) ; int (*ldv_9_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) ; int (*ldv_9_callback_probe_port)(struct efx_nic * ) ; void (*ldv_9_callback_pull_stats)(struct efx_nic * ) ; int (*ldv_9_callback_reconfigure_port)(struct efx_nic * ) ; void (*ldv_9_callback_remove_port)(struct efx_nic * ) ; void (*ldv_9_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; void (*ldv_9_callback_start_stats)(struct efx_nic * ) ; void (*ldv_9_callback_stop_stats)(struct efx_nic * ) ; int (*ldv_9_callback_test_nvram)(struct efx_nic * ) ; int ldv_statevar_12 ; void (*ldv_10_callback_ev_fini)(struct efx_channel * ) = & efx_farch_ev_fini; int (*ldv_10_callback_ev_init)(struct efx_channel * ) = & efx_farch_ev_init; int (*ldv_10_callback_ev_probe)(struct efx_channel * ) = & efx_farch_ev_probe; int (*ldv_10_callback_ev_process)(struct efx_channel * , int ) = & efx_farch_ev_process; void (*ldv_10_callback_ev_read_ack)(struct efx_channel * ) = & efx_farch_ev_read_ack; void (*ldv_10_callback_ev_remove)(struct efx_channel * ) = & efx_farch_ev_remove; void (*ldv_10_callback_ev_test_generate)(struct efx_channel * ) = & efx_farch_ev_test_generate; int (*ldv_10_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_farch_filter_clear_rx; unsigned int (*ldv_10_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_farch_filter_count_rx_used; unsigned int (*ldv_10_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_farch_filter_get_rx_id_limit; int (*ldv_10_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_farch_filter_get_rx_ids; int (*ldv_10_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_farch_filter_get_safe; int (*ldv_10_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_farch_filter_insert; int (*ldv_10_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_farch_filter_remove_safe; int (*ldv_10_callback_filter_table_probe)(struct efx_nic * ) = & efx_farch_filter_table_probe; void (*ldv_10_callback_filter_table_remove)(struct efx_nic * ) = & efx_farch_filter_table_remove; void (*ldv_10_callback_filter_table_restore)(struct efx_nic * ) = & efx_farch_filter_table_restore; int (*ldv_10_callback_fini_dmaq)(struct efx_nic * ) = & efx_farch_fini_dmaq; void (*ldv_10_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_farch_irq_disable_master; void (*ldv_10_callback_irq_enable_master)(struct efx_nic * ) = & efx_farch_irq_enable_master; enum irqreturn (*ldv_10_callback_irq_handle_msi)(int , void * ) = & efx_farch_msi_interrupt; void (*ldv_10_callback_irq_test_generate)(struct efx_nic * ) = & efx_farch_irq_test_generate; int (*ldv_10_callback_reconfigure)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_10_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_farch_rx_defer_refill; void (*ldv_10_callback_rx_init)(struct efx_rx_queue * ) = & efx_farch_rx_init; int (*ldv_10_callback_rx_probe)(struct efx_rx_queue * ) = & efx_farch_rx_probe; void (*ldv_10_callback_rx_remove)(struct efx_rx_queue * ) = & efx_farch_rx_remove; void (*ldv_10_callback_rx_write)(struct efx_rx_queue * ) = & efx_farch_rx_write; void (*ldv_10_callback_tx_init)(struct efx_tx_queue * ) = & efx_farch_tx_init; int (*ldv_10_callback_tx_probe)(struct efx_tx_queue * ) = & efx_farch_tx_probe; void (*ldv_10_callback_tx_remove)(struct efx_tx_queue * ) = & efx_farch_tx_remove; void (*ldv_10_callback_tx_write)(struct efx_tx_queue * ) = & efx_farch_tx_write; void (*ldv_11_callback_ev_fini)(struct efx_channel * ) = & efx_farch_ev_fini; int (*ldv_11_callback_ev_init)(struct efx_channel * ) = & efx_farch_ev_init; int (*ldv_11_callback_ev_probe)(struct efx_channel * ) = & efx_farch_ev_probe; int (*ldv_11_callback_ev_process)(struct efx_channel * , int ) = & efx_farch_ev_process; void (*ldv_11_callback_ev_read_ack)(struct efx_channel * ) = & efx_farch_ev_read_ack; void (*ldv_11_callback_ev_remove)(struct efx_channel * ) = & efx_farch_ev_remove; void (*ldv_11_callback_ev_test_generate)(struct efx_channel * ) = & efx_farch_ev_test_generate; int (*ldv_11_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_farch_filter_clear_rx; unsigned int (*ldv_11_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_farch_filter_count_rx_used; unsigned int (*ldv_11_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_farch_filter_get_rx_id_limit; int (*ldv_11_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_farch_filter_get_rx_ids; int (*ldv_11_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_farch_filter_get_safe; int (*ldv_11_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_farch_filter_insert; int (*ldv_11_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_farch_filter_remove_safe; _Bool (*ldv_11_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_farch_filter_rfs_expire_one; int (*ldv_11_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_farch_filter_rfs_insert; int (*ldv_11_callback_filter_table_probe)(struct efx_nic * ) = & efx_farch_filter_table_probe; void (*ldv_11_callback_filter_table_remove)(struct efx_nic * ) = & efx_farch_filter_table_remove; void (*ldv_11_callback_filter_table_restore)(struct efx_nic * ) = & efx_farch_filter_table_restore; void (*ldv_11_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_farch_filter_update_rx_scatter; int (*ldv_11_callback_fini_dmaq)(struct efx_nic * ) = & efx_farch_fini_dmaq; void (*ldv_11_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_farch_irq_disable_master; void (*ldv_11_callback_irq_enable_master)(struct efx_nic * ) = & efx_farch_irq_enable_master; enum irqreturn (*ldv_11_callback_irq_handle_legacy)(int , void * ) = & efx_farch_legacy_interrupt; enum irqreturn (*ldv_11_callback_irq_handle_msi)(int , void * ) = & efx_farch_msi_interrupt; void (*ldv_11_callback_irq_test_generate)(struct efx_nic * ) = & efx_farch_irq_test_generate; void (*ldv_11_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_farch_rx_defer_refill; void (*ldv_11_callback_rx_init)(struct efx_rx_queue * ) = & efx_farch_rx_init; int (*ldv_11_callback_rx_probe)(struct efx_rx_queue * ) = & efx_farch_rx_probe; void (*ldv_11_callback_rx_remove)(struct efx_rx_queue * ) = & efx_farch_rx_remove; void (*ldv_11_callback_rx_write)(struct efx_rx_queue * ) = & efx_farch_rx_write; void (*ldv_11_callback_tx_init)(struct efx_tx_queue * ) = & efx_farch_tx_init; int (*ldv_11_callback_tx_probe)(struct efx_tx_queue * ) = & efx_farch_tx_probe; void (*ldv_11_callback_tx_remove)(struct efx_tx_queue * ) = & efx_farch_tx_remove; void (*ldv_11_callback_tx_write)(struct efx_tx_queue * ) = & efx_farch_tx_write; _Bool (*ldv_12_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; unsigned long (*ldv_12_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & siena_describe_nic_stats; int (*ldv_12_callback_dimension_resources)(struct efx_nic * ) = & siena_dimension_resources; void (*ldv_12_callback_ev_fini)(struct efx_channel * ) = & efx_farch_ev_fini; int (*ldv_12_callback_ev_init)(struct efx_channel * ) = & efx_farch_ev_init; int (*ldv_12_callback_ev_probe)(struct efx_channel * ) = & efx_farch_ev_probe; int (*ldv_12_callback_ev_process)(struct efx_channel * , int ) = & efx_farch_ev_process; void (*ldv_12_callback_ev_read_ack)(struct efx_channel * ) = & efx_farch_ev_read_ack; void (*ldv_12_callback_ev_remove)(struct efx_channel * ) = & efx_farch_ev_remove; void (*ldv_12_callback_ev_test_generate)(struct efx_channel * ) = & efx_farch_ev_test_generate; int (*ldv_12_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_farch_filter_clear_rx; unsigned int (*ldv_12_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_farch_filter_count_rx_used; unsigned int (*ldv_12_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_farch_filter_get_rx_id_limit; int (*ldv_12_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_farch_filter_get_rx_ids; int (*ldv_12_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_farch_filter_get_safe; int (*ldv_12_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_farch_filter_insert; int (*ldv_12_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_farch_filter_remove_safe; _Bool (*ldv_12_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_farch_filter_rfs_expire_one; int (*ldv_12_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_farch_filter_rfs_insert; int (*ldv_12_callback_filter_table_probe)(struct efx_nic * ) = & efx_farch_filter_table_probe; void (*ldv_12_callback_filter_table_remove)(struct efx_nic * ) = & efx_farch_filter_table_remove; void (*ldv_12_callback_filter_table_restore)(struct efx_nic * ) = & efx_farch_filter_table_restore; void (*ldv_12_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_farch_filter_update_rx_scatter; int (*ldv_12_callback_fini_dmaq)(struct efx_nic * ) = & efx_farch_fini_dmaq; void (*ldv_12_callback_finish_flush)(struct efx_nic * ) = & siena_finish_flush; void (*ldv_12_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & siena_get_wol; void (*ldv_12_callback_irq_disable_non_ev)(struct efx_nic * ) = & efx_farch_irq_disable_master; void (*ldv_12_callback_irq_enable_master)(struct efx_nic * ) = & efx_farch_irq_enable_master; enum irqreturn (*ldv_12_callback_irq_handle_legacy)(int , void * ) = & efx_farch_legacy_interrupt; enum irqreturn (*ldv_12_callback_irq_handle_msi)(int , void * ) = & efx_farch_msi_interrupt; void (*ldv_12_callback_irq_test_generate)(struct efx_nic * ) = & efx_farch_irq_test_generate; int (*ldv_12_callback_map_reset_flags)(unsigned int * ) = & siena_map_reset_flags; enum reset_type (*ldv_12_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_12_callback_mcdi_poll_reboot)(struct efx_nic * ) = & siena_mcdi_poll_reboot; _Bool (*ldv_12_callback_mcdi_poll_response)(struct efx_nic * ) = & siena_mcdi_poll_response; void (*ldv_12_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & siena_mcdi_read_response; void (*ldv_12_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& siena_mcdi_request); unsigned int (*ldv_12_callback_mem_map_size)(struct efx_nic * ) = & siena_mem_map_size; int (*ldv_12_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_12_callback_mtd_probe)(struct efx_nic * ) = & siena_mtd_probe; int (*ldv_12_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_12_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_12_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_12_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); void (*ldv_12_callback_prepare_flush)(struct efx_nic * ) = & siena_prepare_flush; int (*ldv_12_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; int (*ldv_12_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & siena_ptp_set_ts_config; void (*ldv_12_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & siena_ptp_write_host_time; void (*ldv_12_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; void (*ldv_12_callback_push_irq_moderation)(struct efx_channel * ) = & siena_push_irq_moderation; int (*ldv_12_callback_reconfigure_mac)(struct efx_nic * ) = & siena_mac_reconfigure; int (*ldv_12_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_12_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; int (*ldv_12_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_mcdi_reset; void (*ldv_12_callback_resume_wol)(struct efx_nic * ) = & siena_init_wol; void (*ldv_12_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_farch_rx_defer_refill; void (*ldv_12_callback_rx_init)(struct efx_rx_queue * ) = & efx_farch_rx_init; int (*ldv_12_callback_rx_probe)(struct efx_rx_queue * ) = & efx_farch_rx_probe; void (*ldv_12_callback_rx_push_rss_config)(struct efx_nic * ) = & siena_rx_push_rss_config; void (*ldv_12_callback_rx_remove)(struct efx_rx_queue * ) = & efx_farch_rx_remove; void (*ldv_12_callback_rx_write)(struct efx_rx_queue * ) = & efx_farch_rx_write; int (*ldv_12_callback_set_wol)(struct efx_nic * , unsigned int ) = & siena_set_wol; void (*ldv_12_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_12_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_12_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & siena_test_chip; int (*ldv_12_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; void (*ldv_12_callback_tx_init)(struct efx_tx_queue * ) = & efx_farch_tx_init; int (*ldv_12_callback_tx_probe)(struct efx_tx_queue * ) = & efx_farch_tx_probe; void (*ldv_12_callback_tx_remove)(struct efx_tx_queue * ) = & efx_farch_tx_remove; void (*ldv_12_callback_tx_write)(struct efx_tx_queue * ) = & efx_farch_tx_write; unsigned long (*ldv_12_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & siena_update_nic_stats; _Bool (*ldv_13_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; enum reset_type (*ldv_13_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_13_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_13_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_13_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_13_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_13_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); int (*ldv_13_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; void (*ldv_13_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; int (*ldv_13_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_13_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; void (*ldv_13_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_13_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_13_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; _Bool (*ldv_14_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; enum reset_type (*ldv_14_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_14_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_14_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_14_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_14_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_14_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); int (*ldv_14_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; void (*ldv_14_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; int (*ldv_14_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_14_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; void (*ldv_14_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_14_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_14_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; _Bool (*ldv_15_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; enum reset_type (*ldv_15_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_15_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_15_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_15_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_15_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_15_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); int (*ldv_15_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; void (*ldv_15_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; int (*ldv_15_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_15_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; void (*ldv_15_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_15_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_15_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; _Bool (*ldv_16_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; enum reset_type (*ldv_16_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_16_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_16_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_16_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_16_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_16_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); int (*ldv_16_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; void (*ldv_16_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; int (*ldv_16_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_16_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; void (*ldv_16_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_16_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_16_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; _Bool (*ldv_17_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; enum reset_type (*ldv_17_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_17_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_17_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_17_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_17_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_17_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); int (*ldv_17_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; void (*ldv_17_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; int (*ldv_17_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_17_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; void (*ldv_17_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_17_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_17_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; _Bool (*ldv_18_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; enum reset_type (*ldv_18_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_18_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_18_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_18_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_18_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_18_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); int (*ldv_18_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; void (*ldv_18_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; int (*ldv_18_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_18_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; void (*ldv_18_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_18_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_18_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; _Bool (*ldv_9_callback_check_mac_fault)(struct efx_nic * ) = & efx_mcdi_mac_check_fault; enum reset_type (*ldv_9_callback_map_reset_reason)(enum reset_type ) = & efx_mcdi_map_reset_reason; int (*ldv_9_callback_mtd_erase)(struct mtd_info * , long long , unsigned long ) = & efx_mcdi_mtd_erase; int (*ldv_9_callback_mtd_read)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = & efx_mcdi_mtd_read; void (*ldv_9_callback_mtd_rename)(struct efx_mtd_partition * ) = & efx_mcdi_mtd_rename; int (*ldv_9_callback_mtd_sync)(struct mtd_info * ) = & efx_mcdi_mtd_sync; int (*ldv_9_callback_mtd_write)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) = (int (*)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ))(& efx_mcdi_mtd_write); int (*ldv_9_callback_probe_port)(struct efx_nic * ) = & efx_mcdi_port_probe; void (*ldv_9_callback_pull_stats)(struct efx_nic * ) = & efx_mcdi_mac_pull_stats; int (*ldv_9_callback_reconfigure_port)(struct efx_nic * ) = & efx_mcdi_port_reconfigure; void (*ldv_9_callback_remove_port)(struct efx_nic * ) = & efx_mcdi_port_remove; void (*ldv_9_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & efx_mcdi_set_id_led; void (*ldv_9_callback_start_stats)(struct efx_nic * ) = & efx_mcdi_mac_start_stats; void (*ldv_9_callback_stop_stats)(struct efx_nic * ) = & efx_mcdi_mac_stop_stats; int (*ldv_9_callback_test_nvram)(struct efx_nic * ) = & efx_mcdi_nvram_test_all; void ldv_io_instance_callback_10_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_10_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_10_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_init(arg1); } return; } } void ldv_io_instance_callback_10_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_probe(arg1); } return; } } void ldv_io_instance_callback_10_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_remove(arg1); } return; } } void ldv_io_instance_callback_10_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_write(arg1); } return; } } void ldv_io_instance_callback_10_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_init(arg1); } return; } } void ldv_io_instance_callback_10_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_probe(arg1); } return; } } void ldv_io_instance_callback_10_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_remove(arg1); } return; } } void ldv_io_instance_callback_10_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_write(arg1); } return; } } void ldv_io_instance_callback_10_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_fini(arg1); } return; } } void ldv_io_instance_callback_10_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_init(arg1); } return; } } void ldv_io_instance_callback_10_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_probe(arg1); } return; } } void ldv_io_instance_callback_10_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_farch_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_10_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_10_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_remove(arg1); } return; } } void ldv_io_instance_callback_10_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_10_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_farch_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_10_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_farch_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_10_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_10_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_farch_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_10_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_farch_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_10_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_farch_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_10_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_farch_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_10_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_10_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_10_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_10_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_10_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_disable_master(arg1); } return; } } void ldv_io_instance_callback_10_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_enable_master(arg1); } return; } } void ldv_io_instance_callback_10_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_farch_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_10_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_11_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_11_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_init(arg1); } return; } } void ldv_io_instance_callback_11_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_probe(arg1); } return; } } void ldv_io_instance_callback_11_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_remove(arg1); } return; } } void ldv_io_instance_callback_11_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_write(arg1); } return; } } void ldv_io_instance_callback_11_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_init(arg1); } return; } } void ldv_io_instance_callback_11_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_probe(arg1); } return; } } void ldv_io_instance_callback_11_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_remove(arg1); } return; } } void ldv_io_instance_callback_11_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_write(arg1); } return; } } void ldv_io_instance_callback_11_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_fini(arg1); } return; } } void ldv_io_instance_callback_11_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_init(arg1); } return; } } void ldv_io_instance_callback_11_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_probe(arg1); } return; } } void ldv_io_instance_callback_11_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_farch_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_11_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_11_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_remove(arg1); } return; } } void ldv_io_instance_callback_11_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_11_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_farch_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_11_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_farch_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_11_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_11_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_farch_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_11_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_farch_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_11_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_farch_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_11_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_farch_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_11_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_farch_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_11_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_farch_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_11_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_11_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_11_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_11_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_11_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_11_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_disable_master(arg1); } return; } } void ldv_io_instance_callback_11_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_enable_master(arg1); } return; } } void ldv_io_instance_callback_11_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_farch_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_11_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_farch_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_11_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_12_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_12_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_12_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_12_111(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_prepare_flush(arg1); } return; } } void ldv_io_instance_callback_12_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_12_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { siena_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_12_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { siena_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_12_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_12_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { siena_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_12_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_12_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_12_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_12_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_mcdi_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_12_128(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_init_wol(arg1); } return; } } void ldv_io_instance_callback_12_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_12_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_init(arg1); } return; } } void ldv_io_instance_callback_12_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_probe(arg1); } return; } } void ldv_io_instance_callback_12_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_12_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_remove(arg1); } return; } } void ldv_io_instance_callback_12_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_farch_rx_write(arg1); } return; } } void ldv_io_instance_callback_12_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { siena_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_12_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_12_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_12_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { siena_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_12_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_12_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_init(arg1); } return; } } void ldv_io_instance_callback_12_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_probe(arg1); } return; } } void ldv_io_instance_callback_12_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_remove(arg1); } return; } } void ldv_io_instance_callback_12_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_farch_tx_write(arg1); } return; } } void ldv_io_instance_callback_12_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { siena_update_nic_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_12_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { siena_describe_nic_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_12_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_12_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_fini(arg1); } return; } } void ldv_io_instance_callback_12_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_init(arg1); } return; } } void ldv_io_instance_callback_12_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_probe(arg1); } return; } } void ldv_io_instance_callback_12_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_farch_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_12_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_12_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_remove(arg1); } return; } } void ldv_io_instance_callback_12_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_farch_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_12_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_farch_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_12_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_farch_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_12_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_12_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_farch_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_12_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_farch_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_12_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_12_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_farch_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_12_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_farch_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_12_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_farch_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_12_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_farch_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_12_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_12_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_12_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_12_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_12_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_12_57(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_finish_flush(arg1); } return; } } void ldv_io_instance_callback_12_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { siena_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_12_72(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_disable_master(arg1); } return; } } void ldv_io_instance_callback_12_73(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_enable_master(arg1); } return; } } void ldv_io_instance_callback_12_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_farch_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_12_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_farch_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_12_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_farch_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_12_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { siena_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_12_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_12_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_12_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_12_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { siena_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_12_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { siena_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_12_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_12_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_12_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { siena_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_12_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_13_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_13_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_13_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_13_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_13_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_13_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_13_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_13_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_13_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_13_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_13_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_13_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_13_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_13_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_14_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_14_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_14_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_14_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_14_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_14_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_14_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_14_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_14_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_14_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_14_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_14_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_14_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_14_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_15_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_15_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_15_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_15_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_15_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_15_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_15_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_15_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_15_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_15_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_15_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_15_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_15_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_15_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_16_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_16_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_16_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_16_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_16_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_16_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_16_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_16_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_16_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_16_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_16_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_16_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_16_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_16_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_17_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_17_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_17_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_17_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_17_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_17_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_17_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_17_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_17_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_17_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_17_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_17_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_17_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_17_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_18_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_18_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_18_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_18_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_18_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_18_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_18_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_18_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_18_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_18_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_18_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_18_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_18_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_18_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_io_instance_callback_9_102(void (*arg0)(struct efx_mtd_partition * ) , struct efx_mtd_partition *arg1 ) { { { efx_mcdi_mtd_rename(arg1); } return; } } void ldv_io_instance_callback_9_103(int (*arg0)(struct mtd_info * ) , struct mtd_info *arg1 ) { { { efx_mcdi_mtd_sync(arg1); } return; } } void ldv_io_instance_callback_9_104(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_write(arg1, arg2, arg3, arg4, (u8 const *)arg5); } return; } } void ldv_io_instance_callback_9_112(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_probe(arg1); } return; } } void ldv_io_instance_callback_9_120(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_pull_stats(arg1); } return; } } void ldv_io_instance_callback_9_125(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_reconfigure(arg1); } return; } } void ldv_io_instance_callback_9_126(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_port_remove(arg1); } return; } } void ldv_io_instance_callback_9_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { efx_mcdi_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_9_146(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_start_stats(arg1); } return; } } void ldv_io_instance_callback_9_147(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_stop_stats(arg1); } return; } } void ldv_io_instance_callback_9_153(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_nvram_test_all(arg1); } return; } } void ldv_io_instance_callback_9_4(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_mac_check_fault(arg1); } return; } } void ldv_io_instance_callback_9_84(enum reset_type (*arg0)(enum reset_type ) , enum reset_type arg1 ) { { { efx_mcdi_map_reset_reason(arg1); } return; } } void ldv_io_instance_callback_9_95(int (*arg0)(struct mtd_info * , long long , unsigned long ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 ) { { { efx_mcdi_mtd_erase(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_9_99(int (*arg0)(struct mtd_info * , long long , unsigned long , unsigned long * , unsigned char * ) , struct mtd_info *arg1 , long long arg2 , unsigned long arg3 , unsigned long *arg4 , unsigned char *arg5 ) { { { efx_mcdi_mtd_read(arg1, arg2, arg3, arg4, arg5); } return; } } void ldv_struct_falcon_board_type_io_instance_12(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_12 == 1) { goto case_1; } else { } if (ldv_statevar_12 == 2) { goto case_2; } else { } if (ldv_statevar_12 == 3) { goto case_3; } else { } if (ldv_statevar_12 == 4) { goto case_4; } else { } if (ldv_statevar_12 == 6) { goto case_6; } else { } if (ldv_statevar_12 == 8) { goto case_8; } else { } if (ldv_statevar_12 == 10) { goto case_10; } else { } if (ldv_statevar_12 == 11) { goto case_11; } else { } if (ldv_statevar_12 == 13) { goto case_13; } else { } if (ldv_statevar_12 == 14) { goto case_14; } else { } if (ldv_statevar_12 == 17) { goto case_17; } else { } if (ldv_statevar_12 == 18) { goto case_18; } else { } if (ldv_statevar_12 == 20) { goto case_20; } else { } if (ldv_statevar_12 == 22) { goto case_22; } else { } if (ldv_statevar_12 == 23) { goto case_23; } else { } if (ldv_statevar_12 == 24) { goto case_24; } else { } if (ldv_statevar_12 == 25) { goto case_25; } else { } if (ldv_statevar_12 == 27) { goto case_27; } else { } if (ldv_statevar_12 == 29) { goto case_29; } else { } if (ldv_statevar_12 == 30) { goto case_30; } else { } if (ldv_statevar_12 == 31) { goto case_31; } else { } if (ldv_statevar_12 == 32) { goto case_32; } else { } if (ldv_statevar_12 == 33) { goto case_33; } else { } if (ldv_statevar_12 == 34) { goto case_34; } else { } if (ldv_statevar_12 == 36) { goto case_36; } else { } if (ldv_statevar_12 == 39) { goto case_39; } else { } if (ldv_statevar_12 == 42) { goto case_42; } else { } if (ldv_statevar_12 == 45) { goto case_45; } else { } if (ldv_statevar_12 == 48) { goto case_48; } else { } if (ldv_statevar_12 == 50) { goto case_50; } else { } if (ldv_statevar_12 == 51) { goto case_51; } else { } if (ldv_statevar_12 == 52) { goto case_52; } else { } if (ldv_statevar_12 == 53) { goto case_53; } else { } if (ldv_statevar_12 == 54) { goto case_54; } else { } if (ldv_statevar_12 == 55) { goto case_55; } else { } if (ldv_statevar_12 == 56) { goto case_56; } else { } if (ldv_statevar_12 == 57) { goto case_57; } else { } if (ldv_statevar_12 == 58) { goto case_58; } else { } if (ldv_statevar_12 == 60) { goto case_60; } else { } if (ldv_statevar_12 == 62) { goto case_62; } else { } if (ldv_statevar_12 == 64) { goto case_64; } else { } if (ldv_statevar_12 == 66) { goto case_66; } else { } if (ldv_statevar_12 == 67) { goto case_67; } else { } if (ldv_statevar_12 == 68) { goto case_68; } else { } if (ldv_statevar_12 == 69) { goto case_69; } else { } if (ldv_statevar_12 == 70) { goto case_70; } else { } if (ldv_statevar_12 == 71) { goto case_71; } else { } if (ldv_statevar_12 == 72) { goto case_72; } else { } if (ldv_statevar_12 == 73) { goto case_73; } else { } if (ldv_statevar_12 == 75) { goto case_75; } else { } if (ldv_statevar_12 == 78) { goto case_78; } else { } if (ldv_statevar_12 == 80) { goto case_80; } else { } if (ldv_statevar_12 == 82) { goto case_82; } else { } if (ldv_statevar_12 == 84) { goto case_84; } else { } if (ldv_statevar_12 == 85) { goto case_85; } else { } if (ldv_statevar_12 == 86) { goto case_86; } else { } if (ldv_statevar_12 == 88) { goto case_88; } else { } if (ldv_statevar_12 == 91) { goto case_91; } else { } if (ldv_statevar_12 == 93) { goto case_93; } else { } if (ldv_statevar_12 == 94) { goto case_94; } else { } if (ldv_statevar_12 == 96) { goto case_96; } else { } if (ldv_statevar_12 == 98) { goto case_98; } else { } if (ldv_statevar_12 == 100) { goto case_100; } else { } if (ldv_statevar_12 == 102) { goto case_102; } else { } if (ldv_statevar_12 == 103) { goto case_103; } else { } if (ldv_statevar_12 == 105) { goto case_105; } else { } if (ldv_statevar_12 == 107) { goto case_107; } else { } if (ldv_statevar_12 == 108) { goto case_108; } else { } if (ldv_statevar_12 == 109) { goto case_109; } else { } if (ldv_statevar_12 == 110) { goto case_110; } else { } if (ldv_statevar_12 == 111) { goto case_111; } else { } if (ldv_statevar_12 == 112) { goto case_112; } else { } if (ldv_statevar_12 == 113) { goto case_113; } else { } if (ldv_statevar_12 == 115) { goto case_115; } else { } if (ldv_statevar_12 == 118) { goto case_118; } else { } if (ldv_statevar_12 == 120) { goto case_120; } else { } if (ldv_statevar_12 == 121) { goto case_121; } else { } if (ldv_statevar_12 == 122) { goto case_122; } else { } if (ldv_statevar_12 == 123) { goto case_123; } else { } if (ldv_statevar_12 == 124) { goto case_124; } else { } if (ldv_statevar_12 == 125) { goto case_125; } else { } if (ldv_statevar_12 == 126) { goto case_126; } else { } if (ldv_statevar_12 == 127) { goto case_127; } else { } if (ldv_statevar_12 == 128) { goto case_128; } else { } if (ldv_statevar_12 == 130) { goto case_130; } else { } if (ldv_statevar_12 == 132) { goto case_132; } else { } if (ldv_statevar_12 == 133) { goto case_133; } else { } if (ldv_statevar_12 == 134) { goto case_134; } else { } if (ldv_statevar_12 == 135) { goto case_135; } else { } if (ldv_statevar_12 == 136) { goto case_136; } else { } if (ldv_statevar_12 == 137) { goto case_137; } else { } if (ldv_statevar_12 == 138) { goto case_138; } else { } if (ldv_statevar_12 == 140) { goto case_140; } else { } if (ldv_statevar_12 == 142) { goto case_142; } else { } if (ldv_statevar_12 == 144) { goto case_144; } else { } if (ldv_statevar_12 == 146) { goto case_146; } else { } if (ldv_statevar_12 == 147) { goto case_147; } else { } if (ldv_statevar_12 == 148) { goto case_148; } else { } if (ldv_statevar_12 == 149) { goto case_149; } else { } if (ldv_statevar_12 == 151) { goto case_151; } else { } if (ldv_statevar_12 == 153) { goto case_153; } else { } if (ldv_statevar_12 == 154) { goto case_154; } else { } if (ldv_statevar_12 == 155) { goto case_155; } else { } if (ldv_statevar_12 == 156) { goto case_156; } else { } if (ldv_statevar_12 == 157) { goto case_157; } else { } if (ldv_statevar_12 == 159) { goto case_159; } else { } if (ldv_statevar_12 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_12 = ldv_switch_6(); } goto ldv_51453; case_2: /* CIL Label */ { ldv_io_instance_release_12_2(ldv_12_container_struct_efx_nic_type->remove, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 1; } goto ldv_51453; case_3: /* CIL Label */ { ldv_statevar_12 = ldv_switch_7(); } goto ldv_51453; case_4: /* CIL Label */ { ldv_io_instance_callback_12_4(ldv_12_callback_check_mac_fault, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_6: /* CIL Label */ { ldv_free((void *)ldv_12_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_12_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_12_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_12_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_12_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_12_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_12_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_12_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_12_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_12_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_12_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_12_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_12_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_12_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_12_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_12_resource_union_efx_dword_ptr); ldv_free((void *)ldv_12_resource_union_efx_qword_ptr); ldv_12_ret_default = 1; ldv_statevar_12 = 14; } goto ldv_51453; case_8: /* CIL Label */ { ldv_assume(ldv_12_ret_default != 0); ldv_statevar_12 = ldv_switch_6(); } goto ldv_51453; case_10: /* CIL Label */ { ldv_assume(ldv_12_ret_default == 0); ldv_statevar_12 = ldv_switch_7(); } goto ldv_51453; case_11: /* CIL Label */ { ldv_12_ret_default = ldv_io_instance_probe_12_11(ldv_12_container_struct_efx_nic_type->probe, ldv_12_resource_struct_efx_nic_ptr); ldv_12_ret_default = ldv_filter_err_code(ldv_12_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_12 = 8; } else { ldv_statevar_12 = 10; } goto ldv_51453; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_12_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_12_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_12_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_12_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_12_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_12_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_12_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_12_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_12_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_12_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_12_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_12_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_12_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_12_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_12_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_12_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_12_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_12 = ldv_switch_6(); } goto ldv_51453; case_14: /* CIL Label */ ; goto ldv_51453; case_17: /* CIL Label */ { ldv_io_instance_release_12_17(ldv_12_container_struct_efx_phy_operations->remove, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 1; } goto ldv_51453; case_18: /* CIL Label */ { ldv_io_instance_callback_12_18(ldv_12_callback_copy, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_12_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_12_19(ldv_12_callback_describe_stats, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_19_1_default); ldv_free((void *)ldv_12_ldv_param_19_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_22: /* CIL Label */ { ldv_io_instance_callback_12_22(ldv_12_callback_dimension_resources, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_23: /* CIL Label */ { ldv_io_instance_callback_12_23(ldv_12_callback_ev_fini, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_24: /* CIL Label */ { ldv_io_instance_callback_12_24(ldv_12_callback_ev_init, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_25: /* CIL Label */ { ldv_io_instance_callback_12_25(ldv_12_callback_ev_probe, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_27: /* CIL Label */ { ldv_io_instance_callback_12_26(ldv_12_callback_ev_process, ldv_12_resource_struct_efx_channel_ptr, ldv_12_ldv_param_26_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_29: /* CIL Label */ { ldv_io_instance_callback_12_29(ldv_12_callback_ev_read_ack, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_30: /* CIL Label */ { ldv_io_instance_callback_12_30(ldv_12_callback_ev_remove, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_31: /* CIL Label */ { ldv_io_instance_callback_12_31(ldv_12_callback_ev_test_generate, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_32: /* CIL Label */ { ldv_io_instance_callback_12_32(ldv_12_callback_filter_clear_rx, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_enum_efx_filter_priority); ldv_statevar_12 = 3; } goto ldv_51453; case_33: /* CIL Label */ { ldv_io_instance_callback_12_33(ldv_12_callback_filter_count_rx_used, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_enum_efx_filter_priority); ldv_statevar_12 = 3; } goto ldv_51453; case_34: /* CIL Label */ { ldv_io_instance_callback_12_34(ldv_12_callback_filter_get_rx_id_limit, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_12_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_12_35(ldv_12_callback_filter_get_rx_ids, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_enum_efx_filter_priority, ldv_12_ldv_param_35_2_default, ldv_12_ldv_param_35_3_default); ldv_free((void *)ldv_12_ldv_param_35_2_default); ldv_statevar_12 = 3; } goto ldv_51453; case_39: /* CIL Label */ { ldv_io_instance_callback_12_38(ldv_12_callback_filter_get_safe, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_enum_efx_filter_priority, ldv_12_ldv_param_38_2_default, ldv_12_resource_struct_efx_filter_spec_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_42: /* CIL Label */ { ldv_io_instance_callback_12_41(ldv_12_callback_filter_insert, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_efx_filter_spec_ptr, (int )ldv_12_ldv_param_41_2_default); ldv_statevar_12 = 3; } goto ldv_51453; case_45: /* CIL Label */ { ldv_io_instance_callback_12_44(ldv_12_callback_filter_remove_safe, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_enum_efx_filter_priority, ldv_12_ldv_param_44_2_default); ldv_statevar_12 = 3; } goto ldv_51453; case_48: /* CIL Label */ { ldv_io_instance_callback_12_47(ldv_12_callback_filter_rfs_expire_one, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_47_1_default, ldv_12_ldv_param_47_2_default); ldv_statevar_12 = 3; } goto ldv_51453; case_50: /* CIL Label */ { ldv_io_instance_callback_12_50(ldv_12_callback_filter_rfs_insert, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_efx_filter_spec_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_51: /* CIL Label */ { ldv_io_instance_callback_12_51(ldv_12_callback_filter_table_probe, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_52: /* CIL Label */ { ldv_io_instance_callback_12_52(ldv_12_callback_filter_table_remove, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_53: /* CIL Label */ { ldv_io_instance_callback_12_53(ldv_12_callback_filter_table_restore, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_54: /* CIL Label */ { ldv_io_instance_callback_12_54(ldv_12_callback_filter_update_rx_scatter, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_55: /* CIL Label */ { ldv_io_instance_callback_12_55(ldv_12_callback_fini, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_56: /* CIL Label */ { ldv_io_instance_callback_12_56(ldv_12_callback_fini_dmaq, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_57: /* CIL Label */ { ldv_io_instance_callback_12_57(ldv_12_callback_finish_flush, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_58: /* CIL Label */ ; if ((unsigned long )ldv_12_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_12_58(ldv_12_callback_func_6_ptr, ldv_12_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_12 = 3; goto ldv_51453; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_12_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_12_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_12_59(ldv_12_callback_get_module_eeprom, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_ethtool_eeprom_ptr, ldv_12_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_12_ldv_param_59_2_default); ldv_statevar_12 = 3; } goto ldv_51453; case_62: /* CIL Label */ ; if ((unsigned long )ldv_12_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_12_62(ldv_12_callback_get_module_info, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_12 = 3; goto ldv_51453; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_12_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_12_63(ldv_12_callback_get_name, ldv_12_resource_struct_efx_channel_ptr, ldv_12_ldv_param_63_1_default, ldv_12_ldv_param_63_2_default); ldv_free((void *)ldv_12_ldv_param_63_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_66: /* CIL Label */ { ldv_io_instance_callback_12_66(ldv_12_callback_get_settings, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_ethtool_cmd_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_67: /* CIL Label */ { ldv_io_instance_callback_12_67(ldv_12_callback_get_wol, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_68: /* CIL Label */ ; if ((unsigned long )ldv_12_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_12_68(ldv_12_callback_handle_global_event, ldv_12_resource_struct_efx_channel_ptr, ldv_12_resource_union_efx_qword_ptr); } } else { } ldv_statevar_12 = 3; goto ldv_51453; case_69: /* CIL Label */ { ldv_io_instance_callback_12_69(ldv_12_callback_handle_no_channel, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_70: /* CIL Label */ { ldv_io_instance_callback_12_70(ldv_12_callback_init, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_71: /* CIL Label */ { ldv_io_instance_callback_12_71(ldv_12_callback_init_phy, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_72: /* CIL Label */ { ldv_io_instance_callback_12_72(ldv_12_callback_irq_disable_non_ev, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_73: /* CIL Label */ { ldv_io_instance_callback_12_73(ldv_12_callback_irq_enable_master, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_75: /* CIL Label */ { ldv_io_instance_callback_12_74(ldv_12_callback_irq_handle_legacy, ldv_12_ldv_param_74_0_default, (void *)ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_78: /* CIL Label */ { ldv_io_instance_callback_12_77(ldv_12_callback_irq_handle_msi, ldv_12_ldv_param_77_0_default, (void *)ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_80: /* CIL Label */ { ldv_io_instance_callback_12_80(ldv_12_callback_irq_test_generate, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_12_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_12_81(ldv_12_callback_map_reset_flags, ldv_12_ldv_param_81_0_default); ldv_free((void *)ldv_12_ldv_param_81_0_default); ldv_statevar_12 = 3; } goto ldv_51453; case_84: /* CIL Label */ { ldv_io_instance_callback_12_84(ldv_12_callback_map_reset_reason, ldv_12_resource_enum_reset_type); ldv_statevar_12 = 3; } goto ldv_51453; case_85: /* CIL Label */ { ldv_io_instance_callback_12_85(ldv_12_callback_mcdi_poll_reboot, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_86: /* CIL Label */ { ldv_io_instance_callback_12_86(ldv_12_callback_mcdi_poll_response, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_88: /* CIL Label */ { ldv_io_instance_callback_12_87(ldv_12_callback_mcdi_read_response, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_union_efx_dword_ptr, ldv_12_ldv_param_87_2_default, ldv_12_ldv_param_87_3_default); ldv_statevar_12 = 3; } goto ldv_51453; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_12_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_12_90(ldv_12_callback_mcdi_request, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_union_efx_dword_ptr, ldv_12_ldv_param_90_2_default, ldv_12_ldv_param_90_3_default, ldv_12_ldv_param_90_4_default); ldv_free((void *)ldv_12_ldv_param_90_3_default); ldv_statevar_12 = 3; } goto ldv_51453; case_93: /* CIL Label */ { ldv_io_instance_callback_12_93(ldv_12_callback_mem_map_size, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_94: /* CIL Label */ { ldv_io_instance_callback_12_94(ldv_12_callback_monitor, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_96: /* CIL Label */ { ldv_io_instance_callback_12_95(ldv_12_callback_mtd_erase, ldv_12_resource_struct_mtd_info_ptr, ldv_12_ldv_param_95_1_default, ldv_12_ldv_param_95_2_default); ldv_statevar_12 = 3; } goto ldv_51453; case_98: /* CIL Label */ { ldv_io_instance_callback_12_98(ldv_12_callback_mtd_probe, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_12_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_12_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_12_99(ldv_12_callback_mtd_read, ldv_12_resource_struct_mtd_info_ptr, ldv_12_ldv_param_99_1_default, ldv_12_ldv_param_99_2_default, ldv_12_ldv_param_99_3_default, ldv_12_ldv_param_99_4_default); ldv_free((void *)ldv_12_ldv_param_99_3_default); ldv_free((void *)ldv_12_ldv_param_99_4_default); ldv_statevar_12 = 3; } goto ldv_51453; case_102: /* CIL Label */ { ldv_io_instance_callback_12_102(ldv_12_callback_mtd_rename, ldv_12_resource_struct_efx_mtd_partition_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_103: /* CIL Label */ { ldv_io_instance_callback_12_103(ldv_12_callback_mtd_sync, ldv_12_resource_struct_mtd_info_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_12_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_12_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_12_104(ldv_12_callback_mtd_write, ldv_12_resource_struct_mtd_info_ptr, ldv_12_ldv_param_104_1_default, ldv_12_ldv_param_104_2_default, ldv_12_ldv_param_104_3_default, ldv_12_ldv_param_104_4_default); ldv_free((void *)ldv_12_ldv_param_104_3_default); ldv_free((void *)ldv_12_ldv_param_104_4_default); ldv_statevar_12 = 3; } goto ldv_51453; case_107: /* CIL Label */ { ldv_io_instance_callback_12_107(ldv_12_callback_poll, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_108: /* CIL Label */ { ldv_io_instance_callback_12_108(ldv_12_callback_post_remove, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_109: /* CIL Label */ { ldv_io_instance_callback_12_109(ldv_12_callback_pre_probe, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_110: /* CIL Label */ ; if ((unsigned long )ldv_12_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_12_110(ldv_12_callback_prepare_enable_fc_tx, ldv_12_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_12 = 3; goto ldv_51453; case_111: /* CIL Label */ { ldv_io_instance_callback_12_111(ldv_12_callback_prepare_flush, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_112: /* CIL Label */ { ldv_io_instance_callback_12_112(ldv_12_callback_probe_port, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_113: /* CIL Label */ { ldv_io_instance_callback_12_113(ldv_12_callback_ptp_set_ts_config, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_hwtstamp_config_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_115: /* CIL Label */ ; if ((unsigned long )ldv_12_callback_ptp_set_ts_sync_events != (unsigned long )((int (*)(struct efx_nic * , _Bool , _Bool ))0)) { { ldv_io_instance_callback_12_114(ldv_12_callback_ptp_set_ts_sync_events, ldv_12_resource_struct_efx_nic_ptr, (int )ldv_12_ldv_param_114_1_default, (int )ldv_12_ldv_param_114_2_default); } } else { } ldv_statevar_12 = 3; goto ldv_51453; case_118: /* CIL Label */ { ldv_io_instance_callback_12_117(ldv_12_callback_ptp_write_host_time, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_117_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_120: /* CIL Label */ { ldv_io_instance_callback_12_120(ldv_12_callback_pull_stats, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_121: /* CIL Label */ { ldv_io_instance_callback_12_121(ldv_12_callback_push_irq_moderation, ldv_12_resource_struct_efx_channel_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_122: /* CIL Label */ { ldv_io_instance_callback_12_122(ldv_12_callback_receive_skb, ldv_12_resource_struct_efx_channel_ptr, ldv_12_resource_struct_sk_buff_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_123: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_12_123(ldv_12_callback_reconfigure, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_124: /* CIL Label */ { ldv_io_instance_callback_12_124(ldv_12_callback_reconfigure_mac, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_125: /* CIL Label */ { ldv_io_instance_callback_12_125(ldv_12_callback_reconfigure_port, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_126: /* CIL Label */ { ldv_io_instance_callback_12_126(ldv_12_callback_remove_port, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_127: /* CIL Label */ { ldv_io_instance_callback_12_127(ldv_12_callback_reset, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_enum_reset_type); ldv_statevar_12 = 3; } goto ldv_51453; case_128: /* CIL Label */ { ldv_io_instance_callback_12_128(ldv_12_callback_resume_wol, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_12_ldv_param_129_1_default = (int *)tmp___27; ldv_assume(ldv_statevar_22 == 2); ldv_io_instance_callback_12_129(ldv_12_callback_run_tests, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_129_1_default, ldv_12_ldv_param_129_2_default); ldv_free((void *)ldv_12_ldv_param_129_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_132: /* CIL Label */ { ldv_io_instance_callback_12_132(ldv_12_callback_rx_defer_refill, ldv_12_resource_struct_efx_rx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_133: /* CIL Label */ { ldv_io_instance_callback_12_133(ldv_12_callback_rx_init, ldv_12_resource_struct_efx_rx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_134: /* CIL Label */ { ldv_io_instance_callback_12_134(ldv_12_callback_rx_probe, ldv_12_resource_struct_efx_rx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_135: /* CIL Label */ { ldv_io_instance_callback_12_135(ldv_12_callback_rx_push_rss_config, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_136: /* CIL Label */ { ldv_io_instance_callback_12_136(ldv_12_callback_rx_remove, ldv_12_resource_struct_efx_rx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_137: /* CIL Label */ { ldv_io_instance_callback_12_137(ldv_12_callback_rx_write, ldv_12_resource_struct_efx_rx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_138: /* CIL Label */ { ldv_io_instance_callback_12_138(ldv_12_callback_set_id_led, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_enum_efx_led_mode); ldv_statevar_12 = 3; } goto ldv_51453; case_140: /* CIL Label */ { ldv_io_instance_callback_12_139(ldv_12_callback_set_npage_adv, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_139_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_142: /* CIL Label */ { ldv_io_instance_callback_12_142(ldv_12_callback_set_settings, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_ethtool_cmd_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_144: /* CIL Label */ { ldv_io_instance_callback_12_143(ldv_12_callback_set_wol, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_143_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_146: /* CIL Label */ { ldv_io_instance_callback_12_146(ldv_12_callback_start_stats, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_147: /* CIL Label */ { ldv_io_instance_callback_12_147(ldv_12_callback_stop_stats, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_148: /* CIL Label */ { ldv_io_instance_callback_12_148(ldv_12_callback_test_alive, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_149: /* CIL Label */ { ldv_io_instance_callback_12_149(ldv_12_callback_test_chip, ldv_12_resource_struct_efx_nic_ptr, ldv_12_resource_struct_efx_self_tests_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_151: /* CIL Label */ { ldv_io_instance_callback_12_150(ldv_12_callback_test_name, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_150_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_153: /* CIL Label */ { ldv_io_instance_callback_12_153(ldv_12_callback_test_nvram, ldv_12_resource_struct_efx_nic_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_154: /* CIL Label */ { ldv_io_instance_callback_12_154(ldv_12_callback_tx_init, ldv_12_resource_struct_efx_tx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_155: /* CIL Label */ { ldv_io_instance_callback_12_155(ldv_12_callback_tx_probe, ldv_12_resource_struct_efx_tx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_156: /* CIL Label */ { ldv_io_instance_callback_12_156(ldv_12_callback_tx_remove, ldv_12_resource_struct_efx_tx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_157: /* CIL Label */ { ldv_io_instance_callback_12_157(ldv_12_callback_tx_write, ldv_12_resource_struct_efx_tx_queue_ptr); ldv_statevar_12 = 3; } goto ldv_51453; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_12_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_12_158(ldv_12_callback_update_stats, ldv_12_resource_struct_efx_nic_ptr, ldv_12_ldv_param_158_1_default, ldv_12_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_12_ldv_param_158_1_default); ldv_statevar_12 = 3; } goto ldv_51453; case_161: /* CIL Label */ { ldv_12_ret_default = ldv_io_instance_probe_12_161(ldv_12_container_struct_efx_phy_operations->probe, ldv_12_resource_struct_efx_nic_ptr); ldv_12_ret_default = ldv_filter_err_code(ldv_12_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_12 = 8; } else { ldv_statevar_12 = 10; } goto ldv_51453; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_51453: ; return; } } void ldv_switch_automaton_state_12_14(void) { { ldv_statevar_12 = 13; return; } } void ldv_switch_automaton_state_12_5(void) { { ldv_12_ret_default = 1; ldv_statevar_12 = 14; return; } } static void ldv___ldv_spin_lock_66___1(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static void ldv___ldv_spin_lock_70___2(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static void ldv___ldv_spin_lock_74___0(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } void *__builtin_alloca(unsigned long ) ; __inline static __u32 rol32(__u32 word , unsigned int shift ) { { return ((word << shift) | (word >> (8UL * sizeof(word) - (unsigned long )shift))); } } __inline static void bitmap_zero(unsigned long *dst , int nbits ) { int len ; { { len = (int )((unsigned int )(((unsigned long )nbits + 63UL) / 64UL) * 8U); memset((void *)dst, 0, (size_t )len); } return; } } extern void warn_slowpath_fmt(char const * , int const , char const * , ...) ; __inline static int atomic_dec_and_test(atomic_t *v ) { { __asm__ volatile ("":); return (0); return (1); } } __inline static void ldv_spin_lock_bh_55(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_57(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; extern void prepare_to_wait(wait_queue_head_t * , wait_queue_t * , int ) ; extern int autoremove_wake_function(wait_queue_t * , unsigned int , int , void * ) ; __inline static resource_size_t resource_size(struct resource const *res ) { { return (((unsigned long long )res->end - (unsigned long long )res->start) + 1ULL); } } extern void *ioremap_wc(resource_size_t , unsigned long ) ; __inline static void ssleep(unsigned int seconds ) { { { msleep(seconds * 1000U); } return; } } extern void schedule(void) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; __inline static bool ipv4_is_multicast(__be32 addr ) { { return ((addr & 240U) == 224U); } } __inline static void netif_addr_lock_bh___1(struct net_device *dev ) { { { ldv_spin_lock_bh_55(& dev->addr_list_lock); } return; } } __inline static void netif_addr_unlock_bh___1(struct net_device *dev ) { { { ldv_spin_unlock_bh_57(& dev->addr_list_lock); } return; } } __inline static char const *netdev_name(struct net_device const *dev ) { { if ((unsigned int )((unsigned char )dev->reg_state) != 1U) { return ("(unregistered net_device)"); } else { } return ((char const *)(& dev->name)); } } __inline static void eth_broadcast_addr(u8 *addr ) { { { memset((void *)addr, 255, 6UL); } return; } } __inline static void efx_filter_init_rx(struct efx_filter_spec *spec , enum efx_filter_priority priority , enum efx_filter_flags flags , unsigned int rxq_id ) { { { memset((void *)spec, 0, 64UL); spec->priority = (unsigned char )priority; spec->flags = (unsigned int )((unsigned char )flags) | 8U; spec->rss_context = 4294967295U; spec->dmaq_id = (unsigned short )rxq_id; } return; } } __inline static int efx_filter_set_eth_local(struct efx_filter_spec *spec , u16 vid , u8 const *addr ) { __u16 tmp ; { if ((unsigned int )vid == 65535U && (unsigned long )addr == (unsigned long )((u8 const *)0U)) { return (-22); } else { } if ((unsigned int )vid != 65535U) { { spec->match_flags = (unsigned int )((unsigned short )spec->match_flags) | 256U; tmp = __fswab16((int )vid); spec->outer_vid = tmp; } } else { } if ((unsigned long )addr != (unsigned long )((u8 const *)0U)) { { spec->match_flags = (unsigned int )((unsigned short )spec->match_flags) | 16U; memcpy((void *)(& spec->loc_mac), (void const *)addr, 6UL); } } else { } return (0); } } __inline static int efx_filter_set_uc_def(struct efx_filter_spec *spec ) { { spec->match_flags = (unsigned int )((unsigned short )spec->match_flags) | 1024U; return (0); } } __inline static int efx_filter_set_mc_def(struct efx_filter_spec *spec ) { { spec->match_flags = (unsigned int )((unsigned short )spec->match_flags) | 1024U; spec->loc_mac[0] = 1U; return (0); } } __inline static int efx_dev_registered(struct efx_nic *efx ) { { return ((unsigned int )(efx->net_dev)->reg_state == 1U); } } int efx_mcdi_rpc_quiet(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) ; int efx_mcdi_rpc_async(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , size_t outlen , efx_mcdi_async_completer *complete___0 , unsigned long cookie ) ; void efx_mcdi_display_error(struct efx_nic *efx , unsigned int cmd , size_t inlen , efx_dword_t *outbuf , size_t outlen , int rc ) ; int efx_mcdi_port_get_number(struct efx_nic *efx ) ; u32 efx_mcdi_phy_get_caps(struct efx_nic *efx ) ; int efx_mcdi_set_workaround(struct efx_nic *efx , u32 type , bool enabled ) ; unsigned int efx_piobuf_size ; bool efx_filter_is_mc_recipient(struct efx_filter_spec const *spec ) ; __inline static void efx_schedule_channel___2(struct efx_channel *channel ) { int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { if (0) { if (((channel->efx)->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_45561; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45561; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45561; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45561; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_45561: pscr_ret__ = pfo_ret__; goto ldv_45567; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45571; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45571; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45571; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45571; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_45571: pscr_ret__ = pfo_ret_____0; goto ldv_45567; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45580; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45580; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45580; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45580; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_45580: pscr_ret__ = pfo_ret_____1; goto ldv_45567; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45589; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45589; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45589; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45589; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_45589: pscr_ret__ = pfo_ret_____2; goto ldv_45567; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_45567; switch_break: /* CIL Label */ ; } ldv_45567: { netdev_printk("\017", (struct net_device const *)(channel->efx)->net_dev, "channel %d scheduling NAPI poll on CPU%d\n", channel->channel, pscr_ret__); } } else { } } else { } { napi_schedule(& channel->napi_str); } return; } } __inline static void efx_schedule_channel_irq___1(struct efx_channel *channel ) { int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_45606; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45606; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45606; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_45606; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_45606: pscr_ret__ = pfo_ret__; goto ldv_45612; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45616; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45616; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45616; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_45616; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_45616: pscr_ret__ = pfo_ret_____0; goto ldv_45612; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45625; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45625; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45625; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_45625; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_45625: pscr_ret__ = pfo_ret_____1; goto ldv_45612; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45634; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45634; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45634; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_45634; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_45634: pscr_ret__ = pfo_ret_____2; goto ldv_45612; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_45612; switch_break: /* CIL Label */ ; } ldv_45612: { channel->event_test_cpu = pscr_ret__; efx_schedule_channel___2(channel); } return; } } int efx_ptp_probe(struct efx_nic *efx , struct efx_channel *channel ) ; void efx_ptp_remove(struct efx_nic *efx ) ; void efx_ef10_handle_drain_event(struct efx_nic *efx ) ; __inline static u32 jhash2(u32 const *k , u32 length , u32 initval ) { u32 a ; u32 b ; u32 c ; __u32 tmp ; __u32 tmp___0 ; __u32 tmp___1 ; __u32 tmp___2 ; __u32 tmp___3 ; __u32 tmp___4 ; __u32 tmp___5 ; __u32 tmp___6 ; __u32 tmp___7 ; __u32 tmp___8 ; __u32 tmp___9 ; __u32 tmp___10 ; __u32 tmp___11 ; { c = ((length << 2) + initval) + 3735928559U; b = c; a = b; goto ldv_46369; ldv_46368: { a = a + (u32 )*k; b = b + (u32 )*(k + 1UL); c = c + (u32 )*(k + 2UL); a = a - c; tmp = rol32(c, 4U); a = a ^ tmp; c = c + b; b = b - a; tmp___0 = rol32(a, 6U); b = b ^ tmp___0; a = a + c; c = c - b; tmp___1 = rol32(b, 8U); c = c ^ tmp___1; b = b + a; a = a - c; tmp___2 = rol32(c, 16U); a = a ^ tmp___2; c = c + b; b = b - a; tmp___3 = rol32(a, 19U); b = b ^ tmp___3; a = a + c; c = c - b; tmp___4 = rol32(b, 4U); c = c ^ tmp___4; b = b + a; length = length - 3U; k = k + 3UL; } ldv_46369: ; if (length > 3U) { goto ldv_46368; } else { } { if (length == 3U) { goto case_3; } else { } if (length == 2U) { goto case_2; } else { } if (length == 1U) { goto case_1; } else { } if (length == 0U) { goto case_0; } else { } goto switch_break; case_3: /* CIL Label */ c = c + (u32 )*(k + 2UL); case_2: /* CIL Label */ b = b + (u32 )*(k + 1UL); case_1: /* CIL Label */ { a = a + (u32 )*k; c = c ^ b; tmp___5 = rol32(b, 14U); c = c - tmp___5; a = a ^ c; tmp___6 = rol32(c, 11U); a = a - tmp___6; b = b ^ a; tmp___7 = rol32(a, 25U); b = b - tmp___7; c = c ^ b; tmp___8 = rol32(b, 16U); c = c - tmp___8; a = a ^ c; tmp___9 = rol32(c, 4U); a = a - tmp___9; b = b ^ a; tmp___10 = rol32(a, 14U); b = b - tmp___10; c = c ^ b; tmp___11 = rol32(b, 24U); c = c - tmp___11; } case_0: /* CIL Label */ ; goto ldv_46375; switch_break: /* CIL Label */ ; } ldv_46375: ; return (c); } } static void efx_ef10_rx_push_rss_config(struct efx_nic *efx ) ; static void efx_ef10_rx_free_indir_table(struct efx_nic *efx ) ; static void efx_ef10_filter_table_remove(struct efx_nic *efx ) ; static int efx_ef10_get_warm_boot_count(struct efx_nic *efx ) { efx_dword_t reg ; { { efx_readd(efx, & reg, 16U); } return (reg.u32[0] >> 16 == 45063U ? (int )reg.u32[0] & 65535 : -5); } } static unsigned int efx_ef10_mem_map_size(struct efx_nic *efx ) { resource_size_t tmp ; { { tmp = resource_size((struct resource const *)(& (efx->pci_dev)->resource) + 2U); } return ((unsigned int )tmp); } } extern void __compiletime_assert_105(void) ; static int efx_ef10_init_datapath_caps(struct efx_nic *efx ) { efx_dword_t outbuf[5U] ; struct efx_ef10_nic_data *nic_data ; size_t outlen ; int rc ; bool __cond ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; __cond = 0; if ((int )__cond) { { __compiletime_assert_105(); } } else { } { rc = efx_mcdi_rpc(efx, 190U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 20UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 19UL) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "unable to read datapath firmware capabilities\n"); } } else { } return (-5); } else { } nic_data->datapath_caps = ((efx_dword_t *)(& outbuf))->u32[0]; if ((nic_data->datapath_caps & 2097152U) == 0U) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "current firmware does not support TSO\n"); } } else { } return (-19); } else { } if ((nic_data->datapath_caps & 8388608U) == 0U) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "current firmware does not support an RX prefix\n"); } } else { } return (-19); } else { } return (0); } } static int efx_ef10_get_sysclk_freq(struct efx_nic *efx ) { efx_dword_t outbuf[2U] ; int rc ; { { rc = efx_mcdi_rpc(efx, 172U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 8UL, (size_t *)0UL); } if (rc != 0) { return (rc); } else { } rc = (int )((efx_dword_t *)(& outbuf))->u32[0]; return (rc > 0 ? rc : -34); } } extern void __compiletime_assert_156(void) ; static int efx_ef10_get_mac_address(struct efx_nic *efx , u8 *mac_address ) { efx_dword_t outbuf[4U] ; size_t outlen ; int rc ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_156(); } } else { } { rc = efx_mcdi_rpc(efx, 85U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 16UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 15UL) { return (-5); } else { } { memcpy((void *)mac_address, (void const *)(& outbuf), 6UL); } return (0); } } static int efx_ef10_probe(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; int i ; int rc ; unsigned int __min1 ; unsigned int __min2 ; resource_size_t tmp ; long tmp___0 ; void *tmp___1 ; struct _ddebug descriptor ; long tmp___2 ; { { __min1 = 32U; tmp = resource_size((struct resource const *)(& (efx->pci_dev)->resource) + 2U); __min2 = (unsigned int )(tmp / 32768ULL); efx->max_channels = __min1 < __min2 ? __min1 : __min2; tmp___0 = ldv__builtin_expect(efx->max_channels == 0U, 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 *)"drivers/net/ethernet/sfc/ef10.c"), "i" (183), "i" (12UL)); __builtin_unreachable(); } } else { } { tmp___1 = kzalloc(576UL, 208U); nic_data = (struct efx_ef10_nic_data *)tmp___1; } if ((unsigned long )nic_data == (unsigned long )((struct efx_ef10_nic_data *)0)) { return (-12); } else { } { efx->nic_data = (void *)nic_data; rc = efx_nic_alloc_buffer(efx, & nic_data->mcdi_buf, 1032U, 208U); } if (rc != 0) { goto fail1; } else { } i = 0; ldv_46469: { rc = efx_ef10_get_warm_boot_count(efx); } if (rc >= 0) { goto ldv_46467; } else { } i = i + 1; if (i == 5) { goto fail2; } else { } { ssleep(1U); } goto ldv_46469; ldv_46467: { nic_data->warm_boot_count = (u16 )rc; nic_data->rx_rss_context = 4294967295U; _efx_writed(efx, 1U, 516U); rc = efx_mcdi_init(efx); } if (rc != 0) { goto fail2; } else { } { rc = efx_mcdi_reset(efx, 2); } if (rc != 0) { goto fail3; } else { } { rc = efx_mcdi_log_ctrl(efx, 1, 0, 0U); } if (rc != 0) { goto fail3; } else { } { rc = efx_ef10_init_datapath_caps(efx); } if (rc < 0) { goto fail3; } else { } { efx->rx_packet_len_offset = -6; rc = efx_mcdi_port_get_number(efx); } if (rc < 0) { goto fail3; } else { } { efx->port_num = (unsigned int )rc; rc = efx_ef10_get_mac_address(efx, (u8 *)(& (efx->net_dev)->perm_addr)); } if (rc != 0) { goto fail3; } else { } { rc = efx_ef10_get_sysclk_freq(efx); } if (rc < 0) { goto fail3; } else { } { efx->timer_quantum_ns = (unsigned int )(1536000 / rc); rc = efx_mcdi_set_workaround(efx, 2U, 1); } if (rc == 0) { nic_data->workaround_35388 = 1; } else if (rc != -38 && rc != -2) { goto fail3; } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_probe"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "workaround for bug 35388 is %sabled\n"; descriptor.lineno = 261U; 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 *)efx->net_dev, "workaround for bug 35388 is %sabled\n", (int )nic_data->workaround_35388 ? (char *)"en" : (char *)"dis"); } } else { } } else { } { rc = efx_mcdi_mon_probe(efx); } if (rc != 0) { goto fail3; } else { } { efx_ptp_probe(efx, (struct efx_channel *)0); } return (0); fail3: { efx_mcdi_fini(efx); } fail2: { efx_nic_free_buffer(efx, & nic_data->mcdi_buf); } fail1: { kfree((void const *)nic_data); efx->nic_data = (void *)0; } return (rc); } } static int efx_ef10_free_vis(struct efx_nic *efx ) { size_t __max1 ; size_t __max2 ; efx_dword_t *outbuf ; unsigned long __lengthofoutbuf ; void *tmp ; size_t outlen ; int rc ; size_t __max1___0 ; size_t __max2___0 ; int tmp___0 ; { { __max1 = 0UL; __max2 = 8UL; __lengthofoutbuf = (unsigned long )((long )(((__max1 > __max2 ? __max1 : __max2) + 3UL) / 4UL)); tmp = __builtin_alloca(sizeof(*outbuf) * __lengthofoutbuf); outbuf = (efx_dword_t *)tmp; __max1___0 = 0UL; __max2___0 = 8UL; tmp___0 = efx_mcdi_rpc_quiet(efx, 140U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), (((__max1___0 > __max2___0 ? __max1___0 : __max2___0) + 3UL) / 4UL) * 4UL, & outlen); rc = tmp___0; } if (rc == -114) { rc = 0; } else { } if (rc != 0) { { efx_mcdi_display_error(efx, 140U, 0UL, (efx_dword_t *)(& outbuf), outlen, rc); } } else { } return (rc); } } extern void __compiletime_assert_306(void) ; static void efx_ef10_free_piobufs(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; efx_dword_t inbuf[1U] ; unsigned int i ; int rc ; bool __cond ; int __ret_warn_on ; long tmp ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; __cond = 0; if ((int )__cond) { { __compiletime_assert_306(); } } else { } i = 0U; goto ldv_46498; ldv_46497: { ((efx_dword_t *)(& inbuf))->u32[0] = nic_data->piobuf_handle[i]; rc = efx_mcdi_rpc(efx, 144U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); __ret_warn_on = rc != 0; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 313); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); i = i + 1U; } ldv_46498: ; if (i < nic_data->n_piobufs) { goto ldv_46497; } else { } nic_data->n_piobufs = 0U; return; } } extern void __compiletime_assert_327(void) ; static int efx_ef10_alloc_piobufs(struct efx_nic *efx , unsigned int n ) { struct efx_ef10_nic_data *nic_data ; efx_dword_t outbuf[1U] ; unsigned int i ; size_t outlen ; int rc ; bool __cond ; struct _ddebug descriptor ; long tmp ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; rc = 0; __cond = 0; if ((int )__cond) { { __compiletime_assert_327(); } } else { } i = 0U; goto ldv_46521; ldv_46520: { rc = efx_mcdi_rpc(efx, 143U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 4UL, & outlen); } if (rc != 0) { goto ldv_46513; } else { } if (outlen <= 3UL) { rc = -5; goto ldv_46513; } else { } nic_data->piobuf_handle[i] = ((efx_dword_t *)(& outbuf))->u32[0]; if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_alloc_piobufs"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "allocated PIO buffer %u handle %x\n"; descriptor.lineno = 342U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "allocated PIO buffer %u handle %x\n", i, nic_data->piobuf_handle[i]); } } else { } } else { } i = i + 1U; ldv_46521: ; if (i < n) { goto ldv_46520; } else { } ldv_46513: nic_data->n_piobufs = i; if (rc != 0) { { efx_ef10_free_piobufs(efx); } } else { } return (rc); } } extern void __compiletime_assert_362(void) ; extern void __compiletime_assert_363(void) ; static int efx_ef10_link_piobufs(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; int _max1 ; int _max2 ; efx_dword_t *inbuf ; unsigned long __lengthofinbuf ; void *tmp ; struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; unsigned int offset ; unsigned int index ; int rc ; bool __cond ; bool __cond___0 ; struct _ddebug descriptor ; long tmp___0 ; long tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; bool tmp___3 ; bool tmp___4 ; int tmp___5 ; unsigned int tmp___6 ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; _max1 = 8; _max2 = 4; __lengthofinbuf = (unsigned long )((long )(((_max1 > _max2 ? _max1 : _max2) + 3) / 4)); tmp = __builtin_alloca(sizeof(*inbuf) * __lengthofinbuf); inbuf = (efx_dword_t *)tmp; __cond = 0; } if ((int )__cond) { { __compiletime_assert_362(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_363(); } } else { } index = 0U; goto ldv_46551; ldv_46550: { ((efx_dword_t *)(& inbuf))->u32[0] = nic_data->piobuf_handle[index]; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = nic_data->pio_write_vi_base + index; rc = efx_mcdi_rpc(efx, 146U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to link VI %u to PIO buffer %u (%d)\n", nic_data->pio_write_vi_base + index, index, rc); } } else { } goto fail; } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_link_piobufs"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "linked VI %u to PIO buffer %u\n"; descriptor.lineno = 383U; 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 *)efx->net_dev, "linked VI %u to PIO buffer %u\n", nic_data->pio_write_vi_base + index, index); } } else { } } else { } index = index + 1U; ldv_46551: ; if (index < nic_data->n_piobufs) { goto ldv_46550; } else { } channel = efx->channel[0]; goto ldv_46562; ldv_46561: { tmp___4 = efx_channel_has_tx_queues(channel); } if (tmp___4) { tmp___5 = 0; } else { tmp___5 = 1; } if (tmp___5) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_46559; ldv_46558: offset = (((efx->tx_channel_offset + efx->n_tx_channels) - (unsigned int )(tx_queue->channel)->channel) - 1U) * efx_piobuf_size; index = offset / 2048U; offset = offset & 2047U; if (tx_queue->queue == nic_data->pio_write_vi_base) { { tmp___1 = ldv__builtin_expect(index != 0U, 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 *)"drivers/net/ethernet/sfc/ef10.c"), "i" (405), "i" (12UL)); __builtin_unreachable(); } } else { } rc = 0; } else { { ((efx_dword_t *)(& inbuf))->u32[0] = nic_data->piobuf_handle[index]; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = tx_queue->queue; rc = efx_mcdi_rpc(efx, 146U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to link VI %u to PIO buffer %u (%d)\n", tx_queue->queue, index, rc); } } else { } tx_queue->piobuf = (void *)0; } else { tx_queue->piobuf = nic_data->pio_write_base + ((unsigned long )(index * 8192U) + (unsigned long )offset); tx_queue->piobuf_offset = offset; if ((efx->msg_enable & 2U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_ef10_link_piobufs"; descriptor___0.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor___0.format = "linked VI %u to PIO buffer %u offset %x addr %p\n"; descriptor___0.lineno = 436U; 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 *)efx->net_dev, "linked VI %u to PIO buffer %u offset %x addr %p\n", tx_queue->queue, index, tx_queue->piobuf_offset, tx_queue->piobuf); } } else { } } else { } } tx_queue = tx_queue + 1; ldv_46559: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___3 = efx_tx_queue_used(tx_queue); } if ((int )tmp___3) { goto ldv_46558; } else { goto ldv_46560; } } else { } ldv_46560: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_46562: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_46561; } else { } return (0); fail: ; goto ldv_46567; ldv_46566: { ((efx_dword_t *)(& inbuf))->u32[0] = nic_data->pio_write_vi_base + index; efx_mcdi_rpc(efx, 147U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } ldv_46567: tmp___6 = index; index = index - 1U; if (tmp___6 != 0U) { goto ldv_46566; } else { } return (rc); } } static void efx_ef10_remove(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; int rc ; int __ret_warn_on ; long tmp ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; efx_ptp_remove(efx); efx_mcdi_mon_remove(efx); efx_ef10_rx_free_indir_table(efx); } if ((unsigned long )nic_data->wc_membase != (unsigned long )((void *)0)) { { iounmap((void volatile *)nic_data->wc_membase); } } else { } { rc = efx_ef10_free_vis(efx); __ret_warn_on = rc != 0; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 487); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (! nic_data->must_restore_piobufs) { { efx_ef10_free_piobufs(efx); } } else { } { efx_mcdi_fini(efx); efx_nic_free_buffer(efx, & nic_data->mcdi_buf); kfree((void const *)nic_data); } return; } } static int efx_ef10_alloc_vis(struct efx_nic *efx , unsigned int min_vis , unsigned int max_vis ) { efx_dword_t inbuf[2U] ; efx_dword_t outbuf[2U] ; struct efx_ef10_nic_data *nic_data ; size_t outlen ; int rc ; struct _ddebug descriptor ; long tmp ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; ((efx_dword_t *)(& inbuf))->u32[0] = min_vis; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = max_vis; rc = efx_mcdi_rpc(efx, 139U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)(& outbuf), 8UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 7UL) { return (-5); } else { } if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_alloc_vis"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "base VI is A0x%03x\n"; descriptor.lineno = 517U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "base VI is A0x%03x\n", ((efx_dword_t *)(& outbuf) + 1UL)->u32[0]); } } else { } } else { } nic_data->vi_base = ((efx_dword_t *)(& outbuf) + 1UL)->u32[0]; nic_data->n_allocated_vis = ((efx_dword_t *)(& outbuf))->u32[0]; return (0); } } static int efx_ef10_dimension_resources(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; unsigned int uc_mem_map_size ; unsigned int wc_mem_map_size ; unsigned int min_vis ; unsigned int pio_write_vi_base ; unsigned int max_vis ; void *membase ; int rc ; unsigned int _max1 ; unsigned int _max2 ; unsigned int n_piobufs ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; _max1 = efx->n_channels; _max2 = efx->n_tx_channels * 4U; min_vis = _max1 > _max2 ? _max1 : _max2; if (efx_piobuf_size != 0U && (2048U / efx_piobuf_size) * 16U >= efx->n_tx_channels) { { n_piobufs = ((efx->n_tx_channels + 2048U / efx_piobuf_size) - 1U) / (2048U / efx_piobuf_size); rc = efx_ef10_alloc_piobufs(efx, n_piobufs); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to allocate PIO buffers (%d)\n", rc); } } else { } } else if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_dimension_resources"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "allocated %u PIO buffers\n"; descriptor.lineno = 557U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "allocated %u PIO buffers\n", n_piobufs); } } else { } } else { } } else { } uc_mem_map_size = ((min_vis + 524287U) * 8192U + 8191U) & 4294963200U; if (nic_data->n_piobufs != 0U) { pio_write_vi_base = uc_mem_map_size / 8192U; wc_mem_map_size = (((pio_write_vi_base + nic_data->n_piobufs) * 8192U + 4095U) & 4294963200U) - uc_mem_map_size; max_vis = pio_write_vi_base + nic_data->n_piobufs; } else { pio_write_vi_base = 0U; wc_mem_map_size = 0U; max_vis = min_vis; } { rc = efx_ef10_free_vis(efx); } if (rc != 0) { return (rc); } else { } { rc = efx_ef10_alloc_vis(efx, min_vis, max_vis); } if (rc != 0) { return (rc); } else { } if (nic_data->n_piobufs != 0U && nic_data->n_allocated_vis < pio_write_vi_base + nic_data->n_piobufs) { if ((efx->msg_enable & 2U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_ef10_dimension_resources"; descriptor___0.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor___0.format = "%u VIs are not sufficient to map %u PIO buffers\n"; descriptor___0.lineno = 601U; 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 *)efx->net_dev, "%u VIs are not sufficient to map %u PIO buffers\n", nic_data->n_allocated_vis, nic_data->n_piobufs); } } else { } } else { } { efx_ef10_free_piobufs(efx); } } else { } { membase = ioremap_nocache(efx->membase_phys, (unsigned long )uc_mem_map_size); } if ((unsigned long )membase == (unsigned long )((void *)0)) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "could not shrink memory BAR to %x\n", uc_mem_map_size); } } else { } return (-12); } else { } { iounmap((void volatile *)efx->membase); efx->membase = membase; } if (wc_mem_map_size != 0U) { { nic_data->wc_membase = ioremap_wc(efx->membase_phys + (resource_size_t )uc_mem_map_size, (unsigned long )wc_mem_map_size); } if ((unsigned long )nic_data->wc_membase == (unsigned long )((void *)0)) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "could not allocate WC mapping of size %x\n", wc_mem_map_size); } } else { } return (-12); } else { } { nic_data->pio_write_vi_base = pio_write_vi_base; nic_data->pio_write_base = nic_data->wc_membase + (unsigned long )((pio_write_vi_base * 8192U - uc_mem_map_size) + 4096U); rc = efx_ef10_link_piobufs(efx); } if (rc != 0) { { efx_ef10_free_piobufs(efx); } } else { } } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor___1.modname = "sfc"; descriptor___1.function = "efx_ef10_dimension_resources"; descriptor___1.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor___1.format = "memory BAR at %pa (virtual %p+%x UC, %p+%x WC)\n"; descriptor___1.lineno = 641U; 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 *)efx->net_dev, "memory BAR at %pa (virtual %p+%x UC, %p+%x WC)\n", & efx->membase_phys, efx->membase, uc_mem_map_size, nic_data->wc_membase, wc_mem_map_size); } } else { } } else { } return (0); } } static int efx_ef10_init_nic(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; int rc ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; if ((int )nic_data->must_check_datapath_caps) { { rc = efx_ef10_init_datapath_caps(efx); } if (rc != 0) { return (rc); } else { } nic_data->must_check_datapath_caps = 0; } else { } if ((int )nic_data->must_realloc_vis) { { rc = efx_ef10_alloc_vis(efx, nic_data->n_allocated_vis, nic_data->n_allocated_vis); } if (rc != 0) { return (rc); } else { } nic_data->must_realloc_vis = 0; } else { } if ((int )nic_data->must_restore_piobufs && nic_data->n_piobufs != 0U) { { rc = efx_ef10_alloc_piobufs(efx, nic_data->n_piobufs); } if (rc == 0) { { rc = efx_ef10_link_piobufs(efx); } if (rc != 0) { { efx_ef10_free_piobufs(efx); } } else { } } else { } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed to restore PIO buffers (%d)\n", rc); } } else { } } else { } nic_data->must_restore_piobufs = 0; } else { } { efx_ef10_rx_push_rss_config(efx); } return (0); } } static void efx_ef10_reset_mc_allocations(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; nic_data->must_realloc_vis = 1; nic_data->must_restore_filters = 1; nic_data->must_restore_piobufs = 1; nic_data->rx_rss_context = 4294967295U; return; } } static int efx_ef10_map_reset_flags(u32 *flags ) { { if ((*flags & 8192000U) == 8192000U) { *flags = *flags & 4286775295U; return (3); } else { } if ((*flags & 6291456U) == 6291456U) { *flags = *flags & 4288675839U; return (2); } else { } return (-22); } } static int efx_ef10_reset(struct efx_nic *efx , enum reset_type reset_type ) { int rc ; int tmp ; { { tmp = efx_mcdi_reset(efx, reset_type); rc = tmp; } if ((unsigned int )reset_type == 2U && rc == 0) { { efx_ef10_reset_mc_allocations(efx); } } else { } return (rc); } } static struct efx_hw_stat_desc const efx_ef10_stat_desc[53U] = { {"tx_bytes", 64U, 56U}, {"tx_packets", 64U, 8U}, {"tx_pause", 64U, 16U}, {"tx_control", 64U, 24U}, {"tx_unicast", 64U, 32U}, {"tx_multicast", 64U, 40U}, {"tx_broadcast", 64U, 48U}, {"tx_lt64", 64U, 72U}, {"tx_64", 64U, 80U}, {"tx_65_to_127", 64U, 88U}, {"tx_128_to_255", 64U, 96U}, {"tx_256_to_511", 64U, 104U}, {"tx_512_to_1023", 64U, 112U}, {"tx_1024_to_15xx", 64U, 120U}, {"tx_15xx_to_jumbo", 64U, 128U}, {"rx_bytes", 64U, 280U}, {(char const *)0, 64U, 288U}, {"rx_good_bytes", 0U, 0U}, {"rx_bad_bytes", 0U, 0U}, {"rx_packets", 64U, 224U}, {"rx_good", 64U, 240U}, {"rx_bad", 64U, 368U}, {"rx_pause", 64U, 232U}, {"rx_control", 64U, 248U}, {"rx_unicast", 64U, 256U}, {"rx_multicast", 64U, 264U}, {"rx_broadcast", 64U, 272U}, {"rx_lt64", 64U, 360U}, {"rx_64", 64U, 296U}, {"rx_65_to_127", 64U, 304U}, {"rx_128_to_255", 64U, 312U}, {"rx_256_to_511", 64U, 320U}, {"rx_512_to_1023", 64U, 328U}, {"rx_1024_to_15xx", 64U, 336U}, {"rx_15xx_to_jumbo", 64U, 344U}, {"rx_gtjumbo", 64U, 352U}, {"rx_bad_gtjumbo", 64U, 424U}, {"rx_overflow", 64U, 376U}, {"rx_align_error", 64U, 400U}, {"rx_length_error", 64U, 408U}, {"rx_nodesc_drops", 64U, 432U}, {"rx_pm_trunc_bb_overflow", 64U, 480U}, {"rx_pm_discard_bb_overflow", 64U, 488U}, {"rx_pm_trunc_vfifo_full", 64U, 496U}, {"rx_pm_discard_vfifo_full", 64U, 504U}, {"rx_pm_trunc_qbb", 64U, 512U}, {"rx_pm_discard_qbb", 64U, 520U}, {"rx_pm_discard_mapping", 64U, 528U}, {"rx_dp_q_disabled_packets", 64U, 536U}, {"rx_dp_di_dropped_packets", 64U, 552U}, {"rx_dp_streaming_packets", 64U, 560U}, {"rx_dp_hlb_fetch", 64U, 568U}, {"rx_dp_hlb_wait", 64U, 576U}}; static u64 efx_ef10_raw_stat_mask(struct efx_nic *efx ) { u64 raw_mask ; u32 port_caps ; u32 tmp ; struct efx_ef10_nic_data *nic_data ; { { raw_mask = 1374389502071ULL; tmp = efx_mcdi_phy_get_caps(efx); port_caps = tmp; nic_data = (struct efx_ef10_nic_data *)efx->nic_data; } if ((port_caps & 2048U) != 0U) { raw_mask = raw_mask | 824633720832ULL; } else { raw_mask = raw_mask | 32648ULL; } if ((nic_data->datapath_caps & 134217728U) != 0U) { raw_mask = raw_mask | 9005000231485440ULL; } else { } return (raw_mask); } } static void efx_ef10_get_stat_mask(struct efx_nic *efx , unsigned long *mask ) { u64 raw_mask ; u64 tmp ; { { tmp = efx_ef10_raw_stat_mask(efx); raw_mask = tmp; *mask = (unsigned long )raw_mask; } return; } } static size_t efx_ef10_describe_stats(struct efx_nic *efx , u8 *names ) { unsigned long mask[1U] ; size_t tmp ; { { efx_ef10_get_stat_mask(efx, (unsigned long *)(& mask)); tmp = efx_nic_describe_stats((struct efx_hw_stat_desc const *)(& efx_ef10_stat_desc), 53UL, (unsigned long const *)(& mask), names); } return (tmp); } } static int efx_ef10_try_update_nic_stats(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; unsigned long mask[1U] ; __le64 generation_start ; __le64 generation_end ; u64 *stats ; __le64 *dma_stats ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; stats = (u64 *)(& nic_data->stats); efx_ef10_get_stat_mask(efx, (unsigned long *)(& mask)); dma_stats = (__le64 *)efx->stats_buffer.addr; nic_data = (struct efx_ef10_nic_data *)efx->nic_data; generation_end = *(dma_stats + 96UL); } if (generation_end == 0xffffffffffffffffULL) { return (0); } else { } { __asm__ volatile ("lfence": : : "memory"); efx_nic_update_stats((struct efx_hw_stat_desc const *)(& efx_ef10_stat_desc), 53UL, (unsigned long const *)(& mask), stats, (void const *)efx->stats_buffer.addr, 0); __asm__ volatile ("lfence": : : "memory"); generation_start = *dma_stats; } if (generation_end != generation_start) { return (-11); } else { } { efx_nic_fix_nodesc_drop_stat(efx, stats + 40UL); *(stats + 17UL) = *(stats + 15UL) - *(stats + 16UL); efx_update_diff_stat(stats + 18UL, *(stats + 16UL)); } return (0); } } static size_t efx_ef10_update_stats(struct efx_nic *efx , u64 *full_stats , struct rtnl_link_stats64 *core_stats ) { unsigned long mask[1U] ; struct efx_ef10_nic_data *nic_data ; u64 *stats ; size_t stats_count ; size_t index ; int retry ; int tmp ; u64 *tmp___0 ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; stats = (u64 *)(& nic_data->stats); stats_count = 0UL; efx_ef10_get_stat_mask(efx, (unsigned long *)(& mask)); retry = 0; } goto ldv_46682; ldv_46681: { tmp = efx_ef10_try_update_nic_stats(efx); } if (tmp == 0) { goto ldv_46680; } else { } { __const_udelay(429500UL); retry = retry + 1; } ldv_46682: ; if (retry <= 99) { goto ldv_46681; } else { } ldv_46680: ; if ((unsigned long )full_stats != (unsigned long )((u64 *)0ULL)) { { index = find_first_bit((unsigned long const *)(& mask), 53UL); } goto ldv_46684; ldv_46683: ; if ((unsigned long )efx_ef10_stat_desc[index].name != (unsigned long )((char const */* const */)0)) { tmp___0 = full_stats; full_stats = full_stats + 1; *tmp___0 = *(stats + index); stats_count = stats_count + 1UL; } else { } { index = find_next_bit((unsigned long const *)(& mask), 53UL, index + 1UL); } ldv_46684: ; if (index <= 52UL) { goto ldv_46683; } else { } } else { } if ((unsigned long )core_stats != (unsigned long )((struct rtnl_link_stats64 *)0)) { core_stats->rx_packets = *(stats + 19UL); core_stats->tx_packets = *(stats + 1UL); core_stats->rx_bytes = *(stats + 15UL); core_stats->tx_bytes = *stats; core_stats->rx_dropped = *(stats + 40UL); core_stats->multicast = *(stats + 25UL); core_stats->rx_length_errors = *(stats + 35UL) + *(stats + 39UL); core_stats->rx_crc_errors = *(stats + 21UL); core_stats->rx_frame_errors = *(stats + 38UL); core_stats->rx_fifo_errors = *(stats + 37UL); core_stats->rx_errors = (core_stats->rx_length_errors + core_stats->rx_crc_errors) + core_stats->rx_frame_errors; } else { } return (stats_count); } } static void efx_ef10_push_irq_moderation(struct efx_channel *channel ) { struct efx_nic *efx ; unsigned int mode ; unsigned int value ; efx_dword_t timer_cmd ; { efx = channel->efx; if (channel->irq_moderation != 0U) { mode = 3U; value = channel->irq_moderation - 1U; } else { mode = 0U; value = 0U; } if ((int )((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388) { { timer_cmd.u32[0] = ((mode << 8) | value) | 3072U; _efx_writed_page(efx, (efx_dword_t const *)(& timer_cmd), 2584U, (unsigned int )channel->channel); } } else { { timer_cmd.u32[0] = (mode << 14) | value; _efx_writed_page(efx, (efx_dword_t const *)(& timer_cmd), 1056U, (unsigned int )channel->channel); } } return; } } static void efx_ef10_get_wol(struct efx_nic *efx , struct ethtool_wolinfo *wol ) { { { wol->supported = 0U; wol->wolopts = 0U; memset((void *)(& wol->sopass), 0, 6UL); } return; } } static int efx_ef10_set_wol(struct efx_nic *efx , u32 type ) { { if (type != 0U) { return (-22); } else { } return (0); } } static void efx_ef10_mcdi_request(struct efx_nic *efx , efx_dword_t const *hdr , size_t hdr_len , efx_dword_t const *sdu , size_t sdu_len ) { struct efx_ef10_nic_data *nic_data ; u8 *pdu ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; pdu = (u8 *)nic_data->mcdi_buf.addr; memcpy((void *)pdu, (void const *)hdr, hdr_len); memcpy((void *)(pdu + hdr_len), (void const *)sdu, sdu_len); __asm__ volatile ("sfence": : : "memory"); _efx_writed(efx, (unsigned int )(nic_data->mcdi_buf.dma_addr >> 32), 512U); _efx_writed(efx, (unsigned int )nic_data->mcdi_buf.dma_addr, 516U); } return; } } static bool efx_ef10_mcdi_poll_response(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; efx_dword_t hdr ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; hdr = *((efx_dword_t const *)nic_data->mcdi_buf.addr); __asm__ volatile ("lfence": : : "memory"); return (((hdr.u32[0] >> 23) & 1U) != 0U); } } static void efx_ef10_mcdi_read_response(struct efx_nic *efx , efx_dword_t *outbuf , size_t offset , size_t outlen ) { struct efx_ef10_nic_data *nic_data ; u8 const *pdu ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; pdu = (u8 const *)nic_data->mcdi_buf.addr; memcpy((void *)outbuf, (void const *)(pdu + offset), outlen); } return; } } static int efx_ef10_mcdi_poll_reboot(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; int rc ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; rc = efx_ef10_get_warm_boot_count(efx); } if (rc < 0) { return (0); } else { } if (rc == (int )nic_data->warm_boot_count) { return (0); } else { } { nic_data->warm_boot_count = (u16 )rc; efx_ef10_reset_mc_allocations(efx); nic_data->must_check_datapath_caps = 1; nic_data->stats[18] = 0ULL; } return (-5); } } static irqreturn_t efx_ef10_msi_interrupt(int irq , void *dev_id ) { struct efx_msi_context *context ; struct efx_nic *efx ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; int pscr_ret_____0 ; void const *__vpp_verify___0 ; int pfo_ret_____3 ; int pfo_ret_____4 ; int pfo_ret_____5 ; int pfo_ret_____6 ; long tmp ; { context = (struct efx_msi_context *)dev_id; efx = context->efx; if (0) { if ((efx->msg_enable & 512U) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_46743; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46743; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46743; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46743; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_46743: pscr_ret__ = pfo_ret__; goto ldv_46749; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46753; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46753; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46753; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46753; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_46753: pscr_ret__ = pfo_ret_____0; goto ldv_46749; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46762; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46762; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46762; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46762; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_46762: pscr_ret__ = pfo_ret_____1; goto ldv_46749; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46771; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46771; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46771; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46771; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_46771: pscr_ret__ = pfo_ret_____2; goto ldv_46749; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_46749; switch_break: /* CIL Label */ ; } ldv_46749: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "IRQ %d on CPU %d\n", irq, pscr_ret__); } } else { } } else { } { tmp = ldv__builtin_expect((long )*((bool volatile *)(& efx->irq_soft_enabled)), 1L); } if (tmp != 0L) { if (context->index == efx->irq_level) { __vpp_verify___0 = (void const *)0; { if (4UL == 1UL) { goto case_1___4; } else { } if (4UL == 2UL) { goto case_2___5; } else { } if (4UL == 4UL) { goto case_4___6; } else { } if (4UL == 8UL) { goto case_8___7; } else { } goto switch_default___8; case_1___4: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___5; } else { } if (4UL == 2UL) { goto case_2___4; } else { } if (4UL == 4UL) { goto case_4___4; } else { } if (4UL == 8UL) { goto case_8___4; } else { } goto switch_default___4; case_1___5: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46785; case_2___4: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46785; case_4___4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46785; case_8___4: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46785; switch_default___4: /* CIL Label */ { __bad_percpu_size(); } switch_break___5: /* CIL Label */ ; } ldv_46785: pscr_ret_____0 = pfo_ret_____3; goto ldv_46791; case_2___5: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___6; } else { } if (4UL == 2UL) { goto case_2___6; } else { } if (4UL == 4UL) { goto case_4___5; } else { } if (4UL == 8UL) { goto case_8___5; } else { } goto switch_default___5; case_1___6: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46795; case_2___6: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46795; case_4___5: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46795; case_8___5: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46795; switch_default___5: /* CIL Label */ { __bad_percpu_size(); } switch_break___6: /* CIL Label */ ; } ldv_46795: pscr_ret_____0 = pfo_ret_____4; goto ldv_46791; case_4___6: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___7; } else { } if (4UL == 2UL) { goto case_2___7; } else { } if (4UL == 4UL) { goto case_4___7; } else { } if (4UL == 8UL) { goto case_8___6; } else { } goto switch_default___6; case_1___7: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46804; case_2___7: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46804; case_4___7: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46804; case_8___6: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46804; switch_default___6: /* CIL Label */ { __bad_percpu_size(); } switch_break___7: /* CIL Label */ ; } ldv_46804: pscr_ret_____0 = pfo_ret_____5; goto ldv_46791; case_8___7: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___8; } else { } if (4UL == 2UL) { goto case_2___8; } else { } if (4UL == 4UL) { goto case_4___8; } else { } if (4UL == 8UL) { goto case_8___8; } else { } goto switch_default___7; case_1___8: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46813; case_2___8: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46813; case_4___8: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46813; case_8___8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46813; switch_default___7: /* CIL Label */ { __bad_percpu_size(); } switch_break___8: /* CIL Label */ ; } ldv_46813: pscr_ret_____0 = pfo_ret_____6; goto ldv_46791; switch_default___8: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_46791; switch_break___4: /* CIL Label */ ; } ldv_46791: efx->last_irq_cpu = pscr_ret_____0; } else { } { efx_schedule_channel_irq___1(efx->channel[context->index]); } } else { } return (1); } } static irqreturn_t efx_ef10_legacy_interrupt(int irq , void *dev_id ) { struct efx_nic *efx ; bool soft_enabled ; struct efx_channel *channel ; efx_dword_t reg ; u32 queues ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; long tmp ; int pscr_ret_____0 ; void const *__vpp_verify___0 ; int pfo_ret_____3 ; int pfo_ret_____4 ; int pfo_ret_____5 ; int pfo_ret_____6 ; { { efx = (struct efx_nic *)dev_id; soft_enabled = *((bool volatile *)(& efx->irq_soft_enabled)); efx_readd(efx, & reg, 144U); queues = reg.u32[0]; } if (queues == 0U) { return (0); } else { } { tmp = ldv__builtin_expect((long )soft_enabled, 1L); } if (tmp != 0L) { if ((queues & (1U << (int )efx->irq_level)) != 0U) { __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_46835; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46835; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46835; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_46835; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_46835: pscr_ret__ = pfo_ret__; goto ldv_46841; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46845; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46845; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46845; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_46845; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_46845: pscr_ret__ = pfo_ret_____0; goto ldv_46841; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46854; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46854; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46854; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_46854; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_46854: pscr_ret__ = pfo_ret_____1; goto ldv_46841; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46863; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46863; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46863; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_46863; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_46863: pscr_ret__ = pfo_ret_____2; goto ldv_46841; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_46841; switch_break: /* CIL Label */ ; } ldv_46841: efx->last_irq_cpu = pscr_ret__; } else { } channel = efx->channel[0]; goto ldv_46872; ldv_46871: ; if ((int )queues & 1) { { efx_schedule_channel_irq___1(channel); } } else { } queues = queues >> 1; channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_46872: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_46871; } else { } } else { } if (0) { if ((efx->msg_enable & 512U) != 0U) { __vpp_verify___0 = (void const *)0; { if (4UL == 1UL) { goto case_1___4; } else { } if (4UL == 2UL) { goto case_2___5; } else { } if (4UL == 4UL) { goto case_4___6; } else { } if (4UL == 8UL) { goto case_8___7; } else { } goto switch_default___8; case_1___4: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___5; } else { } if (4UL == 2UL) { goto case_2___4; } else { } if (4UL == 4UL) { goto case_4___4; } else { } if (4UL == 8UL) { goto case_8___4; } else { } goto switch_default___4; case_1___5: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46879; case_2___4: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46879; case_4___4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46879; case_8___4: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____3): "m" (cpu_number)); goto ldv_46879; switch_default___4: /* CIL Label */ { __bad_percpu_size(); } switch_break___5: /* CIL Label */ ; } ldv_46879: pscr_ret_____0 = pfo_ret_____3; goto ldv_46885; case_2___5: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___6; } else { } if (4UL == 2UL) { goto case_2___6; } else { } if (4UL == 4UL) { goto case_4___5; } else { } if (4UL == 8UL) { goto case_8___5; } else { } goto switch_default___5; case_1___6: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46889; case_2___6: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46889; case_4___5: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46889; case_8___5: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____4): "m" (cpu_number)); goto ldv_46889; switch_default___5: /* CIL Label */ { __bad_percpu_size(); } switch_break___6: /* CIL Label */ ; } ldv_46889: pscr_ret_____0 = pfo_ret_____4; goto ldv_46885; case_4___6: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___7; } else { } if (4UL == 2UL) { goto case_2___7; } else { } if (4UL == 4UL) { goto case_4___7; } else { } if (4UL == 8UL) { goto case_8___6; } else { } goto switch_default___6; case_1___7: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46898; case_2___7: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46898; case_4___7: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46898; case_8___6: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____5): "m" (cpu_number)); goto ldv_46898; switch_default___6: /* CIL Label */ { __bad_percpu_size(); } switch_break___7: /* CIL Label */ ; } ldv_46898: pscr_ret_____0 = pfo_ret_____5; goto ldv_46885; case_8___7: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___8; } else { } if (4UL == 2UL) { goto case_2___8; } else { } if (4UL == 4UL) { goto case_4___8; } else { } if (4UL == 8UL) { goto case_8___8; } else { } goto switch_default___7; case_1___8: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46907; case_2___8: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46907; case_4___8: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46907; case_8___8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____6): "m" (cpu_number)); goto ldv_46907; switch_default___7: /* CIL Label */ { __bad_percpu_size(); } switch_break___8: /* CIL Label */ ; } ldv_46907: pscr_ret_____0 = pfo_ret_____6; goto ldv_46885; switch_default___8: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_46885; switch_break___4: /* CIL Label */ ; } ldv_46885: { netdev_printk("\017", (struct net_device const *)efx->net_dev, "IRQ %d on CPU %d status %08x\n", irq, pscr_ret_____0, reg.u32[0]); } } else { } } else { } return (1); } } extern void __compiletime_assert_1183(void) ; static void efx_ef10_irq_test_generate(struct efx_nic *efx ) { efx_dword_t inbuf[1U] ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1183(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = efx->irq_level; efx_mcdi_rpc(efx, 227U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return; } } static int efx_ef10_tx_probe(struct efx_tx_queue *tx_queue ) { int tmp ; { { tmp = efx_nic_alloc_buffer(tx_queue->efx, & tx_queue->txd.buf, (tx_queue->ptr_mask + 1U) * 8U, 208U); } return (tmp); } } __inline static void efx_ef10_push_tx_desc(struct efx_tx_queue *tx_queue , efx_qword_t const *txd ) { unsigned int write_ptr ; efx_oword_t reg ; { { write_ptr = tx_queue->write_count & tx_queue->ptr_mask; reg.u64[0] = 0ULL; reg.u64[1] = (unsigned long long )write_ptr; reg.qword[0] = *txd; _efx_writeo_page(tx_queue->efx, & reg, 2576U, tx_queue->queue); } return; } } static void efx_ef10_tx_init(struct efx_tx_queue *tx_queue ) { efx_dword_t inbuf[23U] ; efx_dword_t outbuf[0U] ; bool csum_offload ; size_t entries ; struct efx_channel *channel ; struct efx_nic *efx ; size_t inlen ; size_t outlen ; dma_addr_t dma_addr ; efx_qword_t *txd ; int rc ; int i ; struct _ddebug descriptor ; long tmp ; int __ret_warn_on ; char const *tmp___0 ; long tmp___1 ; { csum_offload = (tx_queue->queue & 1U) != 0U; entries = (size_t )(tx_queue->txd.buf.len / 4096U); channel = tx_queue->channel; efx = tx_queue->efx; ((efx_dword_t *)(& inbuf))->u32[0] = tx_queue->ptr_mask + 1U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )channel->channel; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = tx_queue->queue; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = tx_queue->queue; ((efx_dword_t *)(& inbuf) + 4UL)->u32[0] = ((unsigned int )(! csum_offload) << 1) | ((unsigned int )(! csum_offload) << 2); ((efx_dword_t *)(& inbuf) + 5UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 6UL)->u32[0] = 16777216U; dma_addr = tx_queue->txd.buf.dma_addr; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_tx_init"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "pushing TXQ %d. %zu entries (%llx)\n"; descriptor.lineno = 1240U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "pushing TXQ %d. %zu entries (%llx)\n", tx_queue->queue, entries, dma_addr); } } else { } } else { } i = 0; goto ldv_46993; ldv_46992: ((efx_dword_t *)(& inbuf) + ((unsigned long )i * 8UL + 28UL))->u32[0] = (__le32 )dma_addr; ((efx_dword_t *)(& inbuf) + ((unsigned long )i * 8UL + 29UL))->u32[0] = (__le32 )(dma_addr >> 32); dma_addr = dma_addr + 4096ULL; i = i + 1; ldv_46993: ; if ((size_t )i < entries) { goto ldv_46992; } else { } { inlen = entries * 8UL + 28UL; rc = efx_mcdi_rpc(efx, 130U, (efx_dword_t const *)(& inbuf), inlen, (efx_dword_t *)(& outbuf), 0UL, & outlen); } if (rc != 0) { goto fail; } else { } { (tx_queue->buffer)->flags = 16U; tx_queue->insert_count = 1U; txd = efx_tx_desc(tx_queue, 0U); txd->u64[0] = (((unsigned long long )csum_offload << 1) | (unsigned long long )csum_offload) | 0x8000000000000000ULL; tx_queue->write_count = 1U; __asm__ volatile ("sfence": : : "memory"); efx_ef10_push_tx_desc(tx_queue, (efx_qword_t const *)txd); } return; fail: { __ret_warn_on = 1; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { tmp___0 = netdev_name((struct net_device const *)efx->net_dev); warn_slowpath_fmt("drivers/net/ethernet/sfc/ef10.c", 1277, "netdevice: %s\nfailed to initialise TXQ %d\n", tmp___0, tx_queue->queue); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } return; } } static void efx_ef10_tx_fini(struct efx_tx_queue *tx_queue ) { efx_dword_t inbuf[1U] ; efx_dword_t outbuf[0U] ; struct efx_nic *efx ; size_t outlen ; int rc ; { { efx = tx_queue->efx; ((efx_dword_t *)(& inbuf))->u32[0] = tx_queue->queue; rc = efx_mcdi_rpc_quiet(efx, 133U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 0UL, & outlen); } if (rc != 0 && rc != -114) { goto fail; } else { } return; fail: { efx_mcdi_display_error(efx, 133U, 4UL, (efx_dword_t *)(& outbuf), outlen, rc); } return; } } static void efx_ef10_tx_remove(struct efx_tx_queue *tx_queue ) { { { efx_nic_free_buffer(tx_queue->efx, & tx_queue->txd.buf); } return; } } __inline static void efx_ef10_notify_tx_desc(struct efx_tx_queue *tx_queue ) { unsigned int write_ptr ; efx_dword_t reg ; { { write_ptr = tx_queue->write_count & tx_queue->ptr_mask; reg.u32[0] = write_ptr; _efx_writed_page(tx_queue->efx, (efx_dword_t const *)(& reg), 2584U, tx_queue->queue); } return; } } extern void __compiletime_assert_1340(void) ; static void efx_ef10_tx_write(struct efx_tx_queue *tx_queue ) { unsigned int old_write_count ; struct efx_tx_buffer *buffer ; unsigned int write_ptr ; efx_qword_t *txd ; long tmp ; bool __cond ; bool tmp___0 ; { { old_write_count = tx_queue->write_count; tmp = ldv__builtin_expect(tx_queue->write_count == tx_queue->insert_count, 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 *)"drivers/net/ethernet/sfc/ef10.c"), "i" (1328), "i" (12UL)); __builtin_unreachable(); } } else { } ldv_47030: { write_ptr = tx_queue->write_count & tx_queue->ptr_mask; buffer = tx_queue->buffer + (unsigned long )write_ptr; txd = efx_tx_desc(tx_queue, write_ptr); tx_queue->write_count = tx_queue->write_count + 1U; } if (((int )buffer->flags & 16) != 0) { *txd = buffer->__annonCompField87.option; } else { __cond = 0; if ((int )__cond) { { __compiletime_assert_1340(); } } else { } txd->u64[0] = ((((unsigned long long )buffer->flags & 1ULL) << 62) | ((unsigned long long )buffer->len << 48)) | buffer->__annonCompField87.dma_addr; } if (tx_queue->write_count != tx_queue->insert_count) { goto ldv_47030; } else { } { __asm__ volatile ("sfence": : : "memory"); tmp___0 = efx_nic_may_push_tx_desc(tx_queue, old_write_count); } if ((int )tmp___0) { { txd = efx_tx_desc(tx_queue, old_write_count & tx_queue->ptr_mask); efx_ef10_push_tx_desc(tx_queue, (efx_qword_t const *)txd); tx_queue->pushes = tx_queue->pushes + 1U; } } else { { efx_ef10_notify_tx_desc(tx_queue); } } return; } } static int efx_ef10_alloc_rss_context(struct efx_nic *efx , u32 *context ) { efx_dword_t inbuf[3U] ; efx_dword_t outbuf[1U] ; size_t outlen ; int rc ; { { ((efx_dword_t *)(& inbuf))->u32[0] = 16777216U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = 32U; rc = efx_mcdi_rpc(efx, 158U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)(& outbuf), 4UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 3UL) { return (-5); } else { } *context = ((efx_dword_t *)(& outbuf))->u32[0]; return (0); } } static void efx_ef10_free_rss_context(struct efx_nic *efx , u32 context ) { efx_dword_t inbuf[1U] ; int rc ; int __ret_warn_on ; long tmp ; { { ((efx_dword_t *)(& inbuf))->u32[0] = context; rc = efx_mcdi_rpc(efx, 159U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); __ret_warn_on = rc != 0; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 1399); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } return; } } extern void __compiletime_assert_1411(void) ; extern void __compiletime_assert_1426(void) ; static int efx_ef10_populate_rss_table(struct efx_nic *efx , u32 context ) { efx_dword_t tablebuf[33U] ; efx_dword_t keybuf[11U] ; int i ; int rc ; bool __cond ; bool __cond___0 ; int tmp ; { ((efx_dword_t *)(& tablebuf))->u32[0] = context; __cond = 0; if ((int )__cond) { { __compiletime_assert_1411(); } } else { } i = 0; goto ldv_47079; ldv_47078: *((u8 *)(& tablebuf) + ((unsigned long )i + 4UL)) = (unsigned char )efx->rx_indir_table[i]; i = i + 1; ldv_47079: ; if ((unsigned int )i <= 127U) { goto ldv_47078; } else { } { rc = efx_mcdi_rpc(efx, 162U, (efx_dword_t const *)(& tablebuf), 132UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { return (rc); } else { } ((efx_dword_t *)(& keybuf))->u32[0] = context; __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_1426(); } } else { } i = 0; goto ldv_47092; ldv_47091: *((u8 *)(& keybuf) + ((unsigned long )i + 4UL)) = efx->rx_hash_key[i]; i = i + 1; ldv_47092: ; if ((unsigned int )i <= 39U) { goto ldv_47091; } else { } { tmp = efx_mcdi_rpc(efx, 160U, (efx_dword_t const *)(& keybuf), 44UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (tmp); } } static void efx_ef10_rx_free_indir_table(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; if (nic_data->rx_rss_context != 4294967295U) { { efx_ef10_free_rss_context(efx, nic_data->rx_rss_context); } } else { } nic_data->rx_rss_context = 4294967295U; return; } } static void efx_ef10_rx_push_rss_config(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; int rc ; struct _ddebug descriptor ; long tmp ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_rx_push_rss_config"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "pushing RSS config\n"; descriptor.lineno = 1449U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "pushing RSS config\n"); } } else { } } else { } if (nic_data->rx_rss_context == 4294967295U) { { rc = efx_ef10_alloc_rss_context(efx, & nic_data->rx_rss_context); } if (rc != 0) { goto fail; } else { } } else { } { rc = efx_ef10_populate_rss_table(efx, nic_data->rx_rss_context); } if (rc != 0) { goto fail; } else { } return; fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_ef10_rx_push_rss_config", rc); } } else { } return; } } static int efx_ef10_rx_probe(struct efx_rx_queue *rx_queue ) { int tmp ; { { tmp = efx_nic_alloc_buffer(rx_queue->efx, & rx_queue->rxd.buf, (rx_queue->ptr_mask + 1U) * 8U, 208U); } return (tmp); } } static void efx_ef10_rx_init(struct efx_rx_queue *rx_queue ) { efx_dword_t inbuf[23U] ; efx_dword_t outbuf[0U] ; struct efx_channel *channel ; struct efx_channel *tmp ; size_t entries ; struct efx_nic *efx ; size_t inlen ; size_t outlen ; dma_addr_t dma_addr ; int rc ; int i ; int tmp___0 ; int tmp___1 ; struct _ddebug descriptor ; int tmp___2 ; long tmp___3 ; int __ret_warn_on ; int tmp___4 ; char const *tmp___5 ; long tmp___6 ; { { tmp = efx_rx_queue_channel(rx_queue); channel = tmp; entries = (size_t )(rx_queue->rxd.buf.len / 4096U); efx = rx_queue->efx; rx_queue->scatter_n = 0U; rx_queue->scatter_len = 0U; ((efx_dword_t *)(& inbuf))->u32[0] = rx_queue->ptr_mask + 1U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )channel->channel; tmp___0 = efx_rx_queue_index(rx_queue); ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )tmp___0; tmp___1 = efx_rx_queue_index(rx_queue); ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = (unsigned int )tmp___1; ((efx_dword_t *)(& inbuf) + 4UL)->u32[0] = 260U; ((efx_dword_t *)(& inbuf) + 5UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 6UL)->u32[0] = 16777216U; dma_addr = rx_queue->rxd.buf.dma_addr; } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_rx_init"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "pushing RXQ %d. %zu entries (%llx)\n"; descriptor.lineno = 1506U; descriptor.flags = 0U; tmp___3 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___3 != 0L) { { tmp___2 = efx_rx_queue_index(rx_queue); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "pushing RXQ %d. %zu entries (%llx)\n", tmp___2, entries, dma_addr); } } else { } } else { } i = 0; goto ldv_47163; ldv_47162: ((efx_dword_t *)(& inbuf) + ((unsigned long )i * 8UL + 28UL))->u32[0] = (__le32 )dma_addr; ((efx_dword_t *)(& inbuf) + ((unsigned long )i * 8UL + 29UL))->u32[0] = (__le32 )(dma_addr >> 32); dma_addr = dma_addr + 4096ULL; i = i + 1; ldv_47163: ; if ((size_t )i < entries) { goto ldv_47162; } else { } { inlen = entries * 8UL + 28UL; rc = efx_mcdi_rpc(efx, 129U, (efx_dword_t const *)(& inbuf), inlen, (efx_dword_t *)(& outbuf), 0UL, & outlen); } if (rc != 0) { { __ret_warn_on = 1; tmp___6 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___6 != 0L) { { tmp___4 = efx_rx_queue_index(rx_queue); tmp___5 = netdev_name((struct net_device const *)efx->net_dev); warn_slowpath_fmt("drivers/net/ethernet/sfc/ef10.c", 1519, "netdevice: %s\nfailed to initialise RXQ %d\n", tmp___5, tmp___4); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } } else { } return; } } static void efx_ef10_rx_fini(struct efx_rx_queue *rx_queue ) { efx_dword_t inbuf[1U] ; efx_dword_t outbuf[0U] ; struct efx_nic *efx ; size_t outlen ; int rc ; int tmp ; { { efx = rx_queue->efx; tmp = efx_rx_queue_index(rx_queue); ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )tmp; rc = efx_mcdi_rpc_quiet(efx, 132U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 0UL, & outlen); } if (rc != 0 && rc != -114) { goto fail; } else { } return; fail: { efx_mcdi_display_error(efx, 132U, 4UL, (efx_dword_t *)(& outbuf), outlen, rc); } return; } } static void efx_ef10_rx_remove(struct efx_rx_queue *rx_queue ) { { { efx_nic_free_buffer(rx_queue->efx, & rx_queue->rxd.buf); } return; } } __inline static void efx_ef10_build_rx_desc(struct efx_rx_queue *rx_queue , unsigned int index ) { struct efx_rx_buffer *rx_buf ; efx_qword_t *rxd ; { { rxd = efx_rx_desc(rx_queue, index); rx_buf = efx_rx_buffer(rx_queue, index); rxd->u64[0] = ((unsigned long long )rx_buf->len << 48) | rx_buf->dma_addr; } return; } } static void efx_ef10_rx_write(struct efx_rx_queue *rx_queue ) { struct efx_nic *efx ; unsigned int write_count ; efx_dword_t reg ; int tmp ; { efx = rx_queue->efx; write_count = rx_queue->added_count & 4294967288U; if (rx_queue->notified_count == write_count) { return; } else { } ldv_47193: { efx_ef10_build_rx_desc(rx_queue, rx_queue->notified_count & rx_queue->ptr_mask); rx_queue->notified_count = rx_queue->notified_count + 1U; } if (rx_queue->notified_count != write_count) { goto ldv_47193; } else { } { __asm__ volatile ("sfence": : : "memory"); reg.u32[0] = write_count & rx_queue->ptr_mask; tmp = efx_rx_queue_index(rx_queue); _efx_writed_page(efx, (efx_dword_t const *)(& reg), 2096U, (unsigned int )tmp); } return; } } static void efx_ef10_rx_defer_refill_complete(struct efx_nic *efx , unsigned long cookie , int rc , efx_dword_t *outbuf , size_t outlen_actual ) ; static void efx_ef10_rx_defer_refill(struct efx_rx_queue *rx_queue ) { struct efx_channel *channel ; struct efx_channel *tmp ; efx_dword_t inbuf[3U] ; efx_qword_t event ; { { tmp = efx_rx_queue_channel(rx_queue); channel = tmp; event.u64[0] = 8070450532247928834ULL; ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )channel->channel; memcpy((void *)(& inbuf) + 4U, (void const *)(& event.u64), 8UL); efx_mcdi_rpc_async(channel->efx, 134U, (efx_dword_t const *)(& inbuf), 12UL, 0UL, & efx_ef10_rx_defer_refill_complete, 0UL); } return; } } static void efx_ef10_rx_defer_refill_complete(struct efx_nic *efx , unsigned long cookie , int rc , efx_dword_t *outbuf , size_t outlen_actual ) { { return; } } static int efx_ef10_ev_probe(struct efx_channel *channel ) { int tmp ; { { tmp = efx_nic_alloc_buffer(channel->efx, & channel->eventq.buf, (channel->eventq_mask + 1U) * 8U, 208U); } return (tmp); } } static int efx_ef10_ev_init(struct efx_channel *channel ) { efx_dword_t inbuf[73U] ; efx_dword_t outbuf[1U] ; size_t entries ; struct efx_nic *efx ; struct efx_ef10_nic_data *nic_data ; bool supports_rx_merge ; size_t inlen ; size_t outlen ; dma_addr_t dma_addr ; int rc ; int i ; { { entries = (size_t )(channel->eventq.buf.len / 4096U); efx = channel->efx; nic_data = (struct efx_ef10_nic_data *)efx->nic_data; supports_rx_merge = (nic_data->datapath_caps & 33554432U) != 0U; memset(channel->eventq.buf.addr, 255, (size_t )channel->eventq.buf.len); ((efx_dword_t *)(& inbuf))->u32[0] = channel->eventq_mask + 1U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )channel->channel; ((efx_dword_t *)(& inbuf) + 6UL)->u32[0] = (unsigned int )channel->channel; ((efx_dword_t *)(& inbuf) + 4UL)->u32[0] = ((unsigned int )(! supports_rx_merge) << 3) | 49U; ((efx_dword_t *)(& inbuf) + 5UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 7UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 8UL)->u32[0] = 0U; dma_addr = channel->eventq.buf.dma_addr; i = 0; } goto ldv_47273; ldv_47272: ((efx_dword_t *)(& inbuf) + ((unsigned long )i * 8UL + 36UL))->u32[0] = (__le32 )dma_addr; ((efx_dword_t *)(& inbuf) + ((unsigned long )i * 8UL + 37UL))->u32[0] = (__le32 )(dma_addr >> 32); dma_addr = dma_addr + 4096ULL; i = i + 1; ldv_47273: ; if ((size_t )i < entries) { goto ldv_47272; } else { } { inlen = entries * 8UL + 36UL; rc = efx_mcdi_rpc(efx, 128U, (efx_dword_t const *)(& inbuf), inlen, (efx_dword_t *)(& outbuf), 4UL, & outlen); } return (rc); } } static void efx_ef10_ev_fini(struct efx_channel *channel ) { efx_dword_t inbuf[1U] ; efx_dword_t outbuf[0U] ; struct efx_nic *efx ; size_t outlen ; int rc ; { { efx = channel->efx; ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )channel->channel; rc = efx_mcdi_rpc_quiet(efx, 131U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 0UL, & outlen); } if (rc != 0 && rc != -114) { goto fail; } else { } return; fail: { efx_mcdi_display_error(efx, 131U, 4UL, (efx_dword_t *)(& outbuf), outlen, rc); } return; } } static void efx_ef10_ev_remove(struct efx_channel *channel ) { { { efx_nic_free_buffer(channel->efx, & channel->eventq.buf); } return; } } static void efx_ef10_handle_rx_wrong_queue(struct efx_rx_queue *rx_queue , unsigned int rx_queue_label ) { struct efx_nic *efx ; int tmp ; { efx = rx_queue->efx; if ((efx->msg_enable & 8192U) != 0U) { { tmp = efx_rx_queue_index(rx_queue); netdev_info((struct net_device const *)efx->net_dev, "rx event arrived on queue %d labeled as queue %u\n", tmp, rx_queue_label); } } else { } { efx_schedule_reset(efx, 5); } return; } } static void efx_ef10_handle_rx_bad_lbits(struct efx_rx_queue *rx_queue , unsigned int actual , unsigned int expected ) { unsigned int dropped ; struct efx_nic *efx ; { dropped = (actual - expected) & rx_queue->ptr_mask; efx = rx_queue->efx; if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "dropped %d events (index=%d expected=%d)\n", dropped, actual, expected); } } else { } { efx_schedule_reset(efx, 5); } return; } } static void efx_ef10_handle_rx_abort(struct efx_rx_queue *rx_queue ) { unsigned int rx_desc_ptr ; struct _ddebug descriptor ; long tmp ; struct efx_channel *tmp___0 ; { if (((rx_queue->efx)->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_handle_rx_abort"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "scattered RX aborted (dropping %u buffers)\n"; descriptor.lineno = 1745U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(rx_queue->efx)->net_dev, "scattered RX aborted (dropping %u buffers)\n", rx_queue->scatter_n); } } else { } } else { } { rx_desc_ptr = rx_queue->removed_count & rx_queue->ptr_mask; efx_rx_packet(rx_queue, rx_desc_ptr, rx_queue->scatter_n, 0U, 4); rx_queue->removed_count = rx_queue->removed_count + rx_queue->scatter_n; rx_queue->scatter_n = 0U; rx_queue->scatter_len = 0U; tmp___0 = efx_rx_queue_channel(rx_queue); tmp___0->n_rx_nodesc_trunc = tmp___0->n_rx_nodesc_trunc + 1U; } return; } } static int efx_ef10_handle_rx_event(struct efx_channel *channel , efx_qword_t const *event ) { unsigned int rx_bytes ; unsigned int next_ptr_lbits ; unsigned int rx_queue_label ; unsigned int rx_l4_class ; unsigned int n_descs ; unsigned int n_packets ; unsigned int i ; struct efx_nic *efx ; struct efx_rx_queue *rx_queue ; bool rx_cont ; u16 flags ; long tmp ; int __ret_warn_on ; char const *tmp___0 ; long tmp___1 ; int tmp___2 ; long tmp___3 ; struct efx_ef10_nic_data *nic_data ; int __ret_warn_on___0 ; char const *tmp___4 ; long tmp___5 ; long tmp___6 ; long tmp___7 ; long tmp___8 ; long tmp___9 ; { { efx = channel->efx; flags = 0U; tmp = ldv__builtin_expect((unsigned long )*((unsigned long volatile *)(& efx->reset_pending)) != 0UL, 0L); } if (tmp != 0L) { return (0); } else { } rx_bytes = (unsigned int )event->u64[0] & 16383U; next_ptr_lbits = (unsigned int )(event->u64[0] >> 48) & 15U; rx_queue_label = (unsigned int )(event->u64[0] >> 16) & 31U; rx_l4_class = (unsigned int )(event->u64[0] >> 45) & 7U; rx_cont = ((event->u64[0] >> 14) & 1ULL) != 0ULL; if ((int )(event->u64[0] >> 58) & 1) { { __ret_warn_on = 1; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { tmp___0 = netdev_name((struct net_device const *)efx->net_dev); warn_slowpath_fmt("drivers/net/ethernet/sfc/ef10.c", 1781, "netdevice: %s\nsaw RX_DROP_EVENT: event=%08x:%08x\n", tmp___0, event->u32[1], event->u32[0]); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } } else { } { rx_queue = efx_channel_get_rx_queue(channel); tmp___2 = efx_rx_queue_index(rx_queue); tmp___3 = ldv__builtin_expect(rx_queue_label != (unsigned int )tmp___2, 0L); } if (tmp___3 != 0L) { { efx_ef10_handle_rx_wrong_queue(rx_queue, rx_queue_label); } } else { } n_descs = (next_ptr_lbits - rx_queue->removed_count) & 15U; if (n_descs != rx_queue->scatter_n + 1U) { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; tmp___6 = ldv__builtin_expect(n_descs == rx_queue->scatter_n, 0L); } if (tmp___6 != 0L) { if (rx_queue->scatter_n == 0U || rx_bytes != 0U) { { __ret_warn_on___0 = 1; tmp___5 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___5 != 0L) { { tmp___4 = netdev_name((struct net_device const *)efx->net_dev); warn_slowpath_fmt("drivers/net/ethernet/sfc/ef10.c", 1801, "netdevice: %s\ninvalid RX abort: scatter_n=%u event=%08x:%08x\n", tmp___4, rx_queue->scatter_n, event->u32[1], event->u32[0]); } } else { } { ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } } else { } { efx_ef10_handle_rx_abort(rx_queue); } return (0); } else { } if (((nic_data->datapath_caps & 33554432U) == 0U || rx_queue->scatter_n != 0U) || (int )rx_cont) { { efx_ef10_handle_rx_bad_lbits(rx_queue, next_ptr_lbits, ((rx_queue->removed_count + rx_queue->scatter_n) + 1U) & 15U); } return (0); } else { } rx_queue->scatter_n = 1U; rx_queue->scatter_len = 0U; n_packets = n_descs; channel->n_rx_merge_events = channel->n_rx_merge_events + 1U; channel->n_rx_merge_packets = channel->n_rx_merge_packets + n_packets; flags = (u16 )((unsigned int )flags | 128U); } else { rx_queue->scatter_n = rx_queue->scatter_n + 1U; rx_queue->scatter_len = rx_queue->scatter_len + rx_bytes; if ((int )rx_cont) { return (0); } else { } n_packets = 1U; } { tmp___7 = ldv__builtin_expect((long )((int )(event->u64[0] >> 24)) & 1L, 0L); } if (tmp___7 != 0L) { flags = (u16 )((unsigned int )flags | 4U); } else { } { tmp___9 = ldv__builtin_expect((long )((int )(event->u64[0] >> 25)) & 1L, 0L); } if (tmp___9 != 0L) { channel->n_rx_ip_hdr_chksum_err = channel->n_rx_ip_hdr_chksum_err + n_packets; } else { { tmp___8 = ldv__builtin_expect((long )((int )(event->u64[0] >> 26)) & 1L, 0L); } if (tmp___8 != 0L) { channel->n_rx_tcp_udp_chksum_err = channel->n_rx_tcp_udp_chksum_err + n_packets; } else if (rx_l4_class - 1U <= 1U) { flags = (u16 )((unsigned int )flags | 2U); } else { } } if (rx_l4_class == 1U) { flags = (u16 )((unsigned int )flags | 64U); } else { } channel->irq_mod_score = channel->irq_mod_score + n_packets * 2U; i = 0U; goto ldv_47328; ldv_47327: { efx_rx_packet(rx_queue, rx_queue->removed_count & rx_queue->ptr_mask, rx_queue->scatter_n, rx_queue->scatter_len, (int )flags); rx_queue->removed_count = rx_queue->removed_count + rx_queue->scatter_n; i = i + 1U; } ldv_47328: ; if (i < n_packets) { goto ldv_47327; } else { } rx_queue->scatter_n = 0U; rx_queue->scatter_len = 0U; return ((int )n_packets); } } static int efx_ef10_handle_tx_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; struct efx_tx_queue *tx_queue ; unsigned int tx_ev_desc_ptr ; unsigned int tx_ev_q_label ; int tx_descs ; long tmp ; long tmp___0 ; { { efx = channel->efx; tx_descs = 0; tmp = ldv__builtin_expect((unsigned long )*((unsigned long volatile *)(& efx->reset_pending)) != 0UL, 0L); } if (tmp != 0L) { return (0); } else { } { tmp___0 = ldv__builtin_expect((long )((int )(event->u64[0] >> 58)) & 1L, 0L); } if (tmp___0 != 0L) { return (0); } else { } { tx_ev_desc_ptr = (unsigned int )event->u64[0] & 65535U; tx_ev_q_label = (unsigned int )(event->u64[0] >> 16) & 31U; tx_queue = efx_channel_get_tx_queue(channel, tx_ev_q_label & 3U); tx_descs = (int )(((tx_ev_desc_ptr - tx_queue->read_count) + 1U) & tx_queue->ptr_mask); efx_xmit_done(tx_queue, tx_ev_desc_ptr & tx_queue->ptr_mask); } return (tx_descs); } } static void efx_ef10_handle_driver_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; int subcode ; { efx = channel->efx; subcode = (int )(event->u64[0] >> 56) & 15; { if (subcode == 3) { goto case_3; } else { } if (subcode == 1) { goto case_1; } else { } if (subcode == 2) { goto case_2; } else { } goto switch_default; case_3: /* CIL Label */ ; case_1: /* CIL Label */ ; goto ldv_47347; case_2: /* CIL Label */ ; goto ldv_47347; switch_default: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d unknown driver event type %d (data %08x:%08x)\n", channel->channel, subcode, event->u32[1], event->u32[0]); } } else { } switch_break: /* CIL Label */ ; } ldv_47347: ; return; } } static void efx_ef10_handle_driver_generated_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; u32 subcode ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; { efx = channel->efx; subcode = (u32 )event->u64[0]; { if (subcode == 1U) { goto case_1; } else { } if (subcode == 2U) { goto case_2___4; } else { } goto switch_default___4; case_1: /* CIL Label */ __vpp_verify = (void const *)0; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_47362; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47362; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47362; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_47362; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_47362: pscr_ret__ = pfo_ret__; goto ldv_47368; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47372; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47372; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47372; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_47372; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_47372: pscr_ret__ = pfo_ret_____0; goto ldv_47368; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47381; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47381; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47381; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_47381; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_47381: pscr_ret__ = pfo_ret_____1; goto ldv_47368; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___4; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___4: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47390; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47390; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47390; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_47390; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___4: /* CIL Label */ ; } ldv_47390: pscr_ret__ = pfo_ret_____2; goto ldv_47368; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_47368; switch_break___0: /* CIL Label */ ; } ldv_47368: channel->event_test_cpu = pscr_ret__; goto ldv_47398; case_2___4: /* CIL Label */ { efx_fast_push_rx_descriptors(& channel->rx_queue, 1); } goto ldv_47398; switch_default___4: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d unknown driver event type %u (data %08x:%08x)\n", channel->channel, subcode, event->u32[1], event->u32[0]); } } else { } switch_break: /* CIL Label */ ; } ldv_47398: ; return; } } static int efx_ef10_ev_process(struct efx_channel *channel , int quota ) { struct efx_nic *efx ; efx_qword_t event ; efx_qword_t *p_event ; unsigned int read_ptr ; int ev_code ; int tx_descs ; int spent ; int tmp ; int tmp___0 ; int tmp___1 ; { efx = channel->efx; tx_descs = 0; spent = 0; read_ptr = channel->eventq_read_ptr; ldv_47422: { p_event = efx_event(channel, read_ptr); event = *p_event; tmp = efx_event_present(& event); } if (tmp == 0) { goto ldv_47412; } else { } p_event->u64[0] = 0xffffffffffffffffULL; read_ptr = read_ptr + 1U; ev_code = (int )(event.u64[0] >> 60); { if (ev_code == 12) { goto case_12; } else { } if (ev_code == 0) { goto case_0; } else { } if (ev_code == 2) { goto case_2; } else { } if (ev_code == 5) { goto case_5; } else { } if (ev_code == 7) { goto case_7; } else { } goto switch_default; case_12: /* CIL Label */ { efx_mcdi_process_event(channel, & event); } goto ldv_47415; case_0: /* CIL Label */ { tmp___0 = efx_ef10_handle_rx_event(channel, (efx_qword_t const *)(& event)); spent = spent + tmp___0; } if (spent >= quota) { spent = quota; goto out; } else { } goto ldv_47415; case_2: /* CIL Label */ { tmp___1 = efx_ef10_handle_tx_event(channel, & event); tx_descs = tx_descs + tmp___1; } if ((unsigned int )tx_descs > efx->txq_entries) { spent = quota; goto out; } else { spent = spent + 1; if (spent == quota) { goto out; } else { } } goto ldv_47415; case_5: /* CIL Label */ { efx_ef10_handle_driver_event(channel, & event); spent = spent + 1; } if (spent == quota) { goto out; } else { } goto ldv_47415; case_7: /* CIL Label */ { efx_ef10_handle_driver_generated_event(channel, & event); } goto ldv_47415; switch_default: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d unknown event type %d (data %08x:%08x)\n", channel->channel, ev_code, event.u32[1], event.u32[0]); } } else { } switch_break: /* CIL Label */ ; } ldv_47415: ; goto ldv_47422; ldv_47412: ; out: channel->eventq_read_ptr = read_ptr; return (spent); } } extern void __compiletime_assert_2029(void) ; extern void __compiletime_assert_2031(void) ; static void efx_ef10_ev_read_ack(struct efx_channel *channel ) { struct efx_nic *efx ; efx_dword_t rptr ; bool __cond ; bool __cond___0 ; { efx = channel->efx; if ((int )((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388) { __cond = 0; if ((int )__cond) { { __compiletime_assert_2029(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_2031(); } } else { } { rptr.u32[0] = ((channel->eventq_read_ptr & channel->eventq_mask) >> 8) | 2048U; _efx_writed_page(efx, (efx_dword_t const *)(& rptr), 2584U, (unsigned int )channel->channel); rptr.u32[0] = (channel->eventq_read_ptr & 255U) | 2304U; _efx_writed_page(efx, (efx_dword_t const *)(& rptr), 2584U, (unsigned int )channel->channel); } } else { { rptr.u32[0] = channel->eventq_read_ptr & channel->eventq_mask; _efx_writed_page(efx, (efx_dword_t const *)(& rptr), 1024U, (unsigned int )channel->channel); } } return; } } static void efx_ef10_ev_test_generate(struct efx_channel *channel ) { efx_dword_t inbuf[3U] ; struct efx_nic *efx ; efx_qword_t event ; int rc ; int __ret_warn_on ; long tmp ; { { efx = channel->efx; event.u64[0] = 8070450532247928833ULL; ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )channel->channel; memcpy((void *)(& inbuf) + 4U, (void const *)(& event.u64), 8UL); rc = efx_mcdi_rpc(efx, 134U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { goto fail; } else { } return; fail: { __ret_warn_on = 1; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 2083); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_ef10_ev_test_generate", rc); } } else { } return; } } void efx_ef10_handle_drain_event(struct efx_nic *efx ) { int tmp ; int __ret_warn_on ; int tmp___0 ; long tmp___1 ; { { tmp = atomic_dec_and_test(& efx->active_queues); } if (tmp != 0) { { __wake_up(& efx->flush_wq, 3U, 1, (void *)0); } } else { } { tmp___0 = atomic_read((atomic_t const *)(& efx->active_queues)); __ret_warn_on = tmp___0 < 0; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 2092); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } return; } } static int efx_ef10_fini_dmaq(struct efx_nic *efx ) { struct efx_ef10_nic_data *nic_data ; struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; struct efx_rx_queue *rx_queue ; int pending ; bool tmp ; int tmp___0 ; bool tmp___1 ; bool tmp___2 ; int tmp___3 ; long __ret ; unsigned long tmp___4 ; wait_queue_t __wait ; long __ret___0 ; unsigned long tmp___5 ; long __int ; long tmp___6 ; bool __cond ; int tmp___7 ; bool __cond___0 ; int tmp___8 ; { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; if ((int )nic_data->must_realloc_vis) { { atomic_set(& efx->active_queues, 0); } return (0); } else { } if ((unsigned int )efx->state != 3U) { channel = efx->channel[0]; goto ldv_47475; ldv_47474: { tmp = efx_channel_has_rx_queue(channel); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { } else { rx_queue = & channel->rx_queue; goto ldv_47469; ldv_47468: { efx_ef10_rx_fini(rx_queue); rx_queue = (struct efx_rx_queue *)0; } ldv_47469: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_47468; } else { } } { tmp___2 = efx_channel_has_tx_queues(channel); } if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_47472; ldv_47471: { efx_ef10_tx_fini(tx_queue); tx_queue = tx_queue + 1; } ldv_47472: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___1 = efx_tx_queue_used(tx_queue); } if ((int )tmp___1) { goto ldv_47471; } else { goto ldv_47473; } } else { } ldv_47473: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47475: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47474; } else { } { tmp___4 = msecs_to_jiffies(5000U); __ret = (long )tmp___4; tmp___8 = atomic_read((atomic_t const *)(& efx->active_queues)); __cond___0 = tmp___8 == 0; } if ((int )__cond___0 && __ret == 0L) { __ret = 1L; } else { } if (((int )__cond___0 || __ret == 0L) == 0) { { tmp___5 = msecs_to_jiffies(5000U); __ret___0 = (long )tmp___5; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; } ldv_47487: { tmp___6 = prepare_to_wait_event(& efx->flush_wq, & __wait, 2); __int = tmp___6; tmp___7 = atomic_read((atomic_t const *)(& efx->active_queues)); __cond = tmp___7 == 0; } if ((int )__cond && __ret___0 == 0L) { __ret___0 = 1L; } else { } if (((int )__cond || __ret___0 == 0L) != 0) { goto ldv_47486; } else { } { __ret___0 = schedule_timeout(__ret___0); } goto ldv_47487; ldv_47486: { finish_wait(& efx->flush_wq, & __wait); } __ret = __ret___0; } else { } { pending = atomic_read((atomic_t const *)(& efx->active_queues)); } if (pending != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to flush %d queues\n", pending); } } else { } return (-110); } else { } } else { } return (0); } } static bool efx_ef10_filter_equal(struct efx_filter_spec const *left , struct efx_filter_spec const *right ) { int tmp ; { if ((((int )left->match_flags ^ (int )right->match_flags) | (((int )left->flags ^ (int )right->flags) & 24)) != 0) { return (0); } else { } { tmp = memcmp((void const *)(& left->outer_vid), (void const *)(& right->outer_vid), 56UL); } return (tmp == 0); } } extern void __compiletime_assert_2149(void) ; static unsigned int efx_ef10_filter_hash(struct efx_filter_spec const *spec ) { bool __cond ; u32 tmp ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_2149(); } } else { } { tmp = jhash2((u32 const *)(& spec->outer_vid), 14U, 0U); } return (tmp); } } static bool efx_ef10_filter_is_exclusive(struct efx_filter_spec const *spec ) { bool tmp ; int tmp___0 ; bool tmp___1 ; int tmp___2 ; { if (((int )spec->match_flags & 16) != 0) { { tmp = is_multicast_ether_addr((u8 const *)(& spec->loc_mac)); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (1); } else { } } else { } if (((int )spec->match_flags & 66) == 66) { if ((unsigned int )((unsigned short )spec->ether_type) == 8U) { { tmp___1 = ipv4_is_multicast(spec->loc_host[0]); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { return (1); } else { } } else { } if ((unsigned int )((unsigned short )spec->ether_type) == 56710U && (unsigned int )((unsigned char )*((u8 const *)(& spec->loc_host))) != 255U) { return (1); } else { } } else { } return (0); } } static struct efx_filter_spec *efx_ef10_filter_entry_spec(struct efx_ef10_filter_table const *table , unsigned int filter_idx ) { { return ((struct efx_filter_spec *)((table->entry + (unsigned long )filter_idx)->spec & 0xfffffffffffffffcUL)); } } static unsigned int efx_ef10_filter_entry_flags(struct efx_ef10_filter_table const *table , unsigned int filter_idx ) { { return ((unsigned int )(table->entry + (unsigned long )filter_idx)->spec & 3U); } } static void efx_ef10_filter_set_entry(struct efx_ef10_filter_table *table , unsigned int filter_idx , struct efx_filter_spec const *spec , unsigned int flags ) { { (table->entry + (unsigned long )filter_idx)->spec = (unsigned long )spec | (unsigned long )flags; return; } } extern void __compiletime_assert_2247(void) ; extern void __compiletime_assert_2248(void) ; extern void __compiletime_assert_2249(void) ; extern void __compiletime_assert_2250(void) ; extern void __compiletime_assert_2251(void) ; extern void __compiletime_assert_2252(void) ; extern void __compiletime_assert_2253(void) ; extern void __compiletime_assert_2254(void) ; extern void __compiletime_assert_2255(void) ; extern void __compiletime_assert_2256(void) ; static void efx_ef10_filter_push_prep(struct efx_nic *efx , struct efx_filter_spec const *spec , efx_dword_t *inbuf , u64 handle , bool replacing ) { struct efx_ef10_nic_data *nic_data ; u32 match_fields ; bool tmp ; bool tmp___0 ; bool __cond ; bool __cond___0 ; bool __cond___1 ; bool __cond___2 ; bool __cond___3 ; bool __cond___4 ; bool __cond___5 ; bool __cond___6 ; bool __cond___7 ; bool __cond___8 ; { { nic_data = (struct efx_ef10_nic_data *)efx->nic_data; memset((void *)inbuf, 0, 108UL); } if ((int )replacing) { inbuf->u32[0] = 4U; (inbuf + 1UL)->u32[0] = (unsigned int )handle; (inbuf + 2U)->u32[0] = (unsigned int )(handle >> 32); } else { { match_fields = 0U; tmp = efx_ef10_filter_is_exclusive(spec); inbuf->u32[0] = (int )tmp ? 0U : 2U; } if (((int )spec->match_flags & 1024) != 0) { { tmp___0 = is_multicast_ether_addr((u8 const *)(& spec->loc_mac)); match_fields = match_fields | ((int )tmp___0 ? 1073741824U : 2147483648U); } } else { } if ((int )spec->match_flags & 1) { match_fields = match_fields | 1U; __cond = 0; if ((int )__cond) { { __compiletime_assert_2247(); } } else { } { memcpy((void *)inbuf + 76U, (void const *)(& spec->rem_host), 16UL); } } else { } if (((int )spec->match_flags & 2) != 0) { match_fields = match_fields | 2U; __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_2248(); } } else { } { memcpy((void *)inbuf + 92U, (void const *)(& spec->loc_host), 16UL); } } else { } if (((int )spec->match_flags & 4) != 0) { match_fields = match_fields | 4U; __cond___1 = 0; if ((int )__cond___1) { { __compiletime_assert_2249(); } } else { } { memcpy((void *)inbuf + 44U, (void const *)(& spec->rem_mac), 6UL); } } else { } if (((int )spec->match_flags & 8) != 0) { match_fields = match_fields | 8U; __cond___2 = 0; if ((int )__cond___2) { { __compiletime_assert_2250(); } } else { } { memcpy((void *)inbuf + 50U, (void const *)(& spec->rem_port), 2UL); } } else { } if (((int )spec->match_flags & 16) != 0) { match_fields = match_fields | 16U; __cond___3 = 0; if ((int )__cond___3) { { __compiletime_assert_2251(); } } else { } { memcpy((void *)inbuf + 52U, (void const *)(& spec->loc_mac), 6UL); } } else { } if (((int )spec->match_flags & 32) != 0) { match_fields = match_fields | 32U; __cond___4 = 0; if ((int )__cond___4) { { __compiletime_assert_2252(); } } else { } { memcpy((void *)inbuf + 58U, (void const *)(& spec->loc_port), 2UL); } } else { } if (((int )spec->match_flags & 64) != 0) { match_fields = match_fields | 64U; __cond___5 = 0; if ((int )__cond___5) { { __compiletime_assert_2253(); } } else { } { memcpy((void *)inbuf + 60U, (void const *)(& spec->ether_type), 2UL); } } else { } if (((int )spec->match_flags & 128) != 0) { match_fields = match_fields | 128U; __cond___6 = 0; if ((int )__cond___6) { { __compiletime_assert_2254(); } } else { } { memcpy((void *)inbuf + 62U, (void const *)(& spec->inner_vid), 2UL); } } else { } if (((int )spec->match_flags & 256) != 0) { match_fields = match_fields | 256U; __cond___7 = 0; if ((int )__cond___7) { { __compiletime_assert_2255(); } } else { } { memcpy((void *)inbuf + 64U, (void const *)(& spec->outer_vid), 2UL); } } else { } if (((int )spec->match_flags & 512) != 0) { match_fields = match_fields | 512U; __cond___8 = 0; if ((int )__cond___8) { { __compiletime_assert_2256(); } } else { } { memcpy((void *)inbuf + 66U, (void const *)(& spec->ip_proto), 1UL); } } else { } (inbuf + 4UL)->u32[0] = match_fields; } (inbuf + 3UL)->u32[0] = 16777216U; (inbuf + 5UL)->u32[0] = (unsigned int )*((unsigned short *)spec + 1UL) != 65520U; (inbuf + 10UL)->u32[0] = 4294967295U; (inbuf + 6UL)->u32[0] = (unsigned int )*((unsigned short *)spec + 1UL) != 65520U ? (unsigned int )spec->dmaq_id : 0U; (inbuf + 7UL)->u32[0] = (int )spec->flags & 1 ? 1U : 0U; if ((int )spec->flags & 1) { (inbuf + 8UL)->u32[0] = (unsigned int )spec->rss_context != 4294967295U ? (unsigned int )spec->rss_context : nic_data->rx_rss_context; } else { } return; } } static int efx_ef10_filter_push(struct efx_nic *efx , struct efx_filter_spec const *spec , u64 *handle , bool replacing ) { efx_dword_t inbuf[27U] ; efx_dword_t outbuf[3U] ; int rc ; { { efx_ef10_filter_push_prep(efx, spec, (efx_dword_t *)(& inbuf), *handle, (int )replacing); rc = efx_mcdi_rpc(efx, 138U, (efx_dword_t const *)(& inbuf), 108UL, (efx_dword_t *)(& outbuf), 12UL, (size_t *)0UL); } if (rc == 0) { *handle = (unsigned long long )((efx_dword_t *)(& outbuf) + 1UL)->u32[0] | ((unsigned long long )((efx_dword_t *)(& outbuf) + 2U)->u32[0] << 32); } else { } if (rc == -28) { rc = -16; } else { } return (rc); } } static int efx_ef10_filter_rx_match_pri(struct efx_ef10_filter_table *table , enum efx_filter_match_flags match_flags ) { unsigned int match_pri ; { match_pri = 0U; goto ldv_47612; ldv_47611: ; if ((unsigned int )table->rx_match_flags[match_pri] == (unsigned int )match_flags) { return ((int )match_pri); } else { } match_pri = match_pri + 1U; ldv_47612: ; if (match_pri < table->rx_match_count) { goto ldv_47611; } else { } return (-93); } } static s32 efx_ef10_filter_insert(struct efx_nic *efx , struct efx_filter_spec *spec , bool replace_equal ) { struct efx_ef10_filter_table *table ; unsigned long mc_rem_map[4U] ; struct efx_filter_spec *saved_spec ; unsigned int match_pri ; unsigned int hash ; unsigned int priv_flags ; bool replacing ; int ins_index ; wait_queue_t wait ; struct task_struct *tmp ; bool is_mc_recip ; s32 rc ; unsigned int depth ; unsigned int i ; bool tmp___0 ; void *tmp___1 ; unsigned int depth___0 ; unsigned int i___0 ; int tmp___3 ; efx_dword_t inbuf[27U] ; unsigned int depth___1 ; unsigned int i___1 ; int tmp___5 ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; replacing = 0; ins_index = -1; tmp = get_current(); wait.flags = 0U; wait.private = (void *)tmp; wait.func = & autoremove_wake_function; wait.task_list.next = & wait.task_list; wait.task_list.prev = & wait.task_list; } if (((int )spec->flags & 24) != 8) { return (-22); } else { } { rc = efx_ef10_filter_rx_match_pri(table, (enum efx_filter_match_flags )spec->match_flags); } if (rc < 0) { return (rc); } else { } { match_pri = (unsigned int )rc; hash = efx_ef10_filter_hash((struct efx_filter_spec const *)spec); is_mc_recip = efx_filter_is_mc_recipient((struct efx_filter_spec const *)spec); } if ((int )is_mc_recip) { { bitmap_zero((unsigned long *)(& mc_rem_map), 200); } } else { } ldv_47636: { depth = 1U; ldv_spin_lock_bh_76(& efx->filter_lock); } ldv_47635: { i = (hash + depth) & 8191U; saved_spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, i); } if ((unsigned long )saved_spec == (unsigned long )((struct efx_filter_spec *)0)) { if (ins_index < 0) { ins_index = (int )i; } else { } } else { { tmp___0 = efx_ef10_filter_equal((struct efx_filter_spec const *)spec, (struct efx_filter_spec const *)saved_spec); } if ((int )tmp___0) { if ((int )(table->entry + (unsigned long )i)->spec & 1) { goto ldv_47632; } else { } if ((int )spec->priority < (int )saved_spec->priority && (unsigned int )*((unsigned char *)spec + 1UL) != 16U) { rc = -1; goto out_unlock; } else { } if (! is_mc_recip) { if (((unsigned int )((int )*((unsigned char *)spec + 1UL) ^ (int )*((unsigned char *)saved_spec + 1UL)) & 48U) == 0U && ! replace_equal) { rc = -17; goto out_unlock; } else { } ins_index = (int )i; goto found; } else if ((int )spec->priority > (int )saved_spec->priority || (((unsigned int )((int )*((unsigned char *)spec + 1UL) ^ (int )*((unsigned char *)saved_spec + 1UL)) & 48U) == 0U && (int )replace_equal)) { if (ins_index < 0) { ins_index = (int )i; } else { { __set_bit((long )depth, (unsigned long volatile *)(& mc_rem_map)); } } } else { } } else { } } if (depth == 200U) { if (ins_index < 0) { rc = -16; goto out_unlock; } else { } goto found; } else { } depth = depth + 1U; goto ldv_47635; ldv_47632: { prepare_to_wait(& table->waitq, & wait, 2); ldv_spin_unlock_bh_78(& efx->filter_lock); schedule(); } goto ldv_47636; found: { saved_spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, (unsigned int )ins_index); } if ((unsigned long )saved_spec != (unsigned long )((struct efx_filter_spec *)0)) { if ((unsigned int )*((unsigned char *)spec + 1UL) == 16U && (int )saved_spec->priority > 0) { if ((int )saved_spec->priority > 1) { saved_spec->flags = (unsigned int )((unsigned char )saved_spec->flags) | 4U; } else { } (table->entry + (unsigned long )ins_index)->spec = (table->entry + (unsigned long )ins_index)->spec & 0xfffffffffffffffdUL; rc = ins_index; goto out_unlock; } else { } { replacing = 1; priv_flags = efx_ef10_filter_entry_flags((struct efx_ef10_filter_table const *)table, (unsigned int )ins_index); } } else { { tmp___1 = kmalloc(64UL, 32U); saved_spec = (struct efx_filter_spec *)tmp___1; } if ((unsigned long )saved_spec == (unsigned long )((struct efx_filter_spec *)0)) { rc = -12; goto out_unlock; } else { } *saved_spec = *spec; priv_flags = 0U; } { efx_ef10_filter_set_entry(table, (unsigned int )ins_index, (struct efx_filter_spec const *)saved_spec, priv_flags | 1U); } if ((int )is_mc_recip) { depth___0 = 0U; goto ldv_47640; ldv_47639: { i___0 = (hash + depth___0) & 8191U; tmp___3 = variable_test_bit((long )depth___0, (unsigned long const volatile *)(& mc_rem_map)); } if (tmp___3 != 0) { (table->entry + (unsigned long )i___0)->spec = (table->entry + (unsigned long )i___0)->spec | 1UL; } else { } depth___0 = depth___0 + 1U; ldv_47640: ; if (depth___0 <= 199U) { goto ldv_47639; } else { } } else { } { ldv_spin_unlock_bh_78(& efx->filter_lock); rc = efx_ef10_filter_push(efx, (struct efx_filter_spec const *)spec, & (table->entry + (unsigned long )ins_index)->handle, (int )replacing); ldv_spin_lock_bh_76(& efx->filter_lock); } if (rc == 0) { if ((int )replacing) { if ((unsigned int )*((unsigned char *)saved_spec + 1UL) == 16U) { saved_spec->flags = (unsigned int )((unsigned char )saved_spec->flags) | 4U; } else { } saved_spec->priority = spec->priority; saved_spec->flags = saved_spec->flags & 4U; saved_spec->flags = (int )((unsigned char )saved_spec->flags) | (int )((unsigned char )spec->flags); saved_spec->rss_context = spec->rss_context; saved_spec->dmaq_id = spec->dmaq_id; } else { } } else if (! replacing) { { kfree((void const *)saved_spec); saved_spec = (struct efx_filter_spec *)0; } } else { } { efx_ef10_filter_set_entry(table, (unsigned int )ins_index, (struct efx_filter_spec const *)saved_spec, priv_flags); } if ((int )is_mc_recip) { { memset((void *)(& inbuf), 0, 108UL); depth___1 = 0U; } goto ldv_47653; ldv_47652: { tmp___5 = variable_test_bit((long )depth___1, (unsigned long const volatile *)(& mc_rem_map)); } if (tmp___5 == 0) { goto ldv_47645; } else { } { i___1 = (hash + depth___1) & 8191U; saved_spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, i___1); priv_flags = efx_ef10_filter_entry_flags((struct efx_ef10_filter_table const *)table, i___1); } if (rc == 0) { { ldv_spin_unlock_bh_78(& efx->filter_lock); ((efx_dword_t *)(& inbuf))->u32[0] = 3U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )(table->entry + (unsigned long )i___1)->handle; ((efx_dword_t *)(& inbuf) + 2U)->u32[0] = (unsigned int )((table->entry + (unsigned long )i___1)->handle >> 32); rc = efx_mcdi_rpc(efx, 138U, (efx_dword_t const *)(& inbuf), 108UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); ldv_spin_lock_bh_76(& efx->filter_lock); } } else { } if (rc == 0) { { kfree((void const *)saved_spec); saved_spec = (struct efx_filter_spec *)0; priv_flags = 0U; } } else { priv_flags = priv_flags & 4294967294U; } { efx_ef10_filter_set_entry(table, i___1, (struct efx_filter_spec const *)saved_spec, priv_flags); } ldv_47645: depth___1 = depth___1 + 1U; ldv_47653: ; if (depth___1 <= 199U) { goto ldv_47652; } else { } } else { } if (rc == 0) { rc = (s32 )(match_pri * 8192U + (unsigned int )ins_index); } else { } { __wake_up(& table->waitq, 3U, 0, (void *)0); } out_unlock: { ldv_spin_unlock_bh_78(& efx->filter_lock); finish_wait(& table->waitq, & wait); } return (rc); } } static void efx_ef10_filter_update_rx_scatter(struct efx_nic *efx ) { { return; } } static int efx_ef10_filter_remove_internal(struct efx_nic *efx , unsigned int priority_mask , u32 filter_id , bool by_index ) { unsigned int filter_idx ; struct efx_ef10_filter_table *table ; efx_dword_t inbuf[3U] ; struct efx_filter_spec *spec ; wait_queue_t wait ; struct task_struct *tmp ; int rc ; int tmp___0 ; struct efx_filter_spec new_spec ; bool tmp___1 ; { { filter_idx = filter_id & 8191U; table = (struct efx_ef10_filter_table *)efx->filter_state; tmp = get_current(); wait.flags = 0U; wait.private = (void *)tmp; wait.func = & autoremove_wake_function; wait.task_list.next = & wait.task_list; wait.task_list.prev = & wait.task_list; } ldv_47671: { ldv_spin_lock_bh_76(& efx->filter_lock); } if (((table->entry + (unsigned long )filter_idx)->spec & 1UL) == 0UL) { goto ldv_47670; } else { } { prepare_to_wait(& table->waitq, & wait, 2); ldv_spin_unlock_bh_78(& efx->filter_lock); schedule(); } goto ldv_47671; ldv_47670: { spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, filter_idx); } if ((unsigned long )spec == (unsigned long )((struct efx_filter_spec *)0)) { rc = -2; goto out_unlock; } else if (! by_index) { { tmp___0 = efx_ef10_filter_rx_match_pri(table, (enum efx_filter_match_flags )spec->match_flags); } if ((u32 )tmp___0 != filter_id / 8192U) { rc = -2; goto out_unlock; } else { } } else { } if (((int )spec->flags & 4) != 0 && priority_mask == 2U) { spec->flags = spec->flags & 59U; (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec & 0xfffffffffffffffdUL; rc = 0; goto out_unlock; } else { } if (((priority_mask >> (int )spec->priority) & 1U) == 0U) { rc = -2; goto out_unlock; } else { } { (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec | 1UL; ldv_spin_unlock_bh_78(& efx->filter_lock); } if (((int )spec->flags & 4) != 0) { { new_spec = *spec; new_spec.priority = 1U; new_spec.flags = 9U; new_spec.dmaq_id = 0U; new_spec.rss_context = 4294967295U; rc = efx_ef10_filter_push(efx, (struct efx_filter_spec const *)(& new_spec), & (table->entry + (unsigned long )filter_idx)->handle, 1); ldv_spin_lock_bh_76(& efx->filter_lock); } if (rc == 0) { *spec = new_spec; } else { } } else { { tmp___1 = efx_ef10_filter_is_exclusive((struct efx_filter_spec const *)spec); ((efx_dword_t *)(& inbuf))->u32[0] = (int )tmp___1 ? 1U : 3U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )(table->entry + (unsigned long )filter_idx)->handle; ((efx_dword_t *)(& inbuf) + 2U)->u32[0] = (unsigned int )((table->entry + (unsigned long )filter_idx)->handle >> 32); rc = efx_mcdi_rpc(efx, 138U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); ldv_spin_lock_bh_76(& efx->filter_lock); } if (rc == 0) { { kfree((void const *)spec); efx_ef10_filter_set_entry(table, filter_idx, (struct efx_filter_spec const *)0, 0U); } } else { } } { (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec & 0xfffffffffffffffeUL; __wake_up(& table->waitq, 3U, 0, (void *)0); } out_unlock: { ldv_spin_unlock_bh_78(& efx->filter_lock); finish_wait(& table->waitq, & wait); } return (rc); } } static int efx_ef10_filter_remove_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id ) { int tmp ; { { tmp = efx_ef10_filter_remove_internal(efx, 1U << (int )priority, filter_id, 0); } return (tmp); } } static int efx_ef10_filter_get_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id , struct efx_filter_spec *spec ) { unsigned int filter_idx ; struct efx_ef10_filter_table *table ; struct efx_filter_spec const *saved_spec ; int rc ; struct efx_filter_spec *tmp ; int tmp___0 ; { { filter_idx = filter_id & 8191U; table = (struct efx_ef10_filter_table *)efx->filter_state; ldv_spin_lock_bh_76(& efx->filter_lock); tmp = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, filter_idx); saved_spec = (struct efx_filter_spec const *)tmp; } if ((unsigned long )saved_spec != (unsigned long )((struct efx_filter_spec const *)0) && (unsigned int )saved_spec->priority == (unsigned int )priority) { { tmp___0 = efx_ef10_filter_rx_match_pri(table, (enum efx_filter_match_flags )saved_spec->match_flags); } if ((u32 )tmp___0 == filter_id / 8192U) { *spec = *saved_spec; rc = 0; } else { rc = -2; } } else { rc = -2; } { ldv_spin_unlock_bh_78(& efx->filter_lock); } return (rc); } } static int efx_ef10_filter_clear_rx(struct efx_nic *efx , enum efx_filter_priority priority ) { unsigned int priority_mask ; unsigned int i ; int rc ; { priority_mask = ((1U << (int )((unsigned int )priority + 1U)) - 1U) & 4294967293U; i = 0U; goto ldv_47703; ldv_47702: { rc = efx_ef10_filter_remove_internal(efx, priority_mask, i, 1); } if (rc != 0 && rc != -2) { return (rc); } else { } i = i + 1U; ldv_47703: ; if (i <= 8191U) { goto ldv_47702; } else { } return (0); } } static u32 efx_ef10_filter_count_rx_used(struct efx_nic *efx , enum efx_filter_priority priority ) { struct efx_ef10_filter_table *table ; unsigned int filter_idx ; s32 count ; struct efx_filter_spec *tmp ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; count = 0; ldv_spin_lock_bh_76(& efx->filter_lock); filter_idx = 0U; } goto ldv_47713; ldv_47712: ; if ((table->entry + (unsigned long )filter_idx)->spec != 0UL) { { tmp = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, filter_idx); } if (tmp->priority == (unsigned int )priority) { count = count + 1; } else { } } else { } filter_idx = filter_idx + 1U; ldv_47713: ; if (filter_idx <= 8191U) { goto ldv_47712; } else { } { ldv_spin_unlock_bh_78(& efx->filter_lock); } return ((u32 )count); } } static u32 efx_ef10_filter_get_rx_id_limit(struct efx_nic *efx ) { struct efx_ef10_filter_table *table ; { table = (struct efx_ef10_filter_table *)efx->filter_state; return (table->rx_match_count * 8192U); } } static s32 efx_ef10_filter_get_rx_ids(struct efx_nic *efx , enum efx_filter_priority priority , u32 *buf , u32 size ) { struct efx_ef10_filter_table *table ; struct efx_filter_spec *spec ; unsigned int filter_idx ; s32 count ; s32 tmp ; int tmp___0 ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; count = 0; ldv_spin_lock_bh_76(& efx->filter_lock); filter_idx = 0U; } goto ldv_47731; ldv_47730: { spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, filter_idx); } if ((unsigned long )spec != (unsigned long )((struct efx_filter_spec *)0) && spec->priority == (unsigned int )priority) { if ((u32 )count == size) { count = -90; goto ldv_47729; } else { } { tmp = count; count = count + 1; tmp___0 = efx_ef10_filter_rx_match_pri(table, (enum efx_filter_match_flags )spec->match_flags); *(buf + (unsigned long )tmp) = (unsigned int )(tmp___0 * 8192) + filter_idx; } } else { } filter_idx = filter_idx + 1U; ldv_47731: ; if (filter_idx <= 8191U) { goto ldv_47730; } else { } ldv_47729: { ldv_spin_unlock_bh_78(& efx->filter_lock); } return (count); } } static void efx_ef10_filter_rfs_insert_complete(struct efx_nic *efx , unsigned long cookie , int rc , efx_dword_t *outbuf , size_t outlen_actual ) ; static s32 efx_ef10_filter_rfs_insert(struct efx_nic *efx , struct efx_filter_spec *spec ) { struct efx_ef10_filter_table *table ; efx_dword_t inbuf[27U] ; struct efx_filter_spec *saved_spec ; unsigned int hash ; unsigned int i ; unsigned int depth ; bool replacing ; int ins_index ; u64 cookie ; s32 rc ; bool tmp ; void *tmp___0 ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; depth = 1U; replacing = 0; ins_index = -1; hash = efx_ef10_filter_hash((struct efx_filter_spec const *)spec); ldv_spin_lock_bh_76(& efx->filter_lock); } ldv_47749: { i = (hash + depth) & 8191U; saved_spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, i); } if ((unsigned long )saved_spec == (unsigned long )((struct efx_filter_spec *)0)) { if (ins_index < 0) { ins_index = (int )i; } else { } } else { { tmp = efx_ef10_filter_equal((struct efx_filter_spec const *)spec, (struct efx_filter_spec const *)saved_spec); } if ((int )tmp) { if ((int )(table->entry + (unsigned long )i)->spec & 1) { rc = -16; goto fail_unlock; } else { } if ((int )spec->priority < (int )saved_spec->priority) { rc = -1; goto fail_unlock; } else { } ins_index = (int )i; goto ldv_47748; } else { } } if (depth == 200U) { if (ins_index < 0) { rc = -16; goto fail_unlock; } else { } goto ldv_47748; } else { } depth = depth + 1U; goto ldv_47749; ldv_47748: { saved_spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, (unsigned int )ins_index); } if ((unsigned long )saved_spec != (unsigned long )((struct efx_filter_spec *)0)) { replacing = 1; } else { { tmp___0 = kmalloc(64UL, 32U); saved_spec = (struct efx_filter_spec *)tmp___0; } if ((unsigned long )saved_spec == (unsigned long )((struct efx_filter_spec *)0)) { rc = -12; goto fail_unlock; } else { } *saved_spec = *spec; } { efx_ef10_filter_set_entry(table, (unsigned int )ins_index, (struct efx_filter_spec const *)saved_spec, 1U); ldv_spin_unlock_bh_78(& efx->filter_lock); cookie = (u64 )((((int )replacing << 31) | (ins_index << 16)) | (int )spec->dmaq_id); efx_ef10_filter_push_prep(efx, (struct efx_filter_spec const *)spec, (efx_dword_t *)(& inbuf), (table->entry + (unsigned long )ins_index)->handle, (int )replacing); efx_mcdi_rpc_async(efx, 138U, (efx_dword_t const *)(& inbuf), 108UL, 12UL, & efx_ef10_filter_rfs_insert_complete, (unsigned long )cookie); } return (ins_index); fail_unlock: { ldv_spin_unlock_bh_78(& efx->filter_lock); } return (rc); } } static void efx_ef10_filter_rfs_insert_complete(struct efx_nic *efx , unsigned long cookie , int rc , efx_dword_t *outbuf , size_t outlen_actual ) { struct efx_ef10_filter_table *table ; unsigned int ins_index ; unsigned int dmaq_id ; struct efx_filter_spec *spec ; bool replacing ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; replacing = cookie >> 31 != 0UL; ins_index = (unsigned int )(cookie >> 16) & 8191U; dmaq_id = (unsigned int )cookie & 65535U; ldv_spin_lock_bh_76(& efx->filter_lock); spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, ins_index); } if (rc == 0) { (table->entry + (unsigned long )ins_index)->handle = (unsigned long long )(outbuf + 1UL)->u32[0] | ((unsigned long long )(outbuf + 2U)->u32[0] << 32); if ((int )replacing) { spec->dmaq_id = (unsigned short )dmaq_id; } else { } } else if (! replacing) { { kfree((void const *)spec); spec = (struct efx_filter_spec *)0; } } else { } { efx_ef10_filter_set_entry(table, ins_index, (struct efx_filter_spec const *)spec, 0U); ldv_spin_unlock_bh_78(& efx->filter_lock); __wake_up(& table->waitq, 3U, 0, (void *)0); } return; } } static void efx_ef10_filter_rfs_expire_complete(struct efx_nic *efx , unsigned long filter_idx , int rc , efx_dword_t *outbuf , size_t outlen_actual ) ; static bool efx_ef10_filter_rfs_expire_one(struct efx_nic *efx , u32 flow_id , unsigned int filter_idx ) { struct efx_ef10_filter_table *table ; struct efx_filter_spec *spec ; struct efx_filter_spec *tmp ; efx_dword_t inbuf[3U] ; bool tmp___0 ; int tmp___1 ; int tmp___2 ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; tmp = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, filter_idx); spec = tmp; } if (((unsigned long )spec == (unsigned long )((struct efx_filter_spec *)0) || (int )(table->entry + (unsigned long )filter_idx)->spec & 1) || (unsigned int )*((unsigned char *)spec + 1UL) != 0U) { return (0); } else { { tmp___0 = rps_may_expire_flow(efx->net_dev, (int )spec->dmaq_id, flow_id, (int )((u16 )filter_idx)); } if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { return (0); } else { } } { ((efx_dword_t *)(& inbuf))->u32[0] = 1U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )(table->entry + (unsigned long )filter_idx)->handle; ((efx_dword_t *)(& inbuf) + 2U)->u32[0] = (unsigned int )((table->entry + (unsigned long )filter_idx)->handle >> 32); tmp___2 = efx_mcdi_rpc_async(efx, 138U, (efx_dword_t const *)(& inbuf), 12UL, 0UL, & efx_ef10_filter_rfs_expire_complete, (unsigned long )filter_idx); } if (tmp___2 != 0) { return (0); } else { } (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec | 1UL; return (1); } } static void efx_ef10_filter_rfs_expire_complete(struct efx_nic *efx , unsigned long filter_idx , int rc , efx_dword_t *outbuf , size_t outlen_actual ) { struct efx_ef10_filter_table *table ; struct efx_filter_spec *spec ; struct efx_filter_spec *tmp ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; tmp = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, (unsigned int )filter_idx); spec = tmp; ldv_spin_lock_bh_76(& efx->filter_lock); } if (rc == 0) { { kfree((void const *)spec); efx_ef10_filter_set_entry(table, (unsigned int )filter_idx, (struct efx_filter_spec const *)0, 0U); } } else { } { (table->entry + filter_idx)->spec = (table->entry + filter_idx)->spec & 0xfffffffffffffffeUL; __wake_up(& table->waitq, 3U, 0, (void *)0); ldv_spin_unlock_bh_78(& efx->filter_lock); } return; } } static int efx_ef10_filter_match_flags_from_mcdi(u32 mcdi_flags ) { int match_flags ; u32 old_mcdi_flags ; u32 old_mcdi_flags___0 ; u32 old_mcdi_flags___1 ; u32 old_mcdi_flags___2 ; u32 old_mcdi_flags___3 ; u32 old_mcdi_flags___4 ; u32 old_mcdi_flags___5 ; u32 old_mcdi_flags___6 ; u32 old_mcdi_flags___7 ; u32 old_mcdi_flags___8 ; u32 old_mcdi_flags___9 ; u32 old_mcdi_flags___10 ; { match_flags = 0; old_mcdi_flags = mcdi_flags; mcdi_flags = mcdi_flags & 2147483647U; if (mcdi_flags != old_mcdi_flags) { match_flags = match_flags | 1024; } else { } old_mcdi_flags___0 = mcdi_flags; mcdi_flags = mcdi_flags & 3221225471U; if (mcdi_flags != old_mcdi_flags___0) { match_flags = match_flags | 1024; } else { } old_mcdi_flags___1 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967294U; if (mcdi_flags != old_mcdi_flags___1) { match_flags = match_flags | 1; } else { } old_mcdi_flags___2 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967293U; if (mcdi_flags != old_mcdi_flags___2) { match_flags = match_flags | 2; } else { } old_mcdi_flags___3 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967291U; if (mcdi_flags != old_mcdi_flags___3) { match_flags = match_flags | 4; } else { } old_mcdi_flags___4 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967287U; if (mcdi_flags != old_mcdi_flags___4) { match_flags = match_flags | 8; } else { } old_mcdi_flags___5 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967279U; if (mcdi_flags != old_mcdi_flags___5) { match_flags = match_flags | 16; } else { } old_mcdi_flags___6 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967263U; if (mcdi_flags != old_mcdi_flags___6) { match_flags = match_flags | 32; } else { } old_mcdi_flags___7 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967231U; if (mcdi_flags != old_mcdi_flags___7) { match_flags = match_flags | 64; } else { } old_mcdi_flags___8 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967167U; if (mcdi_flags != old_mcdi_flags___8) { match_flags = match_flags | 128; } else { } old_mcdi_flags___9 = mcdi_flags; mcdi_flags = mcdi_flags & 4294967039U; if (mcdi_flags != old_mcdi_flags___9) { match_flags = match_flags | 256; } else { } old_mcdi_flags___10 = mcdi_flags; mcdi_flags = mcdi_flags & 4294966783U; if (mcdi_flags != old_mcdi_flags___10) { match_flags = match_flags | 512; } else { } if (mcdi_flags != 0U) { return (-22); } else { } return (match_flags); } } static int efx_ef10_filter_table_probe(struct efx_nic *efx ) { efx_dword_t inbuf[1U] ; efx_dword_t outbuf[63U] ; unsigned int pd_match_pri ; unsigned int pd_match_count ; struct efx_ef10_filter_table *table ; size_t outlen ; int rc ; void *tmp ; size_t __min1 ; size_t __min2 ; u32 mcdi_flags ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; unsigned int tmp___2 ; void *tmp___3 ; struct lock_class_key __key ; { { tmp = kzalloc(2656UL, 208U); table = (struct efx_ef10_filter_table *)tmp; } if ((unsigned long )table == (unsigned long )((struct efx_ef10_filter_table *)0)) { return (-12); } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = 1U; rc = efx_mcdi_rpc(efx, 228U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 252UL, & outlen); } if (rc != 0) { goto fail; } else { } __min1 = 61UL; __min2 = (outlen - 8UL) / 4UL; pd_match_count = (unsigned int )(__min1 < __min2 ? __min1 : __min2); table->rx_match_count = 0U; pd_match_pri = 0U; goto ldv_47848; ldv_47847: { mcdi_flags = ((efx_dword_t *)(& outbuf) + ((unsigned long )pd_match_pri + 2UL) * 4UL)->u32[0]; rc = efx_ef10_filter_match_flags_from_mcdi(mcdi_flags); } if (rc < 0) { if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_filter_table_probe"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "%s: fw flags %#x pri %u not supported in driver\n"; descriptor.lineno = 3006U; 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 *)efx->net_dev, "%s: fw flags %#x pri %u not supported in driver\n", "efx_ef10_filter_table_probe", mcdi_flags, pd_match_pri); } } else { } } else { } } else { if ((efx->msg_enable & 2U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_ef10_filter_table_probe"; descriptor___0.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor___0.format = "%s: fw flags %#x pri %u supported as driver flags %#x pri %u\n"; descriptor___0.lineno = 3011U; 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 *)efx->net_dev, "%s: fw flags %#x pri %u supported as driver flags %#x pri %u\n", "efx_ef10_filter_table_probe", mcdi_flags, pd_match_pri, rc, table->rx_match_count); } } else { } } else { } tmp___2 = table->rx_match_count; table->rx_match_count = table->rx_match_count + 1U; table->rx_match_flags[tmp___2] = (enum efx_filter_match_flags )rc; } pd_match_pri = pd_match_pri + 1U; ldv_47848: ; if (pd_match_pri < pd_match_count) { goto ldv_47847; } else { } { tmp___3 = vzalloc(131072UL); table->entry = (struct __anonstruct_392 *)tmp___3; } if ((unsigned long )table->entry == (unsigned long )((struct __anonstruct_394 *)0)) { rc = -12; goto fail; } else { } { efx->filter_state = (void *)table; __init_waitqueue_head(& table->waitq, "&table->waitq", & __key); } return (0); fail: { kfree((void const *)table); } return (rc); } } static void efx_ef10_filter_table_restore(struct efx_nic *efx ) { struct efx_ef10_filter_table *table ; struct efx_ef10_nic_data *nic_data ; struct efx_filter_spec *spec ; unsigned int filter_idx ; bool failed ; int rc ; { table = (struct efx_ef10_filter_table *)efx->filter_state; nic_data = (struct efx_ef10_nic_data *)efx->nic_data; failed = 0; if (! nic_data->must_restore_filters) { return; } else { } { ldv_spin_lock_bh_76(& efx->filter_lock); filter_idx = 0U; } goto ldv_47862; ldv_47861: { spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, filter_idx); } if ((unsigned long )spec == (unsigned long )((struct efx_filter_spec *)0)) { goto ldv_47860; } else { } { (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec | 1UL; ldv_spin_unlock_bh_78(& efx->filter_lock); rc = efx_ef10_filter_push(efx, (struct efx_filter_spec const *)spec, & (table->entry + (unsigned long )filter_idx)->handle, 0); } if (rc != 0) { failed = 1; } else { } { ldv_spin_lock_bh_76(& efx->filter_lock); } if (rc != 0) { { kfree((void const *)spec); efx_ef10_filter_set_entry(table, filter_idx, (struct efx_filter_spec const *)0, 0U); } } else { (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec & 0xfffffffffffffffeUL; } ldv_47860: filter_idx = filter_idx + 1U; ldv_47862: ; if (filter_idx <= 8191U) { goto ldv_47861; } else { } { ldv_spin_unlock_bh_78(& efx->filter_lock); } if ((int )failed) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "unable to restore all filters\n"); } } else { } } else { nic_data->must_restore_filters = 0; } return; } } static void efx_ef10_filter_table_remove(struct efx_nic *efx ) { struct efx_ef10_filter_table *table ; efx_dword_t inbuf[27U] ; struct efx_filter_spec *spec ; unsigned int filter_idx ; int rc ; bool tmp ; int __ret_warn_on ; char const *tmp___0 ; long tmp___1 ; { table = (struct efx_ef10_filter_table *)efx->filter_state; filter_idx = 0U; goto ldv_47882; ldv_47881: { spec = efx_ef10_filter_entry_spec((struct efx_ef10_filter_table const *)table, filter_idx); } if ((unsigned long )spec == (unsigned long )((struct efx_filter_spec *)0)) { goto ldv_47872; } else { } { tmp = efx_ef10_filter_is_exclusive((struct efx_filter_spec const *)spec); ((efx_dword_t *)(& inbuf))->u32[0] = (int )tmp ? 1U : 3U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )(table->entry + (unsigned long )filter_idx)->handle; ((efx_dword_t *)(& inbuf) + 2U)->u32[0] = (unsigned int )((table->entry + (unsigned long )filter_idx)->handle >> 32); rc = efx_mcdi_rpc(efx, 138U, (efx_dword_t const *)(& inbuf), 108UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { { __ret_warn_on = 1; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { tmp___0 = netdev_name((struct net_device const *)efx->net_dev); warn_slowpath_fmt("drivers/net/ethernet/sfc/ef10.c", 3103, "netdevice: %s\nfilter_idx=%#x handle=%#llx\n", tmp___0, filter_idx, (table->entry + (unsigned long )filter_idx)->handle); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } } else { } { kfree((void const *)spec); } ldv_47872: filter_idx = filter_idx + 1U; ldv_47882: ; if (filter_idx <= 8191U) { goto ldv_47881; } else { } { vfree((void const *)table->entry); kfree((void const *)table); } return; } } static void efx_ef10_filter_sync_rx_mode(struct efx_nic *efx ) { struct efx_ef10_filter_table *table ; struct net_device *net_dev ; struct efx_filter_spec spec ; bool remove_failed ; struct netdev_hw_addr *uc ; struct netdev_hw_addr *mc ; unsigned int filter_idx ; int i ; int n ; int rc ; int tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; int tmp___0 ; int __ret_warn_on ; long tmp___1 ; int tmp___2 ; int __ret_warn_on___0 ; long tmp___3 ; int tmp___4 ; int __ret_warn_on___1 ; long tmp___5 ; { { table = (struct efx_ef10_filter_table *)efx->filter_state; net_dev = efx->net_dev; remove_failed = 0; tmp = efx_dev_registered(efx); } if (tmp == 0) { return; } else { } { ldv_spin_lock_bh_76(& efx->filter_lock); n = table->dev_uc_count >= 0 ? table->dev_uc_count : 1; i = 0; } goto ldv_47898; ldv_47897: filter_idx = (unsigned int )table->dev_uc_list[i].id & 8191U; (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec | 2UL; i = i + 1; ldv_47898: ; if (i < n) { goto ldv_47897; } else { } n = table->dev_mc_count >= 0 ? table->dev_mc_count : 1; i = 0; goto ldv_47901; ldv_47900: filter_idx = (unsigned int )table->dev_mc_list[i].id & 8191U; (table->entry + (unsigned long )filter_idx)->spec = (table->entry + (unsigned long )filter_idx)->spec | 2UL; i = i + 1; ldv_47901: ; if (i < n) { goto ldv_47900; } else { } { ldv_spin_unlock_bh_78(& efx->filter_lock); netif_addr_lock_bh___1(net_dev); } if ((net_dev->flags & 256U) != 0U || net_dev->uc.count > 31) { table->dev_uc_count = -1; } else { { table->dev_uc_count = net_dev->uc.count + 1; memcpy((void *)(& table->dev_uc_list[0].addr), (void const *)net_dev->dev_addr, 6UL); i = 1; __mptr = (struct list_head const *)net_dev->uc.list.next; uc = (struct netdev_hw_addr *)__mptr; } goto ldv_47908; ldv_47907: { memcpy((void *)(& table->dev_uc_list[i].addr), (void const *)(& uc->addr), 6UL); i = i + 1; __mptr___0 = (struct list_head const *)uc->list.next; uc = (struct netdev_hw_addr *)__mptr___0; } ldv_47908: ; if ((unsigned long )(& uc->list) != (unsigned long )(& net_dev->uc.list)) { goto ldv_47907; } else { } } if ((net_dev->flags & 768U) != 0U || net_dev->mc.count > 255) { table->dev_mc_count = -1; } else { { table->dev_mc_count = net_dev->mc.count + 1; eth_broadcast_addr((u8 *)(& table->dev_mc_list[0].addr)); i = 1; __mptr___1 = (struct list_head const *)net_dev->mc.list.next; mc = (struct netdev_hw_addr *)__mptr___1; } goto ldv_47915; ldv_47914: { memcpy((void *)(& table->dev_mc_list[i].addr), (void const *)(& mc->addr), 6UL); i = i + 1; __mptr___2 = (struct list_head const *)mc->list.next; mc = (struct netdev_hw_addr *)__mptr___2; } ldv_47915: ; if ((unsigned long )(& mc->list) != (unsigned long )(& net_dev->mc.list)) { goto ldv_47914; } else { } } { netif_addr_unlock_bh___1(net_dev); } if (table->dev_uc_count >= 0) { i = 0; goto ldv_47922; ldv_47921: { efx_filter_init_rx(& spec, 1, 1, 0U); efx_filter_set_eth_local(& spec, 65535, (u8 const *)(& table->dev_uc_list[i].addr)); rc = efx_ef10_filter_insert(efx, & spec, 1); } if (rc < 0) { goto ldv_47918; ldv_47917: { efx_ef10_filter_remove_safe(efx, 1, (u32 )table->dev_uc_list[i].id); } ldv_47918: tmp___0 = i; i = i - 1; if (tmp___0 != 0) { goto ldv_47917; } else { } table->dev_uc_count = -1; goto ldv_47920; } else { } table->dev_uc_list[i].id = (u16 )rc; i = i + 1; ldv_47922: ; if (i < table->dev_uc_count) { goto ldv_47921; } else { } ldv_47920: ; } else { } if (table->dev_uc_count < 0) { { efx_filter_init_rx(& spec, 1, 1, 0U); efx_filter_set_uc_def(& spec); rc = efx_ef10_filter_insert(efx, & spec, 1); } if (rc < 0) { { __ret_warn_on = 1; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 3200); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); table->dev_uc_count = 0; } } else { table->dev_uc_list[0].id = (u16 )rc; } } else { } if (table->dev_mc_count >= 0) { i = 0; goto ldv_47930; ldv_47929: { efx_filter_init_rx(& spec, 1, 1, 0U); efx_filter_set_eth_local(& spec, 65535, (u8 const *)(& table->dev_mc_list[i].addr)); rc = efx_ef10_filter_insert(efx, & spec, 1); } if (rc < 0) { goto ldv_47926; ldv_47925: { efx_ef10_filter_remove_safe(efx, 1, (u32 )table->dev_mc_list[i].id); } ldv_47926: tmp___2 = i; i = i - 1; if (tmp___2 != 0) { goto ldv_47925; } else { } table->dev_mc_count = -1; goto ldv_47928; } else { } table->dev_mc_list[i].id = (u16 )rc; i = i + 1; ldv_47930: ; if (i < table->dev_mc_count) { goto ldv_47929; } else { } ldv_47928: ; } else { } if (table->dev_mc_count < 0) { { efx_filter_init_rx(& spec, 1, 1, 0U); efx_filter_set_mc_def(& spec); rc = efx_ef10_filter_insert(efx, & spec, 1); } if (rc < 0) { { __ret_warn_on___0 = 1; tmp___3 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___3 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 3235); } } else { } { ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); table->dev_mc_count = 0; } } else { table->dev_mc_list[0].id = (u16 )rc; } } else { } i = 0; goto ldv_47934; ldv_47933: ; if (((unsigned long )*((unsigned long volatile *)(& (table->entry + (unsigned long )i)->spec)) & 2UL) != 0UL) { { tmp___4 = efx_ef10_filter_remove_internal(efx, 2U, (u32 )i, 1); } if (tmp___4 < 0) { remove_failed = 1; } else { } } else { } i = i + 1; ldv_47934: ; if (i <= 8191) { goto ldv_47933; } else { } { __ret_warn_on___1 = (int )remove_failed; tmp___5 = ldv__builtin_expect(__ret_warn_on___1 != 0, 0L); } if (tmp___5 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ef10.c", 3256); } } else { } { ldv__builtin_expect(__ret_warn_on___1 != 0, 0L); } return; } } static int efx_ef10_mac_reconfigure(struct efx_nic *efx ) { int tmp ; { { efx_ef10_filter_sync_rx_mode(efx); tmp = efx_mcdi_set_mac(efx); } return (tmp); } } static int efx_ef10_start_bist(struct efx_nic *efx , u32 bist_type ) { efx_dword_t inbuf[1U] ; int tmp ; { { ((efx_dword_t *)(& inbuf))->u32[0] = bist_type; tmp = efx_mcdi_rpc(efx, 37U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (tmp); } } static int efx_ef10_poll_bist(struct efx_nic *efx ) { int rc ; efx_dword_t outbuf[2U] ; size_t outlen ; u32 result ; struct _ddebug descriptor ; long tmp ; { { rc = efx_mcdi_rpc(efx, 38U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 8UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 7UL) { return (-5); } else { } result = ((efx_dword_t *)(& outbuf))->u32[0]; { if (result == 2U) { goto case_2; } else { } if (result == 4U) { goto case_4; } else { } if (result == 3U) { goto case_3; } else { } goto switch_default; case_2: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_poll_bist"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "BIST passed.\n"; descriptor.lineno = 3297U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "BIST passed.\n"); } } else { } } else { } return (0); case_4: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "BIST timed out\n"); } } else { } return (-5); case_3: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "BIST failed.\n"); } } else { } return (-5); switch_default: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "BIST returned unknown result %u", result); } } else { } return (-5); switch_break: /* CIL Label */ ; } } } static int efx_ef10_run_bist(struct efx_nic *efx , u32 bist_type ) { int rc ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_ef10_run_bist"; descriptor.filename = "drivers/net/ethernet/sfc/ef10.c"; descriptor.format = "starting BIST type %u\n"; descriptor.lineno = 3316U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "starting BIST type %u\n", bist_type); } } else { } } else { } { rc = efx_ef10_start_bist(efx, bist_type); } if (rc != 0) { return (rc); } else { } { tmp___0 = efx_ef10_poll_bist(efx); } return (tmp___0); } } static int efx_ef10_test_chip(struct efx_nic *efx , struct efx_self_tests *tests ) { int rc ; int rc2 ; int tmp ; int tmp___0 ; { { efx_reset_down(efx, 3); rc = efx_mcdi_rpc(efx, 237U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { goto out; } else { } { tmp = efx_ef10_run_bist(efx, 6U); tests->memory = tmp != 0 ? -1 : 1; tmp___0 = efx_ef10_run_bist(efx, 8U); tests->registers = tmp___0 != 0 ? -1 : 1; rc = efx_mcdi_reset(efx, 3); } out: { rc2 = efx_reset_up(efx, 3, rc == 0); } return (rc != 0 ? rc : rc2); } } static struct efx_ef10_nvram_type_info const efx_ef10_nvram_types[11U] = { {256U, 0U, 0U, "sfc_mcfw"}, {512U, 0U, 0U, "sfc_mcfw_backup"}, {768U, 0U, 0U, "sfc_exp_rom"}, {1024U, 0U, 0U, "sfc_static_cfg"}, {1280U, 0U, 0U, "sfc_dynamic_cfg"}, {1536U, 0U, 0U, "sfc_exp_rom_cfg"}, {1537U, 0U, 1U, "sfc_exp_rom_cfg"}, {1538U, 0U, 2U, "sfc_exp_rom_cfg"}, {1539U, 0U, 3U, "sfc_exp_rom_cfg"}, {2304U, 0U, 0U, "sfc_license"}, {2560U, 255U, 0U, "sfc_phy_fw"}}; static int efx_ef10_mtd_probe_partition(struct efx_nic *efx , struct efx_mcdi_mtd_partition *part , unsigned int type ) { efx_dword_t inbuf[1U] ; efx_dword_t outbuf[63U] ; struct efx_ef10_nvram_type_info const *info ; size_t size ; size_t erase_size ; size_t outlen ; bool protected ; int rc ; unsigned int tmp ; { info = (struct efx_ef10_nvram_type_info const *)(& efx_ef10_nvram_types); ldv_48001: ; if ((unsigned long )info == (unsigned long )((struct efx_ef10_nvram_type_info const *)(& efx_ef10_nvram_types) + 11UL)) { return (-19); } else { } if ((type & (unsigned int )(~ ((int )info->type_mask))) == (unsigned int )info->type) { goto ldv_48000; } else { } info = info + 1; goto ldv_48001; ldv_48000: { tmp = efx_port_num(efx); } if ((unsigned int )info->port != tmp) { return (-19); } else { } { rc = efx_mcdi_nvram_info(efx, type, & size, & erase_size, & protected); } if (rc != 0) { return (rc); } else { } if ((int )protected) { return (-19); } else { } { part->nvram_type = (u16 )type; ((efx_dword_t *)(& inbuf))->u32[0] = type; rc = efx_mcdi_rpc(efx, 82U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 252UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 19UL) { return (-5); } else { } if ((int )((efx_dword_t *)(& outbuf) + 1UL)->u32[0] & 1) { part->fw_subtype = (u16 )((efx_dword_t *)(& outbuf) + 2UL)->u32[0]; } else { } part->common.dev_type_name = "EF10 NVRAM manager"; part->common.type_name = info->name; part->common.mtd.type = 3U; part->common.mtd.flags = 3072U; part->common.mtd.size = (uint64_t )size; part->common.mtd.erasesize = (uint32_t )erase_size; return (0); } } extern void __compiletime_assert_3431(void) ; static int efx_ef10_mtd_probe(struct efx_nic *efx ) { efx_dword_t outbuf[63U] ; struct efx_mcdi_mtd_partition *parts ; size_t outlen ; size_t n_parts_total ; size_t i ; size_t n_parts ; unsigned int type ; int rc ; int tmp ; long tmp___0 ; bool __cond ; size_t __min1 ; size_t __min2 ; void *tmp___1 ; { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/ef10.c", 3429); dump_stack(); } } else { } __cond = 0; if ((int )__cond) { { __compiletime_assert_3431(); } } else { } { rc = efx_mcdi_rpc(efx, 81U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 252UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 3UL) { return (-5); } else { } n_parts_total = (size_t )((efx_dword_t *)(& outbuf))->u32[0]; __min1 = 62UL; __min2 = (outlen - 4UL) / 4UL; if (n_parts_total > (__min1 < __min2 ? __min1 : __min2)) { return (-5); } else { } { tmp___1 = kcalloc(n_parts_total, 1856UL, 208U); parts = (struct efx_mcdi_mtd_partition *)tmp___1; } if ((unsigned long )parts == (unsigned long )((struct efx_mcdi_mtd_partition *)0)) { return (-12); } else { } n_parts = 0UL; i = 0UL; goto ldv_48048; ldv_48047: { type = ((efx_dword_t *)(& outbuf) + (i + 1UL) * 4UL)->u32[0]; rc = efx_ef10_mtd_probe_partition(efx, parts + n_parts, type); } if (rc == 0) { n_parts = n_parts + 1UL; } else if (rc != -19) { goto fail; } else { } i = i + 1UL; ldv_48048: ; if (i < n_parts_total) { goto ldv_48047; } else { } { rc = efx_mtd_add(efx, & parts->common, n_parts, 1856UL); } fail: ; if (rc != 0) { { kfree((void const *)parts); } } else { } return (rc); } } static void efx_ef10_ptp_write_host_time(struct efx_nic *efx , u32 host_time ) { { { _efx_writed(efx, host_time, 512U); } return; } } static int efx_ef10_rx_enable_timestamping(struct efx_channel *channel , bool temp ) { efx_dword_t inbuf[3U] ; int rc ; { if ((unsigned int )channel->sync_events_state - 2U <= 1U || ((int )temp && (unsigned int )channel->sync_events_state == 0U)) { return (0); } else { } { channel->sync_events_state = 2; ((efx_dword_t *)(& inbuf))->u32[0] = 24U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )channel->channel; rc = efx_mcdi_rpc(channel->efx, 11U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { channel->sync_events_state = (enum efx_sync_events_state )temp; } else { } return (rc); } } static int efx_ef10_rx_disable_timestamping(struct efx_channel *channel , bool temp ) { efx_dword_t inbuf[4U] ; int rc ; { if ((unsigned int )channel->sync_events_state == 0U || ((int )temp && (unsigned int )channel->sync_events_state == 1U)) { return (0); } else { } if ((unsigned int )channel->sync_events_state == 1U) { channel->sync_events_state = 0; return (0); } else { } { channel->sync_events_state = (enum efx_sync_events_state )temp; ((efx_dword_t *)(& inbuf))->u32[0] = 25U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = (unsigned int )channel->channel; rc = efx_mcdi_rpc(channel->efx, 11U, (efx_dword_t const *)(& inbuf), 16UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } static int efx_ef10_ptp_set_ts_sync_events(struct efx_nic *efx , bool en , bool temp ) { int (*set)(struct efx_channel * , bool ) ; struct efx_channel *channel ; int rc ; int tmp ; { set = (int )en ? & efx_ef10_rx_enable_timestamping : & efx_ef10_rx_disable_timestamping; channel = efx->channel[0]; goto ldv_48091; ldv_48090: { tmp = (*set)(channel, (int )temp); rc = tmp; } if ((int )en && rc != 0) { { efx_ef10_ptp_set_ts_sync_events(efx, 0, (int )temp); } return (rc); } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_48091: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_48090; } else { } return (0); } } static int efx_ef10_ptp_set_ts_config(struct efx_nic *efx , struct hwtstamp_config *init ) { int rc ; int tmp ; { { if (init->rx_filter == 0) { goto case_0; } else { } if (init->rx_filter == 1) { goto case_1; } else { } if (init->rx_filter == 3) { goto case_3; } else { } if (init->rx_filter == 4) { goto case_4; } else { } if (init->rx_filter == 5) { goto case_5; } else { } if (init->rx_filter == 6) { goto case_6; } else { } if (init->rx_filter == 7) { goto case_7; } else { } if (init->rx_filter == 8) { goto case_8; } else { } if (init->rx_filter == 9) { goto case_9; } else { } if (init->rx_filter == 10) { goto case_10; } else { } if (init->rx_filter == 11) { goto case_11; } else { } if (init->rx_filter == 12) { goto case_12; } else { } if (init->rx_filter == 13) { goto case_13; } else { } if (init->rx_filter == 14) { goto case_14; } else { } goto switch_default; case_0: /* CIL Label */ { efx_ef10_ptp_set_ts_sync_events(efx, 0, 0); tmp = efx_ptp_change_mode(efx, init->tx_type != 0, 0U); } return (tmp); case_1: /* CIL Label */ ; case_3: /* CIL Label */ ; case_4: /* CIL Label */ ; case_5: /* CIL Label */ ; case_6: /* CIL Label */ ; case_7: /* CIL Label */ ; case_8: /* CIL Label */ ; case_9: /* CIL Label */ ; case_10: /* CIL Label */ ; case_11: /* CIL Label */ ; case_12: /* CIL Label */ ; case_13: /* CIL Label */ ; case_14: /* CIL Label */ { init->rx_filter = 1; rc = efx_ptp_change_mode(efx, 1, 0U); } if (rc == 0) { { rc = efx_ef10_ptp_set_ts_sync_events(efx, 1, 0); } } else { } if (rc != 0) { { efx_ptp_change_mode(efx, 0, 0U); } } else { } return (rc); switch_default: /* CIL Label */ ; return (-34); switch_break: /* CIL Label */ ; } } } struct efx_nic_type const efx_hunt_a0_nic_type = {& efx_ef10_mem_map_size, & efx_ef10_probe, & efx_ef10_remove, & efx_ef10_init_nic, & efx_ef10_dimension_resources, & efx_port_dummy_op_void, 0, & efx_mcdi_map_reset_reason, & efx_ef10_map_reset_flags, & efx_ef10_reset, & efx_mcdi_port_probe, & efx_mcdi_port_remove, 0, & efx_ef10_fini_dmaq, 0, 0, & efx_ef10_describe_stats, & efx_ef10_update_stats, & efx_mcdi_mac_start_stats, & efx_mcdi_mac_pull_stats, & efx_mcdi_mac_stop_stats, & efx_mcdi_set_id_led, & efx_ef10_push_irq_moderation, & efx_mcdi_port_reconfigure, 0, & efx_ef10_mac_reconfigure, & efx_mcdi_mac_check_fault, & efx_ef10_get_wol, & efx_ef10_set_wol, & efx_port_dummy_op_void, & efx_ef10_test_chip, & efx_mcdi_nvram_test_all, & efx_ef10_mcdi_request, & efx_ef10_mcdi_poll_response, & efx_ef10_mcdi_read_response, & efx_ef10_mcdi_poll_reboot, & efx_port_dummy_op_void, & efx_ef10_irq_test_generate, & efx_port_dummy_op_void, & efx_ef10_msi_interrupt, & efx_ef10_legacy_interrupt, & efx_ef10_tx_probe, & efx_ef10_tx_init, & efx_ef10_tx_remove, & efx_ef10_tx_write, & efx_ef10_rx_push_rss_config, & efx_ef10_rx_probe, & efx_ef10_rx_init, & efx_ef10_rx_remove, & efx_ef10_rx_write, & efx_ef10_rx_defer_refill, & efx_ef10_ev_probe, & efx_ef10_ev_init, & efx_ef10_ev_fini, & efx_ef10_ev_remove, & efx_ef10_ev_process, & efx_ef10_ev_read_ack, & efx_ef10_ev_test_generate, & efx_ef10_filter_table_probe, & efx_ef10_filter_table_restore, & efx_ef10_filter_table_remove, & efx_ef10_filter_update_rx_scatter, & efx_ef10_filter_insert, & efx_ef10_filter_remove_safe, & efx_ef10_filter_get_safe, & efx_ef10_filter_clear_rx, & efx_ef10_filter_count_rx_used, & efx_ef10_filter_get_rx_id_limit, & efx_ef10_filter_get_rx_ids, & efx_ef10_filter_rfs_insert, & efx_ef10_filter_rfs_expire_one, & efx_ef10_mtd_probe, & efx_mcdi_mtd_rename, & efx_mcdi_mtd_read, & efx_mcdi_mtd_erase, & efx_mcdi_mtd_write, & efx_mcdi_mtd_sync, & efx_ef10_ptp_write_host_time, & efx_ef10_ptp_set_ts_sync_events, & efx_ef10_ptp_set_ts_config, 4, 0U, 0U, 0U, 0U, 0U, 281474976710655ULL, 14U, 0U, 10U, 0U, 1, 1, 0U, 256U, 3221225490ULL, 2, 8192U, 3U}; void ldv_io_instance_callback_13_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_13_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_13_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_13_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_13_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_13_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_13_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_13_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_13_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_13_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_13_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_13_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_13_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_13_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_13_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_13_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_13_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_13_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_13_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_13_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_13_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_13_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_13_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_13_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_13_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_13_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_13_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_13_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_13_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_13_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_13_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_13_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_13_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_13_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) ; void ldv_io_instance_callback_13_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_13_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_13_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_13_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_13_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_13_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_13_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_13_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_14_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_14_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_14_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_14_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_14_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_14_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_14_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_14_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_14_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_14_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_14_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_14_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_14_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_14_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_14_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_14_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_14_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_14_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_14_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_14_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_14_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_14_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_14_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_14_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_14_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_14_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_14_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_14_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_14_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_14_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_14_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_14_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_14_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_14_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_14_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_14_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_14_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_15_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_15_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_15_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_15_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_15_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_15_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_15_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_15_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_15_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_15_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_15_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_15_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_15_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_15_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_15_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_15_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_15_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_15_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_15_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_15_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_15_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_15_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_15_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_15_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_15_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_15_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_15_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_15_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_15_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_15_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_15_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_15_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_15_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_15_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_15_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_15_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_15_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_16_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_16_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_16_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_16_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_16_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_16_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_16_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_16_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_16_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_16_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_16_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_16_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_16_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_16_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_16_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_16_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_16_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_16_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_16_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_16_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_16_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_16_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_16_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_16_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_16_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_16_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_16_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_16_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_16_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_16_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_16_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_16_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_16_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_16_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_16_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_16_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_16_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_17_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_17_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_17_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_17_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_17_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_17_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_17_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_17_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_17_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_17_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_17_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_17_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_17_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_17_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_17_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_17_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_17_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_17_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_17_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_17_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_17_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_17_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_17_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_17_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_17_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_17_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_17_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_17_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_17_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_17_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_17_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_17_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_17_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_17_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_17_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_17_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_17_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_18_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_18_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_18_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_18_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_18_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_18_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_18_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_18_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_18_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_18_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) ; void ldv_io_instance_callback_18_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_18_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_18_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_18_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_18_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_18_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_18_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_18_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_18_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_18_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_18_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_18_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_18_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_18_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_18_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_18_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_18_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_18_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_18_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_18_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_18_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_18_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_18_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_18_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_18_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_18_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_18_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) ; void ldv_io_instance_callback_9_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_9_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_9_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) ; void ldv_io_instance_callback_9_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) ; void ldv_io_instance_callback_9_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_9_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_9_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_9_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_9_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) ; void ldv_io_instance_callback_9_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) ; void ldv_io_instance_callback_9_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) ; void ldv_io_instance_callback_9_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_9_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_9_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_9_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) ; void ldv_io_instance_callback_9_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) ; void ldv_io_instance_callback_9_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) ; void ldv_io_instance_callback_9_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) ; void ldv_io_instance_callback_9_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) ; void ldv_io_instance_callback_9_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_9_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) ; void ldv_io_instance_callback_9_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) ; void ldv_io_instance_callback_9_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) ; void ldv_io_instance_callback_9_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) ; void ldv_io_instance_callback_9_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_9_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) ; void ldv_io_instance_callback_9_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) ; void ldv_io_instance_callback_9_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) ; void ldv_io_instance_callback_9_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) ; void ldv_io_instance_callback_9_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_9_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) ; void ldv_io_instance_callback_9_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) ; void ldv_io_instance_callback_9_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) ; void ldv_io_instance_callback_9_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) ; void ldv_io_instance_callback_9_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_callback_9_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_13_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_13_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_14_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_14_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_15_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_15_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_16_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_16_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_17_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_17_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_18_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_18_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_9_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; int ldv_io_instance_probe_9_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_13_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_13_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_14_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_14_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_15_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_15_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_16_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_16_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_17_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_17_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_18_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_18_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_9_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; void ldv_io_instance_release_9_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) ; unsigned long (*ldv_13_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_13_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_13_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_13_callback_ev_init)(struct efx_channel * ) ; int (*ldv_13_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_13_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_13_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_13_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_13_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_13_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_13_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_13_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_13_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_13_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_13_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_13_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_13_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_13_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_13_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_13_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_13_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_13_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_13_callback_fini)(struct efx_nic * ) ; int (*ldv_13_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_13_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_13_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) ; void (*ldv_13_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_13_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_13_callback_init)(struct efx_nic * ) ; void (*ldv_13_callback_init_phy)(struct efx_nic * ) ; enum irqreturn (*ldv_13_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_13_callback_irq_handle_msi)(int , void * ) ; void (*ldv_13_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_13_callback_map_reset_flags)(unsigned int * ) ; int (*ldv_13_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_13_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_13_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_13_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_13_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_13_callback_monitor)(struct efx_nic * ) ; int (*ldv_13_callback_mtd_probe)(struct efx_nic * ) ; _Bool (*ldv_13_callback_poll)(struct efx_nic * ) ; void (*ldv_13_callback_post_remove)(struct efx_channel * ) ; int (*ldv_13_callback_pre_probe)(struct efx_channel * ) ; int (*ldv_13_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_13_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_13_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_13_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_13_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_13_callback_reconfigure)(struct efx_nic * ) ; int (*ldv_13_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_13_callback_reset)(struct efx_nic * , enum reset_type ) ; int (*ldv_13_callback_run_tests)(struct efx_nic * , int * , unsigned int ) ; void (*ldv_13_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_13_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_13_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_13_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_13_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_13_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_13_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_13_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) ; int (*ldv_13_callback_set_wol)(struct efx_nic * , unsigned int ) ; int (*ldv_13_callback_test_alive)(struct efx_nic * ) ; int (*ldv_13_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; char *(*ldv_13_callback_test_name)(struct efx_nic * , unsigned int ) ; void (*ldv_13_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_13_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_13_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_13_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_13_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_13_container_struct_efx_nic_type ; struct efx_phy_operations *ldv_13_container_struct_efx_phy_operations ; unsigned long (*ldv_14_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_14_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_14_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_14_callback_ev_init)(struct efx_channel * ) ; int (*ldv_14_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_14_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_14_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_14_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_14_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_14_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_14_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_14_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_14_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_14_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_14_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_14_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_14_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_14_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_14_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_14_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_14_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_14_callback_filter_update_rx_scatter)(struct efx_nic * ) ; int (*ldv_14_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_14_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_14_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_14_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_14_callback_init)(struct efx_nic * ) ; void (*ldv_14_callback_init_phy)(struct efx_nic * ) ; enum irqreturn (*ldv_14_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_14_callback_irq_handle_msi)(int , void * ) ; void (*ldv_14_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_14_callback_map_reset_flags)(unsigned int * ) ; int (*ldv_14_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_14_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_14_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_14_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_14_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_14_callback_monitor)(struct efx_nic * ) ; int (*ldv_14_callback_mtd_probe)(struct efx_nic * ) ; void (*ldv_14_callback_post_remove)(struct efx_channel * ) ; int (*ldv_14_callback_pre_probe)(struct efx_channel * ) ; int (*ldv_14_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_14_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_14_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_14_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_14_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_14_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_14_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_14_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_14_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_14_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_14_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_14_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_14_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_14_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_14_callback_set_wol)(struct efx_nic * , unsigned int ) ; int (*ldv_14_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; void (*ldv_14_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_14_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_14_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_14_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_14_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_14_container_struct_efx_nic_type ; unsigned long (*ldv_15_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_15_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_15_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_15_callback_ev_init)(struct efx_channel * ) ; int (*ldv_15_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_15_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_15_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_15_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_15_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_15_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_15_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_15_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_15_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_15_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_15_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_15_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_15_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_15_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_15_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_15_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_15_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_15_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_15_callback_fini)(struct efx_nic * ) ; int (*ldv_15_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_15_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_15_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_15_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_15_callback_init)(struct efx_nic * ) ; void (*ldv_15_callback_init_phy)(struct efx_nic * ) ; enum irqreturn (*ldv_15_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_15_callback_irq_handle_msi)(int , void * ) ; void (*ldv_15_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_15_callback_map_reset_flags)(unsigned int * ) ; int (*ldv_15_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_15_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_15_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_15_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_15_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_15_callback_monitor)(struct efx_nic * ) ; int (*ldv_15_callback_mtd_probe)(struct efx_nic * ) ; void (*ldv_15_callback_post_remove)(struct efx_channel * ) ; int (*ldv_15_callback_pre_probe)(struct efx_channel * ) ; int (*ldv_15_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_15_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_15_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_15_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_15_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_15_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_15_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_15_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_15_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_15_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_15_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_15_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_15_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_15_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_15_callback_set_wol)(struct efx_nic * , unsigned int ) ; int (*ldv_15_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; void (*ldv_15_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_15_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_15_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_15_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_15_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_15_container_struct_efx_nic_type ; unsigned long (*ldv_16_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_16_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_16_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_16_callback_ev_init)(struct efx_channel * ) ; int (*ldv_16_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_16_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_16_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_16_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_16_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_16_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_16_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_16_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_16_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_16_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_16_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_16_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_16_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_16_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_16_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_16_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_16_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_16_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_16_callback_fini)(struct efx_nic * ) ; int (*ldv_16_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_16_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_16_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_16_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_16_callback_init)(struct efx_nic * ) ; void (*ldv_16_callback_init_phy)(struct efx_nic * ) ; enum irqreturn (*ldv_16_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_16_callback_irq_handle_msi)(int , void * ) ; void (*ldv_16_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_16_callback_map_reset_flags)(unsigned int * ) ; int (*ldv_16_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_16_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_16_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_16_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_16_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_16_callback_monitor)(struct efx_nic * ) ; int (*ldv_16_callback_mtd_probe)(struct efx_nic * ) ; void (*ldv_16_callback_post_remove)(struct efx_channel * ) ; int (*ldv_16_callback_pre_probe)(struct efx_channel * ) ; int (*ldv_16_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_16_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_16_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_16_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_16_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_16_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_16_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_16_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_16_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_16_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_16_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_16_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_16_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_16_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_16_callback_set_wol)(struct efx_nic * , unsigned int ) ; int (*ldv_16_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; void (*ldv_16_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_16_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_16_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_16_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_16_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_16_container_struct_efx_nic_type ; unsigned long (*ldv_17_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_17_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_17_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_17_callback_ev_init)(struct efx_channel * ) ; int (*ldv_17_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_17_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_17_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_17_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_17_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_17_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_17_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_17_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_17_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_17_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_17_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_17_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_17_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_17_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_17_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_17_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_17_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_17_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_17_callback_fini)(struct efx_nic * ) ; int (*ldv_17_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_17_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_17_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_17_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_17_callback_init)(struct efx_nic * ) ; void (*ldv_17_callback_init_phy)(struct efx_nic * ) ; enum irqreturn (*ldv_17_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_17_callback_irq_handle_msi)(int , void * ) ; void (*ldv_17_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_17_callback_map_reset_flags)(unsigned int * ) ; int (*ldv_17_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_17_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_17_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_17_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_17_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_17_callback_monitor)(struct efx_nic * ) ; int (*ldv_17_callback_mtd_probe)(struct efx_nic * ) ; void (*ldv_17_callback_post_remove)(struct efx_channel * ) ; int (*ldv_17_callback_pre_probe)(struct efx_channel * ) ; int (*ldv_17_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_17_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_17_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_17_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_17_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_17_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_17_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_17_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_17_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_17_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_17_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_17_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_17_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_17_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_17_callback_set_wol)(struct efx_nic * , unsigned int ) ; int (*ldv_17_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; void (*ldv_17_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_17_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_17_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_17_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_17_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_17_container_struct_efx_nic_type ; unsigned long (*ldv_18_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_18_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_18_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_18_callback_ev_init)(struct efx_channel * ) ; int (*ldv_18_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_18_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_18_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_18_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_18_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_18_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_18_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_18_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_18_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_18_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_18_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_18_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_18_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_18_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_18_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_18_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_18_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_18_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_18_callback_fini)(struct efx_nic * ) ; int (*ldv_18_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_18_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_18_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_18_callback_handle_no_channel)(struct efx_nic * ) ; int (*ldv_18_callback_init)(struct efx_nic * ) ; void (*ldv_18_callback_init_phy)(struct efx_nic * ) ; enum irqreturn (*ldv_18_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_18_callback_irq_handle_msi)(int , void * ) ; void (*ldv_18_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_18_callback_map_reset_flags)(unsigned int * ) ; int (*ldv_18_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_18_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_18_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_18_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_18_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_18_callback_monitor)(struct efx_nic * ) ; int (*ldv_18_callback_mtd_probe)(struct efx_nic * ) ; void (*ldv_18_callback_post_remove)(struct efx_channel * ) ; int (*ldv_18_callback_pre_probe)(struct efx_channel * ) ; int (*ldv_18_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_18_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_18_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_18_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_18_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_18_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_18_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_18_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_18_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_18_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_18_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_18_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_18_callback_rx_write)(struct efx_rx_queue * ) ; void (*ldv_18_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) ; int (*ldv_18_callback_set_wol)(struct efx_nic * , unsigned int ) ; int (*ldv_18_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; void (*ldv_18_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_18_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_18_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_18_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_18_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_18_container_struct_efx_nic_type ; unsigned long (*ldv_9_callback_describe_stats)(struct efx_nic * , unsigned char * ) ; int (*ldv_9_callback_dimension_resources)(struct efx_nic * ) ; void (*ldv_9_callback_ev_fini)(struct efx_channel * ) ; int (*ldv_9_callback_ev_init)(struct efx_channel * ) ; int (*ldv_9_callback_ev_probe)(struct efx_channel * ) ; int (*ldv_9_callback_ev_process)(struct efx_channel * , int ) ; void (*ldv_9_callback_ev_read_ack)(struct efx_channel * ) ; void (*ldv_9_callback_ev_remove)(struct efx_channel * ) ; void (*ldv_9_callback_ev_test_generate)(struct efx_channel * ) ; int (*ldv_9_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_9_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) ; unsigned int (*ldv_9_callback_filter_get_rx_id_limit)(struct efx_nic * ) ; int (*ldv_9_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) ; int (*ldv_9_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) ; int (*ldv_9_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) ; int (*ldv_9_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) ; _Bool (*ldv_9_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) ; int (*ldv_9_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) ; int (*ldv_9_callback_filter_table_probe)(struct efx_nic * ) ; void (*ldv_9_callback_filter_table_remove)(struct efx_nic * ) ; void (*ldv_9_callback_filter_table_restore)(struct efx_nic * ) ; void (*ldv_9_callback_filter_update_rx_scatter)(struct efx_nic * ) ; void (*ldv_9_callback_fini)(struct efx_nic * ) ; int (*ldv_9_callback_fini_dmaq)(struct efx_nic * ) ; void (*ldv_9_callback_get_name)(struct efx_channel * , char * , unsigned long ) ; void (*ldv_9_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) ; void (*ldv_9_callback_handle_no_channel)(struct efx_nic * ) ; void (*ldv_9_callback_init_phy)(struct efx_nic * ) ; enum irqreturn (*ldv_9_callback_irq_handle_legacy)(int , void * ) ; enum irqreturn (*ldv_9_callback_irq_handle_msi)(int , void * ) ; void (*ldv_9_callback_irq_test_generate)(struct efx_nic * ) ; int (*ldv_9_callback_map_reset_flags)(unsigned int * ) ; int (*ldv_9_callback_mcdi_poll_reboot)(struct efx_nic * ) ; _Bool (*ldv_9_callback_mcdi_poll_response)(struct efx_nic * ) ; void (*ldv_9_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) ; void (*ldv_9_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) ; unsigned int (*ldv_9_callback_mem_map_size)(struct efx_nic * ) ; int (*ldv_9_callback_monitor)(struct efx_nic * ) ; int (*ldv_9_callback_mtd_probe)(struct efx_nic * ) ; void (*ldv_9_callback_post_remove)(struct efx_channel * ) ; int (*ldv_9_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) ; int (*ldv_9_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) ; void (*ldv_9_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) ; void (*ldv_9_callback_push_irq_moderation)(struct efx_channel * ) ; _Bool (*ldv_9_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) ; int (*ldv_9_callback_reconfigure_mac)(struct efx_nic * ) ; int (*ldv_9_callback_reset)(struct efx_nic * , enum reset_type ) ; void (*ldv_9_callback_rx_defer_refill)(struct efx_rx_queue * ) ; void (*ldv_9_callback_rx_init)(struct efx_rx_queue * ) ; int (*ldv_9_callback_rx_probe)(struct efx_rx_queue * ) ; void (*ldv_9_callback_rx_push_rss_config)(struct efx_nic * ) ; void (*ldv_9_callback_rx_remove)(struct efx_rx_queue * ) ; void (*ldv_9_callback_rx_write)(struct efx_rx_queue * ) ; int (*ldv_9_callback_set_wol)(struct efx_nic * , unsigned int ) ; int (*ldv_9_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) ; void (*ldv_9_callback_tx_init)(struct efx_tx_queue * ) ; int (*ldv_9_callback_tx_probe)(struct efx_tx_queue * ) ; void (*ldv_9_callback_tx_remove)(struct efx_tx_queue * ) ; void (*ldv_9_callback_tx_write)(struct efx_tx_queue * ) ; unsigned long (*ldv_9_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) ; struct efx_nic_type *ldv_9_container_struct_efx_nic_type ; int ldv_statevar_13 ; int ldv_statevar_14 ; int ldv_statevar_15 ; int ldv_statevar_16 ; int ldv_statevar_17 ; int ldv_statevar_18 ; int ldv_statevar_9 ; unsigned long (*ldv_13_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & efx_ef10_describe_stats; int (*ldv_13_callback_dimension_resources)(struct efx_nic * ) = & efx_ef10_dimension_resources; void (*ldv_13_callback_ev_fini)(struct efx_channel * ) = & efx_ef10_ev_fini; int (*ldv_13_callback_ev_init)(struct efx_channel * ) = & efx_ef10_ev_init; int (*ldv_13_callback_ev_probe)(struct efx_channel * ) = & efx_ef10_ev_probe; int (*ldv_13_callback_ev_process)(struct efx_channel * , int ) = & efx_ef10_ev_process; void (*ldv_13_callback_ev_read_ack)(struct efx_channel * ) = & efx_ef10_ev_read_ack; void (*ldv_13_callback_ev_remove)(struct efx_channel * ) = & efx_ef10_ev_remove; void (*ldv_13_callback_ev_test_generate)(struct efx_channel * ) = & efx_ef10_ev_test_generate; int (*ldv_13_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_clear_rx; unsigned int (*ldv_13_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_count_rx_used; unsigned int (*ldv_13_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_ef10_filter_get_rx_id_limit; int (*ldv_13_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_ef10_filter_get_rx_ids; int (*ldv_13_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_ef10_filter_get_safe; int (*ldv_13_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_ef10_filter_insert; int (*ldv_13_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_ef10_filter_remove_safe; _Bool (*ldv_13_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_ef10_filter_rfs_expire_one; int (*ldv_13_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_ef10_filter_rfs_insert; int (*ldv_13_callback_filter_table_probe)(struct efx_nic * ) = & efx_ef10_filter_table_probe; void (*ldv_13_callback_filter_table_remove)(struct efx_nic * ) = & efx_ef10_filter_table_remove; void (*ldv_13_callback_filter_table_restore)(struct efx_nic * ) = & efx_ef10_filter_table_restore; void (*ldv_13_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_ef10_filter_update_rx_scatter; int (*ldv_13_callback_fini_dmaq)(struct efx_nic * ) = & efx_ef10_fini_dmaq; void (*ldv_13_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & efx_ef10_get_wol; enum irqreturn (*ldv_13_callback_irq_handle_legacy)(int , void * ) = & efx_ef10_legacy_interrupt; enum irqreturn (*ldv_13_callback_irq_handle_msi)(int , void * ) = & efx_ef10_msi_interrupt; void (*ldv_13_callback_irq_test_generate)(struct efx_nic * ) = & efx_ef10_irq_test_generate; int (*ldv_13_callback_map_reset_flags)(unsigned int * ) = & efx_ef10_map_reset_flags; int (*ldv_13_callback_mcdi_poll_reboot)(struct efx_nic * ) = & efx_ef10_mcdi_poll_reboot; _Bool (*ldv_13_callback_mcdi_poll_response)(struct efx_nic * ) = & efx_ef10_mcdi_poll_response; void (*ldv_13_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & efx_ef10_mcdi_read_response; void (*ldv_13_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& efx_ef10_mcdi_request); unsigned int (*ldv_13_callback_mem_map_size)(struct efx_nic * ) = & efx_ef10_mem_map_size; int (*ldv_13_callback_mtd_probe)(struct efx_nic * ) = & efx_ef10_mtd_probe; int (*ldv_13_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & efx_ef10_ptp_set_ts_config; int (*ldv_13_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) = & efx_ef10_ptp_set_ts_sync_events; void (*ldv_13_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & efx_ef10_ptp_write_host_time; void (*ldv_13_callback_push_irq_moderation)(struct efx_channel * ) = & efx_ef10_push_irq_moderation; int (*ldv_13_callback_reconfigure_mac)(struct efx_nic * ) = & efx_ef10_mac_reconfigure; int (*ldv_13_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_ef10_reset; void (*ldv_13_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_ef10_rx_defer_refill; void (*ldv_13_callback_rx_init)(struct efx_rx_queue * ) = & efx_ef10_rx_init; int (*ldv_13_callback_rx_probe)(struct efx_rx_queue * ) = & efx_ef10_rx_probe; void (*ldv_13_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_ef10_rx_push_rss_config; void (*ldv_13_callback_rx_remove)(struct efx_rx_queue * ) = & efx_ef10_rx_remove; void (*ldv_13_callback_rx_write)(struct efx_rx_queue * ) = & efx_ef10_rx_write; int (*ldv_13_callback_set_wol)(struct efx_nic * , unsigned int ) = & efx_ef10_set_wol; int (*ldv_13_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & efx_ef10_test_chip; void (*ldv_13_callback_tx_init)(struct efx_tx_queue * ) = & efx_ef10_tx_init; int (*ldv_13_callback_tx_probe)(struct efx_tx_queue * ) = & efx_ef10_tx_probe; void (*ldv_13_callback_tx_remove)(struct efx_tx_queue * ) = & efx_ef10_tx_remove; void (*ldv_13_callback_tx_write)(struct efx_tx_queue * ) = & efx_ef10_tx_write; unsigned long (*ldv_13_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & efx_ef10_update_stats; unsigned long (*ldv_14_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & efx_ef10_describe_stats; int (*ldv_14_callback_dimension_resources)(struct efx_nic * ) = & efx_ef10_dimension_resources; void (*ldv_14_callback_ev_fini)(struct efx_channel * ) = & efx_ef10_ev_fini; int (*ldv_14_callback_ev_init)(struct efx_channel * ) = & efx_ef10_ev_init; int (*ldv_14_callback_ev_probe)(struct efx_channel * ) = & efx_ef10_ev_probe; int (*ldv_14_callback_ev_process)(struct efx_channel * , int ) = & efx_ef10_ev_process; void (*ldv_14_callback_ev_read_ack)(struct efx_channel * ) = & efx_ef10_ev_read_ack; void (*ldv_14_callback_ev_remove)(struct efx_channel * ) = & efx_ef10_ev_remove; void (*ldv_14_callback_ev_test_generate)(struct efx_channel * ) = & efx_ef10_ev_test_generate; int (*ldv_14_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_clear_rx; unsigned int (*ldv_14_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_count_rx_used; unsigned int (*ldv_14_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_ef10_filter_get_rx_id_limit; int (*ldv_14_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_ef10_filter_get_rx_ids; int (*ldv_14_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_ef10_filter_get_safe; int (*ldv_14_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_ef10_filter_insert; int (*ldv_14_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_ef10_filter_remove_safe; _Bool (*ldv_14_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_ef10_filter_rfs_expire_one; int (*ldv_14_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_ef10_filter_rfs_insert; int (*ldv_14_callback_filter_table_probe)(struct efx_nic * ) = & efx_ef10_filter_table_probe; void (*ldv_14_callback_filter_table_remove)(struct efx_nic * ) = & efx_ef10_filter_table_remove; void (*ldv_14_callback_filter_table_restore)(struct efx_nic * ) = & efx_ef10_filter_table_restore; void (*ldv_14_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_ef10_filter_update_rx_scatter; int (*ldv_14_callback_fini_dmaq)(struct efx_nic * ) = & efx_ef10_fini_dmaq; void (*ldv_14_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & efx_ef10_get_wol; enum irqreturn (*ldv_14_callback_irq_handle_legacy)(int , void * ) = & efx_ef10_legacy_interrupt; enum irqreturn (*ldv_14_callback_irq_handle_msi)(int , void * ) = & efx_ef10_msi_interrupt; void (*ldv_14_callback_irq_test_generate)(struct efx_nic * ) = & efx_ef10_irq_test_generate; int (*ldv_14_callback_map_reset_flags)(unsigned int * ) = & efx_ef10_map_reset_flags; int (*ldv_14_callback_mcdi_poll_reboot)(struct efx_nic * ) = & efx_ef10_mcdi_poll_reboot; _Bool (*ldv_14_callback_mcdi_poll_response)(struct efx_nic * ) = & efx_ef10_mcdi_poll_response; void (*ldv_14_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & efx_ef10_mcdi_read_response; void (*ldv_14_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& efx_ef10_mcdi_request); unsigned int (*ldv_14_callback_mem_map_size)(struct efx_nic * ) = & efx_ef10_mem_map_size; int (*ldv_14_callback_mtd_probe)(struct efx_nic * ) = & efx_ef10_mtd_probe; int (*ldv_14_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & efx_ef10_ptp_set_ts_config; int (*ldv_14_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) = & efx_ef10_ptp_set_ts_sync_events; void (*ldv_14_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & efx_ef10_ptp_write_host_time; void (*ldv_14_callback_push_irq_moderation)(struct efx_channel * ) = & efx_ef10_push_irq_moderation; int (*ldv_14_callback_reconfigure_mac)(struct efx_nic * ) = & efx_ef10_mac_reconfigure; int (*ldv_14_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_ef10_reset; void (*ldv_14_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_ef10_rx_defer_refill; void (*ldv_14_callback_rx_init)(struct efx_rx_queue * ) = & efx_ef10_rx_init; int (*ldv_14_callback_rx_probe)(struct efx_rx_queue * ) = & efx_ef10_rx_probe; void (*ldv_14_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_ef10_rx_push_rss_config; void (*ldv_14_callback_rx_remove)(struct efx_rx_queue * ) = & efx_ef10_rx_remove; void (*ldv_14_callback_rx_write)(struct efx_rx_queue * ) = & efx_ef10_rx_write; int (*ldv_14_callback_set_wol)(struct efx_nic * , unsigned int ) = & efx_ef10_set_wol; int (*ldv_14_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & efx_ef10_test_chip; void (*ldv_14_callback_tx_init)(struct efx_tx_queue * ) = & efx_ef10_tx_init; int (*ldv_14_callback_tx_probe)(struct efx_tx_queue * ) = & efx_ef10_tx_probe; void (*ldv_14_callback_tx_remove)(struct efx_tx_queue * ) = & efx_ef10_tx_remove; void (*ldv_14_callback_tx_write)(struct efx_tx_queue * ) = & efx_ef10_tx_write; unsigned long (*ldv_14_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & efx_ef10_update_stats; unsigned long (*ldv_15_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & efx_ef10_describe_stats; int (*ldv_15_callback_dimension_resources)(struct efx_nic * ) = & efx_ef10_dimension_resources; void (*ldv_15_callback_ev_fini)(struct efx_channel * ) = & efx_ef10_ev_fini; int (*ldv_15_callback_ev_init)(struct efx_channel * ) = & efx_ef10_ev_init; int (*ldv_15_callback_ev_probe)(struct efx_channel * ) = & efx_ef10_ev_probe; int (*ldv_15_callback_ev_process)(struct efx_channel * , int ) = & efx_ef10_ev_process; void (*ldv_15_callback_ev_read_ack)(struct efx_channel * ) = & efx_ef10_ev_read_ack; void (*ldv_15_callback_ev_remove)(struct efx_channel * ) = & efx_ef10_ev_remove; void (*ldv_15_callback_ev_test_generate)(struct efx_channel * ) = & efx_ef10_ev_test_generate; int (*ldv_15_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_clear_rx; unsigned int (*ldv_15_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_count_rx_used; unsigned int (*ldv_15_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_ef10_filter_get_rx_id_limit; int (*ldv_15_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_ef10_filter_get_rx_ids; int (*ldv_15_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_ef10_filter_get_safe; int (*ldv_15_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_ef10_filter_insert; int (*ldv_15_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_ef10_filter_remove_safe; _Bool (*ldv_15_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_ef10_filter_rfs_expire_one; int (*ldv_15_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_ef10_filter_rfs_insert; int (*ldv_15_callback_filter_table_probe)(struct efx_nic * ) = & efx_ef10_filter_table_probe; void (*ldv_15_callback_filter_table_remove)(struct efx_nic * ) = & efx_ef10_filter_table_remove; void (*ldv_15_callback_filter_table_restore)(struct efx_nic * ) = & efx_ef10_filter_table_restore; void (*ldv_15_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_ef10_filter_update_rx_scatter; int (*ldv_15_callback_fini_dmaq)(struct efx_nic * ) = & efx_ef10_fini_dmaq; void (*ldv_15_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & efx_ef10_get_wol; enum irqreturn (*ldv_15_callback_irq_handle_legacy)(int , void * ) = & efx_ef10_legacy_interrupt; enum irqreturn (*ldv_15_callback_irq_handle_msi)(int , void * ) = & efx_ef10_msi_interrupt; void (*ldv_15_callback_irq_test_generate)(struct efx_nic * ) = & efx_ef10_irq_test_generate; int (*ldv_15_callback_map_reset_flags)(unsigned int * ) = & efx_ef10_map_reset_flags; int (*ldv_15_callback_mcdi_poll_reboot)(struct efx_nic * ) = & efx_ef10_mcdi_poll_reboot; _Bool (*ldv_15_callback_mcdi_poll_response)(struct efx_nic * ) = & efx_ef10_mcdi_poll_response; void (*ldv_15_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & efx_ef10_mcdi_read_response; void (*ldv_15_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& efx_ef10_mcdi_request); unsigned int (*ldv_15_callback_mem_map_size)(struct efx_nic * ) = & efx_ef10_mem_map_size; int (*ldv_15_callback_mtd_probe)(struct efx_nic * ) = & efx_ef10_mtd_probe; int (*ldv_15_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & efx_ef10_ptp_set_ts_config; int (*ldv_15_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) = & efx_ef10_ptp_set_ts_sync_events; void (*ldv_15_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & efx_ef10_ptp_write_host_time; void (*ldv_15_callback_push_irq_moderation)(struct efx_channel * ) = & efx_ef10_push_irq_moderation; int (*ldv_15_callback_reconfigure_mac)(struct efx_nic * ) = & efx_ef10_mac_reconfigure; int (*ldv_15_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_ef10_reset; void (*ldv_15_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_ef10_rx_defer_refill; void (*ldv_15_callback_rx_init)(struct efx_rx_queue * ) = & efx_ef10_rx_init; int (*ldv_15_callback_rx_probe)(struct efx_rx_queue * ) = & efx_ef10_rx_probe; void (*ldv_15_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_ef10_rx_push_rss_config; void (*ldv_15_callback_rx_remove)(struct efx_rx_queue * ) = & efx_ef10_rx_remove; void (*ldv_15_callback_rx_write)(struct efx_rx_queue * ) = & efx_ef10_rx_write; int (*ldv_15_callback_set_wol)(struct efx_nic * , unsigned int ) = & efx_ef10_set_wol; int (*ldv_15_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & efx_ef10_test_chip; void (*ldv_15_callback_tx_init)(struct efx_tx_queue * ) = & efx_ef10_tx_init; int (*ldv_15_callback_tx_probe)(struct efx_tx_queue * ) = & efx_ef10_tx_probe; void (*ldv_15_callback_tx_remove)(struct efx_tx_queue * ) = & efx_ef10_tx_remove; void (*ldv_15_callback_tx_write)(struct efx_tx_queue * ) = & efx_ef10_tx_write; unsigned long (*ldv_15_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & efx_ef10_update_stats; unsigned long (*ldv_16_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & efx_ef10_describe_stats; int (*ldv_16_callback_dimension_resources)(struct efx_nic * ) = & efx_ef10_dimension_resources; void (*ldv_16_callback_ev_fini)(struct efx_channel * ) = & efx_ef10_ev_fini; int (*ldv_16_callback_ev_init)(struct efx_channel * ) = & efx_ef10_ev_init; int (*ldv_16_callback_ev_probe)(struct efx_channel * ) = & efx_ef10_ev_probe; int (*ldv_16_callback_ev_process)(struct efx_channel * , int ) = & efx_ef10_ev_process; void (*ldv_16_callback_ev_read_ack)(struct efx_channel * ) = & efx_ef10_ev_read_ack; void (*ldv_16_callback_ev_remove)(struct efx_channel * ) = & efx_ef10_ev_remove; void (*ldv_16_callback_ev_test_generate)(struct efx_channel * ) = & efx_ef10_ev_test_generate; int (*ldv_16_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_clear_rx; unsigned int (*ldv_16_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_count_rx_used; unsigned int (*ldv_16_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_ef10_filter_get_rx_id_limit; int (*ldv_16_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_ef10_filter_get_rx_ids; int (*ldv_16_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_ef10_filter_get_safe; int (*ldv_16_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_ef10_filter_insert; int (*ldv_16_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_ef10_filter_remove_safe; _Bool (*ldv_16_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_ef10_filter_rfs_expire_one; int (*ldv_16_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_ef10_filter_rfs_insert; int (*ldv_16_callback_filter_table_probe)(struct efx_nic * ) = & efx_ef10_filter_table_probe; void (*ldv_16_callback_filter_table_remove)(struct efx_nic * ) = & efx_ef10_filter_table_remove; void (*ldv_16_callback_filter_table_restore)(struct efx_nic * ) = & efx_ef10_filter_table_restore; void (*ldv_16_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_ef10_filter_update_rx_scatter; int (*ldv_16_callback_fini_dmaq)(struct efx_nic * ) = & efx_ef10_fini_dmaq; void (*ldv_16_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & efx_ef10_get_wol; enum irqreturn (*ldv_16_callback_irq_handle_legacy)(int , void * ) = & efx_ef10_legacy_interrupt; enum irqreturn (*ldv_16_callback_irq_handle_msi)(int , void * ) = & efx_ef10_msi_interrupt; void (*ldv_16_callback_irq_test_generate)(struct efx_nic * ) = & efx_ef10_irq_test_generate; int (*ldv_16_callback_map_reset_flags)(unsigned int * ) = & efx_ef10_map_reset_flags; int (*ldv_16_callback_mcdi_poll_reboot)(struct efx_nic * ) = & efx_ef10_mcdi_poll_reboot; _Bool (*ldv_16_callback_mcdi_poll_response)(struct efx_nic * ) = & efx_ef10_mcdi_poll_response; void (*ldv_16_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & efx_ef10_mcdi_read_response; void (*ldv_16_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& efx_ef10_mcdi_request); unsigned int (*ldv_16_callback_mem_map_size)(struct efx_nic * ) = & efx_ef10_mem_map_size; int (*ldv_16_callback_mtd_probe)(struct efx_nic * ) = & efx_ef10_mtd_probe; int (*ldv_16_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & efx_ef10_ptp_set_ts_config; int (*ldv_16_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) = & efx_ef10_ptp_set_ts_sync_events; void (*ldv_16_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & efx_ef10_ptp_write_host_time; void (*ldv_16_callback_push_irq_moderation)(struct efx_channel * ) = & efx_ef10_push_irq_moderation; int (*ldv_16_callback_reconfigure_mac)(struct efx_nic * ) = & efx_ef10_mac_reconfigure; int (*ldv_16_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_ef10_reset; void (*ldv_16_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_ef10_rx_defer_refill; void (*ldv_16_callback_rx_init)(struct efx_rx_queue * ) = & efx_ef10_rx_init; int (*ldv_16_callback_rx_probe)(struct efx_rx_queue * ) = & efx_ef10_rx_probe; void (*ldv_16_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_ef10_rx_push_rss_config; void (*ldv_16_callback_rx_remove)(struct efx_rx_queue * ) = & efx_ef10_rx_remove; void (*ldv_16_callback_rx_write)(struct efx_rx_queue * ) = & efx_ef10_rx_write; int (*ldv_16_callback_set_wol)(struct efx_nic * , unsigned int ) = & efx_ef10_set_wol; int (*ldv_16_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & efx_ef10_test_chip; void (*ldv_16_callback_tx_init)(struct efx_tx_queue * ) = & efx_ef10_tx_init; int (*ldv_16_callback_tx_probe)(struct efx_tx_queue * ) = & efx_ef10_tx_probe; void (*ldv_16_callback_tx_remove)(struct efx_tx_queue * ) = & efx_ef10_tx_remove; void (*ldv_16_callback_tx_write)(struct efx_tx_queue * ) = & efx_ef10_tx_write; unsigned long (*ldv_16_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & efx_ef10_update_stats; unsigned long (*ldv_17_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & efx_ef10_describe_stats; int (*ldv_17_callback_dimension_resources)(struct efx_nic * ) = & efx_ef10_dimension_resources; void (*ldv_17_callback_ev_fini)(struct efx_channel * ) = & efx_ef10_ev_fini; int (*ldv_17_callback_ev_init)(struct efx_channel * ) = & efx_ef10_ev_init; int (*ldv_17_callback_ev_probe)(struct efx_channel * ) = & efx_ef10_ev_probe; int (*ldv_17_callback_ev_process)(struct efx_channel * , int ) = & efx_ef10_ev_process; void (*ldv_17_callback_ev_read_ack)(struct efx_channel * ) = & efx_ef10_ev_read_ack; void (*ldv_17_callback_ev_remove)(struct efx_channel * ) = & efx_ef10_ev_remove; void (*ldv_17_callback_ev_test_generate)(struct efx_channel * ) = & efx_ef10_ev_test_generate; int (*ldv_17_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_clear_rx; unsigned int (*ldv_17_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_count_rx_used; unsigned int (*ldv_17_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_ef10_filter_get_rx_id_limit; int (*ldv_17_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_ef10_filter_get_rx_ids; int (*ldv_17_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_ef10_filter_get_safe; int (*ldv_17_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_ef10_filter_insert; int (*ldv_17_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_ef10_filter_remove_safe; _Bool (*ldv_17_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_ef10_filter_rfs_expire_one; int (*ldv_17_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_ef10_filter_rfs_insert; int (*ldv_17_callback_filter_table_probe)(struct efx_nic * ) = & efx_ef10_filter_table_probe; void (*ldv_17_callback_filter_table_remove)(struct efx_nic * ) = & efx_ef10_filter_table_remove; void (*ldv_17_callback_filter_table_restore)(struct efx_nic * ) = & efx_ef10_filter_table_restore; void (*ldv_17_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_ef10_filter_update_rx_scatter; int (*ldv_17_callback_fini_dmaq)(struct efx_nic * ) = & efx_ef10_fini_dmaq; void (*ldv_17_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & efx_ef10_get_wol; enum irqreturn (*ldv_17_callback_irq_handle_legacy)(int , void * ) = & efx_ef10_legacy_interrupt; enum irqreturn (*ldv_17_callback_irq_handle_msi)(int , void * ) = & efx_ef10_msi_interrupt; void (*ldv_17_callback_irq_test_generate)(struct efx_nic * ) = & efx_ef10_irq_test_generate; int (*ldv_17_callback_map_reset_flags)(unsigned int * ) = & efx_ef10_map_reset_flags; int (*ldv_17_callback_mcdi_poll_reboot)(struct efx_nic * ) = & efx_ef10_mcdi_poll_reboot; _Bool (*ldv_17_callback_mcdi_poll_response)(struct efx_nic * ) = & efx_ef10_mcdi_poll_response; void (*ldv_17_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & efx_ef10_mcdi_read_response; void (*ldv_17_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& efx_ef10_mcdi_request); unsigned int (*ldv_17_callback_mem_map_size)(struct efx_nic * ) = & efx_ef10_mem_map_size; int (*ldv_17_callback_mtd_probe)(struct efx_nic * ) = & efx_ef10_mtd_probe; int (*ldv_17_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & efx_ef10_ptp_set_ts_config; int (*ldv_17_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) = & efx_ef10_ptp_set_ts_sync_events; void (*ldv_17_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & efx_ef10_ptp_write_host_time; void (*ldv_17_callback_push_irq_moderation)(struct efx_channel * ) = & efx_ef10_push_irq_moderation; int (*ldv_17_callback_reconfigure_mac)(struct efx_nic * ) = & efx_ef10_mac_reconfigure; int (*ldv_17_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_ef10_reset; void (*ldv_17_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_ef10_rx_defer_refill; void (*ldv_17_callback_rx_init)(struct efx_rx_queue * ) = & efx_ef10_rx_init; int (*ldv_17_callback_rx_probe)(struct efx_rx_queue * ) = & efx_ef10_rx_probe; void (*ldv_17_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_ef10_rx_push_rss_config; void (*ldv_17_callback_rx_remove)(struct efx_rx_queue * ) = & efx_ef10_rx_remove; void (*ldv_17_callback_rx_write)(struct efx_rx_queue * ) = & efx_ef10_rx_write; int (*ldv_17_callback_set_wol)(struct efx_nic * , unsigned int ) = & efx_ef10_set_wol; int (*ldv_17_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & efx_ef10_test_chip; void (*ldv_17_callback_tx_init)(struct efx_tx_queue * ) = & efx_ef10_tx_init; int (*ldv_17_callback_tx_probe)(struct efx_tx_queue * ) = & efx_ef10_tx_probe; void (*ldv_17_callback_tx_remove)(struct efx_tx_queue * ) = & efx_ef10_tx_remove; void (*ldv_17_callback_tx_write)(struct efx_tx_queue * ) = & efx_ef10_tx_write; unsigned long (*ldv_17_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & efx_ef10_update_stats; unsigned long (*ldv_18_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & efx_ef10_describe_stats; int (*ldv_18_callback_dimension_resources)(struct efx_nic * ) = & efx_ef10_dimension_resources; void (*ldv_18_callback_ev_fini)(struct efx_channel * ) = & efx_ef10_ev_fini; int (*ldv_18_callback_ev_init)(struct efx_channel * ) = & efx_ef10_ev_init; int (*ldv_18_callback_ev_probe)(struct efx_channel * ) = & efx_ef10_ev_probe; int (*ldv_18_callback_ev_process)(struct efx_channel * , int ) = & efx_ef10_ev_process; void (*ldv_18_callback_ev_read_ack)(struct efx_channel * ) = & efx_ef10_ev_read_ack; void (*ldv_18_callback_ev_remove)(struct efx_channel * ) = & efx_ef10_ev_remove; void (*ldv_18_callback_ev_test_generate)(struct efx_channel * ) = & efx_ef10_ev_test_generate; int (*ldv_18_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_clear_rx; unsigned int (*ldv_18_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_count_rx_used; unsigned int (*ldv_18_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_ef10_filter_get_rx_id_limit; int (*ldv_18_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_ef10_filter_get_rx_ids; int (*ldv_18_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_ef10_filter_get_safe; int (*ldv_18_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_ef10_filter_insert; int (*ldv_18_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_ef10_filter_remove_safe; _Bool (*ldv_18_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_ef10_filter_rfs_expire_one; int (*ldv_18_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_ef10_filter_rfs_insert; int (*ldv_18_callback_filter_table_probe)(struct efx_nic * ) = & efx_ef10_filter_table_probe; void (*ldv_18_callback_filter_table_remove)(struct efx_nic * ) = & efx_ef10_filter_table_remove; void (*ldv_18_callback_filter_table_restore)(struct efx_nic * ) = & efx_ef10_filter_table_restore; void (*ldv_18_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_ef10_filter_update_rx_scatter; int (*ldv_18_callback_fini_dmaq)(struct efx_nic * ) = & efx_ef10_fini_dmaq; void (*ldv_18_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & efx_ef10_get_wol; enum irqreturn (*ldv_18_callback_irq_handle_legacy)(int , void * ) = & efx_ef10_legacy_interrupt; enum irqreturn (*ldv_18_callback_irq_handle_msi)(int , void * ) = & efx_ef10_msi_interrupt; void (*ldv_18_callback_irq_test_generate)(struct efx_nic * ) = & efx_ef10_irq_test_generate; int (*ldv_18_callback_map_reset_flags)(unsigned int * ) = & efx_ef10_map_reset_flags; int (*ldv_18_callback_mcdi_poll_reboot)(struct efx_nic * ) = & efx_ef10_mcdi_poll_reboot; _Bool (*ldv_18_callback_mcdi_poll_response)(struct efx_nic * ) = & efx_ef10_mcdi_poll_response; void (*ldv_18_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & efx_ef10_mcdi_read_response; void (*ldv_18_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& efx_ef10_mcdi_request); unsigned int (*ldv_18_callback_mem_map_size)(struct efx_nic * ) = & efx_ef10_mem_map_size; int (*ldv_18_callback_mtd_probe)(struct efx_nic * ) = & efx_ef10_mtd_probe; int (*ldv_18_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & efx_ef10_ptp_set_ts_config; int (*ldv_18_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) = & efx_ef10_ptp_set_ts_sync_events; void (*ldv_18_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & efx_ef10_ptp_write_host_time; void (*ldv_18_callback_push_irq_moderation)(struct efx_channel * ) = & efx_ef10_push_irq_moderation; int (*ldv_18_callback_reconfigure_mac)(struct efx_nic * ) = & efx_ef10_mac_reconfigure; int (*ldv_18_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_ef10_reset; void (*ldv_18_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_ef10_rx_defer_refill; void (*ldv_18_callback_rx_init)(struct efx_rx_queue * ) = & efx_ef10_rx_init; int (*ldv_18_callback_rx_probe)(struct efx_rx_queue * ) = & efx_ef10_rx_probe; void (*ldv_18_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_ef10_rx_push_rss_config; void (*ldv_18_callback_rx_remove)(struct efx_rx_queue * ) = & efx_ef10_rx_remove; void (*ldv_18_callback_rx_write)(struct efx_rx_queue * ) = & efx_ef10_rx_write; int (*ldv_18_callback_set_wol)(struct efx_nic * , unsigned int ) = & efx_ef10_set_wol; int (*ldv_18_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & efx_ef10_test_chip; void (*ldv_18_callback_tx_init)(struct efx_tx_queue * ) = & efx_ef10_tx_init; int (*ldv_18_callback_tx_probe)(struct efx_tx_queue * ) = & efx_ef10_tx_probe; void (*ldv_18_callback_tx_remove)(struct efx_tx_queue * ) = & efx_ef10_tx_remove; void (*ldv_18_callback_tx_write)(struct efx_tx_queue * ) = & efx_ef10_tx_write; unsigned long (*ldv_18_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & efx_ef10_update_stats; unsigned long (*ldv_9_callback_describe_stats)(struct efx_nic * , unsigned char * ) = & efx_ef10_describe_stats; int (*ldv_9_callback_dimension_resources)(struct efx_nic * ) = & efx_ef10_dimension_resources; void (*ldv_9_callback_ev_fini)(struct efx_channel * ) = & efx_ef10_ev_fini; int (*ldv_9_callback_ev_init)(struct efx_channel * ) = & efx_ef10_ev_init; int (*ldv_9_callback_ev_probe)(struct efx_channel * ) = & efx_ef10_ev_probe; int (*ldv_9_callback_ev_process)(struct efx_channel * , int ) = & efx_ef10_ev_process; void (*ldv_9_callback_ev_read_ack)(struct efx_channel * ) = & efx_ef10_ev_read_ack; void (*ldv_9_callback_ev_remove)(struct efx_channel * ) = & efx_ef10_ev_remove; void (*ldv_9_callback_ev_test_generate)(struct efx_channel * ) = & efx_ef10_ev_test_generate; int (*ldv_9_callback_filter_clear_rx)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_clear_rx; unsigned int (*ldv_9_callback_filter_count_rx_used)(struct efx_nic * , enum efx_filter_priority ) = & efx_ef10_filter_count_rx_used; unsigned int (*ldv_9_callback_filter_get_rx_id_limit)(struct efx_nic * ) = & efx_ef10_filter_get_rx_id_limit; int (*ldv_9_callback_filter_get_rx_ids)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) = & efx_ef10_filter_get_rx_ids; int (*ldv_9_callback_filter_get_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) = & efx_ef10_filter_get_safe; int (*ldv_9_callback_filter_insert)(struct efx_nic * , struct efx_filter_spec * , _Bool ) = & efx_ef10_filter_insert; int (*ldv_9_callback_filter_remove_safe)(struct efx_nic * , enum efx_filter_priority , unsigned int ) = & efx_ef10_filter_remove_safe; _Bool (*ldv_9_callback_filter_rfs_expire_one)(struct efx_nic * , unsigned int , unsigned int ) = & efx_ef10_filter_rfs_expire_one; int (*ldv_9_callback_filter_rfs_insert)(struct efx_nic * , struct efx_filter_spec * ) = & efx_ef10_filter_rfs_insert; int (*ldv_9_callback_filter_table_probe)(struct efx_nic * ) = & efx_ef10_filter_table_probe; void (*ldv_9_callback_filter_table_remove)(struct efx_nic * ) = & efx_ef10_filter_table_remove; void (*ldv_9_callback_filter_table_restore)(struct efx_nic * ) = & efx_ef10_filter_table_restore; void (*ldv_9_callback_filter_update_rx_scatter)(struct efx_nic * ) = & efx_ef10_filter_update_rx_scatter; int (*ldv_9_callback_fini_dmaq)(struct efx_nic * ) = & efx_ef10_fini_dmaq; void (*ldv_9_callback_get_wol)(struct efx_nic * , struct ethtool_wolinfo * ) = & efx_ef10_get_wol; enum irqreturn (*ldv_9_callback_irq_handle_legacy)(int , void * ) = & efx_ef10_legacy_interrupt; enum irqreturn (*ldv_9_callback_irq_handle_msi)(int , void * ) = & efx_ef10_msi_interrupt; void (*ldv_9_callback_irq_test_generate)(struct efx_nic * ) = & efx_ef10_irq_test_generate; int (*ldv_9_callback_map_reset_flags)(unsigned int * ) = & efx_ef10_map_reset_flags; int (*ldv_9_callback_mcdi_poll_reboot)(struct efx_nic * ) = & efx_ef10_mcdi_poll_reboot; _Bool (*ldv_9_callback_mcdi_poll_response)(struct efx_nic * ) = & efx_ef10_mcdi_poll_response; void (*ldv_9_callback_mcdi_read_response)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) = & efx_ef10_mcdi_read_response; void (*ldv_9_callback_mcdi_request)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) = (void (*)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ))(& efx_ef10_mcdi_request); unsigned int (*ldv_9_callback_mem_map_size)(struct efx_nic * ) = & efx_ef10_mem_map_size; int (*ldv_9_callback_mtd_probe)(struct efx_nic * ) = & efx_ef10_mtd_probe; int (*ldv_9_callback_ptp_set_ts_config)(struct efx_nic * , struct hwtstamp_config * ) = & efx_ef10_ptp_set_ts_config; int (*ldv_9_callback_ptp_set_ts_sync_events)(struct efx_nic * , _Bool , _Bool ) = & efx_ef10_ptp_set_ts_sync_events; void (*ldv_9_callback_ptp_write_host_time)(struct efx_nic * , unsigned int ) = & efx_ef10_ptp_write_host_time; void (*ldv_9_callback_push_irq_moderation)(struct efx_channel * ) = & efx_ef10_push_irq_moderation; int (*ldv_9_callback_reconfigure_mac)(struct efx_nic * ) = & efx_ef10_mac_reconfigure; int (*ldv_9_callback_reset)(struct efx_nic * , enum reset_type ) = & efx_ef10_reset; void (*ldv_9_callback_rx_defer_refill)(struct efx_rx_queue * ) = & efx_ef10_rx_defer_refill; void (*ldv_9_callback_rx_init)(struct efx_rx_queue * ) = & efx_ef10_rx_init; int (*ldv_9_callback_rx_probe)(struct efx_rx_queue * ) = & efx_ef10_rx_probe; void (*ldv_9_callback_rx_push_rss_config)(struct efx_nic * ) = & efx_ef10_rx_push_rss_config; void (*ldv_9_callback_rx_remove)(struct efx_rx_queue * ) = & efx_ef10_rx_remove; void (*ldv_9_callback_rx_write)(struct efx_rx_queue * ) = & efx_ef10_rx_write; int (*ldv_9_callback_set_wol)(struct efx_nic * , unsigned int ) = & efx_ef10_set_wol; int (*ldv_9_callback_test_chip)(struct efx_nic * , struct efx_self_tests * ) = & efx_ef10_test_chip; void (*ldv_9_callback_tx_init)(struct efx_tx_queue * ) = & efx_ef10_tx_init; int (*ldv_9_callback_tx_probe)(struct efx_tx_queue * ) = & efx_ef10_tx_probe; void (*ldv_9_callback_tx_remove)(struct efx_tx_queue * ) = & efx_ef10_tx_remove; void (*ldv_9_callback_tx_write)(struct efx_tx_queue * ) = & efx_ef10_tx_write; unsigned long (*ldv_9_callback_update_stats)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) = & efx_ef10_update_stats; void ldv_io_instance_callback_13_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { efx_ef10_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_13_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { efx_ef10_ptp_set_ts_sync_events(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_13_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_13_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_13_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_13_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_ef10_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_13_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_13_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_init(arg1); } return; } } void ldv_io_instance_callback_13_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_probe(arg1); } return; } } void ldv_io_instance_callback_13_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_13_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_remove(arg1); } return; } } void ldv_io_instance_callback_13_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_write(arg1); } return; } } void ldv_io_instance_callback_13_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_13_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { efx_ef10_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_13_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_init(arg1); } return; } } void ldv_io_instance_callback_13_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_probe(arg1); } return; } } void ldv_io_instance_callback_13_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_remove(arg1); } return; } } void ldv_io_instance_callback_13_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_write(arg1); } return; } } void ldv_io_instance_callback_13_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { efx_ef10_update_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_13_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { efx_ef10_describe_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_13_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_13_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_fini(arg1); } return; } } void ldv_io_instance_callback_13_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_init(arg1); } return; } } void ldv_io_instance_callback_13_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_probe(arg1); } return; } } void ldv_io_instance_callback_13_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_ef10_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_13_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_13_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_remove(arg1); } return; } } void ldv_io_instance_callback_13_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_13_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_13_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_13_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_13_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_ef10_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_13_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_ef10_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_13_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_ef10_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_13_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_ef10_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_13_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_ef10_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_13_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_ef10_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_13_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_13_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_13_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_13_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_13_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_13_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ef10_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_13_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_13_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_13_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_13_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { efx_ef10_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_13_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_13_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_13_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { efx_ef10_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_13_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { efx_ef10_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_13_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_13_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_14_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { efx_ef10_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_14_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { efx_ef10_ptp_set_ts_sync_events(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_14_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_14_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_14_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_14_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_ef10_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_14_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_14_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_init(arg1); } return; } } void ldv_io_instance_callback_14_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_probe(arg1); } return; } } void ldv_io_instance_callback_14_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_14_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_remove(arg1); } return; } } void ldv_io_instance_callback_14_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_write(arg1); } return; } } void ldv_io_instance_callback_14_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_14_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { efx_ef10_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_14_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_init(arg1); } return; } } void ldv_io_instance_callback_14_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_probe(arg1); } return; } } void ldv_io_instance_callback_14_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_remove(arg1); } return; } } void ldv_io_instance_callback_14_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_write(arg1); } return; } } void ldv_io_instance_callback_14_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { efx_ef10_update_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_14_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { efx_ef10_describe_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_14_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_14_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_fini(arg1); } return; } } void ldv_io_instance_callback_14_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_init(arg1); } return; } } void ldv_io_instance_callback_14_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_probe(arg1); } return; } } void ldv_io_instance_callback_14_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_ef10_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_14_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_14_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_remove(arg1); } return; } } void ldv_io_instance_callback_14_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_14_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_14_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_14_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_14_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_ef10_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_14_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_ef10_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_14_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_ef10_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_14_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_ef10_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_14_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_ef10_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_14_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_ef10_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_14_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_14_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_14_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_14_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_14_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_14_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ef10_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_14_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_14_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_14_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_14_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { efx_ef10_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_14_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_14_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_14_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { efx_ef10_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_14_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { efx_ef10_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_14_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_14_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_15_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { efx_ef10_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_15_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { efx_ef10_ptp_set_ts_sync_events(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_15_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_15_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_15_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_15_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_ef10_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_15_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_15_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_init(arg1); } return; } } void ldv_io_instance_callback_15_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_probe(arg1); } return; } } void ldv_io_instance_callback_15_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_15_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_remove(arg1); } return; } } void ldv_io_instance_callback_15_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_write(arg1); } return; } } void ldv_io_instance_callback_15_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_15_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { efx_ef10_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_15_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_init(arg1); } return; } } void ldv_io_instance_callback_15_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_probe(arg1); } return; } } void ldv_io_instance_callback_15_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_remove(arg1); } return; } } void ldv_io_instance_callback_15_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_write(arg1); } return; } } void ldv_io_instance_callback_15_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { efx_ef10_update_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_15_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { efx_ef10_describe_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_15_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_15_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_fini(arg1); } return; } } void ldv_io_instance_callback_15_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_init(arg1); } return; } } void ldv_io_instance_callback_15_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_probe(arg1); } return; } } void ldv_io_instance_callback_15_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_ef10_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_15_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_15_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_remove(arg1); } return; } } void ldv_io_instance_callback_15_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_15_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_15_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_15_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_15_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_ef10_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_15_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_ef10_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_15_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_ef10_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_15_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_ef10_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_15_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_ef10_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_15_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_ef10_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_15_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_15_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_15_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_15_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_15_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_15_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ef10_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_15_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_15_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_15_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_15_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { efx_ef10_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_15_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_15_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_15_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { efx_ef10_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_15_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { efx_ef10_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_15_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_15_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_16_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { efx_ef10_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_16_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { efx_ef10_ptp_set_ts_sync_events(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_16_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_16_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_16_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_16_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_ef10_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_16_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_16_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_init(arg1); } return; } } void ldv_io_instance_callback_16_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_probe(arg1); } return; } } void ldv_io_instance_callback_16_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_16_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_remove(arg1); } return; } } void ldv_io_instance_callback_16_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_write(arg1); } return; } } void ldv_io_instance_callback_16_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_16_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { efx_ef10_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_16_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_init(arg1); } return; } } void ldv_io_instance_callback_16_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_probe(arg1); } return; } } void ldv_io_instance_callback_16_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_remove(arg1); } return; } } void ldv_io_instance_callback_16_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_write(arg1); } return; } } void ldv_io_instance_callback_16_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { efx_ef10_update_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_16_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { efx_ef10_describe_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_16_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_16_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_fini(arg1); } return; } } void ldv_io_instance_callback_16_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_init(arg1); } return; } } void ldv_io_instance_callback_16_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_probe(arg1); } return; } } void ldv_io_instance_callback_16_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_ef10_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_16_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_16_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_remove(arg1); } return; } } void ldv_io_instance_callback_16_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_16_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_16_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_16_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_16_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_ef10_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_16_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_ef10_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_16_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_ef10_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_16_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_ef10_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_16_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_ef10_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_16_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_ef10_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_16_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_16_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_16_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_16_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_16_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_16_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ef10_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_16_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_16_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_16_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_16_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { efx_ef10_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_16_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_16_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_16_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { efx_ef10_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_16_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { efx_ef10_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_16_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_16_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_17_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { efx_ef10_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_17_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { efx_ef10_ptp_set_ts_sync_events(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_17_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_17_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_17_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_17_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_ef10_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_17_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_17_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_init(arg1); } return; } } void ldv_io_instance_callback_17_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_probe(arg1); } return; } } void ldv_io_instance_callback_17_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_17_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_remove(arg1); } return; } } void ldv_io_instance_callback_17_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_write(arg1); } return; } } void ldv_io_instance_callback_17_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_17_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { efx_ef10_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_17_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_init(arg1); } return; } } void ldv_io_instance_callback_17_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_probe(arg1); } return; } } void ldv_io_instance_callback_17_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_remove(arg1); } return; } } void ldv_io_instance_callback_17_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_write(arg1); } return; } } void ldv_io_instance_callback_17_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { efx_ef10_update_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_17_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { efx_ef10_describe_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_17_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_17_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_fini(arg1); } return; } } void ldv_io_instance_callback_17_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_init(arg1); } return; } } void ldv_io_instance_callback_17_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_probe(arg1); } return; } } void ldv_io_instance_callback_17_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_ef10_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_17_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_17_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_remove(arg1); } return; } } void ldv_io_instance_callback_17_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_17_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_17_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_17_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_17_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_ef10_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_17_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_ef10_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_17_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_ef10_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_17_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_ef10_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_17_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_ef10_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_17_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_ef10_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_17_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_17_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_17_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_17_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_17_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_17_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ef10_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_17_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_17_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_17_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_17_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { efx_ef10_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_17_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_17_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_17_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { efx_ef10_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_17_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { efx_ef10_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_17_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_17_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_18_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { efx_ef10_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_18_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { efx_ef10_ptp_set_ts_sync_events(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_18_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_18_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_18_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_18_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_ef10_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_18_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_18_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_init(arg1); } return; } } void ldv_io_instance_callback_18_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_probe(arg1); } return; } } void ldv_io_instance_callback_18_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_18_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_remove(arg1); } return; } } void ldv_io_instance_callback_18_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_write(arg1); } return; } } void ldv_io_instance_callback_18_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_18_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { efx_ef10_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_18_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_init(arg1); } return; } } void ldv_io_instance_callback_18_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_probe(arg1); } return; } } void ldv_io_instance_callback_18_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_remove(arg1); } return; } } void ldv_io_instance_callback_18_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_write(arg1); } return; } } void ldv_io_instance_callback_18_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { efx_ef10_update_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_18_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { efx_ef10_describe_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_18_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_18_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_fini(arg1); } return; } } void ldv_io_instance_callback_18_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_init(arg1); } return; } } void ldv_io_instance_callback_18_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_probe(arg1); } return; } } void ldv_io_instance_callback_18_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_ef10_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_18_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_18_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_remove(arg1); } return; } } void ldv_io_instance_callback_18_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_18_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_18_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_18_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_18_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_ef10_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_18_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_ef10_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_18_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_ef10_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_18_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_ef10_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_18_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_ef10_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_18_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_ef10_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_18_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_18_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_18_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_18_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_18_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_18_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ef10_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_18_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_18_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_18_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_18_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { efx_ef10_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_18_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_18_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_18_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { efx_ef10_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_18_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { efx_ef10_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_18_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_18_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mtd_probe(arg1); } return; } } void ldv_io_instance_callback_9_113(int (*arg0)(struct efx_nic * , struct hwtstamp_config * ) , struct efx_nic *arg1 , struct hwtstamp_config *arg2 ) { { { efx_ef10_ptp_set_ts_config(arg1, arg2); } return; } } void ldv_io_instance_callback_9_114(int (*arg0)(struct efx_nic * , _Bool , _Bool ) , struct efx_nic *arg1 , _Bool arg2 , _Bool arg3 ) { { { efx_ef10_ptp_set_ts_sync_events(arg1, (int )arg2, (int )arg3); } return; } } void ldv_io_instance_callback_9_117(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_ptp_write_host_time(arg1, arg2); } return; } } void ldv_io_instance_callback_9_121(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_push_irq_moderation(arg1); } return; } } void ldv_io_instance_callback_9_124(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mac_reconfigure(arg1); } return; } } void ldv_io_instance_callback_9_127(int (*arg0)(struct efx_nic * , enum reset_type ) , struct efx_nic *arg1 , enum reset_type arg2 ) { { { efx_ef10_reset(arg1, arg2); } return; } } void ldv_io_instance_callback_9_132(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_defer_refill(arg1); } return; } } void ldv_io_instance_callback_9_133(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_init(arg1); } return; } } void ldv_io_instance_callback_9_134(int (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_probe(arg1); } return; } } void ldv_io_instance_callback_9_135(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_rx_push_rss_config(arg1); } return; } } void ldv_io_instance_callback_9_136(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_remove(arg1); } return; } } void ldv_io_instance_callback_9_137(void (*arg0)(struct efx_rx_queue * ) , struct efx_rx_queue *arg1 ) { { { efx_ef10_rx_write(arg1); } return; } } void ldv_io_instance_callback_9_143(int (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_ef10_set_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_9_149(int (*arg0)(struct efx_nic * , struct efx_self_tests * ) , struct efx_nic *arg1 , struct efx_self_tests *arg2 ) { { { efx_ef10_test_chip(arg1, arg2); } return; } } void ldv_io_instance_callback_9_154(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_init(arg1); } return; } } void ldv_io_instance_callback_9_155(int (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_probe(arg1); } return; } } void ldv_io_instance_callback_9_156(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_remove(arg1); } return; } } void ldv_io_instance_callback_9_157(void (*arg0)(struct efx_tx_queue * ) , struct efx_tx_queue *arg1 ) { { { efx_ef10_tx_write(arg1); } return; } } void ldv_io_instance_callback_9_158(unsigned long (*arg0)(struct efx_nic * , unsigned long long * , struct rtnl_link_stats64 * ) , struct efx_nic *arg1 , unsigned long long *arg2 , struct rtnl_link_stats64 *arg3 ) { { { efx_ef10_update_stats(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_9_19(unsigned long (*arg0)(struct efx_nic * , unsigned char * ) , struct efx_nic *arg1 , unsigned char *arg2 ) { { { efx_ef10_describe_stats(arg1, arg2); } return; } } void ldv_io_instance_callback_9_22(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_dimension_resources(arg1); } return; } } void ldv_io_instance_callback_9_23(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_fini(arg1); } return; } } void ldv_io_instance_callback_9_24(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_init(arg1); } return; } } void ldv_io_instance_callback_9_25(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_probe(arg1); } return; } } void ldv_io_instance_callback_9_26(int (*arg0)(struct efx_channel * , int ) , struct efx_channel *arg1 , int arg2 ) { { { efx_ef10_ev_process(arg1, arg2); } return; } } void ldv_io_instance_callback_9_29(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_read_ack(arg1); } return; } } void ldv_io_instance_callback_9_30(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_remove(arg1); } return; } } void ldv_io_instance_callback_9_31(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ef10_ev_test_generate(arg1); } return; } } void ldv_io_instance_callback_9_32(int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_clear_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_9_33(unsigned int (*arg0)(struct efx_nic * , enum efx_filter_priority ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 ) { { { efx_ef10_filter_count_rx_used(arg1, arg2); } return; } } void ldv_io_instance_callback_9_34(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_get_rx_id_limit(arg1); } return; } } void ldv_io_instance_callback_9_35(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int * , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int *arg3 , unsigned int arg4 ) { { { efx_ef10_filter_get_rx_ids(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_9_38(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int , struct efx_filter_spec * ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 , struct efx_filter_spec *arg4 ) { { { efx_ef10_filter_get_safe(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_9_41(int (*arg0)(struct efx_nic * , struct efx_filter_spec * , _Bool ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 , _Bool arg3 ) { { { efx_ef10_filter_insert(arg1, arg2, (int )arg3); } return; } } void ldv_io_instance_callback_9_44(int (*arg0)(struct efx_nic * , enum efx_filter_priority , unsigned int ) , struct efx_nic *arg1 , enum efx_filter_priority arg2 , unsigned int arg3 ) { { { efx_ef10_filter_remove_safe(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_9_47(_Bool (*arg0)(struct efx_nic * , unsigned int , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 , unsigned int arg3 ) { { { efx_ef10_filter_rfs_expire_one(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_9_50(int (*arg0)(struct efx_nic * , struct efx_filter_spec * ) , struct efx_nic *arg1 , struct efx_filter_spec *arg2 ) { { { efx_ef10_filter_rfs_insert(arg1, arg2); } return; } } void ldv_io_instance_callback_9_51(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_probe(arg1); } return; } } void ldv_io_instance_callback_9_52(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_remove(arg1); } return; } } void ldv_io_instance_callback_9_53(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_table_restore(arg1); } return; } } void ldv_io_instance_callback_9_54(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_filter_update_rx_scatter(arg1); } return; } } void ldv_io_instance_callback_9_56(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_fini_dmaq(arg1); } return; } } void ldv_io_instance_callback_9_67(void (*arg0)(struct efx_nic * , struct ethtool_wolinfo * ) , struct efx_nic *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ef10_get_wol(arg1, arg2); } return; } } void ldv_io_instance_callback_9_74(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_legacy_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_9_77(enum irqreturn (*arg0)(int , void * ) , int arg1 , void *arg2 ) { { { efx_ef10_msi_interrupt(arg1, arg2); } return; } } void ldv_io_instance_callback_9_80(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_irq_test_generate(arg1); } return; } } void ldv_io_instance_callback_9_81(int (*arg0)(unsigned int * ) , unsigned int *arg1 ) { { { efx_ef10_map_reset_flags(arg1); } return; } } void ldv_io_instance_callback_9_85(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_reboot(arg1); } return; } } void ldv_io_instance_callback_9_86(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mcdi_poll_response(arg1); } return; } } void ldv_io_instance_callback_9_87(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , unsigned long arg4 ) { { { efx_ef10_mcdi_read_response(arg1, arg2, arg3, arg4); } return; } } void ldv_io_instance_callback_9_90(void (*arg0)(struct efx_nic * , union efx_dword * , unsigned long , union efx_dword * , unsigned long ) , struct efx_nic *arg1 , union efx_dword *arg2 , unsigned long arg3 , union efx_dword *arg4 , unsigned long arg5 ) { { { efx_ef10_mcdi_request(arg1, (efx_dword_t const *)arg2, arg3, (efx_dword_t const *)arg4, arg5); } return; } } void ldv_io_instance_callback_9_93(unsigned int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mem_map_size(arg1); } return; } } void ldv_io_instance_callback_9_98(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_mtd_probe(arg1); } return; } } int ldv_io_instance_probe_14_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_14_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_15_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_15_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_16_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_16_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_17_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_17_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_18_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_18_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_9_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_9_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_ef10_probe(arg1); } return (tmp); } } void ldv_io_instance_release_14_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_14_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_15_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_15_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_16_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_16_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_17_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_17_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_18_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_18_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_9_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_io_instance_release_9_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ef10_remove(arg1); } return; } } void ldv_struct_falcon_board_type_io_instance_13(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_13 == 1) { goto case_1; } else { } if (ldv_statevar_13 == 2) { goto case_2; } else { } if (ldv_statevar_13 == 3) { goto case_3; } else { } if (ldv_statevar_13 == 4) { goto case_4; } else { } if (ldv_statevar_13 == 6) { goto case_6; } else { } if (ldv_statevar_13 == 8) { goto case_8; } else { } if (ldv_statevar_13 == 10) { goto case_10; } else { } if (ldv_statevar_13 == 11) { goto case_11; } else { } if (ldv_statevar_13 == 13) { goto case_13; } else { } if (ldv_statevar_13 == 14) { goto case_14; } else { } if (ldv_statevar_13 == 17) { goto case_17; } else { } if (ldv_statevar_13 == 18) { goto case_18; } else { } if (ldv_statevar_13 == 20) { goto case_20; } else { } if (ldv_statevar_13 == 22) { goto case_22; } else { } if (ldv_statevar_13 == 23) { goto case_23; } else { } if (ldv_statevar_13 == 24) { goto case_24; } else { } if (ldv_statevar_13 == 25) { goto case_25; } else { } if (ldv_statevar_13 == 27) { goto case_27; } else { } if (ldv_statevar_13 == 29) { goto case_29; } else { } if (ldv_statevar_13 == 30) { goto case_30; } else { } if (ldv_statevar_13 == 31) { goto case_31; } else { } if (ldv_statevar_13 == 32) { goto case_32; } else { } if (ldv_statevar_13 == 33) { goto case_33; } else { } if (ldv_statevar_13 == 34) { goto case_34; } else { } if (ldv_statevar_13 == 36) { goto case_36; } else { } if (ldv_statevar_13 == 39) { goto case_39; } else { } if (ldv_statevar_13 == 42) { goto case_42; } else { } if (ldv_statevar_13 == 45) { goto case_45; } else { } if (ldv_statevar_13 == 48) { goto case_48; } else { } if (ldv_statevar_13 == 50) { goto case_50; } else { } if (ldv_statevar_13 == 51) { goto case_51; } else { } if (ldv_statevar_13 == 52) { goto case_52; } else { } if (ldv_statevar_13 == 53) { goto case_53; } else { } if (ldv_statevar_13 == 54) { goto case_54; } else { } if (ldv_statevar_13 == 55) { goto case_55; } else { } if (ldv_statevar_13 == 56) { goto case_56; } else { } if (ldv_statevar_13 == 57) { goto case_57; } else { } if (ldv_statevar_13 == 58) { goto case_58; } else { } if (ldv_statevar_13 == 60) { goto case_60; } else { } if (ldv_statevar_13 == 62) { goto case_62; } else { } if (ldv_statevar_13 == 64) { goto case_64; } else { } if (ldv_statevar_13 == 66) { goto case_66; } else { } if (ldv_statevar_13 == 67) { goto case_67; } else { } if (ldv_statevar_13 == 68) { goto case_68; } else { } if (ldv_statevar_13 == 69) { goto case_69; } else { } if (ldv_statevar_13 == 70) { goto case_70; } else { } if (ldv_statevar_13 == 71) { goto case_71; } else { } if (ldv_statevar_13 == 72) { goto case_72; } else { } if (ldv_statevar_13 == 73) { goto case_73; } else { } if (ldv_statevar_13 == 75) { goto case_75; } else { } if (ldv_statevar_13 == 78) { goto case_78; } else { } if (ldv_statevar_13 == 80) { goto case_80; } else { } if (ldv_statevar_13 == 82) { goto case_82; } else { } if (ldv_statevar_13 == 84) { goto case_84; } else { } if (ldv_statevar_13 == 85) { goto case_85; } else { } if (ldv_statevar_13 == 86) { goto case_86; } else { } if (ldv_statevar_13 == 88) { goto case_88; } else { } if (ldv_statevar_13 == 91) { goto case_91; } else { } if (ldv_statevar_13 == 93) { goto case_93; } else { } if (ldv_statevar_13 == 94) { goto case_94; } else { } if (ldv_statevar_13 == 96) { goto case_96; } else { } if (ldv_statevar_13 == 98) { goto case_98; } else { } if (ldv_statevar_13 == 100) { goto case_100; } else { } if (ldv_statevar_13 == 102) { goto case_102; } else { } if (ldv_statevar_13 == 103) { goto case_103; } else { } if (ldv_statevar_13 == 105) { goto case_105; } else { } if (ldv_statevar_13 == 107) { goto case_107; } else { } if (ldv_statevar_13 == 108) { goto case_108; } else { } if (ldv_statevar_13 == 109) { goto case_109; } else { } if (ldv_statevar_13 == 110) { goto case_110; } else { } if (ldv_statevar_13 == 111) { goto case_111; } else { } if (ldv_statevar_13 == 112) { goto case_112; } else { } if (ldv_statevar_13 == 113) { goto case_113; } else { } if (ldv_statevar_13 == 115) { goto case_115; } else { } if (ldv_statevar_13 == 118) { goto case_118; } else { } if (ldv_statevar_13 == 120) { goto case_120; } else { } if (ldv_statevar_13 == 121) { goto case_121; } else { } if (ldv_statevar_13 == 122) { goto case_122; } else { } if (ldv_statevar_13 == 123) { goto case_123; } else { } if (ldv_statevar_13 == 124) { goto case_124; } else { } if (ldv_statevar_13 == 125) { goto case_125; } else { } if (ldv_statevar_13 == 126) { goto case_126; } else { } if (ldv_statevar_13 == 127) { goto case_127; } else { } if (ldv_statevar_13 == 128) { goto case_128; } else { } if (ldv_statevar_13 == 130) { goto case_130; } else { } if (ldv_statevar_13 == 132) { goto case_132; } else { } if (ldv_statevar_13 == 133) { goto case_133; } else { } if (ldv_statevar_13 == 134) { goto case_134; } else { } if (ldv_statevar_13 == 135) { goto case_135; } else { } if (ldv_statevar_13 == 136) { goto case_136; } else { } if (ldv_statevar_13 == 137) { goto case_137; } else { } if (ldv_statevar_13 == 138) { goto case_138; } else { } if (ldv_statevar_13 == 140) { goto case_140; } else { } if (ldv_statevar_13 == 142) { goto case_142; } else { } if (ldv_statevar_13 == 144) { goto case_144; } else { } if (ldv_statevar_13 == 146) { goto case_146; } else { } if (ldv_statevar_13 == 147) { goto case_147; } else { } if (ldv_statevar_13 == 148) { goto case_148; } else { } if (ldv_statevar_13 == 149) { goto case_149; } else { } if (ldv_statevar_13 == 151) { goto case_151; } else { } if (ldv_statevar_13 == 153) { goto case_153; } else { } if (ldv_statevar_13 == 154) { goto case_154; } else { } if (ldv_statevar_13 == 155) { goto case_155; } else { } if (ldv_statevar_13 == 156) { goto case_156; } else { } if (ldv_statevar_13 == 157) { goto case_157; } else { } if (ldv_statevar_13 == 159) { goto case_159; } else { } if (ldv_statevar_13 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_13 = ldv_switch_6(); } goto ldv_57499; case_2: /* CIL Label */ { ldv_io_instance_release_13_2(ldv_13_container_struct_efx_nic_type->remove, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 1; } goto ldv_57499; case_3: /* CIL Label */ { ldv_statevar_13 = ldv_switch_7(); } goto ldv_57499; case_4: /* CIL Label */ { ldv_io_instance_callback_13_4(ldv_13_callback_check_mac_fault, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_6: /* CIL Label */ { ldv_free((void *)ldv_13_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_13_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_13_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_13_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_13_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_13_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_13_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_13_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_13_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_13_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_13_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_13_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_13_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_13_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_13_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_13_resource_union_efx_dword_ptr); ldv_free((void *)ldv_13_resource_union_efx_qword_ptr); ldv_13_ret_default = 1; ldv_statevar_13 = 14; } goto ldv_57499; case_8: /* CIL Label */ { ldv_assume(ldv_13_ret_default != 0); ldv_statevar_13 = ldv_switch_6(); } goto ldv_57499; case_10: /* CIL Label */ { ldv_assume(ldv_13_ret_default == 0); ldv_statevar_13 = ldv_switch_7(); } goto ldv_57499; case_11: /* CIL Label */ { ldv_13_ret_default = ldv_io_instance_probe_13_11(ldv_13_container_struct_efx_nic_type->probe, ldv_13_resource_struct_efx_nic_ptr); ldv_13_ret_default = ldv_filter_err_code(ldv_13_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_13 = 8; } else { ldv_statevar_13 = 10; } goto ldv_57499; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_13_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_13_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_13_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_13_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_13_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_13_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_13_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_13_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_13_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_13_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_13_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_13_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_13_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_13_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_13_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_13_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_13_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_13 = ldv_switch_6(); } goto ldv_57499; case_14: /* CIL Label */ ; goto ldv_57499; case_17: /* CIL Label */ { ldv_io_instance_release_13_17(ldv_13_container_struct_efx_phy_operations->remove, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 1; } goto ldv_57499; case_18: /* CIL Label */ { ldv_io_instance_callback_13_18(ldv_13_callback_copy, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_13_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_13_19(ldv_13_callback_describe_stats, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_19_1_default); ldv_free((void *)ldv_13_ldv_param_19_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_22: /* CIL Label */ { ldv_io_instance_callback_13_22(ldv_13_callback_dimension_resources, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_23: /* CIL Label */ { ldv_io_instance_callback_13_23(ldv_13_callback_ev_fini, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_24: /* CIL Label */ { ldv_io_instance_callback_13_24(ldv_13_callback_ev_init, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_25: /* CIL Label */ { ldv_io_instance_callback_13_25(ldv_13_callback_ev_probe, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_27: /* CIL Label */ { ldv_io_instance_callback_13_26(ldv_13_callback_ev_process, ldv_13_resource_struct_efx_channel_ptr, ldv_13_ldv_param_26_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_29: /* CIL Label */ { ldv_io_instance_callback_13_29(ldv_13_callback_ev_read_ack, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_30: /* CIL Label */ { ldv_io_instance_callback_13_30(ldv_13_callback_ev_remove, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_31: /* CIL Label */ { ldv_io_instance_callback_13_31(ldv_13_callback_ev_test_generate, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_32: /* CIL Label */ { ldv_io_instance_callback_13_32(ldv_13_callback_filter_clear_rx, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_enum_efx_filter_priority); ldv_statevar_13 = 3; } goto ldv_57499; case_33: /* CIL Label */ { ldv_io_instance_callback_13_33(ldv_13_callback_filter_count_rx_used, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_enum_efx_filter_priority); ldv_statevar_13 = 3; } goto ldv_57499; case_34: /* CIL Label */ { ldv_io_instance_callback_13_34(ldv_13_callback_filter_get_rx_id_limit, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_13_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_13_35(ldv_13_callback_filter_get_rx_ids, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_enum_efx_filter_priority, ldv_13_ldv_param_35_2_default, ldv_13_ldv_param_35_3_default); ldv_free((void *)ldv_13_ldv_param_35_2_default); ldv_statevar_13 = 3; } goto ldv_57499; case_39: /* CIL Label */ { ldv_io_instance_callback_13_38(ldv_13_callback_filter_get_safe, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_enum_efx_filter_priority, ldv_13_ldv_param_38_2_default, ldv_13_resource_struct_efx_filter_spec_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_42: /* CIL Label */ { ldv_io_instance_callback_13_41(ldv_13_callback_filter_insert, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_efx_filter_spec_ptr, (int )ldv_13_ldv_param_41_2_default); ldv_statevar_13 = 3; } goto ldv_57499; case_45: /* CIL Label */ { ldv_io_instance_callback_13_44(ldv_13_callback_filter_remove_safe, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_enum_efx_filter_priority, ldv_13_ldv_param_44_2_default); ldv_statevar_13 = 3; } goto ldv_57499; case_48: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_13_47(ldv_13_callback_filter_rfs_expire_one, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_47_1_default, ldv_13_ldv_param_47_2_default); ldv_statevar_13 = 3; } goto ldv_57499; case_50: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_13_50(ldv_13_callback_filter_rfs_insert, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_efx_filter_spec_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_51: /* CIL Label */ { ldv_io_instance_callback_13_51(ldv_13_callback_filter_table_probe, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_52: /* CIL Label */ { ldv_io_instance_callback_13_52(ldv_13_callback_filter_table_remove, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_53: /* CIL Label */ { ldv_io_instance_callback_13_53(ldv_13_callback_filter_table_restore, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_54: /* CIL Label */ { ldv_io_instance_callback_13_54(ldv_13_callback_filter_update_rx_scatter, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_55: /* CIL Label */ { ldv_io_instance_callback_13_55(ldv_13_callback_fini, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_56: /* CIL Label */ { ldv_io_instance_callback_13_56(ldv_13_callback_fini_dmaq, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_57: /* CIL Label */ ; if ((unsigned long )ldv_13_callback_finish_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_13_57(ldv_13_callback_finish_flush, ldv_13_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_13 = 3; goto ldv_57499; case_58: /* CIL Label */ ; if ((unsigned long )ldv_13_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_13_58(ldv_13_callback_func_6_ptr, ldv_13_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_13 = 3; goto ldv_57499; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_13_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_13_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_13_59(ldv_13_callback_get_module_eeprom, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_ethtool_eeprom_ptr, ldv_13_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_13_ldv_param_59_2_default); ldv_statevar_13 = 3; } goto ldv_57499; case_62: /* CIL Label */ ; if ((unsigned long )ldv_13_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_13_62(ldv_13_callback_get_module_info, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_13 = 3; goto ldv_57499; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_13_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_13_63(ldv_13_callback_get_name, ldv_13_resource_struct_efx_channel_ptr, ldv_13_ldv_param_63_1_default, ldv_13_ldv_param_63_2_default); ldv_free((void *)ldv_13_ldv_param_63_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_66: /* CIL Label */ { ldv_io_instance_callback_13_66(ldv_13_callback_get_settings, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_ethtool_cmd_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_67: /* CIL Label */ { ldv_io_instance_callback_13_67(ldv_13_callback_get_wol, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_68: /* CIL Label */ ; if ((unsigned long )ldv_13_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_13_68(ldv_13_callback_handle_global_event, ldv_13_resource_struct_efx_channel_ptr, ldv_13_resource_union_efx_qword_ptr); } } else { } ldv_statevar_13 = 3; goto ldv_57499; case_69: /* CIL Label */ { ldv_io_instance_callback_13_69(ldv_13_callback_handle_no_channel, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_70: /* CIL Label */ { ldv_io_instance_callback_13_70(ldv_13_callback_init, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_71: /* CIL Label */ { ldv_io_instance_callback_13_71(ldv_13_callback_init_phy, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_72: /* CIL Label */ { ldv_io_instance_callback_13_72(ldv_13_callback_irq_disable_non_ev, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_73: /* CIL Label */ { ldv_io_instance_callback_13_73(ldv_13_callback_irq_enable_master, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_75: /* CIL Label */ { ldv_io_instance_callback_13_74(ldv_13_callback_irq_handle_legacy, ldv_13_ldv_param_74_0_default, (void *)ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_78: /* CIL Label */ { ldv_io_instance_callback_13_77(ldv_13_callback_irq_handle_msi, ldv_13_ldv_param_77_0_default, (void *)ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_80: /* CIL Label */ { ldv_io_instance_callback_13_80(ldv_13_callback_irq_test_generate, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_13_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_13_81(ldv_13_callback_map_reset_flags, ldv_13_ldv_param_81_0_default); ldv_free((void *)ldv_13_ldv_param_81_0_default); ldv_statevar_13 = 3; } goto ldv_57499; case_84: /* CIL Label */ { ldv_io_instance_callback_13_84(ldv_13_callback_map_reset_reason, ldv_13_resource_enum_reset_type); ldv_statevar_13 = 3; } goto ldv_57499; case_85: /* CIL Label */ { ldv_io_instance_callback_13_85(ldv_13_callback_mcdi_poll_reboot, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_86: /* CIL Label */ { ldv_io_instance_callback_13_86(ldv_13_callback_mcdi_poll_response, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_88: /* CIL Label */ { ldv_io_instance_callback_13_87(ldv_13_callback_mcdi_read_response, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_union_efx_dword_ptr, ldv_13_ldv_param_87_2_default, ldv_13_ldv_param_87_3_default); ldv_statevar_13 = 3; } goto ldv_57499; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_13_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_13_90(ldv_13_callback_mcdi_request, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_union_efx_dword_ptr, ldv_13_ldv_param_90_2_default, ldv_13_ldv_param_90_3_default, ldv_13_ldv_param_90_4_default); ldv_free((void *)ldv_13_ldv_param_90_3_default); ldv_statevar_13 = 3; } goto ldv_57499; case_93: /* CIL Label */ { ldv_io_instance_callback_13_93(ldv_13_callback_mem_map_size, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_94: /* CIL Label */ { ldv_io_instance_callback_13_94(ldv_13_callback_monitor, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_96: /* CIL Label */ { ldv_io_instance_callback_13_95(ldv_13_callback_mtd_erase, ldv_13_resource_struct_mtd_info_ptr, ldv_13_ldv_param_95_1_default, ldv_13_ldv_param_95_2_default); ldv_statevar_13 = 3; } goto ldv_57499; case_98: /* CIL Label */ { ldv_io_instance_callback_13_98(ldv_13_callback_mtd_probe, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_13_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_13_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_13_99(ldv_13_callback_mtd_read, ldv_13_resource_struct_mtd_info_ptr, ldv_13_ldv_param_99_1_default, ldv_13_ldv_param_99_2_default, ldv_13_ldv_param_99_3_default, ldv_13_ldv_param_99_4_default); ldv_free((void *)ldv_13_ldv_param_99_3_default); ldv_free((void *)ldv_13_ldv_param_99_4_default); ldv_statevar_13 = 3; } goto ldv_57499; case_102: /* CIL Label */ { ldv_io_instance_callback_13_102(ldv_13_callback_mtd_rename, ldv_13_resource_struct_efx_mtd_partition_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_103: /* CIL Label */ { ldv_io_instance_callback_13_103(ldv_13_callback_mtd_sync, ldv_13_resource_struct_mtd_info_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_13_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_13_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_13_104(ldv_13_callback_mtd_write, ldv_13_resource_struct_mtd_info_ptr, ldv_13_ldv_param_104_1_default, ldv_13_ldv_param_104_2_default, ldv_13_ldv_param_104_3_default, ldv_13_ldv_param_104_4_default); ldv_free((void *)ldv_13_ldv_param_104_3_default); ldv_free((void *)ldv_13_ldv_param_104_4_default); ldv_statevar_13 = 3; } goto ldv_57499; case_107: /* CIL Label */ { ldv_io_instance_callback_13_107(ldv_13_callback_poll, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_108: /* CIL Label */ { ldv_io_instance_callback_13_108(ldv_13_callback_post_remove, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_109: /* CIL Label */ { ldv_io_instance_callback_13_109(ldv_13_callback_pre_probe, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_110: /* CIL Label */ ; if ((unsigned long )ldv_13_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_13_110(ldv_13_callback_prepare_enable_fc_tx, ldv_13_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_13 = 3; goto ldv_57499; case_111: /* CIL Label */ ; if ((unsigned long )ldv_13_callback_prepare_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_13_111(ldv_13_callback_prepare_flush, ldv_13_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_13 = 3; goto ldv_57499; case_112: /* CIL Label */ { ldv_io_instance_callback_13_112(ldv_13_callback_probe_port, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_113: /* CIL Label */ { ldv_io_instance_callback_13_113(ldv_13_callback_ptp_set_ts_config, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_hwtstamp_config_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_115: /* CIL Label */ { ldv_io_instance_callback_13_114(ldv_13_callback_ptp_set_ts_sync_events, ldv_13_resource_struct_efx_nic_ptr, (int )ldv_13_ldv_param_114_1_default, (int )ldv_13_ldv_param_114_2_default); ldv_statevar_13 = 3; } goto ldv_57499; case_118: /* CIL Label */ { ldv_io_instance_callback_13_117(ldv_13_callback_ptp_write_host_time, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_117_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_120: /* CIL Label */ { ldv_io_instance_callback_13_120(ldv_13_callback_pull_stats, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_121: /* CIL Label */ { ldv_io_instance_callback_13_121(ldv_13_callback_push_irq_moderation, ldv_13_resource_struct_efx_channel_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_122: /* CIL Label */ { ldv_io_instance_callback_13_122(ldv_13_callback_receive_skb, ldv_13_resource_struct_efx_channel_ptr, ldv_13_resource_struct_sk_buff_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_123: /* CIL Label */ { ldv_io_instance_callback_13_123(ldv_13_callback_reconfigure, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_124: /* CIL Label */ { ldv_io_instance_callback_13_124(ldv_13_callback_reconfigure_mac, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_125: /* CIL Label */ { ldv_io_instance_callback_13_125(ldv_13_callback_reconfigure_port, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_126: /* CIL Label */ { ldv_io_instance_callback_13_126(ldv_13_callback_remove_port, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_127: /* CIL Label */ { ldv_io_instance_callback_13_127(ldv_13_callback_reset, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_enum_reset_type); ldv_statevar_13 = 3; } goto ldv_57499; case_128: /* CIL Label */ { ldv_io_instance_callback_13_128(ldv_13_callback_resume_wol, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_13_ldv_param_129_1_default = (int *)tmp___27; ldv_io_instance_callback_13_129(ldv_13_callback_run_tests, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_129_1_default, ldv_13_ldv_param_129_2_default); ldv_free((void *)ldv_13_ldv_param_129_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_132: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_13_132(ldv_13_callback_rx_defer_refill, ldv_13_resource_struct_efx_rx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_133: /* CIL Label */ { ldv_io_instance_callback_13_133(ldv_13_callback_rx_init, ldv_13_resource_struct_efx_rx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_134: /* CIL Label */ { ldv_io_instance_callback_13_134(ldv_13_callback_rx_probe, ldv_13_resource_struct_efx_rx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_135: /* CIL Label */ { ldv_io_instance_callback_13_135(ldv_13_callback_rx_push_rss_config, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_136: /* CIL Label */ { ldv_io_instance_callback_13_136(ldv_13_callback_rx_remove, ldv_13_resource_struct_efx_rx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_137: /* CIL Label */ { ldv_io_instance_callback_13_137(ldv_13_callback_rx_write, ldv_13_resource_struct_efx_rx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_138: /* CIL Label */ { ldv_io_instance_callback_13_138(ldv_13_callback_set_id_led, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_enum_efx_led_mode); ldv_statevar_13 = 3; } goto ldv_57499; case_140: /* CIL Label */ ; if ((unsigned long )ldv_13_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_13_139(ldv_13_callback_set_npage_adv, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_139_1_default); } } else { } ldv_statevar_13 = 3; goto ldv_57499; case_142: /* CIL Label */ { ldv_io_instance_callback_13_142(ldv_13_callback_set_settings, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_ethtool_cmd_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_144: /* CIL Label */ { ldv_io_instance_callback_13_143(ldv_13_callback_set_wol, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_143_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_146: /* CIL Label */ { ldv_io_instance_callback_13_146(ldv_13_callback_start_stats, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_147: /* CIL Label */ { ldv_io_instance_callback_13_147(ldv_13_callback_stop_stats, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_148: /* CIL Label */ { ldv_io_instance_callback_13_148(ldv_13_callback_test_alive, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_149: /* CIL Label */ { ldv_io_instance_callback_13_149(ldv_13_callback_test_chip, ldv_13_resource_struct_efx_nic_ptr, ldv_13_resource_struct_efx_self_tests_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_151: /* CIL Label */ { ldv_io_instance_callback_13_150(ldv_13_callback_test_name, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_150_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_153: /* CIL Label */ { ldv_io_instance_callback_13_153(ldv_13_callback_test_nvram, ldv_13_resource_struct_efx_nic_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_154: /* CIL Label */ { ldv_io_instance_callback_13_154(ldv_13_callback_tx_init, ldv_13_resource_struct_efx_tx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_155: /* CIL Label */ { ldv_io_instance_callback_13_155(ldv_13_callback_tx_probe, ldv_13_resource_struct_efx_tx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_156: /* CIL Label */ { ldv_io_instance_callback_13_156(ldv_13_callback_tx_remove, ldv_13_resource_struct_efx_tx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_157: /* CIL Label */ { ldv_io_instance_callback_13_157(ldv_13_callback_tx_write, ldv_13_resource_struct_efx_tx_queue_ptr); ldv_statevar_13 = 3; } goto ldv_57499; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_13_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_13_158(ldv_13_callback_update_stats, ldv_13_resource_struct_efx_nic_ptr, ldv_13_ldv_param_158_1_default, ldv_13_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_13_ldv_param_158_1_default); ldv_statevar_13 = 3; } goto ldv_57499; case_161: /* CIL Label */ { ldv_13_ret_default = ldv_io_instance_probe_13_161(ldv_13_container_struct_efx_phy_operations->probe, ldv_13_resource_struct_efx_nic_ptr); ldv_13_ret_default = ldv_filter_err_code(ldv_13_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_13 = 8; } else { ldv_statevar_13 = 10; } goto ldv_57499; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_57499: ; return; } } void ldv_struct_falcon_board_type_io_instance_14(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_14 == 1) { goto case_1; } else { } if (ldv_statevar_14 == 2) { goto case_2; } else { } if (ldv_statevar_14 == 3) { goto case_3; } else { } if (ldv_statevar_14 == 4) { goto case_4; } else { } if (ldv_statevar_14 == 6) { goto case_6; } else { } if (ldv_statevar_14 == 8) { goto case_8; } else { } if (ldv_statevar_14 == 10) { goto case_10; } else { } if (ldv_statevar_14 == 11) { goto case_11; } else { } if (ldv_statevar_14 == 13) { goto case_13; } else { } if (ldv_statevar_14 == 14) { goto case_14; } else { } if (ldv_statevar_14 == 17) { goto case_17; } else { } if (ldv_statevar_14 == 18) { goto case_18; } else { } if (ldv_statevar_14 == 20) { goto case_20; } else { } if (ldv_statevar_14 == 22) { goto case_22; } else { } if (ldv_statevar_14 == 23) { goto case_23; } else { } if (ldv_statevar_14 == 24) { goto case_24; } else { } if (ldv_statevar_14 == 25) { goto case_25; } else { } if (ldv_statevar_14 == 27) { goto case_27; } else { } if (ldv_statevar_14 == 29) { goto case_29; } else { } if (ldv_statevar_14 == 30) { goto case_30; } else { } if (ldv_statevar_14 == 31) { goto case_31; } else { } if (ldv_statevar_14 == 32) { goto case_32; } else { } if (ldv_statevar_14 == 33) { goto case_33; } else { } if (ldv_statevar_14 == 34) { goto case_34; } else { } if (ldv_statevar_14 == 36) { goto case_36; } else { } if (ldv_statevar_14 == 39) { goto case_39; } else { } if (ldv_statevar_14 == 42) { goto case_42; } else { } if (ldv_statevar_14 == 45) { goto case_45; } else { } if (ldv_statevar_14 == 48) { goto case_48; } else { } if (ldv_statevar_14 == 50) { goto case_50; } else { } if (ldv_statevar_14 == 51) { goto case_51; } else { } if (ldv_statevar_14 == 52) { goto case_52; } else { } if (ldv_statevar_14 == 53) { goto case_53; } else { } if (ldv_statevar_14 == 54) { goto case_54; } else { } if (ldv_statevar_14 == 55) { goto case_55; } else { } if (ldv_statevar_14 == 56) { goto case_56; } else { } if (ldv_statevar_14 == 57) { goto case_57; } else { } if (ldv_statevar_14 == 58) { goto case_58; } else { } if (ldv_statevar_14 == 60) { goto case_60; } else { } if (ldv_statevar_14 == 62) { goto case_62; } else { } if (ldv_statevar_14 == 64) { goto case_64; } else { } if (ldv_statevar_14 == 66) { goto case_66; } else { } if (ldv_statevar_14 == 67) { goto case_67; } else { } if (ldv_statevar_14 == 68) { goto case_68; } else { } if (ldv_statevar_14 == 69) { goto case_69; } else { } if (ldv_statevar_14 == 70) { goto case_70; } else { } if (ldv_statevar_14 == 71) { goto case_71; } else { } if (ldv_statevar_14 == 72) { goto case_72; } else { } if (ldv_statevar_14 == 73) { goto case_73; } else { } if (ldv_statevar_14 == 75) { goto case_75; } else { } if (ldv_statevar_14 == 78) { goto case_78; } else { } if (ldv_statevar_14 == 80) { goto case_80; } else { } if (ldv_statevar_14 == 82) { goto case_82; } else { } if (ldv_statevar_14 == 84) { goto case_84; } else { } if (ldv_statevar_14 == 85) { goto case_85; } else { } if (ldv_statevar_14 == 86) { goto case_86; } else { } if (ldv_statevar_14 == 88) { goto case_88; } else { } if (ldv_statevar_14 == 91) { goto case_91; } else { } if (ldv_statevar_14 == 93) { goto case_93; } else { } if (ldv_statevar_14 == 94) { goto case_94; } else { } if (ldv_statevar_14 == 96) { goto case_96; } else { } if (ldv_statevar_14 == 98) { goto case_98; } else { } if (ldv_statevar_14 == 100) { goto case_100; } else { } if (ldv_statevar_14 == 102) { goto case_102; } else { } if (ldv_statevar_14 == 103) { goto case_103; } else { } if (ldv_statevar_14 == 105) { goto case_105; } else { } if (ldv_statevar_14 == 107) { goto case_107; } else { } if (ldv_statevar_14 == 108) { goto case_108; } else { } if (ldv_statevar_14 == 109) { goto case_109; } else { } if (ldv_statevar_14 == 110) { goto case_110; } else { } if (ldv_statevar_14 == 111) { goto case_111; } else { } if (ldv_statevar_14 == 112) { goto case_112; } else { } if (ldv_statevar_14 == 113) { goto case_113; } else { } if (ldv_statevar_14 == 115) { goto case_115; } else { } if (ldv_statevar_14 == 118) { goto case_118; } else { } if (ldv_statevar_14 == 120) { goto case_120; } else { } if (ldv_statevar_14 == 121) { goto case_121; } else { } if (ldv_statevar_14 == 122) { goto case_122; } else { } if (ldv_statevar_14 == 123) { goto case_123; } else { } if (ldv_statevar_14 == 124) { goto case_124; } else { } if (ldv_statevar_14 == 125) { goto case_125; } else { } if (ldv_statevar_14 == 126) { goto case_126; } else { } if (ldv_statevar_14 == 127) { goto case_127; } else { } if (ldv_statevar_14 == 128) { goto case_128; } else { } if (ldv_statevar_14 == 130) { goto case_130; } else { } if (ldv_statevar_14 == 132) { goto case_132; } else { } if (ldv_statevar_14 == 133) { goto case_133; } else { } if (ldv_statevar_14 == 134) { goto case_134; } else { } if (ldv_statevar_14 == 135) { goto case_135; } else { } if (ldv_statevar_14 == 136) { goto case_136; } else { } if (ldv_statevar_14 == 137) { goto case_137; } else { } if (ldv_statevar_14 == 138) { goto case_138; } else { } if (ldv_statevar_14 == 140) { goto case_140; } else { } if (ldv_statevar_14 == 142) { goto case_142; } else { } if (ldv_statevar_14 == 144) { goto case_144; } else { } if (ldv_statevar_14 == 146) { goto case_146; } else { } if (ldv_statevar_14 == 147) { goto case_147; } else { } if (ldv_statevar_14 == 148) { goto case_148; } else { } if (ldv_statevar_14 == 149) { goto case_149; } else { } if (ldv_statevar_14 == 151) { goto case_151; } else { } if (ldv_statevar_14 == 153) { goto case_153; } else { } if (ldv_statevar_14 == 154) { goto case_154; } else { } if (ldv_statevar_14 == 155) { goto case_155; } else { } if (ldv_statevar_14 == 156) { goto case_156; } else { } if (ldv_statevar_14 == 157) { goto case_157; } else { } if (ldv_statevar_14 == 159) { goto case_159; } else { } if (ldv_statevar_14 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_14 = ldv_switch_6(); } goto ldv_57611; case_2: /* CIL Label */ { ldv_io_instance_release_14_2(ldv_14_container_struct_efx_nic_type->remove, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 1; } goto ldv_57611; case_3: /* CIL Label */ { ldv_statevar_14 = ldv_switch_7(); } goto ldv_57611; case_4: /* CIL Label */ { ldv_io_instance_callback_14_4(ldv_14_callback_check_mac_fault, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_6: /* CIL Label */ { ldv_free((void *)ldv_14_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_14_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_14_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_14_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_14_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_14_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_14_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_14_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_14_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_14_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_14_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_14_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_14_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_14_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_14_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_14_resource_union_efx_dword_ptr); ldv_free((void *)ldv_14_resource_union_efx_qword_ptr); ldv_14_ret_default = 1; ldv_statevar_14 = 14; } goto ldv_57611; case_8: /* CIL Label */ { ldv_assume(ldv_14_ret_default != 0); ldv_statevar_14 = ldv_switch_6(); } goto ldv_57611; case_10: /* CIL Label */ { ldv_assume(ldv_14_ret_default == 0); ldv_statevar_14 = ldv_switch_7(); } goto ldv_57611; case_11: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_14_ret_default = ldv_io_instance_probe_14_11(ldv_14_container_struct_efx_nic_type->probe, ldv_14_resource_struct_efx_nic_ptr); ldv_14_ret_default = ldv_filter_err_code(ldv_14_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_14 = 8; } else { ldv_statevar_14 = 10; } goto ldv_57611; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_14_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_14_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_14_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_14_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_14_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_14_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_14_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_14_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_14_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_14_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_14_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_14_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_14_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_14_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_14_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_14_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_14_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_14 = ldv_switch_6(); } goto ldv_57611; case_14: /* CIL Label */ ; goto ldv_57611; case_17: /* CIL Label */ { ldv_io_instance_release_14_17(ldv_14_container_struct_efx_phy_operations->remove, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 1; } goto ldv_57611; case_18: /* CIL Label */ { ldv_io_instance_callback_14_18(ldv_14_callback_copy, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_14_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_14_19(ldv_14_callback_describe_stats, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_19_1_default); ldv_free((void *)ldv_14_ldv_param_19_1_default); ldv_statevar_14 = 3; } goto ldv_57611; case_22: /* CIL Label */ { ldv_io_instance_callback_14_22(ldv_14_callback_dimension_resources, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_23: /* CIL Label */ { ldv_io_instance_callback_14_23(ldv_14_callback_ev_fini, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_24: /* CIL Label */ { ldv_io_instance_callback_14_24(ldv_14_callback_ev_init, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_25: /* CIL Label */ { ldv_io_instance_callback_14_25(ldv_14_callback_ev_probe, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_27: /* CIL Label */ { ldv_io_instance_callback_14_26(ldv_14_callback_ev_process, ldv_14_resource_struct_efx_channel_ptr, ldv_14_ldv_param_26_1_default); ldv_statevar_14 = 3; } goto ldv_57611; case_29: /* CIL Label */ { ldv_io_instance_callback_14_29(ldv_14_callback_ev_read_ack, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_30: /* CIL Label */ { ldv_io_instance_callback_14_30(ldv_14_callback_ev_remove, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_31: /* CIL Label */ { ldv_io_instance_callback_14_31(ldv_14_callback_ev_test_generate, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_32: /* CIL Label */ { ldv_io_instance_callback_14_32(ldv_14_callback_filter_clear_rx, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_enum_efx_filter_priority); ldv_statevar_14 = 3; } goto ldv_57611; case_33: /* CIL Label */ { ldv_io_instance_callback_14_33(ldv_14_callback_filter_count_rx_used, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_enum_efx_filter_priority); ldv_statevar_14 = 3; } goto ldv_57611; case_34: /* CIL Label */ { ldv_io_instance_callback_14_34(ldv_14_callback_filter_get_rx_id_limit, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_14_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_14_35(ldv_14_callback_filter_get_rx_ids, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_enum_efx_filter_priority, ldv_14_ldv_param_35_2_default, ldv_14_ldv_param_35_3_default); ldv_free((void *)ldv_14_ldv_param_35_2_default); ldv_statevar_14 = 3; } goto ldv_57611; case_39: /* CIL Label */ { ldv_io_instance_callback_14_38(ldv_14_callback_filter_get_safe, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_enum_efx_filter_priority, ldv_14_ldv_param_38_2_default, ldv_14_resource_struct_efx_filter_spec_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_42: /* CIL Label */ { ldv_io_instance_callback_14_41(ldv_14_callback_filter_insert, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_efx_filter_spec_ptr, (int )ldv_14_ldv_param_41_2_default); ldv_statevar_14 = 3; } goto ldv_57611; case_45: /* CIL Label */ { ldv_io_instance_callback_14_44(ldv_14_callback_filter_remove_safe, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_enum_efx_filter_priority, ldv_14_ldv_param_44_2_default); ldv_statevar_14 = 3; } goto ldv_57611; case_48: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_14_47(ldv_14_callback_filter_rfs_expire_one, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_47_1_default, ldv_14_ldv_param_47_2_default); ldv_statevar_14 = 3; } goto ldv_57611; case_50: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_14_50(ldv_14_callback_filter_rfs_insert, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_efx_filter_spec_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_51: /* CIL Label */ { ldv_io_instance_callback_14_51(ldv_14_callback_filter_table_probe, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_52: /* CIL Label */ { ldv_io_instance_callback_14_52(ldv_14_callback_filter_table_remove, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_53: /* CIL Label */ { ldv_io_instance_callback_14_53(ldv_14_callback_filter_table_restore, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_54: /* CIL Label */ { ldv_io_instance_callback_14_54(ldv_14_callback_filter_update_rx_scatter, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_55: /* CIL Label */ { ldv_io_instance_callback_14_55(ldv_14_callback_fini, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_56: /* CIL Label */ { ldv_io_instance_callback_14_56(ldv_14_callback_fini_dmaq, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_57: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_finish_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_14_57(ldv_14_callback_finish_flush, ldv_14_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_58: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_14_58(ldv_14_callback_func_6_ptr, ldv_14_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_14_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_14_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_14_59(ldv_14_callback_get_module_eeprom, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_ethtool_eeprom_ptr, ldv_14_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_14_ldv_param_59_2_default); ldv_statevar_14 = 3; } goto ldv_57611; case_62: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_14_62(ldv_14_callback_get_module_info, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_14_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_14_63(ldv_14_callback_get_name, ldv_14_resource_struct_efx_channel_ptr, ldv_14_ldv_param_63_1_default, ldv_14_ldv_param_63_2_default); ldv_free((void *)ldv_14_ldv_param_63_1_default); ldv_statevar_14 = 3; } goto ldv_57611; case_66: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_get_settings != (unsigned long )((void (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_14_66(ldv_14_callback_get_settings, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_67: /* CIL Label */ { ldv_io_instance_callback_14_67(ldv_14_callback_get_wol, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_68: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_14_68(ldv_14_callback_handle_global_event, ldv_14_resource_struct_efx_channel_ptr, ldv_14_resource_union_efx_qword_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_69: /* CIL Label */ { ldv_io_instance_callback_14_69(ldv_14_callback_handle_no_channel, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_70: /* CIL Label */ { ldv_io_instance_callback_14_70(ldv_14_callback_init, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_71: /* CIL Label */ { ldv_io_instance_callback_14_71(ldv_14_callback_init_phy, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_72: /* CIL Label */ { ldv_io_instance_callback_14_72(ldv_14_callback_irq_disable_non_ev, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_73: /* CIL Label */ { ldv_io_instance_callback_14_73(ldv_14_callback_irq_enable_master, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_75: /* CIL Label */ { ldv_io_instance_callback_14_74(ldv_14_callback_irq_handle_legacy, ldv_14_ldv_param_74_0_default, (void *)ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_78: /* CIL Label */ { ldv_io_instance_callback_14_77(ldv_14_callback_irq_handle_msi, ldv_14_ldv_param_77_0_default, (void *)ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_80: /* CIL Label */ { ldv_io_instance_callback_14_80(ldv_14_callback_irq_test_generate, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_14_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_14_81(ldv_14_callback_map_reset_flags, ldv_14_ldv_param_81_0_default); ldv_free((void *)ldv_14_ldv_param_81_0_default); ldv_statevar_14 = 3; } goto ldv_57611; case_84: /* CIL Label */ { ldv_io_instance_callback_14_84(ldv_14_callback_map_reset_reason, ldv_14_resource_enum_reset_type); ldv_statevar_14 = 3; } goto ldv_57611; case_85: /* CIL Label */ { ldv_io_instance_callback_14_85(ldv_14_callback_mcdi_poll_reboot, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_86: /* CIL Label */ { ldv_io_instance_callback_14_86(ldv_14_callback_mcdi_poll_response, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_88: /* CIL Label */ { ldv_io_instance_callback_14_87(ldv_14_callback_mcdi_read_response, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_union_efx_dword_ptr, ldv_14_ldv_param_87_2_default, ldv_14_ldv_param_87_3_default); ldv_statevar_14 = 3; } goto ldv_57611; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_14_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_14_90(ldv_14_callback_mcdi_request, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_union_efx_dword_ptr, ldv_14_ldv_param_90_2_default, ldv_14_ldv_param_90_3_default, ldv_14_ldv_param_90_4_default); ldv_free((void *)ldv_14_ldv_param_90_3_default); ldv_statevar_14 = 3; } goto ldv_57611; case_93: /* CIL Label */ { ldv_io_instance_callback_14_93(ldv_14_callback_mem_map_size, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_94: /* CIL Label */ { ldv_io_instance_callback_14_94(ldv_14_callback_monitor, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_96: /* CIL Label */ { ldv_io_instance_callback_14_95(ldv_14_callback_mtd_erase, ldv_14_resource_struct_mtd_info_ptr, ldv_14_ldv_param_95_1_default, ldv_14_ldv_param_95_2_default); ldv_statevar_14 = 3; } goto ldv_57611; case_98: /* CIL Label */ { ldv_io_instance_callback_14_98(ldv_14_callback_mtd_probe, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_14_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_14_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_14_99(ldv_14_callback_mtd_read, ldv_14_resource_struct_mtd_info_ptr, ldv_14_ldv_param_99_1_default, ldv_14_ldv_param_99_2_default, ldv_14_ldv_param_99_3_default, ldv_14_ldv_param_99_4_default); ldv_free((void *)ldv_14_ldv_param_99_3_default); ldv_free((void *)ldv_14_ldv_param_99_4_default); ldv_statevar_14 = 3; } goto ldv_57611; case_102: /* CIL Label */ { ldv_io_instance_callback_14_102(ldv_14_callback_mtd_rename, ldv_14_resource_struct_efx_mtd_partition_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_103: /* CIL Label */ { ldv_io_instance_callback_14_103(ldv_14_callback_mtd_sync, ldv_14_resource_struct_mtd_info_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_14_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_14_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_14_104(ldv_14_callback_mtd_write, ldv_14_resource_struct_mtd_info_ptr, ldv_14_ldv_param_104_1_default, ldv_14_ldv_param_104_2_default, ldv_14_ldv_param_104_3_default, ldv_14_ldv_param_104_4_default); ldv_free((void *)ldv_14_ldv_param_104_3_default); ldv_free((void *)ldv_14_ldv_param_104_4_default); ldv_statevar_14 = 3; } goto ldv_57611; case_107: /* CIL Label */ { ldv_io_instance_callback_14_107(ldv_14_callback_poll, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_108: /* CIL Label */ { ldv_io_instance_callback_14_108(ldv_14_callback_post_remove, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_109: /* CIL Label */ { ldv_io_instance_callback_14_109(ldv_14_callback_pre_probe, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_110: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_14_110(ldv_14_callback_prepare_enable_fc_tx, ldv_14_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_111: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_prepare_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_14_111(ldv_14_callback_prepare_flush, ldv_14_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_112: /* CIL Label */ { ldv_io_instance_callback_14_112(ldv_14_callback_probe_port, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_113: /* CIL Label */ { ldv_io_instance_callback_14_113(ldv_14_callback_ptp_set_ts_config, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_hwtstamp_config_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_115: /* CIL Label */ { ldv_io_instance_callback_14_114(ldv_14_callback_ptp_set_ts_sync_events, ldv_14_resource_struct_efx_nic_ptr, (int )ldv_14_ldv_param_114_1_default, (int )ldv_14_ldv_param_114_2_default); ldv_statevar_14 = 3; } goto ldv_57611; case_118: /* CIL Label */ { ldv_io_instance_callback_14_117(ldv_14_callback_ptp_write_host_time, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_117_1_default); ldv_statevar_14 = 3; } goto ldv_57611; case_120: /* CIL Label */ { ldv_io_instance_callback_14_120(ldv_14_callback_pull_stats, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_121: /* CIL Label */ { ldv_io_instance_callback_14_121(ldv_14_callback_push_irq_moderation, ldv_14_resource_struct_efx_channel_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_122: /* CIL Label */ { ldv_io_instance_callback_14_122(ldv_14_callback_receive_skb, ldv_14_resource_struct_efx_channel_ptr, ldv_14_resource_struct_sk_buff_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_123: /* CIL Label */ { ldv_io_instance_callback_14_123(ldv_14_callback_reconfigure, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_124: /* CIL Label */ { ldv_io_instance_callback_14_124(ldv_14_callback_reconfigure_mac, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_125: /* CIL Label */ { ldv_io_instance_callback_14_125(ldv_14_callback_reconfigure_port, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_126: /* CIL Label */ { ldv_io_instance_callback_14_126(ldv_14_callback_remove_port, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_127: /* CIL Label */ { ldv_io_instance_callback_14_127(ldv_14_callback_reset, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_enum_reset_type); ldv_statevar_14 = 3; } goto ldv_57611; case_128: /* CIL Label */ { ldv_io_instance_callback_14_128(ldv_14_callback_resume_wol, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_14_ldv_param_129_1_default = (int *)tmp___27; } if ((unsigned long )ldv_14_callback_run_tests != (unsigned long )((int (*)(struct efx_nic * , int * , unsigned int ))0)) { { ldv_io_instance_callback_14_129(ldv_14_callback_run_tests, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_129_1_default, ldv_14_ldv_param_129_2_default); } } else { } { ldv_free((void *)ldv_14_ldv_param_129_1_default); ldv_statevar_14 = 3; } goto ldv_57611; case_132: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_14_132(ldv_14_callback_rx_defer_refill, ldv_14_resource_struct_efx_rx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_133: /* CIL Label */ { ldv_io_instance_callback_14_133(ldv_14_callback_rx_init, ldv_14_resource_struct_efx_rx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_134: /* CIL Label */ { ldv_io_instance_callback_14_134(ldv_14_callback_rx_probe, ldv_14_resource_struct_efx_rx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_135: /* CIL Label */ { ldv_io_instance_callback_14_135(ldv_14_callback_rx_push_rss_config, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_136: /* CIL Label */ { ldv_io_instance_callback_14_136(ldv_14_callback_rx_remove, ldv_14_resource_struct_efx_rx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_137: /* CIL Label */ { ldv_io_instance_callback_14_137(ldv_14_callback_rx_write, ldv_14_resource_struct_efx_rx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_138: /* CIL Label */ { ldv_io_instance_callback_14_138(ldv_14_callback_set_id_led, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_enum_efx_led_mode); ldv_statevar_14 = 3; } goto ldv_57611; case_140: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_14_139(ldv_14_callback_set_npage_adv, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_139_1_default); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_142: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_set_settings != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_14_142(ldv_14_callback_set_settings, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_144: /* CIL Label */ { ldv_io_instance_callback_14_143(ldv_14_callback_set_wol, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_143_1_default); ldv_statevar_14 = 3; } goto ldv_57611; case_146: /* CIL Label */ { ldv_io_instance_callback_14_146(ldv_14_callback_start_stats, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_147: /* CIL Label */ { ldv_io_instance_callback_14_147(ldv_14_callback_stop_stats, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_148: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_test_alive != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_14_148(ldv_14_callback_test_alive, ldv_14_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_149: /* CIL Label */ { ldv_io_instance_callback_14_149(ldv_14_callback_test_chip, ldv_14_resource_struct_efx_nic_ptr, ldv_14_resource_struct_efx_self_tests_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_151: /* CIL Label */ ; if ((unsigned long )ldv_14_callback_test_name != (unsigned long )((char *(*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_14_150(ldv_14_callback_test_name, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_150_1_default); } } else { } ldv_statevar_14 = 3; goto ldv_57611; case_153: /* CIL Label */ { ldv_io_instance_callback_14_153(ldv_14_callback_test_nvram, ldv_14_resource_struct_efx_nic_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_154: /* CIL Label */ { ldv_io_instance_callback_14_154(ldv_14_callback_tx_init, ldv_14_resource_struct_efx_tx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_155: /* CIL Label */ { ldv_io_instance_callback_14_155(ldv_14_callback_tx_probe, ldv_14_resource_struct_efx_tx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_156: /* CIL Label */ { ldv_io_instance_callback_14_156(ldv_14_callback_tx_remove, ldv_14_resource_struct_efx_tx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_157: /* CIL Label */ { ldv_io_instance_callback_14_157(ldv_14_callback_tx_write, ldv_14_resource_struct_efx_tx_queue_ptr); ldv_statevar_14 = 3; } goto ldv_57611; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_14_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_14_158(ldv_14_callback_update_stats, ldv_14_resource_struct_efx_nic_ptr, ldv_14_ldv_param_158_1_default, ldv_14_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_14_ldv_param_158_1_default); ldv_statevar_14 = 3; } goto ldv_57611; case_161: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_14_ret_default = ldv_io_instance_probe_14_161(ldv_14_container_struct_efx_phy_operations->probe, ldv_14_resource_struct_efx_nic_ptr); ldv_14_ret_default = ldv_filter_err_code(ldv_14_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_14 = 8; } else { ldv_statevar_14 = 10; } goto ldv_57611; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_57611: ; return; } } void ldv_struct_falcon_board_type_io_instance_15(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_15 == 1) { goto case_1; } else { } if (ldv_statevar_15 == 2) { goto case_2; } else { } if (ldv_statevar_15 == 3) { goto case_3; } else { } if (ldv_statevar_15 == 4) { goto case_4; } else { } if (ldv_statevar_15 == 6) { goto case_6; } else { } if (ldv_statevar_15 == 8) { goto case_8; } else { } if (ldv_statevar_15 == 10) { goto case_10; } else { } if (ldv_statevar_15 == 11) { goto case_11; } else { } if (ldv_statevar_15 == 13) { goto case_13; } else { } if (ldv_statevar_15 == 14) { goto case_14; } else { } if (ldv_statevar_15 == 17) { goto case_17; } else { } if (ldv_statevar_15 == 18) { goto case_18; } else { } if (ldv_statevar_15 == 20) { goto case_20; } else { } if (ldv_statevar_15 == 22) { goto case_22; } else { } if (ldv_statevar_15 == 23) { goto case_23; } else { } if (ldv_statevar_15 == 24) { goto case_24; } else { } if (ldv_statevar_15 == 25) { goto case_25; } else { } if (ldv_statevar_15 == 27) { goto case_27; } else { } if (ldv_statevar_15 == 29) { goto case_29; } else { } if (ldv_statevar_15 == 30) { goto case_30; } else { } if (ldv_statevar_15 == 31) { goto case_31; } else { } if (ldv_statevar_15 == 32) { goto case_32; } else { } if (ldv_statevar_15 == 33) { goto case_33; } else { } if (ldv_statevar_15 == 34) { goto case_34; } else { } if (ldv_statevar_15 == 36) { goto case_36; } else { } if (ldv_statevar_15 == 39) { goto case_39; } else { } if (ldv_statevar_15 == 42) { goto case_42; } else { } if (ldv_statevar_15 == 45) { goto case_45; } else { } if (ldv_statevar_15 == 48) { goto case_48; } else { } if (ldv_statevar_15 == 50) { goto case_50; } else { } if (ldv_statevar_15 == 51) { goto case_51; } else { } if (ldv_statevar_15 == 52) { goto case_52; } else { } if (ldv_statevar_15 == 53) { goto case_53; } else { } if (ldv_statevar_15 == 54) { goto case_54; } else { } if (ldv_statevar_15 == 55) { goto case_55; } else { } if (ldv_statevar_15 == 56) { goto case_56; } else { } if (ldv_statevar_15 == 57) { goto case_57; } else { } if (ldv_statevar_15 == 58) { goto case_58; } else { } if (ldv_statevar_15 == 60) { goto case_60; } else { } if (ldv_statevar_15 == 62) { goto case_62; } else { } if (ldv_statevar_15 == 64) { goto case_64; } else { } if (ldv_statevar_15 == 66) { goto case_66; } else { } if (ldv_statevar_15 == 67) { goto case_67; } else { } if (ldv_statevar_15 == 68) { goto case_68; } else { } if (ldv_statevar_15 == 69) { goto case_69; } else { } if (ldv_statevar_15 == 70) { goto case_70; } else { } if (ldv_statevar_15 == 71) { goto case_71; } else { } if (ldv_statevar_15 == 72) { goto case_72; } else { } if (ldv_statevar_15 == 73) { goto case_73; } else { } if (ldv_statevar_15 == 75) { goto case_75; } else { } if (ldv_statevar_15 == 78) { goto case_78; } else { } if (ldv_statevar_15 == 80) { goto case_80; } else { } if (ldv_statevar_15 == 82) { goto case_82; } else { } if (ldv_statevar_15 == 84) { goto case_84; } else { } if (ldv_statevar_15 == 85) { goto case_85; } else { } if (ldv_statevar_15 == 86) { goto case_86; } else { } if (ldv_statevar_15 == 88) { goto case_88; } else { } if (ldv_statevar_15 == 91) { goto case_91; } else { } if (ldv_statevar_15 == 93) { goto case_93; } else { } if (ldv_statevar_15 == 94) { goto case_94; } else { } if (ldv_statevar_15 == 96) { goto case_96; } else { } if (ldv_statevar_15 == 98) { goto case_98; } else { } if (ldv_statevar_15 == 100) { goto case_100; } else { } if (ldv_statevar_15 == 102) { goto case_102; } else { } if (ldv_statevar_15 == 103) { goto case_103; } else { } if (ldv_statevar_15 == 105) { goto case_105; } else { } if (ldv_statevar_15 == 107) { goto case_107; } else { } if (ldv_statevar_15 == 108) { goto case_108; } else { } if (ldv_statevar_15 == 109) { goto case_109; } else { } if (ldv_statevar_15 == 110) { goto case_110; } else { } if (ldv_statevar_15 == 111) { goto case_111; } else { } if (ldv_statevar_15 == 112) { goto case_112; } else { } if (ldv_statevar_15 == 113) { goto case_113; } else { } if (ldv_statevar_15 == 115) { goto case_115; } else { } if (ldv_statevar_15 == 118) { goto case_118; } else { } if (ldv_statevar_15 == 120) { goto case_120; } else { } if (ldv_statevar_15 == 121) { goto case_121; } else { } if (ldv_statevar_15 == 122) { goto case_122; } else { } if (ldv_statevar_15 == 123) { goto case_123; } else { } if (ldv_statevar_15 == 124) { goto case_124; } else { } if (ldv_statevar_15 == 125) { goto case_125; } else { } if (ldv_statevar_15 == 126) { goto case_126; } else { } if (ldv_statevar_15 == 127) { goto case_127; } else { } if (ldv_statevar_15 == 128) { goto case_128; } else { } if (ldv_statevar_15 == 130) { goto case_130; } else { } if (ldv_statevar_15 == 132) { goto case_132; } else { } if (ldv_statevar_15 == 133) { goto case_133; } else { } if (ldv_statevar_15 == 134) { goto case_134; } else { } if (ldv_statevar_15 == 135) { goto case_135; } else { } if (ldv_statevar_15 == 136) { goto case_136; } else { } if (ldv_statevar_15 == 137) { goto case_137; } else { } if (ldv_statevar_15 == 138) { goto case_138; } else { } if (ldv_statevar_15 == 140) { goto case_140; } else { } if (ldv_statevar_15 == 142) { goto case_142; } else { } if (ldv_statevar_15 == 144) { goto case_144; } else { } if (ldv_statevar_15 == 146) { goto case_146; } else { } if (ldv_statevar_15 == 147) { goto case_147; } else { } if (ldv_statevar_15 == 148) { goto case_148; } else { } if (ldv_statevar_15 == 149) { goto case_149; } else { } if (ldv_statevar_15 == 151) { goto case_151; } else { } if (ldv_statevar_15 == 153) { goto case_153; } else { } if (ldv_statevar_15 == 154) { goto case_154; } else { } if (ldv_statevar_15 == 155) { goto case_155; } else { } if (ldv_statevar_15 == 156) { goto case_156; } else { } if (ldv_statevar_15 == 157) { goto case_157; } else { } if (ldv_statevar_15 == 159) { goto case_159; } else { } if (ldv_statevar_15 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_15 = ldv_switch_6(); } goto ldv_57723; case_2: /* CIL Label */ { ldv_io_instance_release_15_2(ldv_15_container_struct_efx_nic_type->remove, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 1; } goto ldv_57723; case_3: /* CIL Label */ { ldv_statevar_15 = ldv_switch_7(); } goto ldv_57723; case_4: /* CIL Label */ { ldv_io_instance_callback_15_4(ldv_15_callback_check_mac_fault, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_6: /* CIL Label */ { ldv_free((void *)ldv_15_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_15_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_15_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_15_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_15_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_15_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_15_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_15_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_15_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_15_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_15_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_15_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_15_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_15_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_15_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_15_resource_union_efx_dword_ptr); ldv_free((void *)ldv_15_resource_union_efx_qword_ptr); ldv_15_ret_default = 1; ldv_statevar_15 = 14; } goto ldv_57723; case_8: /* CIL Label */ { ldv_assume(ldv_15_ret_default != 0); ldv_statevar_15 = ldv_switch_6(); } goto ldv_57723; case_10: /* CIL Label */ { ldv_assume(ldv_15_ret_default == 0); ldv_statevar_15 = ldv_switch_7(); } goto ldv_57723; case_11: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_15_ret_default = ldv_io_instance_probe_15_11(ldv_15_container_struct_efx_nic_type->probe, ldv_15_resource_struct_efx_nic_ptr); ldv_15_ret_default = ldv_filter_err_code(ldv_15_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_15 = 8; } else { ldv_statevar_15 = 10; } goto ldv_57723; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_15_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_15_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_15_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_15_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_15_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_15_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_15_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_15_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_15_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_15_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_15_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_15_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_15_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_15_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_15_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_15_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_15_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_15 = ldv_switch_6(); } goto ldv_57723; case_14: /* CIL Label */ ; goto ldv_57723; case_17: /* CIL Label */ { ldv_io_instance_release_15_17(ldv_15_container_struct_efx_phy_operations->remove, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 1; } goto ldv_57723; case_18: /* CIL Label */ { ldv_io_instance_callback_15_18(ldv_15_callback_copy, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_15_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_15_19(ldv_15_callback_describe_stats, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_19_1_default); ldv_free((void *)ldv_15_ldv_param_19_1_default); ldv_statevar_15 = 3; } goto ldv_57723; case_22: /* CIL Label */ { ldv_io_instance_callback_15_22(ldv_15_callback_dimension_resources, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_23: /* CIL Label */ { ldv_io_instance_callback_15_23(ldv_15_callback_ev_fini, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_24: /* CIL Label */ { ldv_io_instance_callback_15_24(ldv_15_callback_ev_init, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_25: /* CIL Label */ { ldv_io_instance_callback_15_25(ldv_15_callback_ev_probe, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_27: /* CIL Label */ { ldv_io_instance_callback_15_26(ldv_15_callback_ev_process, ldv_15_resource_struct_efx_channel_ptr, ldv_15_ldv_param_26_1_default); ldv_statevar_15 = 3; } goto ldv_57723; case_29: /* CIL Label */ { ldv_io_instance_callback_15_29(ldv_15_callback_ev_read_ack, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_30: /* CIL Label */ { ldv_io_instance_callback_15_30(ldv_15_callback_ev_remove, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_31: /* CIL Label */ { ldv_io_instance_callback_15_31(ldv_15_callback_ev_test_generate, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_32: /* CIL Label */ { ldv_io_instance_callback_15_32(ldv_15_callback_filter_clear_rx, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_enum_efx_filter_priority); ldv_statevar_15 = 3; } goto ldv_57723; case_33: /* CIL Label */ { ldv_io_instance_callback_15_33(ldv_15_callback_filter_count_rx_used, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_enum_efx_filter_priority); ldv_statevar_15 = 3; } goto ldv_57723; case_34: /* CIL Label */ { ldv_io_instance_callback_15_34(ldv_15_callback_filter_get_rx_id_limit, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_15_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_15_35(ldv_15_callback_filter_get_rx_ids, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_enum_efx_filter_priority, ldv_15_ldv_param_35_2_default, ldv_15_ldv_param_35_3_default); ldv_free((void *)ldv_15_ldv_param_35_2_default); ldv_statevar_15 = 3; } goto ldv_57723; case_39: /* CIL Label */ { ldv_io_instance_callback_15_38(ldv_15_callback_filter_get_safe, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_enum_efx_filter_priority, ldv_15_ldv_param_38_2_default, ldv_15_resource_struct_efx_filter_spec_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_42: /* CIL Label */ { ldv_io_instance_callback_15_41(ldv_15_callback_filter_insert, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_efx_filter_spec_ptr, (int )ldv_15_ldv_param_41_2_default); ldv_statevar_15 = 3; } goto ldv_57723; case_45: /* CIL Label */ { ldv_io_instance_callback_15_44(ldv_15_callback_filter_remove_safe, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_enum_efx_filter_priority, ldv_15_ldv_param_44_2_default); ldv_statevar_15 = 3; } goto ldv_57723; case_48: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_15_47(ldv_15_callback_filter_rfs_expire_one, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_47_1_default, ldv_15_ldv_param_47_2_default); ldv_statevar_15 = 3; } goto ldv_57723; case_50: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_15_50(ldv_15_callback_filter_rfs_insert, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_efx_filter_spec_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_51: /* CIL Label */ { ldv_io_instance_callback_15_51(ldv_15_callback_filter_table_probe, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_52: /* CIL Label */ { ldv_io_instance_callback_15_52(ldv_15_callback_filter_table_remove, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_53: /* CIL Label */ { ldv_io_instance_callback_15_53(ldv_15_callback_filter_table_restore, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_54: /* CIL Label */ { ldv_io_instance_callback_15_54(ldv_15_callback_filter_update_rx_scatter, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_55: /* CIL Label */ { ldv_io_instance_callback_15_55(ldv_15_callback_fini, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_56: /* CIL Label */ { ldv_io_instance_callback_15_56(ldv_15_callback_fini_dmaq, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_57: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_finish_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_15_57(ldv_15_callback_finish_flush, ldv_15_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_58: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_15_58(ldv_15_callback_func_6_ptr, ldv_15_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_15_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_15_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_15_59(ldv_15_callback_get_module_eeprom, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_ethtool_eeprom_ptr, ldv_15_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_15_ldv_param_59_2_default); ldv_statevar_15 = 3; } goto ldv_57723; case_62: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_15_62(ldv_15_callback_get_module_info, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_15_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_15_63(ldv_15_callback_get_name, ldv_15_resource_struct_efx_channel_ptr, ldv_15_ldv_param_63_1_default, ldv_15_ldv_param_63_2_default); ldv_free((void *)ldv_15_ldv_param_63_1_default); ldv_statevar_15 = 3; } goto ldv_57723; case_66: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_get_settings != (unsigned long )((void (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_15_66(ldv_15_callback_get_settings, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_67: /* CIL Label */ { ldv_io_instance_callback_15_67(ldv_15_callback_get_wol, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_68: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_15_68(ldv_15_callback_handle_global_event, ldv_15_resource_struct_efx_channel_ptr, ldv_15_resource_union_efx_qword_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_69: /* CIL Label */ { ldv_io_instance_callback_15_69(ldv_15_callback_handle_no_channel, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_70: /* CIL Label */ { ldv_io_instance_callback_15_70(ldv_15_callback_init, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_71: /* CIL Label */ { ldv_io_instance_callback_15_71(ldv_15_callback_init_phy, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_72: /* CIL Label */ { ldv_io_instance_callback_15_72(ldv_15_callback_irq_disable_non_ev, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_73: /* CIL Label */ { ldv_io_instance_callback_15_73(ldv_15_callback_irq_enable_master, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_75: /* CIL Label */ { ldv_io_instance_callback_15_74(ldv_15_callback_irq_handle_legacy, ldv_15_ldv_param_74_0_default, (void *)ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_78: /* CIL Label */ { ldv_io_instance_callback_15_77(ldv_15_callback_irq_handle_msi, ldv_15_ldv_param_77_0_default, (void *)ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_80: /* CIL Label */ { ldv_io_instance_callback_15_80(ldv_15_callback_irq_test_generate, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_15_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_15_81(ldv_15_callback_map_reset_flags, ldv_15_ldv_param_81_0_default); ldv_free((void *)ldv_15_ldv_param_81_0_default); ldv_statevar_15 = 3; } goto ldv_57723; case_84: /* CIL Label */ { ldv_io_instance_callback_15_84(ldv_15_callback_map_reset_reason, ldv_15_resource_enum_reset_type); ldv_statevar_15 = 3; } goto ldv_57723; case_85: /* CIL Label */ { ldv_io_instance_callback_15_85(ldv_15_callback_mcdi_poll_reboot, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_86: /* CIL Label */ { ldv_io_instance_callback_15_86(ldv_15_callback_mcdi_poll_response, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_88: /* CIL Label */ { ldv_io_instance_callback_15_87(ldv_15_callback_mcdi_read_response, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_union_efx_dword_ptr, ldv_15_ldv_param_87_2_default, ldv_15_ldv_param_87_3_default); ldv_statevar_15 = 3; } goto ldv_57723; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_15_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_15_90(ldv_15_callback_mcdi_request, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_union_efx_dword_ptr, ldv_15_ldv_param_90_2_default, ldv_15_ldv_param_90_3_default, ldv_15_ldv_param_90_4_default); ldv_free((void *)ldv_15_ldv_param_90_3_default); ldv_statevar_15 = 3; } goto ldv_57723; case_93: /* CIL Label */ { ldv_io_instance_callback_15_93(ldv_15_callback_mem_map_size, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_94: /* CIL Label */ { ldv_io_instance_callback_15_94(ldv_15_callback_monitor, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_96: /* CIL Label */ { ldv_io_instance_callback_15_95(ldv_15_callback_mtd_erase, ldv_15_resource_struct_mtd_info_ptr, ldv_15_ldv_param_95_1_default, ldv_15_ldv_param_95_2_default); ldv_statevar_15 = 3; } goto ldv_57723; case_98: /* CIL Label */ { ldv_io_instance_callback_15_98(ldv_15_callback_mtd_probe, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_15_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_15_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_15_99(ldv_15_callback_mtd_read, ldv_15_resource_struct_mtd_info_ptr, ldv_15_ldv_param_99_1_default, ldv_15_ldv_param_99_2_default, ldv_15_ldv_param_99_3_default, ldv_15_ldv_param_99_4_default); ldv_free((void *)ldv_15_ldv_param_99_3_default); ldv_free((void *)ldv_15_ldv_param_99_4_default); ldv_statevar_15 = 3; } goto ldv_57723; case_102: /* CIL Label */ { ldv_io_instance_callback_15_102(ldv_15_callback_mtd_rename, ldv_15_resource_struct_efx_mtd_partition_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_103: /* CIL Label */ { ldv_io_instance_callback_15_103(ldv_15_callback_mtd_sync, ldv_15_resource_struct_mtd_info_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_15_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_15_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_15_104(ldv_15_callback_mtd_write, ldv_15_resource_struct_mtd_info_ptr, ldv_15_ldv_param_104_1_default, ldv_15_ldv_param_104_2_default, ldv_15_ldv_param_104_3_default, ldv_15_ldv_param_104_4_default); ldv_free((void *)ldv_15_ldv_param_104_3_default); ldv_free((void *)ldv_15_ldv_param_104_4_default); ldv_statevar_15 = 3; } goto ldv_57723; case_107: /* CIL Label */ { ldv_io_instance_callback_15_107(ldv_15_callback_poll, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_108: /* CIL Label */ { ldv_io_instance_callback_15_108(ldv_15_callback_post_remove, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_109: /* CIL Label */ { ldv_io_instance_callback_15_109(ldv_15_callback_pre_probe, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_110: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_15_110(ldv_15_callback_prepare_enable_fc_tx, ldv_15_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_111: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_prepare_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_15_111(ldv_15_callback_prepare_flush, ldv_15_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_112: /* CIL Label */ { ldv_io_instance_callback_15_112(ldv_15_callback_probe_port, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_113: /* CIL Label */ { ldv_io_instance_callback_15_113(ldv_15_callback_ptp_set_ts_config, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_hwtstamp_config_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_115: /* CIL Label */ { ldv_io_instance_callback_15_114(ldv_15_callback_ptp_set_ts_sync_events, ldv_15_resource_struct_efx_nic_ptr, (int )ldv_15_ldv_param_114_1_default, (int )ldv_15_ldv_param_114_2_default); ldv_statevar_15 = 3; } goto ldv_57723; case_118: /* CIL Label */ { ldv_io_instance_callback_15_117(ldv_15_callback_ptp_write_host_time, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_117_1_default); ldv_statevar_15 = 3; } goto ldv_57723; case_120: /* CIL Label */ { ldv_io_instance_callback_15_120(ldv_15_callback_pull_stats, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_121: /* CIL Label */ { ldv_io_instance_callback_15_121(ldv_15_callback_push_irq_moderation, ldv_15_resource_struct_efx_channel_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_122: /* CIL Label */ { ldv_io_instance_callback_15_122(ldv_15_callback_receive_skb, ldv_15_resource_struct_efx_channel_ptr, ldv_15_resource_struct_sk_buff_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_123: /* CIL Label */ { ldv_io_instance_callback_15_123(ldv_15_callback_reconfigure, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_124: /* CIL Label */ { ldv_io_instance_callback_15_124(ldv_15_callback_reconfigure_mac, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_125: /* CIL Label */ { ldv_io_instance_callback_15_125(ldv_15_callback_reconfigure_port, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_126: /* CIL Label */ { ldv_io_instance_callback_15_126(ldv_15_callback_remove_port, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_127: /* CIL Label */ { ldv_io_instance_callback_15_127(ldv_15_callback_reset, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_enum_reset_type); ldv_statevar_15 = 3; } goto ldv_57723; case_128: /* CIL Label */ { ldv_io_instance_callback_15_128(ldv_15_callback_resume_wol, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_15_ldv_param_129_1_default = (int *)tmp___27; } if ((unsigned long )ldv_15_callback_run_tests != (unsigned long )((int (*)(struct efx_nic * , int * , unsigned int ))0)) { { ldv_io_instance_callback_15_129(ldv_15_callback_run_tests, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_129_1_default, ldv_15_ldv_param_129_2_default); } } else { } { ldv_free((void *)ldv_15_ldv_param_129_1_default); ldv_statevar_15 = 3; } goto ldv_57723; case_132: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_15_132(ldv_15_callback_rx_defer_refill, ldv_15_resource_struct_efx_rx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_133: /* CIL Label */ { ldv_io_instance_callback_15_133(ldv_15_callback_rx_init, ldv_15_resource_struct_efx_rx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_134: /* CIL Label */ { ldv_io_instance_callback_15_134(ldv_15_callback_rx_probe, ldv_15_resource_struct_efx_rx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_135: /* CIL Label */ { ldv_io_instance_callback_15_135(ldv_15_callback_rx_push_rss_config, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_136: /* CIL Label */ { ldv_io_instance_callback_15_136(ldv_15_callback_rx_remove, ldv_15_resource_struct_efx_rx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_137: /* CIL Label */ { ldv_io_instance_callback_15_137(ldv_15_callback_rx_write, ldv_15_resource_struct_efx_rx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_138: /* CIL Label */ { ldv_io_instance_callback_15_138(ldv_15_callback_set_id_led, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_enum_efx_led_mode); ldv_statevar_15 = 3; } goto ldv_57723; case_140: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_15_139(ldv_15_callback_set_npage_adv, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_139_1_default); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_142: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_set_settings != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_15_142(ldv_15_callback_set_settings, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_144: /* CIL Label */ { ldv_io_instance_callback_15_143(ldv_15_callback_set_wol, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_143_1_default); ldv_statevar_15 = 3; } goto ldv_57723; case_146: /* CIL Label */ { ldv_io_instance_callback_15_146(ldv_15_callback_start_stats, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_147: /* CIL Label */ { ldv_io_instance_callback_15_147(ldv_15_callback_stop_stats, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_148: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_test_alive != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_15_148(ldv_15_callback_test_alive, ldv_15_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_149: /* CIL Label */ { ldv_io_instance_callback_15_149(ldv_15_callback_test_chip, ldv_15_resource_struct_efx_nic_ptr, ldv_15_resource_struct_efx_self_tests_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_151: /* CIL Label */ ; if ((unsigned long )ldv_15_callback_test_name != (unsigned long )((char *(*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_15_150(ldv_15_callback_test_name, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_150_1_default); } } else { } ldv_statevar_15 = 3; goto ldv_57723; case_153: /* CIL Label */ { ldv_io_instance_callback_15_153(ldv_15_callback_test_nvram, ldv_15_resource_struct_efx_nic_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_154: /* CIL Label */ { ldv_io_instance_callback_15_154(ldv_15_callback_tx_init, ldv_15_resource_struct_efx_tx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_155: /* CIL Label */ { ldv_io_instance_callback_15_155(ldv_15_callback_tx_probe, ldv_15_resource_struct_efx_tx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_156: /* CIL Label */ { ldv_io_instance_callback_15_156(ldv_15_callback_tx_remove, ldv_15_resource_struct_efx_tx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_157: /* CIL Label */ { ldv_io_instance_callback_15_157(ldv_15_callback_tx_write, ldv_15_resource_struct_efx_tx_queue_ptr); ldv_statevar_15 = 3; } goto ldv_57723; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_15_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_15_158(ldv_15_callback_update_stats, ldv_15_resource_struct_efx_nic_ptr, ldv_15_ldv_param_158_1_default, ldv_15_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_15_ldv_param_158_1_default); ldv_statevar_15 = 3; } goto ldv_57723; case_161: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_15_ret_default = ldv_io_instance_probe_15_161(ldv_15_container_struct_efx_phy_operations->probe, ldv_15_resource_struct_efx_nic_ptr); ldv_15_ret_default = ldv_filter_err_code(ldv_15_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_15 = 8; } else { ldv_statevar_15 = 10; } goto ldv_57723; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_57723: ; return; } } void ldv_struct_falcon_board_type_io_instance_16(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_16 == 1) { goto case_1; } else { } if (ldv_statevar_16 == 2) { goto case_2; } else { } if (ldv_statevar_16 == 3) { goto case_3; } else { } if (ldv_statevar_16 == 4) { goto case_4; } else { } if (ldv_statevar_16 == 6) { goto case_6; } else { } if (ldv_statevar_16 == 8) { goto case_8; } else { } if (ldv_statevar_16 == 10) { goto case_10; } else { } if (ldv_statevar_16 == 11) { goto case_11; } else { } if (ldv_statevar_16 == 13) { goto case_13; } else { } if (ldv_statevar_16 == 14) { goto case_14; } else { } if (ldv_statevar_16 == 17) { goto case_17; } else { } if (ldv_statevar_16 == 18) { goto case_18; } else { } if (ldv_statevar_16 == 20) { goto case_20; } else { } if (ldv_statevar_16 == 22) { goto case_22; } else { } if (ldv_statevar_16 == 23) { goto case_23; } else { } if (ldv_statevar_16 == 24) { goto case_24; } else { } if (ldv_statevar_16 == 25) { goto case_25; } else { } if (ldv_statevar_16 == 27) { goto case_27; } else { } if (ldv_statevar_16 == 29) { goto case_29; } else { } if (ldv_statevar_16 == 30) { goto case_30; } else { } if (ldv_statevar_16 == 31) { goto case_31; } else { } if (ldv_statevar_16 == 32) { goto case_32; } else { } if (ldv_statevar_16 == 33) { goto case_33; } else { } if (ldv_statevar_16 == 34) { goto case_34; } else { } if (ldv_statevar_16 == 36) { goto case_36; } else { } if (ldv_statevar_16 == 39) { goto case_39; } else { } if (ldv_statevar_16 == 42) { goto case_42; } else { } if (ldv_statevar_16 == 45) { goto case_45; } else { } if (ldv_statevar_16 == 48) { goto case_48; } else { } if (ldv_statevar_16 == 50) { goto case_50; } else { } if (ldv_statevar_16 == 51) { goto case_51; } else { } if (ldv_statevar_16 == 52) { goto case_52; } else { } if (ldv_statevar_16 == 53) { goto case_53; } else { } if (ldv_statevar_16 == 54) { goto case_54; } else { } if (ldv_statevar_16 == 55) { goto case_55; } else { } if (ldv_statevar_16 == 56) { goto case_56; } else { } if (ldv_statevar_16 == 57) { goto case_57; } else { } if (ldv_statevar_16 == 58) { goto case_58; } else { } if (ldv_statevar_16 == 60) { goto case_60; } else { } if (ldv_statevar_16 == 62) { goto case_62; } else { } if (ldv_statevar_16 == 64) { goto case_64; } else { } if (ldv_statevar_16 == 66) { goto case_66; } else { } if (ldv_statevar_16 == 67) { goto case_67; } else { } if (ldv_statevar_16 == 68) { goto case_68; } else { } if (ldv_statevar_16 == 69) { goto case_69; } else { } if (ldv_statevar_16 == 70) { goto case_70; } else { } if (ldv_statevar_16 == 71) { goto case_71; } else { } if (ldv_statevar_16 == 72) { goto case_72; } else { } if (ldv_statevar_16 == 73) { goto case_73; } else { } if (ldv_statevar_16 == 75) { goto case_75; } else { } if (ldv_statevar_16 == 78) { goto case_78; } else { } if (ldv_statevar_16 == 80) { goto case_80; } else { } if (ldv_statevar_16 == 82) { goto case_82; } else { } if (ldv_statevar_16 == 84) { goto case_84; } else { } if (ldv_statevar_16 == 85) { goto case_85; } else { } if (ldv_statevar_16 == 86) { goto case_86; } else { } if (ldv_statevar_16 == 88) { goto case_88; } else { } if (ldv_statevar_16 == 91) { goto case_91; } else { } if (ldv_statevar_16 == 93) { goto case_93; } else { } if (ldv_statevar_16 == 94) { goto case_94; } else { } if (ldv_statevar_16 == 96) { goto case_96; } else { } if (ldv_statevar_16 == 98) { goto case_98; } else { } if (ldv_statevar_16 == 100) { goto case_100; } else { } if (ldv_statevar_16 == 102) { goto case_102; } else { } if (ldv_statevar_16 == 103) { goto case_103; } else { } if (ldv_statevar_16 == 105) { goto case_105; } else { } if (ldv_statevar_16 == 107) { goto case_107; } else { } if (ldv_statevar_16 == 108) { goto case_108; } else { } if (ldv_statevar_16 == 109) { goto case_109; } else { } if (ldv_statevar_16 == 110) { goto case_110; } else { } if (ldv_statevar_16 == 111) { goto case_111; } else { } if (ldv_statevar_16 == 112) { goto case_112; } else { } if (ldv_statevar_16 == 113) { goto case_113; } else { } if (ldv_statevar_16 == 115) { goto case_115; } else { } if (ldv_statevar_16 == 118) { goto case_118; } else { } if (ldv_statevar_16 == 120) { goto case_120; } else { } if (ldv_statevar_16 == 121) { goto case_121; } else { } if (ldv_statevar_16 == 122) { goto case_122; } else { } if (ldv_statevar_16 == 123) { goto case_123; } else { } if (ldv_statevar_16 == 124) { goto case_124; } else { } if (ldv_statevar_16 == 125) { goto case_125; } else { } if (ldv_statevar_16 == 126) { goto case_126; } else { } if (ldv_statevar_16 == 127) { goto case_127; } else { } if (ldv_statevar_16 == 128) { goto case_128; } else { } if (ldv_statevar_16 == 130) { goto case_130; } else { } if (ldv_statevar_16 == 132) { goto case_132; } else { } if (ldv_statevar_16 == 133) { goto case_133; } else { } if (ldv_statevar_16 == 134) { goto case_134; } else { } if (ldv_statevar_16 == 135) { goto case_135; } else { } if (ldv_statevar_16 == 136) { goto case_136; } else { } if (ldv_statevar_16 == 137) { goto case_137; } else { } if (ldv_statevar_16 == 138) { goto case_138; } else { } if (ldv_statevar_16 == 140) { goto case_140; } else { } if (ldv_statevar_16 == 142) { goto case_142; } else { } if (ldv_statevar_16 == 144) { goto case_144; } else { } if (ldv_statevar_16 == 146) { goto case_146; } else { } if (ldv_statevar_16 == 147) { goto case_147; } else { } if (ldv_statevar_16 == 148) { goto case_148; } else { } if (ldv_statevar_16 == 149) { goto case_149; } else { } if (ldv_statevar_16 == 151) { goto case_151; } else { } if (ldv_statevar_16 == 153) { goto case_153; } else { } if (ldv_statevar_16 == 154) { goto case_154; } else { } if (ldv_statevar_16 == 155) { goto case_155; } else { } if (ldv_statevar_16 == 156) { goto case_156; } else { } if (ldv_statevar_16 == 157) { goto case_157; } else { } if (ldv_statevar_16 == 159) { goto case_159; } else { } if (ldv_statevar_16 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_16 = ldv_switch_6(); } goto ldv_57835; case_2: /* CIL Label */ { ldv_io_instance_release_16_2(ldv_16_container_struct_efx_nic_type->remove, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 1; } goto ldv_57835; case_3: /* CIL Label */ { ldv_statevar_16 = ldv_switch_7(); } goto ldv_57835; case_4: /* CIL Label */ { ldv_io_instance_callback_16_4(ldv_16_callback_check_mac_fault, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_6: /* CIL Label */ { ldv_free((void *)ldv_16_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_16_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_16_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_16_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_16_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_16_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_16_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_16_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_16_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_16_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_16_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_16_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_16_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_16_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_16_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_16_resource_union_efx_dword_ptr); ldv_free((void *)ldv_16_resource_union_efx_qword_ptr); ldv_16_ret_default = 1; ldv_statevar_16 = 14; } goto ldv_57835; case_8: /* CIL Label */ { ldv_assume(ldv_16_ret_default != 0); ldv_statevar_16 = ldv_switch_6(); } goto ldv_57835; case_10: /* CIL Label */ { ldv_assume(ldv_16_ret_default == 0); ldv_statevar_16 = ldv_switch_7(); } goto ldv_57835; case_11: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_16_ret_default = ldv_io_instance_probe_16_11(ldv_16_container_struct_efx_nic_type->probe, ldv_16_resource_struct_efx_nic_ptr); ldv_16_ret_default = ldv_filter_err_code(ldv_16_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_16 = 8; } else { ldv_statevar_16 = 10; } goto ldv_57835; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_16_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_16_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_16_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_16_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_16_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_16_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_16_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_16_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_16_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_16_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_16_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_16_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_16_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_16_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_16_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_16_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_16_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_16 = ldv_switch_6(); } goto ldv_57835; case_14: /* CIL Label */ ; goto ldv_57835; case_17: /* CIL Label */ { ldv_io_instance_release_16_17(ldv_16_container_struct_efx_phy_operations->remove, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 1; } goto ldv_57835; case_18: /* CIL Label */ { ldv_io_instance_callback_16_18(ldv_16_callback_copy, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_16_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_16_19(ldv_16_callback_describe_stats, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_19_1_default); ldv_free((void *)ldv_16_ldv_param_19_1_default); ldv_statevar_16 = 3; } goto ldv_57835; case_22: /* CIL Label */ { ldv_io_instance_callback_16_22(ldv_16_callback_dimension_resources, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_23: /* CIL Label */ { ldv_io_instance_callback_16_23(ldv_16_callback_ev_fini, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_24: /* CIL Label */ { ldv_io_instance_callback_16_24(ldv_16_callback_ev_init, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_25: /* CIL Label */ { ldv_io_instance_callback_16_25(ldv_16_callback_ev_probe, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_27: /* CIL Label */ { ldv_io_instance_callback_16_26(ldv_16_callback_ev_process, ldv_16_resource_struct_efx_channel_ptr, ldv_16_ldv_param_26_1_default); ldv_statevar_16 = 3; } goto ldv_57835; case_29: /* CIL Label */ { ldv_io_instance_callback_16_29(ldv_16_callback_ev_read_ack, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_30: /* CIL Label */ { ldv_io_instance_callback_16_30(ldv_16_callback_ev_remove, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_31: /* CIL Label */ { ldv_io_instance_callback_16_31(ldv_16_callback_ev_test_generate, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_32: /* CIL Label */ { ldv_io_instance_callback_16_32(ldv_16_callback_filter_clear_rx, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_enum_efx_filter_priority); ldv_statevar_16 = 3; } goto ldv_57835; case_33: /* CIL Label */ { ldv_io_instance_callback_16_33(ldv_16_callback_filter_count_rx_used, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_enum_efx_filter_priority); ldv_statevar_16 = 3; } goto ldv_57835; case_34: /* CIL Label */ { ldv_io_instance_callback_16_34(ldv_16_callback_filter_get_rx_id_limit, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_16_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_16_35(ldv_16_callback_filter_get_rx_ids, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_enum_efx_filter_priority, ldv_16_ldv_param_35_2_default, ldv_16_ldv_param_35_3_default); ldv_free((void *)ldv_16_ldv_param_35_2_default); ldv_statevar_16 = 3; } goto ldv_57835; case_39: /* CIL Label */ { ldv_io_instance_callback_16_38(ldv_16_callback_filter_get_safe, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_enum_efx_filter_priority, ldv_16_ldv_param_38_2_default, ldv_16_resource_struct_efx_filter_spec_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_42: /* CIL Label */ { ldv_io_instance_callback_16_41(ldv_16_callback_filter_insert, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_efx_filter_spec_ptr, (int )ldv_16_ldv_param_41_2_default); ldv_statevar_16 = 3; } goto ldv_57835; case_45: /* CIL Label */ { ldv_io_instance_callback_16_44(ldv_16_callback_filter_remove_safe, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_enum_efx_filter_priority, ldv_16_ldv_param_44_2_default); ldv_statevar_16 = 3; } goto ldv_57835; case_48: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_16_47(ldv_16_callback_filter_rfs_expire_one, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_47_1_default, ldv_16_ldv_param_47_2_default); ldv_statevar_16 = 3; } goto ldv_57835; case_50: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_16_50(ldv_16_callback_filter_rfs_insert, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_efx_filter_spec_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_51: /* CIL Label */ { ldv_io_instance_callback_16_51(ldv_16_callback_filter_table_probe, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_52: /* CIL Label */ { ldv_io_instance_callback_16_52(ldv_16_callback_filter_table_remove, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_53: /* CIL Label */ { ldv_io_instance_callback_16_53(ldv_16_callback_filter_table_restore, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_54: /* CIL Label */ { ldv_io_instance_callback_16_54(ldv_16_callback_filter_update_rx_scatter, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_55: /* CIL Label */ { ldv_io_instance_callback_16_55(ldv_16_callback_fini, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_56: /* CIL Label */ { ldv_io_instance_callback_16_56(ldv_16_callback_fini_dmaq, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_57: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_finish_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_16_57(ldv_16_callback_finish_flush, ldv_16_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_58: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_16_58(ldv_16_callback_func_6_ptr, ldv_16_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_16_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_16_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_16_59(ldv_16_callback_get_module_eeprom, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_ethtool_eeprom_ptr, ldv_16_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_16_ldv_param_59_2_default); ldv_statevar_16 = 3; } goto ldv_57835; case_62: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_16_62(ldv_16_callback_get_module_info, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_16_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_16_63(ldv_16_callback_get_name, ldv_16_resource_struct_efx_channel_ptr, ldv_16_ldv_param_63_1_default, ldv_16_ldv_param_63_2_default); ldv_free((void *)ldv_16_ldv_param_63_1_default); ldv_statevar_16 = 3; } goto ldv_57835; case_66: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_get_settings != (unsigned long )((void (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_16_66(ldv_16_callback_get_settings, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_67: /* CIL Label */ { ldv_io_instance_callback_16_67(ldv_16_callback_get_wol, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_68: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_16_68(ldv_16_callback_handle_global_event, ldv_16_resource_struct_efx_channel_ptr, ldv_16_resource_union_efx_qword_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_69: /* CIL Label */ { ldv_io_instance_callback_16_69(ldv_16_callback_handle_no_channel, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_70: /* CIL Label */ { ldv_io_instance_callback_16_70(ldv_16_callback_init, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_71: /* CIL Label */ { ldv_io_instance_callback_16_71(ldv_16_callback_init_phy, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_72: /* CIL Label */ { ldv_io_instance_callback_16_72(ldv_16_callback_irq_disable_non_ev, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_73: /* CIL Label */ { ldv_io_instance_callback_16_73(ldv_16_callback_irq_enable_master, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_75: /* CIL Label */ { ldv_io_instance_callback_16_74(ldv_16_callback_irq_handle_legacy, ldv_16_ldv_param_74_0_default, (void *)ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_78: /* CIL Label */ { ldv_io_instance_callback_16_77(ldv_16_callback_irq_handle_msi, ldv_16_ldv_param_77_0_default, (void *)ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_80: /* CIL Label */ { ldv_io_instance_callback_16_80(ldv_16_callback_irq_test_generate, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_16_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_16_81(ldv_16_callback_map_reset_flags, ldv_16_ldv_param_81_0_default); ldv_free((void *)ldv_16_ldv_param_81_0_default); ldv_statevar_16 = 3; } goto ldv_57835; case_84: /* CIL Label */ { ldv_io_instance_callback_16_84(ldv_16_callback_map_reset_reason, ldv_16_resource_enum_reset_type); ldv_statevar_16 = 3; } goto ldv_57835; case_85: /* CIL Label */ { ldv_io_instance_callback_16_85(ldv_16_callback_mcdi_poll_reboot, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_86: /* CIL Label */ { ldv_io_instance_callback_16_86(ldv_16_callback_mcdi_poll_response, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_88: /* CIL Label */ { ldv_io_instance_callback_16_87(ldv_16_callback_mcdi_read_response, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_union_efx_dword_ptr, ldv_16_ldv_param_87_2_default, ldv_16_ldv_param_87_3_default); ldv_statevar_16 = 3; } goto ldv_57835; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_16_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_16_90(ldv_16_callback_mcdi_request, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_union_efx_dword_ptr, ldv_16_ldv_param_90_2_default, ldv_16_ldv_param_90_3_default, ldv_16_ldv_param_90_4_default); ldv_free((void *)ldv_16_ldv_param_90_3_default); ldv_statevar_16 = 3; } goto ldv_57835; case_93: /* CIL Label */ { ldv_io_instance_callback_16_93(ldv_16_callback_mem_map_size, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_94: /* CIL Label */ { ldv_io_instance_callback_16_94(ldv_16_callback_monitor, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_96: /* CIL Label */ { ldv_io_instance_callback_16_95(ldv_16_callback_mtd_erase, ldv_16_resource_struct_mtd_info_ptr, ldv_16_ldv_param_95_1_default, ldv_16_ldv_param_95_2_default); ldv_statevar_16 = 3; } goto ldv_57835; case_98: /* CIL Label */ { ldv_io_instance_callback_16_98(ldv_16_callback_mtd_probe, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_16_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_16_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_16_99(ldv_16_callback_mtd_read, ldv_16_resource_struct_mtd_info_ptr, ldv_16_ldv_param_99_1_default, ldv_16_ldv_param_99_2_default, ldv_16_ldv_param_99_3_default, ldv_16_ldv_param_99_4_default); ldv_free((void *)ldv_16_ldv_param_99_3_default); ldv_free((void *)ldv_16_ldv_param_99_4_default); ldv_statevar_16 = 3; } goto ldv_57835; case_102: /* CIL Label */ { ldv_io_instance_callback_16_102(ldv_16_callback_mtd_rename, ldv_16_resource_struct_efx_mtd_partition_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_103: /* CIL Label */ { ldv_io_instance_callback_16_103(ldv_16_callback_mtd_sync, ldv_16_resource_struct_mtd_info_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_16_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_16_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_16_104(ldv_16_callback_mtd_write, ldv_16_resource_struct_mtd_info_ptr, ldv_16_ldv_param_104_1_default, ldv_16_ldv_param_104_2_default, ldv_16_ldv_param_104_3_default, ldv_16_ldv_param_104_4_default); ldv_free((void *)ldv_16_ldv_param_104_3_default); ldv_free((void *)ldv_16_ldv_param_104_4_default); ldv_statevar_16 = 3; } goto ldv_57835; case_107: /* CIL Label */ { ldv_io_instance_callback_16_107(ldv_16_callback_poll, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_108: /* CIL Label */ { ldv_io_instance_callback_16_108(ldv_16_callback_post_remove, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_109: /* CIL Label */ { ldv_io_instance_callback_16_109(ldv_16_callback_pre_probe, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_110: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_16_110(ldv_16_callback_prepare_enable_fc_tx, ldv_16_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_111: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_prepare_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_16_111(ldv_16_callback_prepare_flush, ldv_16_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_112: /* CIL Label */ { ldv_io_instance_callback_16_112(ldv_16_callback_probe_port, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_113: /* CIL Label */ { ldv_io_instance_callback_16_113(ldv_16_callback_ptp_set_ts_config, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_hwtstamp_config_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_115: /* CIL Label */ { ldv_io_instance_callback_16_114(ldv_16_callback_ptp_set_ts_sync_events, ldv_16_resource_struct_efx_nic_ptr, (int )ldv_16_ldv_param_114_1_default, (int )ldv_16_ldv_param_114_2_default); ldv_statevar_16 = 3; } goto ldv_57835; case_118: /* CIL Label */ { ldv_io_instance_callback_16_117(ldv_16_callback_ptp_write_host_time, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_117_1_default); ldv_statevar_16 = 3; } goto ldv_57835; case_120: /* CIL Label */ { ldv_io_instance_callback_16_120(ldv_16_callback_pull_stats, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_121: /* CIL Label */ { ldv_io_instance_callback_16_121(ldv_16_callback_push_irq_moderation, ldv_16_resource_struct_efx_channel_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_122: /* CIL Label */ { ldv_io_instance_callback_16_122(ldv_16_callback_receive_skb, ldv_16_resource_struct_efx_channel_ptr, ldv_16_resource_struct_sk_buff_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_123: /* CIL Label */ { ldv_io_instance_callback_16_123(ldv_16_callback_reconfigure, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_124: /* CIL Label */ { ldv_io_instance_callback_16_124(ldv_16_callback_reconfigure_mac, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_125: /* CIL Label */ { ldv_io_instance_callback_16_125(ldv_16_callback_reconfigure_port, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_126: /* CIL Label */ { ldv_io_instance_callback_16_126(ldv_16_callback_remove_port, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_127: /* CIL Label */ { ldv_io_instance_callback_16_127(ldv_16_callback_reset, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_enum_reset_type); ldv_statevar_16 = 3; } goto ldv_57835; case_128: /* CIL Label */ { ldv_io_instance_callback_16_128(ldv_16_callback_resume_wol, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_16_ldv_param_129_1_default = (int *)tmp___27; } if ((unsigned long )ldv_16_callback_run_tests != (unsigned long )((int (*)(struct efx_nic * , int * , unsigned int ))0)) { { ldv_io_instance_callback_16_129(ldv_16_callback_run_tests, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_129_1_default, ldv_16_ldv_param_129_2_default); } } else { } { ldv_free((void *)ldv_16_ldv_param_129_1_default); ldv_statevar_16 = 3; } goto ldv_57835; case_132: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_16_132(ldv_16_callback_rx_defer_refill, ldv_16_resource_struct_efx_rx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_133: /* CIL Label */ { ldv_io_instance_callback_16_133(ldv_16_callback_rx_init, ldv_16_resource_struct_efx_rx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_134: /* CIL Label */ { ldv_io_instance_callback_16_134(ldv_16_callback_rx_probe, ldv_16_resource_struct_efx_rx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_135: /* CIL Label */ { ldv_io_instance_callback_16_135(ldv_16_callback_rx_push_rss_config, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_136: /* CIL Label */ { ldv_io_instance_callback_16_136(ldv_16_callback_rx_remove, ldv_16_resource_struct_efx_rx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_137: /* CIL Label */ { ldv_io_instance_callback_16_137(ldv_16_callback_rx_write, ldv_16_resource_struct_efx_rx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_138: /* CIL Label */ { ldv_io_instance_callback_16_138(ldv_16_callback_set_id_led, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_enum_efx_led_mode); ldv_statevar_16 = 3; } goto ldv_57835; case_140: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_16_139(ldv_16_callback_set_npage_adv, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_139_1_default); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_142: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_set_settings != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_16_142(ldv_16_callback_set_settings, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_144: /* CIL Label */ { ldv_io_instance_callback_16_143(ldv_16_callback_set_wol, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_143_1_default); ldv_statevar_16 = 3; } goto ldv_57835; case_146: /* CIL Label */ { ldv_io_instance_callback_16_146(ldv_16_callback_start_stats, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_147: /* CIL Label */ { ldv_io_instance_callback_16_147(ldv_16_callback_stop_stats, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_148: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_test_alive != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_16_148(ldv_16_callback_test_alive, ldv_16_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_149: /* CIL Label */ { ldv_io_instance_callback_16_149(ldv_16_callback_test_chip, ldv_16_resource_struct_efx_nic_ptr, ldv_16_resource_struct_efx_self_tests_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_151: /* CIL Label */ ; if ((unsigned long )ldv_16_callback_test_name != (unsigned long )((char *(*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_16_150(ldv_16_callback_test_name, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_150_1_default); } } else { } ldv_statevar_16 = 3; goto ldv_57835; case_153: /* CIL Label */ { ldv_io_instance_callback_16_153(ldv_16_callback_test_nvram, ldv_16_resource_struct_efx_nic_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_154: /* CIL Label */ { ldv_io_instance_callback_16_154(ldv_16_callback_tx_init, ldv_16_resource_struct_efx_tx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_155: /* CIL Label */ { ldv_io_instance_callback_16_155(ldv_16_callback_tx_probe, ldv_16_resource_struct_efx_tx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_156: /* CIL Label */ { ldv_io_instance_callback_16_156(ldv_16_callback_tx_remove, ldv_16_resource_struct_efx_tx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_157: /* CIL Label */ { ldv_io_instance_callback_16_157(ldv_16_callback_tx_write, ldv_16_resource_struct_efx_tx_queue_ptr); ldv_statevar_16 = 3; } goto ldv_57835; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_16_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_16_158(ldv_16_callback_update_stats, ldv_16_resource_struct_efx_nic_ptr, ldv_16_ldv_param_158_1_default, ldv_16_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_16_ldv_param_158_1_default); ldv_statevar_16 = 3; } goto ldv_57835; case_161: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_16_ret_default = ldv_io_instance_probe_16_161(ldv_16_container_struct_efx_phy_operations->probe, ldv_16_resource_struct_efx_nic_ptr); ldv_16_ret_default = ldv_filter_err_code(ldv_16_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_16 = 8; } else { ldv_statevar_16 = 10; } goto ldv_57835; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_57835: ; return; } } void ldv_struct_falcon_board_type_io_instance_17(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_17 == 1) { goto case_1; } else { } if (ldv_statevar_17 == 2) { goto case_2; } else { } if (ldv_statevar_17 == 3) { goto case_3; } else { } if (ldv_statevar_17 == 4) { goto case_4; } else { } if (ldv_statevar_17 == 6) { goto case_6; } else { } if (ldv_statevar_17 == 8) { goto case_8; } else { } if (ldv_statevar_17 == 10) { goto case_10; } else { } if (ldv_statevar_17 == 11) { goto case_11; } else { } if (ldv_statevar_17 == 13) { goto case_13; } else { } if (ldv_statevar_17 == 14) { goto case_14; } else { } if (ldv_statevar_17 == 17) { goto case_17; } else { } if (ldv_statevar_17 == 18) { goto case_18; } else { } if (ldv_statevar_17 == 20) { goto case_20; } else { } if (ldv_statevar_17 == 22) { goto case_22; } else { } if (ldv_statevar_17 == 23) { goto case_23; } else { } if (ldv_statevar_17 == 24) { goto case_24; } else { } if (ldv_statevar_17 == 25) { goto case_25; } else { } if (ldv_statevar_17 == 27) { goto case_27; } else { } if (ldv_statevar_17 == 29) { goto case_29; } else { } if (ldv_statevar_17 == 30) { goto case_30; } else { } if (ldv_statevar_17 == 31) { goto case_31; } else { } if (ldv_statevar_17 == 32) { goto case_32; } else { } if (ldv_statevar_17 == 33) { goto case_33; } else { } if (ldv_statevar_17 == 34) { goto case_34; } else { } if (ldv_statevar_17 == 36) { goto case_36; } else { } if (ldv_statevar_17 == 39) { goto case_39; } else { } if (ldv_statevar_17 == 42) { goto case_42; } else { } if (ldv_statevar_17 == 45) { goto case_45; } else { } if (ldv_statevar_17 == 48) { goto case_48; } else { } if (ldv_statevar_17 == 50) { goto case_50; } else { } if (ldv_statevar_17 == 51) { goto case_51; } else { } if (ldv_statevar_17 == 52) { goto case_52; } else { } if (ldv_statevar_17 == 53) { goto case_53; } else { } if (ldv_statevar_17 == 54) { goto case_54; } else { } if (ldv_statevar_17 == 55) { goto case_55; } else { } if (ldv_statevar_17 == 56) { goto case_56; } else { } if (ldv_statevar_17 == 57) { goto case_57; } else { } if (ldv_statevar_17 == 58) { goto case_58; } else { } if (ldv_statevar_17 == 60) { goto case_60; } else { } if (ldv_statevar_17 == 62) { goto case_62; } else { } if (ldv_statevar_17 == 64) { goto case_64; } else { } if (ldv_statevar_17 == 66) { goto case_66; } else { } if (ldv_statevar_17 == 67) { goto case_67; } else { } if (ldv_statevar_17 == 68) { goto case_68; } else { } if (ldv_statevar_17 == 69) { goto case_69; } else { } if (ldv_statevar_17 == 70) { goto case_70; } else { } if (ldv_statevar_17 == 71) { goto case_71; } else { } if (ldv_statevar_17 == 72) { goto case_72; } else { } if (ldv_statevar_17 == 73) { goto case_73; } else { } if (ldv_statevar_17 == 75) { goto case_75; } else { } if (ldv_statevar_17 == 78) { goto case_78; } else { } if (ldv_statevar_17 == 80) { goto case_80; } else { } if (ldv_statevar_17 == 82) { goto case_82; } else { } if (ldv_statevar_17 == 84) { goto case_84; } else { } if (ldv_statevar_17 == 85) { goto case_85; } else { } if (ldv_statevar_17 == 86) { goto case_86; } else { } if (ldv_statevar_17 == 88) { goto case_88; } else { } if (ldv_statevar_17 == 91) { goto case_91; } else { } if (ldv_statevar_17 == 93) { goto case_93; } else { } if (ldv_statevar_17 == 94) { goto case_94; } else { } if (ldv_statevar_17 == 96) { goto case_96; } else { } if (ldv_statevar_17 == 98) { goto case_98; } else { } if (ldv_statevar_17 == 100) { goto case_100; } else { } if (ldv_statevar_17 == 102) { goto case_102; } else { } if (ldv_statevar_17 == 103) { goto case_103; } else { } if (ldv_statevar_17 == 105) { goto case_105; } else { } if (ldv_statevar_17 == 107) { goto case_107; } else { } if (ldv_statevar_17 == 108) { goto case_108; } else { } if (ldv_statevar_17 == 109) { goto case_109; } else { } if (ldv_statevar_17 == 110) { goto case_110; } else { } if (ldv_statevar_17 == 111) { goto case_111; } else { } if (ldv_statevar_17 == 112) { goto case_112; } else { } if (ldv_statevar_17 == 113) { goto case_113; } else { } if (ldv_statevar_17 == 115) { goto case_115; } else { } if (ldv_statevar_17 == 118) { goto case_118; } else { } if (ldv_statevar_17 == 120) { goto case_120; } else { } if (ldv_statevar_17 == 121) { goto case_121; } else { } if (ldv_statevar_17 == 122) { goto case_122; } else { } if (ldv_statevar_17 == 123) { goto case_123; } else { } if (ldv_statevar_17 == 124) { goto case_124; } else { } if (ldv_statevar_17 == 125) { goto case_125; } else { } if (ldv_statevar_17 == 126) { goto case_126; } else { } if (ldv_statevar_17 == 127) { goto case_127; } else { } if (ldv_statevar_17 == 128) { goto case_128; } else { } if (ldv_statevar_17 == 130) { goto case_130; } else { } if (ldv_statevar_17 == 132) { goto case_132; } else { } if (ldv_statevar_17 == 133) { goto case_133; } else { } if (ldv_statevar_17 == 134) { goto case_134; } else { } if (ldv_statevar_17 == 135) { goto case_135; } else { } if (ldv_statevar_17 == 136) { goto case_136; } else { } if (ldv_statevar_17 == 137) { goto case_137; } else { } if (ldv_statevar_17 == 138) { goto case_138; } else { } if (ldv_statevar_17 == 140) { goto case_140; } else { } if (ldv_statevar_17 == 142) { goto case_142; } else { } if (ldv_statevar_17 == 144) { goto case_144; } else { } if (ldv_statevar_17 == 146) { goto case_146; } else { } if (ldv_statevar_17 == 147) { goto case_147; } else { } if (ldv_statevar_17 == 148) { goto case_148; } else { } if (ldv_statevar_17 == 149) { goto case_149; } else { } if (ldv_statevar_17 == 151) { goto case_151; } else { } if (ldv_statevar_17 == 153) { goto case_153; } else { } if (ldv_statevar_17 == 154) { goto case_154; } else { } if (ldv_statevar_17 == 155) { goto case_155; } else { } if (ldv_statevar_17 == 156) { goto case_156; } else { } if (ldv_statevar_17 == 157) { goto case_157; } else { } if (ldv_statevar_17 == 159) { goto case_159; } else { } if (ldv_statevar_17 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_17 = ldv_switch_6(); } goto ldv_57947; case_2: /* CIL Label */ { ldv_io_instance_release_17_2(ldv_17_container_struct_efx_nic_type->remove, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 1; } goto ldv_57947; case_3: /* CIL Label */ { ldv_statevar_17 = ldv_switch_7(); } goto ldv_57947; case_4: /* CIL Label */ { ldv_io_instance_callback_17_4(ldv_17_callback_check_mac_fault, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_6: /* CIL Label */ { ldv_free((void *)ldv_17_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_17_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_17_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_17_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_17_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_17_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_17_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_17_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_17_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_17_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_17_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_17_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_17_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_17_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_17_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_17_resource_union_efx_dword_ptr); ldv_free((void *)ldv_17_resource_union_efx_qword_ptr); ldv_17_ret_default = 1; ldv_statevar_17 = 14; } goto ldv_57947; case_8: /* CIL Label */ { ldv_assume(ldv_17_ret_default != 0); ldv_statevar_17 = ldv_switch_6(); } goto ldv_57947; case_10: /* CIL Label */ { ldv_assume(ldv_17_ret_default == 0); ldv_statevar_17 = ldv_switch_7(); } goto ldv_57947; case_11: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_17_ret_default = ldv_io_instance_probe_17_11(ldv_17_container_struct_efx_nic_type->probe, ldv_17_resource_struct_efx_nic_ptr); ldv_17_ret_default = ldv_filter_err_code(ldv_17_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_17 = 8; } else { ldv_statevar_17 = 10; } goto ldv_57947; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_17_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_17_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_17_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_17_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_17_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_17_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_17_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_17_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_17_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_17_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_17_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_17_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_17_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_17_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_17_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_17_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_17_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_17 = ldv_switch_6(); } goto ldv_57947; case_14: /* CIL Label */ ; goto ldv_57947; case_17: /* CIL Label */ { ldv_io_instance_release_17_17(ldv_17_container_struct_efx_phy_operations->remove, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 1; } goto ldv_57947; case_18: /* CIL Label */ { ldv_io_instance_callback_17_18(ldv_17_callback_copy, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_17_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_17_19(ldv_17_callback_describe_stats, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_19_1_default); ldv_free((void *)ldv_17_ldv_param_19_1_default); ldv_statevar_17 = 3; } goto ldv_57947; case_22: /* CIL Label */ { ldv_io_instance_callback_17_22(ldv_17_callback_dimension_resources, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_23: /* CIL Label */ { ldv_io_instance_callback_17_23(ldv_17_callback_ev_fini, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_24: /* CIL Label */ { ldv_io_instance_callback_17_24(ldv_17_callback_ev_init, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_25: /* CIL Label */ { ldv_io_instance_callback_17_25(ldv_17_callback_ev_probe, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_27: /* CIL Label */ { ldv_io_instance_callback_17_26(ldv_17_callback_ev_process, ldv_17_resource_struct_efx_channel_ptr, ldv_17_ldv_param_26_1_default); ldv_statevar_17 = 3; } goto ldv_57947; case_29: /* CIL Label */ { ldv_io_instance_callback_17_29(ldv_17_callback_ev_read_ack, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_30: /* CIL Label */ { ldv_io_instance_callback_17_30(ldv_17_callback_ev_remove, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_31: /* CIL Label */ { ldv_io_instance_callback_17_31(ldv_17_callback_ev_test_generate, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_32: /* CIL Label */ { ldv_io_instance_callback_17_32(ldv_17_callback_filter_clear_rx, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_enum_efx_filter_priority); ldv_statevar_17 = 3; } goto ldv_57947; case_33: /* CIL Label */ { ldv_io_instance_callback_17_33(ldv_17_callback_filter_count_rx_used, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_enum_efx_filter_priority); ldv_statevar_17 = 3; } goto ldv_57947; case_34: /* CIL Label */ { ldv_io_instance_callback_17_34(ldv_17_callback_filter_get_rx_id_limit, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_17_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_17_35(ldv_17_callback_filter_get_rx_ids, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_enum_efx_filter_priority, ldv_17_ldv_param_35_2_default, ldv_17_ldv_param_35_3_default); ldv_free((void *)ldv_17_ldv_param_35_2_default); ldv_statevar_17 = 3; } goto ldv_57947; case_39: /* CIL Label */ { ldv_io_instance_callback_17_38(ldv_17_callback_filter_get_safe, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_enum_efx_filter_priority, ldv_17_ldv_param_38_2_default, ldv_17_resource_struct_efx_filter_spec_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_42: /* CIL Label */ { ldv_io_instance_callback_17_41(ldv_17_callback_filter_insert, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_efx_filter_spec_ptr, (int )ldv_17_ldv_param_41_2_default); ldv_statevar_17 = 3; } goto ldv_57947; case_45: /* CIL Label */ { ldv_io_instance_callback_17_44(ldv_17_callback_filter_remove_safe, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_enum_efx_filter_priority, ldv_17_ldv_param_44_2_default); ldv_statevar_17 = 3; } goto ldv_57947; case_48: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_17_47(ldv_17_callback_filter_rfs_expire_one, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_47_1_default, ldv_17_ldv_param_47_2_default); ldv_statevar_17 = 3; } goto ldv_57947; case_50: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_17_50(ldv_17_callback_filter_rfs_insert, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_efx_filter_spec_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_51: /* CIL Label */ { ldv_io_instance_callback_17_51(ldv_17_callback_filter_table_probe, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_52: /* CIL Label */ { ldv_io_instance_callback_17_52(ldv_17_callback_filter_table_remove, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_53: /* CIL Label */ { ldv_io_instance_callback_17_53(ldv_17_callback_filter_table_restore, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_54: /* CIL Label */ { ldv_io_instance_callback_17_54(ldv_17_callback_filter_update_rx_scatter, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_55: /* CIL Label */ { ldv_io_instance_callback_17_55(ldv_17_callback_fini, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_56: /* CIL Label */ { ldv_io_instance_callback_17_56(ldv_17_callback_fini_dmaq, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_57: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_finish_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_17_57(ldv_17_callback_finish_flush, ldv_17_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_58: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_17_58(ldv_17_callback_func_6_ptr, ldv_17_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_17_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_17_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_17_59(ldv_17_callback_get_module_eeprom, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_ethtool_eeprom_ptr, ldv_17_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_17_ldv_param_59_2_default); ldv_statevar_17 = 3; } goto ldv_57947; case_62: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_17_62(ldv_17_callback_get_module_info, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_17_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_17_63(ldv_17_callback_get_name, ldv_17_resource_struct_efx_channel_ptr, ldv_17_ldv_param_63_1_default, ldv_17_ldv_param_63_2_default); ldv_free((void *)ldv_17_ldv_param_63_1_default); ldv_statevar_17 = 3; } goto ldv_57947; case_66: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_get_settings != (unsigned long )((void (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_17_66(ldv_17_callback_get_settings, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_67: /* CIL Label */ { ldv_io_instance_callback_17_67(ldv_17_callback_get_wol, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_68: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_17_68(ldv_17_callback_handle_global_event, ldv_17_resource_struct_efx_channel_ptr, ldv_17_resource_union_efx_qword_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_69: /* CIL Label */ { ldv_io_instance_callback_17_69(ldv_17_callback_handle_no_channel, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_70: /* CIL Label */ { ldv_io_instance_callback_17_70(ldv_17_callback_init, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_71: /* CIL Label */ { ldv_io_instance_callback_17_71(ldv_17_callback_init_phy, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_72: /* CIL Label */ { ldv_io_instance_callback_17_72(ldv_17_callback_irq_disable_non_ev, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_73: /* CIL Label */ { ldv_io_instance_callback_17_73(ldv_17_callback_irq_enable_master, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_75: /* CIL Label */ { ldv_io_instance_callback_17_74(ldv_17_callback_irq_handle_legacy, ldv_17_ldv_param_74_0_default, (void *)ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_78: /* CIL Label */ { ldv_io_instance_callback_17_77(ldv_17_callback_irq_handle_msi, ldv_17_ldv_param_77_0_default, (void *)ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_80: /* CIL Label */ { ldv_io_instance_callback_17_80(ldv_17_callback_irq_test_generate, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_17_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_17_81(ldv_17_callback_map_reset_flags, ldv_17_ldv_param_81_0_default); ldv_free((void *)ldv_17_ldv_param_81_0_default); ldv_statevar_17 = 3; } goto ldv_57947; case_84: /* CIL Label */ { ldv_io_instance_callback_17_84(ldv_17_callback_map_reset_reason, ldv_17_resource_enum_reset_type); ldv_statevar_17 = 3; } goto ldv_57947; case_85: /* CIL Label */ { ldv_io_instance_callback_17_85(ldv_17_callback_mcdi_poll_reboot, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_86: /* CIL Label */ { ldv_io_instance_callback_17_86(ldv_17_callback_mcdi_poll_response, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_88: /* CIL Label */ { ldv_io_instance_callback_17_87(ldv_17_callback_mcdi_read_response, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_union_efx_dword_ptr, ldv_17_ldv_param_87_2_default, ldv_17_ldv_param_87_3_default); ldv_statevar_17 = 3; } goto ldv_57947; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_17_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_17_90(ldv_17_callback_mcdi_request, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_union_efx_dword_ptr, ldv_17_ldv_param_90_2_default, ldv_17_ldv_param_90_3_default, ldv_17_ldv_param_90_4_default); ldv_free((void *)ldv_17_ldv_param_90_3_default); ldv_statevar_17 = 3; } goto ldv_57947; case_93: /* CIL Label */ { ldv_io_instance_callback_17_93(ldv_17_callback_mem_map_size, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_94: /* CIL Label */ { ldv_io_instance_callback_17_94(ldv_17_callback_monitor, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_96: /* CIL Label */ { ldv_io_instance_callback_17_95(ldv_17_callback_mtd_erase, ldv_17_resource_struct_mtd_info_ptr, ldv_17_ldv_param_95_1_default, ldv_17_ldv_param_95_2_default); ldv_statevar_17 = 3; } goto ldv_57947; case_98: /* CIL Label */ { ldv_io_instance_callback_17_98(ldv_17_callback_mtd_probe, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_17_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_17_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_17_99(ldv_17_callback_mtd_read, ldv_17_resource_struct_mtd_info_ptr, ldv_17_ldv_param_99_1_default, ldv_17_ldv_param_99_2_default, ldv_17_ldv_param_99_3_default, ldv_17_ldv_param_99_4_default); ldv_free((void *)ldv_17_ldv_param_99_3_default); ldv_free((void *)ldv_17_ldv_param_99_4_default); ldv_statevar_17 = 3; } goto ldv_57947; case_102: /* CIL Label */ { ldv_io_instance_callback_17_102(ldv_17_callback_mtd_rename, ldv_17_resource_struct_efx_mtd_partition_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_103: /* CIL Label */ { ldv_io_instance_callback_17_103(ldv_17_callback_mtd_sync, ldv_17_resource_struct_mtd_info_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_17_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_17_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_17_104(ldv_17_callback_mtd_write, ldv_17_resource_struct_mtd_info_ptr, ldv_17_ldv_param_104_1_default, ldv_17_ldv_param_104_2_default, ldv_17_ldv_param_104_3_default, ldv_17_ldv_param_104_4_default); ldv_free((void *)ldv_17_ldv_param_104_3_default); ldv_free((void *)ldv_17_ldv_param_104_4_default); ldv_statevar_17 = 3; } goto ldv_57947; case_107: /* CIL Label */ { ldv_io_instance_callback_17_107(ldv_17_callback_poll, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_108: /* CIL Label */ { ldv_io_instance_callback_17_108(ldv_17_callback_post_remove, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_109: /* CIL Label */ { ldv_io_instance_callback_17_109(ldv_17_callback_pre_probe, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_110: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_17_110(ldv_17_callback_prepare_enable_fc_tx, ldv_17_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_111: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_prepare_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_17_111(ldv_17_callback_prepare_flush, ldv_17_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_112: /* CIL Label */ { ldv_io_instance_callback_17_112(ldv_17_callback_probe_port, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_113: /* CIL Label */ { ldv_io_instance_callback_17_113(ldv_17_callback_ptp_set_ts_config, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_hwtstamp_config_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_115: /* CIL Label */ { ldv_io_instance_callback_17_114(ldv_17_callback_ptp_set_ts_sync_events, ldv_17_resource_struct_efx_nic_ptr, (int )ldv_17_ldv_param_114_1_default, (int )ldv_17_ldv_param_114_2_default); ldv_statevar_17 = 3; } goto ldv_57947; case_118: /* CIL Label */ { ldv_io_instance_callback_17_117(ldv_17_callback_ptp_write_host_time, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_117_1_default); ldv_statevar_17 = 3; } goto ldv_57947; case_120: /* CIL Label */ { ldv_io_instance_callback_17_120(ldv_17_callback_pull_stats, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_121: /* CIL Label */ { ldv_io_instance_callback_17_121(ldv_17_callback_push_irq_moderation, ldv_17_resource_struct_efx_channel_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_122: /* CIL Label */ { ldv_io_instance_callback_17_122(ldv_17_callback_receive_skb, ldv_17_resource_struct_efx_channel_ptr, ldv_17_resource_struct_sk_buff_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_123: /* CIL Label */ { ldv_io_instance_callback_17_123(ldv_17_callback_reconfigure, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_124: /* CIL Label */ { ldv_io_instance_callback_17_124(ldv_17_callback_reconfigure_mac, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_125: /* CIL Label */ { ldv_io_instance_callback_17_125(ldv_17_callback_reconfigure_port, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_126: /* CIL Label */ { ldv_io_instance_callback_17_126(ldv_17_callback_remove_port, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_127: /* CIL Label */ { ldv_io_instance_callback_17_127(ldv_17_callback_reset, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_enum_reset_type); ldv_statevar_17 = 3; } goto ldv_57947; case_128: /* CIL Label */ { ldv_io_instance_callback_17_128(ldv_17_callback_resume_wol, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_17_ldv_param_129_1_default = (int *)tmp___27; } if ((unsigned long )ldv_17_callback_run_tests != (unsigned long )((int (*)(struct efx_nic * , int * , unsigned int ))0)) { { ldv_io_instance_callback_17_129(ldv_17_callback_run_tests, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_129_1_default, ldv_17_ldv_param_129_2_default); } } else { } { ldv_free((void *)ldv_17_ldv_param_129_1_default); ldv_statevar_17 = 3; } goto ldv_57947; case_132: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_17_132(ldv_17_callback_rx_defer_refill, ldv_17_resource_struct_efx_rx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_133: /* CIL Label */ { ldv_io_instance_callback_17_133(ldv_17_callback_rx_init, ldv_17_resource_struct_efx_rx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_134: /* CIL Label */ { ldv_io_instance_callback_17_134(ldv_17_callback_rx_probe, ldv_17_resource_struct_efx_rx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_135: /* CIL Label */ { ldv_io_instance_callback_17_135(ldv_17_callback_rx_push_rss_config, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_136: /* CIL Label */ { ldv_io_instance_callback_17_136(ldv_17_callback_rx_remove, ldv_17_resource_struct_efx_rx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_137: /* CIL Label */ { ldv_io_instance_callback_17_137(ldv_17_callback_rx_write, ldv_17_resource_struct_efx_rx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_138: /* CIL Label */ { ldv_io_instance_callback_17_138(ldv_17_callback_set_id_led, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_enum_efx_led_mode); ldv_statevar_17 = 3; } goto ldv_57947; case_140: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_17_139(ldv_17_callback_set_npage_adv, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_139_1_default); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_142: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_set_settings != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_17_142(ldv_17_callback_set_settings, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_144: /* CIL Label */ { ldv_io_instance_callback_17_143(ldv_17_callback_set_wol, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_143_1_default); ldv_statevar_17 = 3; } goto ldv_57947; case_146: /* CIL Label */ { ldv_io_instance_callback_17_146(ldv_17_callback_start_stats, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_147: /* CIL Label */ { ldv_io_instance_callback_17_147(ldv_17_callback_stop_stats, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_148: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_test_alive != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_17_148(ldv_17_callback_test_alive, ldv_17_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_149: /* CIL Label */ { ldv_io_instance_callback_17_149(ldv_17_callback_test_chip, ldv_17_resource_struct_efx_nic_ptr, ldv_17_resource_struct_efx_self_tests_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_151: /* CIL Label */ ; if ((unsigned long )ldv_17_callback_test_name != (unsigned long )((char *(*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_17_150(ldv_17_callback_test_name, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_150_1_default); } } else { } ldv_statevar_17 = 3; goto ldv_57947; case_153: /* CIL Label */ { ldv_io_instance_callback_17_153(ldv_17_callback_test_nvram, ldv_17_resource_struct_efx_nic_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_154: /* CIL Label */ { ldv_io_instance_callback_17_154(ldv_17_callback_tx_init, ldv_17_resource_struct_efx_tx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_155: /* CIL Label */ { ldv_io_instance_callback_17_155(ldv_17_callback_tx_probe, ldv_17_resource_struct_efx_tx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_156: /* CIL Label */ { ldv_io_instance_callback_17_156(ldv_17_callback_tx_remove, ldv_17_resource_struct_efx_tx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_157: /* CIL Label */ { ldv_io_instance_callback_17_157(ldv_17_callback_tx_write, ldv_17_resource_struct_efx_tx_queue_ptr); ldv_statevar_17 = 3; } goto ldv_57947; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_17_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_17_158(ldv_17_callback_update_stats, ldv_17_resource_struct_efx_nic_ptr, ldv_17_ldv_param_158_1_default, ldv_17_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_17_ldv_param_158_1_default); ldv_statevar_17 = 3; } goto ldv_57947; case_161: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_17_ret_default = ldv_io_instance_probe_17_161(ldv_17_container_struct_efx_phy_operations->probe, ldv_17_resource_struct_efx_nic_ptr); ldv_17_ret_default = ldv_filter_err_code(ldv_17_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_17 = 8; } else { ldv_statevar_17 = 10; } goto ldv_57947; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_57947: ; return; } } void ldv_struct_falcon_board_type_io_instance_18(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_18 == 1) { goto case_1; } else { } if (ldv_statevar_18 == 2) { goto case_2; } else { } if (ldv_statevar_18 == 3) { goto case_3; } else { } if (ldv_statevar_18 == 4) { goto case_4; } else { } if (ldv_statevar_18 == 6) { goto case_6; } else { } if (ldv_statevar_18 == 8) { goto case_8; } else { } if (ldv_statevar_18 == 10) { goto case_10; } else { } if (ldv_statevar_18 == 11) { goto case_11; } else { } if (ldv_statevar_18 == 13) { goto case_13; } else { } if (ldv_statevar_18 == 14) { goto case_14; } else { } if (ldv_statevar_18 == 17) { goto case_17; } else { } if (ldv_statevar_18 == 18) { goto case_18; } else { } if (ldv_statevar_18 == 20) { goto case_20; } else { } if (ldv_statevar_18 == 22) { goto case_22; } else { } if (ldv_statevar_18 == 23) { goto case_23; } else { } if (ldv_statevar_18 == 24) { goto case_24; } else { } if (ldv_statevar_18 == 25) { goto case_25; } else { } if (ldv_statevar_18 == 27) { goto case_27; } else { } if (ldv_statevar_18 == 29) { goto case_29; } else { } if (ldv_statevar_18 == 30) { goto case_30; } else { } if (ldv_statevar_18 == 31) { goto case_31; } else { } if (ldv_statevar_18 == 32) { goto case_32; } else { } if (ldv_statevar_18 == 33) { goto case_33; } else { } if (ldv_statevar_18 == 34) { goto case_34; } else { } if (ldv_statevar_18 == 36) { goto case_36; } else { } if (ldv_statevar_18 == 39) { goto case_39; } else { } if (ldv_statevar_18 == 42) { goto case_42; } else { } if (ldv_statevar_18 == 45) { goto case_45; } else { } if (ldv_statevar_18 == 48) { goto case_48; } else { } if (ldv_statevar_18 == 50) { goto case_50; } else { } if (ldv_statevar_18 == 51) { goto case_51; } else { } if (ldv_statevar_18 == 52) { goto case_52; } else { } if (ldv_statevar_18 == 53) { goto case_53; } else { } if (ldv_statevar_18 == 54) { goto case_54; } else { } if (ldv_statevar_18 == 55) { goto case_55; } else { } if (ldv_statevar_18 == 56) { goto case_56; } else { } if (ldv_statevar_18 == 57) { goto case_57; } else { } if (ldv_statevar_18 == 58) { goto case_58; } else { } if (ldv_statevar_18 == 60) { goto case_60; } else { } if (ldv_statevar_18 == 62) { goto case_62; } else { } if (ldv_statevar_18 == 64) { goto case_64; } else { } if (ldv_statevar_18 == 66) { goto case_66; } else { } if (ldv_statevar_18 == 67) { goto case_67; } else { } if (ldv_statevar_18 == 68) { goto case_68; } else { } if (ldv_statevar_18 == 69) { goto case_69; } else { } if (ldv_statevar_18 == 70) { goto case_70; } else { } if (ldv_statevar_18 == 71) { goto case_71; } else { } if (ldv_statevar_18 == 72) { goto case_72; } else { } if (ldv_statevar_18 == 73) { goto case_73; } else { } if (ldv_statevar_18 == 75) { goto case_75; } else { } if (ldv_statevar_18 == 78) { goto case_78; } else { } if (ldv_statevar_18 == 80) { goto case_80; } else { } if (ldv_statevar_18 == 82) { goto case_82; } else { } if (ldv_statevar_18 == 84) { goto case_84; } else { } if (ldv_statevar_18 == 85) { goto case_85; } else { } if (ldv_statevar_18 == 86) { goto case_86; } else { } if (ldv_statevar_18 == 88) { goto case_88; } else { } if (ldv_statevar_18 == 91) { goto case_91; } else { } if (ldv_statevar_18 == 93) { goto case_93; } else { } if (ldv_statevar_18 == 94) { goto case_94; } else { } if (ldv_statevar_18 == 96) { goto case_96; } else { } if (ldv_statevar_18 == 98) { goto case_98; } else { } if (ldv_statevar_18 == 100) { goto case_100; } else { } if (ldv_statevar_18 == 102) { goto case_102; } else { } if (ldv_statevar_18 == 103) { goto case_103; } else { } if (ldv_statevar_18 == 105) { goto case_105; } else { } if (ldv_statevar_18 == 107) { goto case_107; } else { } if (ldv_statevar_18 == 108) { goto case_108; } else { } if (ldv_statevar_18 == 109) { goto case_109; } else { } if (ldv_statevar_18 == 110) { goto case_110; } else { } if (ldv_statevar_18 == 111) { goto case_111; } else { } if (ldv_statevar_18 == 112) { goto case_112; } else { } if (ldv_statevar_18 == 113) { goto case_113; } else { } if (ldv_statevar_18 == 115) { goto case_115; } else { } if (ldv_statevar_18 == 118) { goto case_118; } else { } if (ldv_statevar_18 == 120) { goto case_120; } else { } if (ldv_statevar_18 == 121) { goto case_121; } else { } if (ldv_statevar_18 == 122) { goto case_122; } else { } if (ldv_statevar_18 == 123) { goto case_123; } else { } if (ldv_statevar_18 == 124) { goto case_124; } else { } if (ldv_statevar_18 == 125) { goto case_125; } else { } if (ldv_statevar_18 == 126) { goto case_126; } else { } if (ldv_statevar_18 == 127) { goto case_127; } else { } if (ldv_statevar_18 == 128) { goto case_128; } else { } if (ldv_statevar_18 == 130) { goto case_130; } else { } if (ldv_statevar_18 == 132) { goto case_132; } else { } if (ldv_statevar_18 == 133) { goto case_133; } else { } if (ldv_statevar_18 == 134) { goto case_134; } else { } if (ldv_statevar_18 == 135) { goto case_135; } else { } if (ldv_statevar_18 == 136) { goto case_136; } else { } if (ldv_statevar_18 == 137) { goto case_137; } else { } if (ldv_statevar_18 == 138) { goto case_138; } else { } if (ldv_statevar_18 == 140) { goto case_140; } else { } if (ldv_statevar_18 == 142) { goto case_142; } else { } if (ldv_statevar_18 == 144) { goto case_144; } else { } if (ldv_statevar_18 == 146) { goto case_146; } else { } if (ldv_statevar_18 == 147) { goto case_147; } else { } if (ldv_statevar_18 == 148) { goto case_148; } else { } if (ldv_statevar_18 == 149) { goto case_149; } else { } if (ldv_statevar_18 == 151) { goto case_151; } else { } if (ldv_statevar_18 == 153) { goto case_153; } else { } if (ldv_statevar_18 == 154) { goto case_154; } else { } if (ldv_statevar_18 == 155) { goto case_155; } else { } if (ldv_statevar_18 == 156) { goto case_156; } else { } if (ldv_statevar_18 == 157) { goto case_157; } else { } if (ldv_statevar_18 == 159) { goto case_159; } else { } if (ldv_statevar_18 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_18 = ldv_switch_6(); } goto ldv_58059; case_2: /* CIL Label */ { ldv_io_instance_release_18_2(ldv_18_container_struct_efx_nic_type->remove, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 1; } goto ldv_58059; case_3: /* CIL Label */ { ldv_statevar_18 = ldv_switch_7(); } goto ldv_58059; case_4: /* CIL Label */ { ldv_io_instance_callback_18_4(ldv_18_callback_check_mac_fault, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_6: /* CIL Label */ { ldv_free((void *)ldv_18_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_18_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_18_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_18_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_18_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_18_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_18_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_18_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_18_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_18_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_18_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_18_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_18_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_18_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_18_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_18_resource_union_efx_dword_ptr); ldv_free((void *)ldv_18_resource_union_efx_qword_ptr); ldv_18_ret_default = 1; ldv_statevar_18 = 14; } goto ldv_58059; case_8: /* CIL Label */ { ldv_assume(ldv_18_ret_default != 0); ldv_statevar_18 = ldv_switch_6(); } goto ldv_58059; case_10: /* CIL Label */ { ldv_assume(ldv_18_ret_default == 0); ldv_statevar_18 = ldv_switch_7(); } goto ldv_58059; case_11: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_18_ret_default = ldv_io_instance_probe_18_11(ldv_18_container_struct_efx_nic_type->probe, ldv_18_resource_struct_efx_nic_ptr); ldv_18_ret_default = ldv_filter_err_code(ldv_18_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_18 = 8; } else { ldv_statevar_18 = 10; } goto ldv_58059; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_18_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_18_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_18_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_18_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_18_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_18_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_18_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_18_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_18_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_18_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_18_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_18_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_18_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_18_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_18_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_18_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_18_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_18 = ldv_switch_6(); } goto ldv_58059; case_14: /* CIL Label */ ; goto ldv_58059; case_17: /* CIL Label */ { ldv_io_instance_release_18_17(ldv_18_container_struct_efx_phy_operations->remove, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 1; } goto ldv_58059; case_18: /* CIL Label */ { ldv_io_instance_callback_18_18(ldv_18_callback_copy, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_18_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_18_19(ldv_18_callback_describe_stats, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_19_1_default); ldv_free((void *)ldv_18_ldv_param_19_1_default); ldv_statevar_18 = 3; } goto ldv_58059; case_22: /* CIL Label */ { ldv_io_instance_callback_18_22(ldv_18_callback_dimension_resources, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_23: /* CIL Label */ { ldv_io_instance_callback_18_23(ldv_18_callback_ev_fini, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_24: /* CIL Label */ { ldv_io_instance_callback_18_24(ldv_18_callback_ev_init, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_25: /* CIL Label */ { ldv_io_instance_callback_18_25(ldv_18_callback_ev_probe, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_27: /* CIL Label */ { ldv_io_instance_callback_18_26(ldv_18_callback_ev_process, ldv_18_resource_struct_efx_channel_ptr, ldv_18_ldv_param_26_1_default); ldv_statevar_18 = 3; } goto ldv_58059; case_29: /* CIL Label */ { ldv_io_instance_callback_18_29(ldv_18_callback_ev_read_ack, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_30: /* CIL Label */ { ldv_io_instance_callback_18_30(ldv_18_callback_ev_remove, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_31: /* CIL Label */ { ldv_io_instance_callback_18_31(ldv_18_callback_ev_test_generate, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_32: /* CIL Label */ { ldv_io_instance_callback_18_32(ldv_18_callback_filter_clear_rx, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_enum_efx_filter_priority); ldv_statevar_18 = 3; } goto ldv_58059; case_33: /* CIL Label */ { ldv_io_instance_callback_18_33(ldv_18_callback_filter_count_rx_used, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_enum_efx_filter_priority); ldv_statevar_18 = 3; } goto ldv_58059; case_34: /* CIL Label */ { ldv_io_instance_callback_18_34(ldv_18_callback_filter_get_rx_id_limit, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_18_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_18_35(ldv_18_callback_filter_get_rx_ids, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_enum_efx_filter_priority, ldv_18_ldv_param_35_2_default, ldv_18_ldv_param_35_3_default); ldv_free((void *)ldv_18_ldv_param_35_2_default); ldv_statevar_18 = 3; } goto ldv_58059; case_39: /* CIL Label */ { ldv_io_instance_callback_18_38(ldv_18_callback_filter_get_safe, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_enum_efx_filter_priority, ldv_18_ldv_param_38_2_default, ldv_18_resource_struct_efx_filter_spec_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_42: /* CIL Label */ { ldv_io_instance_callback_18_41(ldv_18_callback_filter_insert, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_efx_filter_spec_ptr, (int )ldv_18_ldv_param_41_2_default); ldv_statevar_18 = 3; } goto ldv_58059; case_45: /* CIL Label */ { ldv_io_instance_callback_18_44(ldv_18_callback_filter_remove_safe, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_enum_efx_filter_priority, ldv_18_ldv_param_44_2_default); ldv_statevar_18 = 3; } goto ldv_58059; case_48: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_18_47(ldv_18_callback_filter_rfs_expire_one, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_47_1_default, ldv_18_ldv_param_47_2_default); ldv_statevar_18 = 3; } goto ldv_58059; case_50: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_18_50(ldv_18_callback_filter_rfs_insert, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_efx_filter_spec_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_51: /* CIL Label */ { ldv_io_instance_callback_18_51(ldv_18_callback_filter_table_probe, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_52: /* CIL Label */ { ldv_io_instance_callback_18_52(ldv_18_callback_filter_table_remove, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_53: /* CIL Label */ { ldv_io_instance_callback_18_53(ldv_18_callback_filter_table_restore, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_54: /* CIL Label */ { ldv_io_instance_callback_18_54(ldv_18_callback_filter_update_rx_scatter, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_55: /* CIL Label */ { ldv_io_instance_callback_18_55(ldv_18_callback_fini, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_56: /* CIL Label */ { ldv_io_instance_callback_18_56(ldv_18_callback_fini_dmaq, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_57: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_finish_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_18_57(ldv_18_callback_finish_flush, ldv_18_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_58: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_18_58(ldv_18_callback_func_6_ptr, ldv_18_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_18_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_18_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_18_59(ldv_18_callback_get_module_eeprom, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_ethtool_eeprom_ptr, ldv_18_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_18_ldv_param_59_2_default); ldv_statevar_18 = 3; } goto ldv_58059; case_62: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_18_62(ldv_18_callback_get_module_info, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_18_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_18_63(ldv_18_callback_get_name, ldv_18_resource_struct_efx_channel_ptr, ldv_18_ldv_param_63_1_default, ldv_18_ldv_param_63_2_default); ldv_free((void *)ldv_18_ldv_param_63_1_default); ldv_statevar_18 = 3; } goto ldv_58059; case_66: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_get_settings != (unsigned long )((void (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_18_66(ldv_18_callback_get_settings, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_67: /* CIL Label */ { ldv_io_instance_callback_18_67(ldv_18_callback_get_wol, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_68: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_18_68(ldv_18_callback_handle_global_event, ldv_18_resource_struct_efx_channel_ptr, ldv_18_resource_union_efx_qword_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_69: /* CIL Label */ { ldv_io_instance_callback_18_69(ldv_18_callback_handle_no_channel, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_70: /* CIL Label */ { ldv_io_instance_callback_18_70(ldv_18_callback_init, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_71: /* CIL Label */ { ldv_io_instance_callback_18_71(ldv_18_callback_init_phy, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_72: /* CIL Label */ { ldv_io_instance_callback_18_72(ldv_18_callback_irq_disable_non_ev, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_73: /* CIL Label */ { ldv_io_instance_callback_18_73(ldv_18_callback_irq_enable_master, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_75: /* CIL Label */ { ldv_io_instance_callback_18_74(ldv_18_callback_irq_handle_legacy, ldv_18_ldv_param_74_0_default, (void *)ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_78: /* CIL Label */ { ldv_io_instance_callback_18_77(ldv_18_callback_irq_handle_msi, ldv_18_ldv_param_77_0_default, (void *)ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_80: /* CIL Label */ { ldv_io_instance_callback_18_80(ldv_18_callback_irq_test_generate, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_18_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_18_81(ldv_18_callback_map_reset_flags, ldv_18_ldv_param_81_0_default); ldv_free((void *)ldv_18_ldv_param_81_0_default); ldv_statevar_18 = 3; } goto ldv_58059; case_84: /* CIL Label */ { ldv_io_instance_callback_18_84(ldv_18_callback_map_reset_reason, ldv_18_resource_enum_reset_type); ldv_statevar_18 = 3; } goto ldv_58059; case_85: /* CIL Label */ { ldv_io_instance_callback_18_85(ldv_18_callback_mcdi_poll_reboot, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_86: /* CIL Label */ { ldv_io_instance_callback_18_86(ldv_18_callback_mcdi_poll_response, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_88: /* CIL Label */ { ldv_io_instance_callback_18_87(ldv_18_callback_mcdi_read_response, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_union_efx_dword_ptr, ldv_18_ldv_param_87_2_default, ldv_18_ldv_param_87_3_default); ldv_statevar_18 = 3; } goto ldv_58059; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_18_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_18_90(ldv_18_callback_mcdi_request, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_union_efx_dword_ptr, ldv_18_ldv_param_90_2_default, ldv_18_ldv_param_90_3_default, ldv_18_ldv_param_90_4_default); ldv_free((void *)ldv_18_ldv_param_90_3_default); ldv_statevar_18 = 3; } goto ldv_58059; case_93: /* CIL Label */ { ldv_io_instance_callback_18_93(ldv_18_callback_mem_map_size, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_94: /* CIL Label */ { ldv_io_instance_callback_18_94(ldv_18_callback_monitor, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_96: /* CIL Label */ { ldv_io_instance_callback_18_95(ldv_18_callback_mtd_erase, ldv_18_resource_struct_mtd_info_ptr, ldv_18_ldv_param_95_1_default, ldv_18_ldv_param_95_2_default); ldv_statevar_18 = 3; } goto ldv_58059; case_98: /* CIL Label */ { ldv_io_instance_callback_18_98(ldv_18_callback_mtd_probe, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_18_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_18_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_18_99(ldv_18_callback_mtd_read, ldv_18_resource_struct_mtd_info_ptr, ldv_18_ldv_param_99_1_default, ldv_18_ldv_param_99_2_default, ldv_18_ldv_param_99_3_default, ldv_18_ldv_param_99_4_default); ldv_free((void *)ldv_18_ldv_param_99_3_default); ldv_free((void *)ldv_18_ldv_param_99_4_default); ldv_statevar_18 = 3; } goto ldv_58059; case_102: /* CIL Label */ { ldv_io_instance_callback_18_102(ldv_18_callback_mtd_rename, ldv_18_resource_struct_efx_mtd_partition_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_103: /* CIL Label */ { ldv_io_instance_callback_18_103(ldv_18_callback_mtd_sync, ldv_18_resource_struct_mtd_info_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_18_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_18_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_18_104(ldv_18_callback_mtd_write, ldv_18_resource_struct_mtd_info_ptr, ldv_18_ldv_param_104_1_default, ldv_18_ldv_param_104_2_default, ldv_18_ldv_param_104_3_default, ldv_18_ldv_param_104_4_default); ldv_free((void *)ldv_18_ldv_param_104_3_default); ldv_free((void *)ldv_18_ldv_param_104_4_default); ldv_statevar_18 = 3; } goto ldv_58059; case_107: /* CIL Label */ { ldv_io_instance_callback_18_107(ldv_18_callback_poll, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_108: /* CIL Label */ { ldv_io_instance_callback_18_108(ldv_18_callback_post_remove, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_109: /* CIL Label */ { ldv_io_instance_callback_18_109(ldv_18_callback_pre_probe, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_110: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_18_110(ldv_18_callback_prepare_enable_fc_tx, ldv_18_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_111: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_prepare_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_18_111(ldv_18_callback_prepare_flush, ldv_18_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_112: /* CIL Label */ { ldv_io_instance_callback_18_112(ldv_18_callback_probe_port, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_113: /* CIL Label */ { ldv_io_instance_callback_18_113(ldv_18_callback_ptp_set_ts_config, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_hwtstamp_config_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_115: /* CIL Label */ { ldv_io_instance_callback_18_114(ldv_18_callback_ptp_set_ts_sync_events, ldv_18_resource_struct_efx_nic_ptr, (int )ldv_18_ldv_param_114_1_default, (int )ldv_18_ldv_param_114_2_default); ldv_statevar_18 = 3; } goto ldv_58059; case_118: /* CIL Label */ { ldv_io_instance_callback_18_117(ldv_18_callback_ptp_write_host_time, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_117_1_default); ldv_statevar_18 = 3; } goto ldv_58059; case_120: /* CIL Label */ { ldv_io_instance_callback_18_120(ldv_18_callback_pull_stats, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_121: /* CIL Label */ { ldv_io_instance_callback_18_121(ldv_18_callback_push_irq_moderation, ldv_18_resource_struct_efx_channel_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_122: /* CIL Label */ { ldv_io_instance_callback_18_122(ldv_18_callback_receive_skb, ldv_18_resource_struct_efx_channel_ptr, ldv_18_resource_struct_sk_buff_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_123: /* CIL Label */ { ldv_io_instance_callback_18_123(ldv_18_callback_reconfigure, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_124: /* CIL Label */ { ldv_io_instance_callback_18_124(ldv_18_callback_reconfigure_mac, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_125: /* CIL Label */ { ldv_io_instance_callback_18_125(ldv_18_callback_reconfigure_port, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_126: /* CIL Label */ { ldv_io_instance_callback_18_126(ldv_18_callback_remove_port, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_127: /* CIL Label */ { ldv_io_instance_callback_18_127(ldv_18_callback_reset, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_enum_reset_type); ldv_statevar_18 = 3; } goto ldv_58059; case_128: /* CIL Label */ { ldv_io_instance_callback_18_128(ldv_18_callback_resume_wol, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_18_ldv_param_129_1_default = (int *)tmp___27; } if ((unsigned long )ldv_18_callback_run_tests != (unsigned long )((int (*)(struct efx_nic * , int * , unsigned int ))0)) { { ldv_io_instance_callback_18_129(ldv_18_callback_run_tests, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_129_1_default, ldv_18_ldv_param_129_2_default); } } else { } { ldv_free((void *)ldv_18_ldv_param_129_1_default); ldv_statevar_18 = 3; } goto ldv_58059; case_132: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_18_132(ldv_18_callback_rx_defer_refill, ldv_18_resource_struct_efx_rx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_133: /* CIL Label */ { ldv_io_instance_callback_18_133(ldv_18_callback_rx_init, ldv_18_resource_struct_efx_rx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_134: /* CIL Label */ { ldv_io_instance_callback_18_134(ldv_18_callback_rx_probe, ldv_18_resource_struct_efx_rx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_135: /* CIL Label */ { ldv_io_instance_callback_18_135(ldv_18_callback_rx_push_rss_config, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_136: /* CIL Label */ { ldv_io_instance_callback_18_136(ldv_18_callback_rx_remove, ldv_18_resource_struct_efx_rx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_137: /* CIL Label */ { ldv_io_instance_callback_18_137(ldv_18_callback_rx_write, ldv_18_resource_struct_efx_rx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_138: /* CIL Label */ { ldv_io_instance_callback_18_138(ldv_18_callback_set_id_led, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_enum_efx_led_mode); ldv_statevar_18 = 3; } goto ldv_58059; case_140: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_18_139(ldv_18_callback_set_npage_adv, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_139_1_default); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_142: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_set_settings != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_18_142(ldv_18_callback_set_settings, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_144: /* CIL Label */ { ldv_io_instance_callback_18_143(ldv_18_callback_set_wol, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_143_1_default); ldv_statevar_18 = 3; } goto ldv_58059; case_146: /* CIL Label */ { ldv_io_instance_callback_18_146(ldv_18_callback_start_stats, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_147: /* CIL Label */ { ldv_io_instance_callback_18_147(ldv_18_callback_stop_stats, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_148: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_test_alive != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_18_148(ldv_18_callback_test_alive, ldv_18_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_149: /* CIL Label */ { ldv_io_instance_callback_18_149(ldv_18_callback_test_chip, ldv_18_resource_struct_efx_nic_ptr, ldv_18_resource_struct_efx_self_tests_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_151: /* CIL Label */ ; if ((unsigned long )ldv_18_callback_test_name != (unsigned long )((char *(*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_18_150(ldv_18_callback_test_name, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_150_1_default); } } else { } ldv_statevar_18 = 3; goto ldv_58059; case_153: /* CIL Label */ { ldv_io_instance_callback_18_153(ldv_18_callback_test_nvram, ldv_18_resource_struct_efx_nic_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_154: /* CIL Label */ { ldv_io_instance_callback_18_154(ldv_18_callback_tx_init, ldv_18_resource_struct_efx_tx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_155: /* CIL Label */ { ldv_io_instance_callback_18_155(ldv_18_callback_tx_probe, ldv_18_resource_struct_efx_tx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_156: /* CIL Label */ { ldv_io_instance_callback_18_156(ldv_18_callback_tx_remove, ldv_18_resource_struct_efx_tx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_157: /* CIL Label */ { ldv_io_instance_callback_18_157(ldv_18_callback_tx_write, ldv_18_resource_struct_efx_tx_queue_ptr); ldv_statevar_18 = 3; } goto ldv_58059; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_18_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_18_158(ldv_18_callback_update_stats, ldv_18_resource_struct_efx_nic_ptr, ldv_18_ldv_param_158_1_default, ldv_18_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_18_ldv_param_158_1_default); ldv_statevar_18 = 3; } goto ldv_58059; case_161: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_18_ret_default = ldv_io_instance_probe_18_161(ldv_18_container_struct_efx_phy_operations->probe, ldv_18_resource_struct_efx_nic_ptr); ldv_18_ret_default = ldv_filter_err_code(ldv_18_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_18 = 8; } else { ldv_statevar_18 = 10; } goto ldv_58059; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_58059: ; return; } } void ldv_struct_falcon_board_type_io_instance_9(void *arg0 ) { int tmp ; void *tmp___0 ; void *tmp___1 ; void *tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; void *tmp___6 ; void *tmp___7 ; void *tmp___8 ; void *tmp___9 ; void *tmp___10 ; void *tmp___11 ; void *tmp___12 ; void *tmp___13 ; void *tmp___14 ; void *tmp___15 ; void *tmp___16 ; void *tmp___17 ; void *tmp___18 ; void *tmp___19 ; void *tmp___20 ; void *tmp___21 ; void *tmp___22 ; void *tmp___23 ; void *tmp___24 ; void *tmp___25 ; void *tmp___26 ; void *tmp___27 ; void *tmp___28 ; int tmp___29 ; { { if (ldv_statevar_9 == 1) { goto case_1; } else { } if (ldv_statevar_9 == 2) { goto case_2; } else { } if (ldv_statevar_9 == 3) { goto case_3; } else { } if (ldv_statevar_9 == 4) { goto case_4; } else { } if (ldv_statevar_9 == 6) { goto case_6; } else { } if (ldv_statevar_9 == 8) { goto case_8; } else { } if (ldv_statevar_9 == 10) { goto case_10; } else { } if (ldv_statevar_9 == 11) { goto case_11; } else { } if (ldv_statevar_9 == 13) { goto case_13; } else { } if (ldv_statevar_9 == 14) { goto case_14; } else { } if (ldv_statevar_9 == 17) { goto case_17; } else { } if (ldv_statevar_9 == 18) { goto case_18; } else { } if (ldv_statevar_9 == 20) { goto case_20; } else { } if (ldv_statevar_9 == 22) { goto case_22; } else { } if (ldv_statevar_9 == 23) { goto case_23; } else { } if (ldv_statevar_9 == 24) { goto case_24; } else { } if (ldv_statevar_9 == 25) { goto case_25; } else { } if (ldv_statevar_9 == 27) { goto case_27; } else { } if (ldv_statevar_9 == 29) { goto case_29; } else { } if (ldv_statevar_9 == 30) { goto case_30; } else { } if (ldv_statevar_9 == 31) { goto case_31; } else { } if (ldv_statevar_9 == 32) { goto case_32; } else { } if (ldv_statevar_9 == 33) { goto case_33; } else { } if (ldv_statevar_9 == 34) { goto case_34; } else { } if (ldv_statevar_9 == 36) { goto case_36; } else { } if (ldv_statevar_9 == 39) { goto case_39; } else { } if (ldv_statevar_9 == 42) { goto case_42; } else { } if (ldv_statevar_9 == 45) { goto case_45; } else { } if (ldv_statevar_9 == 48) { goto case_48; } else { } if (ldv_statevar_9 == 50) { goto case_50; } else { } if (ldv_statevar_9 == 51) { goto case_51; } else { } if (ldv_statevar_9 == 52) { goto case_52; } else { } if (ldv_statevar_9 == 53) { goto case_53; } else { } if (ldv_statevar_9 == 54) { goto case_54; } else { } if (ldv_statevar_9 == 55) { goto case_55; } else { } if (ldv_statevar_9 == 56) { goto case_56; } else { } if (ldv_statevar_9 == 57) { goto case_57; } else { } if (ldv_statevar_9 == 58) { goto case_58; } else { } if (ldv_statevar_9 == 60) { goto case_60; } else { } if (ldv_statevar_9 == 62) { goto case_62; } else { } if (ldv_statevar_9 == 64) { goto case_64; } else { } if (ldv_statevar_9 == 66) { goto case_66; } else { } if (ldv_statevar_9 == 67) { goto case_67; } else { } if (ldv_statevar_9 == 68) { goto case_68; } else { } if (ldv_statevar_9 == 69) { goto case_69; } else { } if (ldv_statevar_9 == 70) { goto case_70; } else { } if (ldv_statevar_9 == 71) { goto case_71; } else { } if (ldv_statevar_9 == 72) { goto case_72; } else { } if (ldv_statevar_9 == 73) { goto case_73; } else { } if (ldv_statevar_9 == 75) { goto case_75; } else { } if (ldv_statevar_9 == 78) { goto case_78; } else { } if (ldv_statevar_9 == 80) { goto case_80; } else { } if (ldv_statevar_9 == 82) { goto case_82; } else { } if (ldv_statevar_9 == 84) { goto case_84; } else { } if (ldv_statevar_9 == 85) { goto case_85; } else { } if (ldv_statevar_9 == 86) { goto case_86; } else { } if (ldv_statevar_9 == 88) { goto case_88; } else { } if (ldv_statevar_9 == 91) { goto case_91; } else { } if (ldv_statevar_9 == 93) { goto case_93; } else { } if (ldv_statevar_9 == 94) { goto case_94; } else { } if (ldv_statevar_9 == 96) { goto case_96; } else { } if (ldv_statevar_9 == 98) { goto case_98; } else { } if (ldv_statevar_9 == 100) { goto case_100; } else { } if (ldv_statevar_9 == 102) { goto case_102; } else { } if (ldv_statevar_9 == 103) { goto case_103; } else { } if (ldv_statevar_9 == 105) { goto case_105; } else { } if (ldv_statevar_9 == 107) { goto case_107; } else { } if (ldv_statevar_9 == 108) { goto case_108; } else { } if (ldv_statevar_9 == 109) { goto case_109; } else { } if (ldv_statevar_9 == 110) { goto case_110; } else { } if (ldv_statevar_9 == 111) { goto case_111; } else { } if (ldv_statevar_9 == 112) { goto case_112; } else { } if (ldv_statevar_9 == 113) { goto case_113; } else { } if (ldv_statevar_9 == 115) { goto case_115; } else { } if (ldv_statevar_9 == 118) { goto case_118; } else { } if (ldv_statevar_9 == 120) { goto case_120; } else { } if (ldv_statevar_9 == 121) { goto case_121; } else { } if (ldv_statevar_9 == 122) { goto case_122; } else { } if (ldv_statevar_9 == 123) { goto case_123; } else { } if (ldv_statevar_9 == 124) { goto case_124; } else { } if (ldv_statevar_9 == 125) { goto case_125; } else { } if (ldv_statevar_9 == 126) { goto case_126; } else { } if (ldv_statevar_9 == 127) { goto case_127; } else { } if (ldv_statevar_9 == 128) { goto case_128; } else { } if (ldv_statevar_9 == 130) { goto case_130; } else { } if (ldv_statevar_9 == 132) { goto case_132; } else { } if (ldv_statevar_9 == 133) { goto case_133; } else { } if (ldv_statevar_9 == 134) { goto case_134; } else { } if (ldv_statevar_9 == 135) { goto case_135; } else { } if (ldv_statevar_9 == 136) { goto case_136; } else { } if (ldv_statevar_9 == 137) { goto case_137; } else { } if (ldv_statevar_9 == 138) { goto case_138; } else { } if (ldv_statevar_9 == 140) { goto case_140; } else { } if (ldv_statevar_9 == 142) { goto case_142; } else { } if (ldv_statevar_9 == 144) { goto case_144; } else { } if (ldv_statevar_9 == 146) { goto case_146; } else { } if (ldv_statevar_9 == 147) { goto case_147; } else { } if (ldv_statevar_9 == 148) { goto case_148; } else { } if (ldv_statevar_9 == 149) { goto case_149; } else { } if (ldv_statevar_9 == 151) { goto case_151; } else { } if (ldv_statevar_9 == 153) { goto case_153; } else { } if (ldv_statevar_9 == 154) { goto case_154; } else { } if (ldv_statevar_9 == 155) { goto case_155; } else { } if (ldv_statevar_9 == 156) { goto case_156; } else { } if (ldv_statevar_9 == 157) { goto case_157; } else { } if (ldv_statevar_9 == 159) { goto case_159; } else { } if (ldv_statevar_9 == 161) { goto case_161; } else { } goto switch_default; case_1: /* CIL Label */ { ldv_statevar_9 = ldv_switch_6(); } goto ldv_58171; case_2: /* CIL Label */ { ldv_io_instance_release_9_2(ldv_9_container_struct_efx_nic_type->remove, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 1; } goto ldv_58171; case_3: /* CIL Label */ { ldv_statevar_9 = ldv_switch_7(); } goto ldv_58171; case_4: /* CIL Label */ { ldv_io_instance_callback_9_4(ldv_9_callback_check_mac_fault, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_6: /* CIL Label */ { ldv_free((void *)ldv_9_resource_struct_efx_channel_ptr); ldv_free((void *)ldv_9_resource_struct_efx_filter_spec_ptr); ldv_free((void *)ldv_9_resource_struct_efx_mtd_partition_ptr); ldv_free((void *)ldv_9_resource_struct_efx_nic_ptr); ldv_free((void *)ldv_9_resource_struct_efx_rx_queue_ptr); ldv_free((void *)ldv_9_resource_struct_efx_self_tests_ptr); ldv_free((void *)ldv_9_resource_struct_efx_tx_queue_ptr); ldv_free((void *)ldv_9_resource_struct_ethtool_cmd_ptr); ldv_free((void *)ldv_9_resource_struct_ethtool_eeprom_ptr); ldv_free((void *)ldv_9_resource_struct_ethtool_modinfo_ptr); ldv_free((void *)ldv_9_resource_struct_ethtool_wolinfo_ptr); ldv_free((void *)ldv_9_resource_struct_hwtstamp_config_ptr); ldv_free((void *)ldv_9_resource_struct_mtd_info_ptr); ldv_free((void *)ldv_9_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_9_resource_struct_sk_buff_ptr); ldv_free((void *)ldv_9_resource_union_efx_dword_ptr); ldv_free((void *)ldv_9_resource_union_efx_qword_ptr); ldv_9_ret_default = 1; ldv_statevar_9 = 14; } goto ldv_58171; case_8: /* CIL Label */ { ldv_assume(ldv_9_ret_default != 0); ldv_statevar_9 = ldv_switch_6(); } goto ldv_58171; case_10: /* CIL Label */ { ldv_assume(ldv_9_ret_default == 0); ldv_statevar_9 = ldv_switch_7(); } goto ldv_58171; case_11: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_9_ret_default = ldv_io_instance_probe_9_11(ldv_9_container_struct_efx_nic_type->probe, ldv_9_resource_struct_efx_nic_ptr); ldv_9_ret_default = ldv_filter_err_code(ldv_9_ret_default); tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_9 = 8; } else { ldv_statevar_9 = 10; } goto ldv_58171; case_13: /* CIL Label */ { tmp___0 = ldv_xmalloc(1984UL); ldv_9_resource_struct_efx_channel_ptr = (struct efx_channel *)tmp___0; tmp___1 = ldv_xmalloc(64UL); ldv_9_resource_struct_efx_filter_spec_ptr = (struct efx_filter_spec *)tmp___1; tmp___2 = ldv_xmalloc(1848UL); ldv_9_resource_struct_efx_mtd_partition_ptr = (struct efx_mtd_partition *)tmp___2; tmp___3 = ldv_xmalloc(4160UL); ldv_9_resource_struct_efx_nic_ptr = (struct efx_nic *)tmp___3; tmp___4 = ldv_xmalloc(280UL); ldv_9_resource_struct_efx_rx_queue_ptr = (struct efx_rx_queue *)tmp___4; tmp___5 = ldv_xmalloc(1076UL); ldv_9_resource_struct_efx_self_tests_ptr = (struct efx_self_tests *)tmp___5; tmp___6 = ldv_xmalloc(320UL); ldv_9_resource_struct_efx_tx_queue_ptr = (struct efx_tx_queue *)tmp___6; tmp___7 = ldv_xmalloc(44UL); ldv_9_resource_struct_ethtool_cmd_ptr = (struct ethtool_cmd *)tmp___7; tmp___8 = ldv_xmalloc(16UL); ldv_9_resource_struct_ethtool_eeprom_ptr = (struct ethtool_eeprom *)tmp___8; tmp___9 = ldv_xmalloc(44UL); ldv_9_resource_struct_ethtool_modinfo_ptr = (struct ethtool_modinfo *)tmp___9; tmp___10 = ldv_xmalloc(20UL); ldv_9_resource_struct_ethtool_wolinfo_ptr = (struct ethtool_wolinfo *)tmp___10; tmp___11 = ldv_xmalloc(12UL); ldv_9_resource_struct_hwtstamp_config_ptr = (struct hwtstamp_config *)tmp___11; tmp___12 = ldv_xmalloc(1776UL); ldv_9_resource_struct_mtd_info_ptr = (struct mtd_info *)tmp___12; tmp___13 = ldv_xmalloc(184UL); ldv_9_resource_struct_rtnl_link_stats64_ptr = (struct rtnl_link_stats64 *)tmp___13; tmp___14 = ldv_xmalloc(232UL); ldv_9_resource_struct_sk_buff_ptr = (struct sk_buff *)tmp___14; tmp___15 = ldv_xmalloc(4UL); ldv_9_resource_union_efx_dword_ptr = (union efx_dword *)tmp___15; tmp___16 = ldv_xmalloc(8UL); ldv_9_resource_union_efx_qword_ptr = (union efx_qword *)tmp___16; ldv_statevar_9 = ldv_switch_6(); } goto ldv_58171; case_14: /* CIL Label */ ; goto ldv_58171; case_17: /* CIL Label */ { ldv_io_instance_release_9_17(ldv_9_container_struct_efx_phy_operations->remove, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 1; } goto ldv_58171; case_18: /* CIL Label */ { ldv_io_instance_callback_9_18(ldv_9_callback_copy, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_20: /* CIL Label */ { tmp___17 = ldv_xmalloc(1UL); ldv_9_ldv_param_19_1_default = (unsigned char *)tmp___17; ldv_io_instance_callback_9_19(ldv_9_callback_describe_stats, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_19_1_default); ldv_free((void *)ldv_9_ldv_param_19_1_default); ldv_statevar_9 = 3; } goto ldv_58171; case_22: /* CIL Label */ { ldv_io_instance_callback_9_22(ldv_9_callback_dimension_resources, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_23: /* CIL Label */ { ldv_io_instance_callback_9_23(ldv_9_callback_ev_fini, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_24: /* CIL Label */ { ldv_io_instance_callback_9_24(ldv_9_callback_ev_init, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_25: /* CIL Label */ { ldv_io_instance_callback_9_25(ldv_9_callback_ev_probe, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_27: /* CIL Label */ { ldv_io_instance_callback_9_26(ldv_9_callback_ev_process, ldv_9_resource_struct_efx_channel_ptr, ldv_9_ldv_param_26_1_default); ldv_statevar_9 = 3; } goto ldv_58171; case_29: /* CIL Label */ { ldv_io_instance_callback_9_29(ldv_9_callback_ev_read_ack, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_30: /* CIL Label */ { ldv_io_instance_callback_9_30(ldv_9_callback_ev_remove, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_31: /* CIL Label */ { ldv_io_instance_callback_9_31(ldv_9_callback_ev_test_generate, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_32: /* CIL Label */ { ldv_io_instance_callback_9_32(ldv_9_callback_filter_clear_rx, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_enum_efx_filter_priority); ldv_statevar_9 = 3; } goto ldv_58171; case_33: /* CIL Label */ { ldv_io_instance_callback_9_33(ldv_9_callback_filter_count_rx_used, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_enum_efx_filter_priority); ldv_statevar_9 = 3; } goto ldv_58171; case_34: /* CIL Label */ { ldv_io_instance_callback_9_34(ldv_9_callback_filter_get_rx_id_limit, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_36: /* CIL Label */ { tmp___18 = ldv_xmalloc(4UL); ldv_9_ldv_param_35_2_default = (unsigned int *)tmp___18; ldv_io_instance_callback_9_35(ldv_9_callback_filter_get_rx_ids, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_enum_efx_filter_priority, ldv_9_ldv_param_35_2_default, ldv_9_ldv_param_35_3_default); ldv_free((void *)ldv_9_ldv_param_35_2_default); ldv_statevar_9 = 3; } goto ldv_58171; case_39: /* CIL Label */ { ldv_io_instance_callback_9_38(ldv_9_callback_filter_get_safe, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_enum_efx_filter_priority, ldv_9_ldv_param_38_2_default, ldv_9_resource_struct_efx_filter_spec_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_42: /* CIL Label */ { ldv_io_instance_callback_9_41(ldv_9_callback_filter_insert, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_efx_filter_spec_ptr, (int )ldv_9_ldv_param_41_2_default); ldv_statevar_9 = 3; } goto ldv_58171; case_45: /* CIL Label */ { ldv_io_instance_callback_9_44(ldv_9_callback_filter_remove_safe, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_enum_efx_filter_priority, ldv_9_ldv_param_44_2_default); ldv_statevar_9 = 3; } goto ldv_58171; case_48: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_9_47(ldv_9_callback_filter_rfs_expire_one, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_47_1_default, ldv_9_ldv_param_47_2_default); ldv_statevar_9 = 3; } goto ldv_58171; case_50: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_9_50(ldv_9_callback_filter_rfs_insert, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_efx_filter_spec_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_51: /* CIL Label */ { ldv_io_instance_callback_9_51(ldv_9_callback_filter_table_probe, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_52: /* CIL Label */ { ldv_io_instance_callback_9_52(ldv_9_callback_filter_table_remove, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_53: /* CIL Label */ { ldv_io_instance_callback_9_53(ldv_9_callback_filter_table_restore, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_54: /* CIL Label */ { ldv_io_instance_callback_9_54(ldv_9_callback_filter_update_rx_scatter, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_55: /* CIL Label */ { ldv_io_instance_callback_9_55(ldv_9_callback_fini, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_56: /* CIL Label */ { ldv_io_instance_callback_9_56(ldv_9_callback_fini_dmaq, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_57: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_finish_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_9_57(ldv_9_callback_finish_flush, ldv_9_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_58: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_func_6_ptr != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_9_58(ldv_9_callback_func_6_ptr, ldv_9_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_60: /* CIL Label */ { tmp___19 = ldv_xmalloc(1UL); ldv_9_ldv_param_59_2_default = (unsigned char *)tmp___19; } if ((unsigned long )ldv_9_callback_get_module_eeprom != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ))0)) { { ldv_io_instance_callback_9_59(ldv_9_callback_get_module_eeprom, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_ethtool_eeprom_ptr, ldv_9_ldv_param_59_2_default); } } else { } { ldv_free((void *)ldv_9_ldv_param_59_2_default); ldv_statevar_9 = 3; } goto ldv_58171; case_62: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_get_module_info != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_modinfo * ))0)) { { ldv_io_instance_callback_9_62(ldv_9_callback_get_module_info, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_ethtool_modinfo_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_64: /* CIL Label */ { tmp___20 = ldv_xmalloc(1UL); ldv_9_ldv_param_63_1_default = (char *)tmp___20; ldv_io_instance_callback_9_63(ldv_9_callback_get_name, ldv_9_resource_struct_efx_channel_ptr, ldv_9_ldv_param_63_1_default, ldv_9_ldv_param_63_2_default); ldv_free((void *)ldv_9_ldv_param_63_1_default); ldv_statevar_9 = 3; } goto ldv_58171; case_66: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_get_settings != (unsigned long )((void (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_9_66(ldv_9_callback_get_settings, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_67: /* CIL Label */ { ldv_io_instance_callback_9_67(ldv_9_callback_get_wol, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_ethtool_wolinfo_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_68: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_handle_global_event != (unsigned long )((_Bool (*)(struct efx_channel * , union efx_qword * ))0)) { { ldv_io_instance_callback_9_68(ldv_9_callback_handle_global_event, ldv_9_resource_struct_efx_channel_ptr, ldv_9_resource_union_efx_qword_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_69: /* CIL Label */ { ldv_io_instance_callback_9_69(ldv_9_callback_handle_no_channel, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_70: /* CIL Label */ { ldv_io_instance_callback_9_70(ldv_9_callback_init, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_71: /* CIL Label */ { ldv_io_instance_callback_9_71(ldv_9_callback_init_phy, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_72: /* CIL Label */ { ldv_io_instance_callback_9_72(ldv_9_callback_irq_disable_non_ev, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_73: /* CIL Label */ { ldv_io_instance_callback_9_73(ldv_9_callback_irq_enable_master, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_75: /* CIL Label */ { ldv_io_instance_callback_9_74(ldv_9_callback_irq_handle_legacy, ldv_9_ldv_param_74_0_default, (void *)ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_78: /* CIL Label */ { ldv_io_instance_callback_9_77(ldv_9_callback_irq_handle_msi, ldv_9_ldv_param_77_0_default, (void *)ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_80: /* CIL Label */ { ldv_io_instance_callback_9_80(ldv_9_callback_irq_test_generate, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_82: /* CIL Label */ { tmp___21 = ldv_xmalloc(4UL); ldv_9_ldv_param_81_0_default = (unsigned int *)tmp___21; ldv_io_instance_callback_9_81(ldv_9_callback_map_reset_flags, ldv_9_ldv_param_81_0_default); ldv_free((void *)ldv_9_ldv_param_81_0_default); ldv_statevar_9 = 3; } goto ldv_58171; case_84: /* CIL Label */ { ldv_io_instance_callback_9_84(ldv_9_callback_map_reset_reason, ldv_9_resource_enum_reset_type); ldv_statevar_9 = 3; } goto ldv_58171; case_85: /* CIL Label */ { ldv_io_instance_callback_9_85(ldv_9_callback_mcdi_poll_reboot, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_86: /* CIL Label */ { ldv_io_instance_callback_9_86(ldv_9_callback_mcdi_poll_response, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_88: /* CIL Label */ { ldv_io_instance_callback_9_87(ldv_9_callback_mcdi_read_response, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_union_efx_dword_ptr, ldv_9_ldv_param_87_2_default, ldv_9_ldv_param_87_3_default); ldv_statevar_9 = 3; } goto ldv_58171; case_91: /* CIL Label */ { tmp___22 = ldv_xmalloc(4UL); ldv_9_ldv_param_90_3_default = (union efx_dword *)tmp___22; ldv_io_instance_callback_9_90(ldv_9_callback_mcdi_request, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_union_efx_dword_ptr, ldv_9_ldv_param_90_2_default, ldv_9_ldv_param_90_3_default, ldv_9_ldv_param_90_4_default); ldv_free((void *)ldv_9_ldv_param_90_3_default); ldv_statevar_9 = 3; } goto ldv_58171; case_93: /* CIL Label */ { ldv_io_instance_callback_9_93(ldv_9_callback_mem_map_size, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_94: /* CIL Label */ { ldv_io_instance_callback_9_94(ldv_9_callback_monitor, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_96: /* CIL Label */ { ldv_io_instance_callback_9_95(ldv_9_callback_mtd_erase, ldv_9_resource_struct_mtd_info_ptr, ldv_9_ldv_param_95_1_default, ldv_9_ldv_param_95_2_default); ldv_statevar_9 = 3; } goto ldv_58171; case_98: /* CIL Label */ { ldv_io_instance_callback_9_98(ldv_9_callback_mtd_probe, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_100: /* CIL Label */ { tmp___23 = ldv_xmalloc(8UL); ldv_9_ldv_param_99_3_default = (unsigned long *)tmp___23; tmp___24 = ldv_xmalloc(1UL); ldv_9_ldv_param_99_4_default = (unsigned char *)tmp___24; ldv_io_instance_callback_9_99(ldv_9_callback_mtd_read, ldv_9_resource_struct_mtd_info_ptr, ldv_9_ldv_param_99_1_default, ldv_9_ldv_param_99_2_default, ldv_9_ldv_param_99_3_default, ldv_9_ldv_param_99_4_default); ldv_free((void *)ldv_9_ldv_param_99_3_default); ldv_free((void *)ldv_9_ldv_param_99_4_default); ldv_statevar_9 = 3; } goto ldv_58171; case_102: /* CIL Label */ { ldv_io_instance_callback_9_102(ldv_9_callback_mtd_rename, ldv_9_resource_struct_efx_mtd_partition_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_103: /* CIL Label */ { ldv_io_instance_callback_9_103(ldv_9_callback_mtd_sync, ldv_9_resource_struct_mtd_info_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_105: /* CIL Label */ { tmp___25 = ldv_xmalloc(8UL); ldv_9_ldv_param_104_3_default = (unsigned long *)tmp___25; tmp___26 = ldv_xmalloc(1UL); ldv_9_ldv_param_104_4_default = (unsigned char *)tmp___26; ldv_io_instance_callback_9_104(ldv_9_callback_mtd_write, ldv_9_resource_struct_mtd_info_ptr, ldv_9_ldv_param_104_1_default, ldv_9_ldv_param_104_2_default, ldv_9_ldv_param_104_3_default, ldv_9_ldv_param_104_4_default); ldv_free((void *)ldv_9_ldv_param_104_3_default); ldv_free((void *)ldv_9_ldv_param_104_4_default); ldv_statevar_9 = 3; } goto ldv_58171; case_107: /* CIL Label */ { ldv_io_instance_callback_9_107(ldv_9_callback_poll, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_108: /* CIL Label */ { ldv_io_instance_callback_9_108(ldv_9_callback_post_remove, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_109: /* CIL Label */ { ldv_io_instance_callback_9_109(ldv_9_callback_pre_probe, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_110: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_prepare_enable_fc_tx != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_9_110(ldv_9_callback_prepare_enable_fc_tx, ldv_9_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_111: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_prepare_flush != (unsigned long )((void (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_9_111(ldv_9_callback_prepare_flush, ldv_9_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_112: /* CIL Label */ { ldv_io_instance_callback_9_112(ldv_9_callback_probe_port, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_113: /* CIL Label */ { ldv_io_instance_callback_9_113(ldv_9_callback_ptp_set_ts_config, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_hwtstamp_config_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_115: /* CIL Label */ { ldv_io_instance_callback_9_114(ldv_9_callback_ptp_set_ts_sync_events, ldv_9_resource_struct_efx_nic_ptr, (int )ldv_9_ldv_param_114_1_default, (int )ldv_9_ldv_param_114_2_default); ldv_statevar_9 = 3; } goto ldv_58171; case_118: /* CIL Label */ { ldv_io_instance_callback_9_117(ldv_9_callback_ptp_write_host_time, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_117_1_default); ldv_statevar_9 = 3; } goto ldv_58171; case_120: /* CIL Label */ { ldv_io_instance_callback_9_120(ldv_9_callback_pull_stats, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_121: /* CIL Label */ { ldv_io_instance_callback_9_121(ldv_9_callback_push_irq_moderation, ldv_9_resource_struct_efx_channel_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_122: /* CIL Label */ { ldv_io_instance_callback_9_122(ldv_9_callback_receive_skb, ldv_9_resource_struct_efx_channel_ptr, ldv_9_resource_struct_sk_buff_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_123: /* CIL Label */ { ldv_io_instance_callback_9_123(ldv_9_callback_reconfigure, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_124: /* CIL Label */ { ldv_io_instance_callback_9_124(ldv_9_callback_reconfigure_mac, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_125: /* CIL Label */ { ldv_io_instance_callback_9_125(ldv_9_callback_reconfigure_port, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_126: /* CIL Label */ { ldv_io_instance_callback_9_126(ldv_9_callback_remove_port, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_127: /* CIL Label */ { ldv_io_instance_callback_9_127(ldv_9_callback_reset, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_enum_reset_type); ldv_statevar_9 = 3; } goto ldv_58171; case_128: /* CIL Label */ { ldv_io_instance_callback_9_128(ldv_9_callback_resume_wol, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_130: /* CIL Label */ { tmp___27 = ldv_xmalloc(4UL); ldv_9_ldv_param_129_1_default = (int *)tmp___27; } if ((unsigned long )ldv_9_callback_run_tests != (unsigned long )((int (*)(struct efx_nic * , int * , unsigned int ))0)) { { ldv_io_instance_callback_9_129(ldv_9_callback_run_tests, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_129_1_default, ldv_9_ldv_param_129_2_default); } } else { } { ldv_free((void *)ldv_9_ldv_param_129_1_default); ldv_statevar_9 = 3; } goto ldv_58171; case_132: /* CIL Label */ { ldv_assume(ldv_statevar_22 == 3); ldv_io_instance_callback_9_132(ldv_9_callback_rx_defer_refill, ldv_9_resource_struct_efx_rx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_133: /* CIL Label */ { ldv_io_instance_callback_9_133(ldv_9_callback_rx_init, ldv_9_resource_struct_efx_rx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_134: /* CIL Label */ { ldv_io_instance_callback_9_134(ldv_9_callback_rx_probe, ldv_9_resource_struct_efx_rx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_135: /* CIL Label */ { ldv_io_instance_callback_9_135(ldv_9_callback_rx_push_rss_config, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_136: /* CIL Label */ { ldv_io_instance_callback_9_136(ldv_9_callback_rx_remove, ldv_9_resource_struct_efx_rx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_137: /* CIL Label */ { ldv_io_instance_callback_9_137(ldv_9_callback_rx_write, ldv_9_resource_struct_efx_rx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_138: /* CIL Label */ { ldv_io_instance_callback_9_138(ldv_9_callback_set_id_led, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_enum_efx_led_mode); ldv_statevar_9 = 3; } goto ldv_58171; case_140: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_set_npage_adv != (unsigned long )((void (*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_9_139(ldv_9_callback_set_npage_adv, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_139_1_default); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_142: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_set_settings != (unsigned long )((int (*)(struct efx_nic * , struct ethtool_cmd * ))0)) { { ldv_io_instance_callback_9_142(ldv_9_callback_set_settings, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_ethtool_cmd_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_144: /* CIL Label */ { ldv_io_instance_callback_9_143(ldv_9_callback_set_wol, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_143_1_default); ldv_statevar_9 = 3; } goto ldv_58171; case_146: /* CIL Label */ { ldv_io_instance_callback_9_146(ldv_9_callback_start_stats, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_147: /* CIL Label */ { ldv_io_instance_callback_9_147(ldv_9_callback_stop_stats, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_148: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_test_alive != (unsigned long )((int (*)(struct efx_nic * ))0)) { { ldv_io_instance_callback_9_148(ldv_9_callback_test_alive, ldv_9_resource_struct_efx_nic_ptr); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_149: /* CIL Label */ { ldv_io_instance_callback_9_149(ldv_9_callback_test_chip, ldv_9_resource_struct_efx_nic_ptr, ldv_9_resource_struct_efx_self_tests_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_151: /* CIL Label */ ; if ((unsigned long )ldv_9_callback_test_name != (unsigned long )((char *(*)(struct efx_nic * , unsigned int ))0)) { { ldv_io_instance_callback_9_150(ldv_9_callback_test_name, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_150_1_default); } } else { } ldv_statevar_9 = 3; goto ldv_58171; case_153: /* CIL Label */ { ldv_io_instance_callback_9_153(ldv_9_callback_test_nvram, ldv_9_resource_struct_efx_nic_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_154: /* CIL Label */ { ldv_io_instance_callback_9_154(ldv_9_callback_tx_init, ldv_9_resource_struct_efx_tx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_155: /* CIL Label */ { ldv_io_instance_callback_9_155(ldv_9_callback_tx_probe, ldv_9_resource_struct_efx_tx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_156: /* CIL Label */ { ldv_io_instance_callback_9_156(ldv_9_callback_tx_remove, ldv_9_resource_struct_efx_tx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_157: /* CIL Label */ { ldv_io_instance_callback_9_157(ldv_9_callback_tx_write, ldv_9_resource_struct_efx_tx_queue_ptr); ldv_statevar_9 = 3; } goto ldv_58171; case_159: /* CIL Label */ { tmp___28 = ldv_xmalloc(8UL); ldv_9_ldv_param_158_1_default = (unsigned long long *)tmp___28; ldv_io_instance_callback_9_158(ldv_9_callback_update_stats, ldv_9_resource_struct_efx_nic_ptr, ldv_9_ldv_param_158_1_default, ldv_9_resource_struct_rtnl_link_stats64_ptr); ldv_free((void *)ldv_9_ldv_param_158_1_default); ldv_statevar_9 = 3; } goto ldv_58171; case_161: /* CIL Label */ { ldv_assume(ldv_statevar_21 == 5); ldv_9_ret_default = ldv_io_instance_probe_9_161(ldv_9_container_struct_efx_phy_operations->probe, ldv_9_resource_struct_efx_nic_ptr); ldv_9_ret_default = ldv_filter_err_code(ldv_9_ret_default); tmp___29 = ldv_undef_int(); } if (tmp___29 != 0) { ldv_statevar_9 = 8; } else { ldv_statevar_9 = 10; } goto ldv_58171; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_58171: ; return; } } void ldv_switch_automaton_state_13_14(void) { { ldv_statevar_13 = 13; return; } } void ldv_switch_automaton_state_13_5(void) { { ldv_13_ret_default = 1; ldv_statevar_13 = 14; return; } } void ldv_switch_automaton_state_14_14(void) { { ldv_statevar_14 = 13; return; } } void ldv_switch_automaton_state_14_5(void) { { ldv_14_ret_default = 1; ldv_statevar_14 = 14; return; } } void ldv_switch_automaton_state_15_14(void) { { ldv_statevar_15 = 13; return; } } void ldv_switch_automaton_state_15_5(void) { { ldv_15_ret_default = 1; ldv_statevar_15 = 14; return; } } void ldv_switch_automaton_state_16_14(void) { { ldv_statevar_16 = 13; return; } } void ldv_switch_automaton_state_16_5(void) { { ldv_16_ret_default = 1; ldv_statevar_16 = 14; return; } } void ldv_switch_automaton_state_17_14(void) { { ldv_statevar_17 = 13; return; } } void ldv_switch_automaton_state_17_5(void) { { ldv_17_ret_default = 1; ldv_statevar_17 = 14; return; } } void ldv_switch_automaton_state_18_14(void) { { ldv_statevar_18 = 13; return; } } void ldv_switch_automaton_state_18_5(void) { { ldv_18_ret_default = 1; ldv_statevar_18 = 14; return; } } void ldv_switch_automaton_state_9_14(void) { { ldv_statevar_9 = 13; return; } } void ldv_switch_automaton_state_9_5(void) { { ldv_9_ret_default = 1; ldv_statevar_9 = 14; return; } } extern int __preempt_count ; __inline static void __preempt_count_add(int val ) { int pao_ID__ ; { pao_ID__ = 0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%P0": "+m" (__preempt_count): "qi" (val)); } goto ldv_6697; case_2: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%P0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6697; case_4: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%P0": "+m" (__preempt_count): "ri" (val)); } goto ldv_6697; case_8: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%P0": "+m" (__preempt_count): "re" (val)); } goto ldv_6697; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break: /* CIL Label */ ; } ldv_6697: ; return; } } __inline static void __preempt_count_sub(int val ) { int pao_ID__ ; { pao_ID__ = 0; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incb %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decb %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addb %1, %%gs:%P0": "+m" (__preempt_count): "qi" (- val)); } goto ldv_6709; case_2: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incw %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decw %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addw %1, %%gs:%P0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6709; case_4: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incl %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decl %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addl %1, %%gs:%P0": "+m" (__preempt_count): "ri" (- val)); } goto ldv_6709; case_8: /* CIL Label */ ; if (pao_ID__ == 1) { __asm__ ("incq %%gs:%P0": "+m" (__preempt_count)); } else if (pao_ID__ == -1) { __asm__ ("decq %%gs:%P0": "+m" (__preempt_count)); } else { __asm__ ("addq %1, %%gs:%P0": "+m" (__preempt_count): "re" (- val)); } goto ldv_6709; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break: /* CIL Label */ ; } ldv_6709: ; return; } } __inline static void memcpy_toio(void volatile *dst , void const *src , size_t count ) { { { memcpy((void *)dst, src, count); } return; } } __inline static void *lowmem_page_address(struct page const *page ) { { return ((void *)((unsigned long )((unsigned long long )(((long )page + 24189255811072L) / 64L) << 12) + 0xffff880000000000UL)); } } __inline static void dql_queued(struct dql *dql , unsigned int count ) { long tmp ; { { tmp = ldv__builtin_expect(count > 268435455U, 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/dynamic_queue_limits.h"), "i" (74), "i" (12UL)); __builtin_unreachable(); } } else { } dql->num_queued = dql->num_queued + count; dql->last_obj_cnt = count; return; } } __inline static int dql_avail(struct dql const *dql ) { { return ((int )((unsigned int )dql->adj_limit - (unsigned int )dql->num_queued)); } } extern void dql_completed(struct dql * , unsigned int ) ; extern void dql_reset(struct dql * ) ; __inline static void kmemcheck_mark_initialized(void *address , unsigned int n ) { { return; } } __inline static int valid_dma_direction(int dma_direction ) { { return ((unsigned int )dma_direction <= 2U); } } 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 ) ; __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)); __builtin_unreachable(); } } 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)); __builtin_unreachable(); } } else { } if ((unsigned long )ops->unmap_page != (unsigned long )((void (*)(struct device * , dma_addr_t , size_t , enum dma_data_direction , struct dma_attrs * ))0)) { { (*(ops->unmap_page))(dev, addr, size, dir, attrs); } } else { } { debug_dma_unmap_page(dev, addr, size, (int )dir, 1); } return; } } __inline static dma_addr_t dma_map_page(struct device *dev , struct page *page , size_t offset , size_t size , enum dma_data_direction dir ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; dma_addr_t addr ; void *tmp___0 ; int tmp___1 ; long tmp___2 ; { { tmp = get_dma_ops(dev); ops = tmp; tmp___0 = lowmem_page_address((struct page const *)page); kmemcheck_mark_initialized(tmp___0 + offset, (unsigned int )size); tmp___1 = valid_dma_direction((int )dir); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); } if (tmp___2 != 0L) { { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/asm-generic/dma-mapping-common.h"), "i" (79), "i" (12UL)); __builtin_unreachable(); } } 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" (91), "i" (12UL)); __builtin_unreachable(); } } 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); } } __inline static unsigned int skb_frag_size(skb_frag_t const *frag ) { { return ((unsigned int )frag->size); } } extern int skb_pad(struct sk_buff * , int ) ; __inline static unsigned char *skb_end_pointer(struct sk_buff const *skb ) { { return ((unsigned char *)skb->head + (unsigned long )skb->end); } } __inline static unsigned int skb_headlen(struct sk_buff const *skb ) { { return ((unsigned int )skb->len - (unsigned int )skb->data_len); } } __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 struct page *skb_frag_page(skb_frag_t const *frag ) { { return ((struct page *)frag->page.p); } } __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); } } __inline static u16 skb_get_queue_mapping(struct sk_buff const *skb ) { { return ((u16 )skb->queue_mapping); } } __inline static bool netif_tx_queue_stopped(struct netdev_queue const *dev_queue ) { int tmp ; { { tmp = constant_test_bit(0L, (unsigned long const volatile *)(& dev_queue->state)); } return (tmp != 0); } } __inline static void netdev_tx_sent_queue(struct netdev_queue *dev_queue , unsigned int bytes ) { int tmp ; long tmp___0 ; int tmp___1 ; long tmp___2 ; { { dql_queued(& dev_queue->dql, bytes); tmp = dql_avail((struct dql const *)(& dev_queue->dql)); tmp___0 = ldv__builtin_expect(tmp >= 0, 1L); } if (tmp___0 != 0L) { return; } else { } { set_bit(1L, (unsigned long volatile *)(& dev_queue->state)); __asm__ volatile ("mfence": : : "memory"); tmp___1 = dql_avail((struct dql const *)(& dev_queue->dql)); tmp___2 = ldv__builtin_expect(tmp___1 >= 0, 0L); } if (tmp___2 != 0L) { { clear_bit(1L, (unsigned long volatile *)(& dev_queue->state)); } } else { } return; } } __inline static void netdev_tx_completed_queue(struct netdev_queue *dev_queue , unsigned int pkts , unsigned int bytes ) { long tmp ; int tmp___0 ; int tmp___1 ; { { tmp = ldv__builtin_expect(bytes == 0U, 0L); } if (tmp != 0L) { return; } else { } { dql_completed(& dev_queue->dql, bytes); __asm__ volatile ("mfence": : : "memory"); tmp___0 = dql_avail((struct dql const *)(& dev_queue->dql)); } if (tmp___0 < 0) { return; } else { } { tmp___1 = test_and_set_bit(1L, (unsigned long volatile *)(& dev_queue->state)); } if (tmp___1 != 0) { { netif_schedule_queue(dev_queue); } } else { } return; } } __inline static void netdev_tx_reset_queue(struct netdev_queue *q ) { { { clear_bit(1L, (unsigned long volatile *)(& q->state)); dql_reset(& q->dql); } 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 pagefault_disable(void) { { { __preempt_count_add(1); __asm__ volatile ("": : : "memory"); } return; } } __inline static void pagefault_enable(void) { { { __asm__ volatile ("": : : "memory"); __preempt_count_sub(1); } return; } } __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 struct iphdr *ip_hdr(struct sk_buff const *skb ) { unsigned char *tmp ; { { tmp = skb_network_header(skb); } return ((struct iphdr *)tmp); } } __inline static void *kmap_atomic(struct page *page ) { void *tmp ; { { pagefault_disable(); tmp = lowmem_page_address((struct page const *)page); } return (tmp); } } __inline static void __kunmap_atomic(void *addr ) { { { pagefault_enable(); } return; } } __inline static bool efx_xmit_with_hwtstamp(struct sk_buff *skb ) { unsigned char *tmp ; { { tmp = skb_end_pointer((struct sk_buff const *)skb); } return (((int )((struct skb_shared_info *)tmp)->tx_flags & 1) != 0); } } netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue , struct sk_buff *skb ) ; __inline static bool efx_nic_tx_is_empty(struct efx_tx_queue *tx_queue ) { bool tmp ; { { tmp = __efx_nic_tx_is_empty(tx_queue, tx_queue->write_count); } return (tmp); } } bool efx_ptp_is_ptp_tx(struct efx_nic *efx , struct sk_buff *skb ) ; int efx_ptp_tx(struct efx_nic *efx , struct sk_buff *skb ) ; __inline static int efx_nic_probe_tx(struct efx_tx_queue *tx_queue ) { int tmp ; { { tmp = (*(((tx_queue->efx)->type)->tx_probe))(tx_queue); } return (tmp); } } __inline static void efx_nic_init_tx(struct efx_tx_queue *tx_queue ) { { { (*(((tx_queue->efx)->type)->tx_init))(tx_queue); } return; } } __inline static void efx_nic_remove_tx(struct efx_tx_queue *tx_queue ) { { { (*(((tx_queue->efx)->type)->tx_remove))(tx_queue); } return; } } __inline static void efx_nic_push_buffers(struct efx_tx_queue *tx_queue ) { { { (*(((tx_queue->efx)->type)->tx_write))(tx_queue); } return; } } unsigned int efx_piobuf_size = 256U; __inline static unsigned int efx_tx_queue_get_insert_index(struct efx_tx_queue const *tx_queue ) { { return ((unsigned int )tx_queue->insert_count & (unsigned int )tx_queue->ptr_mask); } } __inline static struct efx_tx_buffer *__efx_tx_queue_get_insert_buffer(struct efx_tx_queue const *tx_queue ) { unsigned int tmp ; { { tmp = efx_tx_queue_get_insert_index(tx_queue); } return ((struct efx_tx_buffer *)tx_queue->buffer + (unsigned long )tmp); } } __inline static struct efx_tx_buffer *efx_tx_queue_get_insert_buffer(struct efx_tx_queue const *tx_queue ) { struct efx_tx_buffer *buffer ; struct efx_tx_buffer *tmp ; { { tmp = __efx_tx_queue_get_insert_buffer(tx_queue); buffer = tmp; } return (buffer); } } static void efx_dequeue_buffer(struct efx_tx_queue *tx_queue , struct efx_tx_buffer *buffer , unsigned int *pkts_compl , unsigned int *bytes_compl ) { struct device *dma_dev ; dma_addr_t unmap_addr ; { if ((unsigned int )buffer->unmap_len != 0U) { dma_dev = & ((tx_queue->efx)->pci_dev)->dev; unmap_addr = buffer->__annonCompField87.dma_addr - (dma_addr_t )buffer->dma_offset; if (((int )buffer->flags & 8) != 0) { { dma_unmap_single_attrs(dma_dev, unmap_addr, (size_t )buffer->unmap_len, 1, (struct dma_attrs *)0); } } else { { dma_unmap_page(dma_dev, unmap_addr, (size_t )buffer->unmap_len, 1); } } buffer->unmap_len = 0U; } else { } if (((int )buffer->flags & 2) != 0) { { *pkts_compl = *pkts_compl + 1U; *bytes_compl = *bytes_compl + (unsigned int )(buffer->__annonCompField86.skb)->len; dev_kfree_skb_any((struct sk_buff *)buffer->__annonCompField86.skb); } } else if (((int )buffer->flags & 4) != 0) { { kfree((void const *)buffer->__annonCompField86.heap_buf); } } else { } buffer->len = 0U; buffer->flags = 0U; return; } } static int efx_enqueue_skb_tso(struct efx_tx_queue *tx_queue , struct sk_buff *skb ) ; __inline static unsigned int efx_max_tx_len(struct efx_nic *efx , dma_addr_t dma_addr ) { unsigned int len ; unsigned int __min1 ; unsigned int __min2 ; int tmp ; { { len = (~ ((unsigned int )dma_addr) & 4095U) + 1U; tmp = efx_nic_rev(efx); } if (tmp <= 1 && (dma_addr & 15ULL) != 0ULL) { __min1 = len; __min2 = 512U - ((unsigned int )dma_addr & 15U); len = __min1 < __min2 ? __min1 : __min2; } else { } return (len); } } unsigned int efx_tx_max_skb_descs(struct efx_nic *efx ) { unsigned int max_descs ; int tmp ; int tmp___0 ; { { max_descs = 217U; tmp = efx_nic_rev(efx); } if (tmp <= 1) { max_descs = max_descs + 100U; } else { { tmp___0 = efx_nic_rev(efx); } if (tmp___0 > 3) { max_descs = max_descs + 100U; } else { } } return (max_descs); } } static struct efx_tx_queue *efx_tx_queue_partner(struct efx_tx_queue *tx_queue ) { { if ((int )tx_queue->queue & 1) { return (tx_queue + 0xffffffffffffffffUL); } else { return (tx_queue + 1UL); } } } static void efx_tx_maybe_stop_queue(struct efx_tx_queue *txq1 ) { struct efx_tx_queue *txq2 ; struct efx_tx_queue *tmp ; struct efx_nic *efx ; unsigned int fill_level ; unsigned int _max1 ; unsigned int _max2 ; long tmp___0 ; unsigned int _max1___0 ; unsigned int _max2___0 ; long tmp___1 ; long tmp___2 ; { { tmp = efx_tx_queue_partner(txq1); txq2 = tmp; efx = txq1->efx; _max1 = txq1->insert_count - txq1->old_read_count; _max2 = txq2->insert_count - txq2->old_read_count; fill_level = _max1 > _max2 ? _max1 : _max2; tmp___0 = ldv__builtin_expect(fill_level < efx->txq_stop_thresh, 1L); } if (tmp___0 != 0L) { return; } else { } { netif_tx_stop_queue(txq1->core_txq); __asm__ volatile ("mfence": : : "memory"); txq1->old_read_count = *((unsigned int volatile *)(& txq1->read_count)); txq2->old_read_count = *((unsigned int volatile *)(& txq2->read_count)); _max1___0 = txq1->insert_count - txq1->old_read_count; _max2___0 = txq2->insert_count - txq2->old_read_count; fill_level = _max1___0 > _max2___0 ? _max1___0 : _max2___0; tmp___2 = ldv__builtin_expect(fill_level < efx->txq_stop_thresh, 1L); } if (tmp___2 != 0L) { { __asm__ volatile ("mfence": : : "memory"); tmp___1 = ldv__builtin_expect((unsigned long )efx->loopback_selftest == (unsigned long )((void *)0), 1L); } if (tmp___1 != 0L) { { netif_tx_start_queue(txq1->core_txq); } } else { } } else { } return; } } static void efx_memcpy_toio_aligned(struct efx_nic *efx , u8 **piobuf , u8 *data , int len , struct efx_short_copy_buffer *copy_buf ) { int block_len ; long tmp ; long tmp___0 ; { { block_len = len & -64; memcpy_toio((void volatile *)*piobuf, (void const *)data, (size_t )block_len); *piobuf = *piobuf + (unsigned long )block_len; len = len - block_len; } if (len != 0) { { data = data + (unsigned long )block_len; tmp = ldv__builtin_expect(copy_buf->used != 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 *)"drivers/net/ethernet/sfc/tx.c"), "i" (207), "i" (12UL)); __builtin_unreachable(); } } else { } { tmp___0 = ldv__builtin_expect((unsigned int )len > 64U, 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 *)"drivers/net/ethernet/sfc/tx.c"), "i" (208), "i" (12UL)); __builtin_unreachable(); } } else { } { memcpy((void *)(& copy_buf->buf), (void const *)data, (size_t )len); copy_buf->used = len; } } else { } return; } } static void efx_memcpy_toio_aligned_cb(struct efx_nic *efx , u8 **piobuf , u8 *data , int len , struct efx_short_copy_buffer *copy_buf ) { int copy_to_buf ; int __min1 ; int __min2 ; { if (copy_buf->used != 0) { { __min1 = (int )(64U - (unsigned int )copy_buf->used); __min2 = len; copy_to_buf = __min1 < __min2 ? __min1 : __min2; memcpy((void *)(& copy_buf->buf) + (unsigned long )copy_buf->used, (void const *)data, (size_t )copy_to_buf); copy_buf->used = copy_buf->used + copy_to_buf; } if ((unsigned int )copy_buf->used <= 63U) { return; } else { } { memcpy_toio((void volatile *)*piobuf, (void const *)(& copy_buf->buf), 64UL); *piobuf = *piobuf + 64UL; data = data + (unsigned long )copy_to_buf; len = len - copy_to_buf; copy_buf->used = 0; } } else { } { efx_memcpy_toio_aligned(efx, piobuf, data, len, copy_buf); } return; } } static void efx_flush_copy_buffer(struct efx_nic *efx , u8 *piobuf , struct efx_short_copy_buffer *copy_buf ) { { if (copy_buf->used != 0) { { memcpy_toio((void volatile *)piobuf, (void const *)(& copy_buf->buf), 64UL); } } else { } return; } } extern void __compiletime_assert_271(void) ; static void efx_skb_copy_bits_to_pio(struct efx_nic *efx , struct sk_buff *skb , u8 **piobuf , struct efx_short_copy_buffer *copy_buf ) { int i ; unsigned int tmp ; skb_frag_t *f ; unsigned char *tmp___0 ; u8 *vaddr ; struct page *tmp___1 ; void *tmp___2 ; unsigned int tmp___3 ; bool __cond ; unsigned char *tmp___4 ; { { tmp = skb_headlen((struct sk_buff const *)skb); efx_memcpy_toio_aligned(efx, piobuf, skb->data, (int )tmp, copy_buf); i = 0; } goto ldv_51538; ldv_51537: { tmp___0 = skb_end_pointer((struct sk_buff const *)skb); f = (skb_frag_t *)(& ((struct skb_shared_info *)tmp___0)->frags) + (unsigned long )i; tmp___1 = skb_frag_page((skb_frag_t const *)f); tmp___2 = kmap_atomic(tmp___1); vaddr = (u8 *)tmp___2; tmp___3 = skb_frag_size((skb_frag_t const *)f); efx_memcpy_toio_aligned_cb(efx, piobuf, vaddr + (unsigned long )f->page_offset, (int )tmp___3, copy_buf); __cond = 0; } if ((int )__cond) { { __compiletime_assert_271(); } } else { } { __kunmap_atomic((void *)vaddr); i = i + 1; } ldv_51538: { tmp___4 = skb_end_pointer((struct sk_buff const *)skb); } if (i < (int )((struct skb_shared_info *)tmp___4)->nr_frags) { goto ldv_51537; } else { } return; } } static struct efx_tx_buffer *efx_enqueue_skb_pio(struct efx_tx_queue *tx_queue , struct sk_buff *skb ) { struct efx_tx_buffer *buffer ; struct efx_tx_buffer *tmp ; u8 *piobuf ; struct efx_short_copy_buffer copy_buf ; bool __cond ; unsigned char *tmp___0 ; { { tmp = efx_tx_queue_get_insert_buffer((struct efx_tx_queue const *)tx_queue); buffer = tmp; piobuf = (u8 *)tx_queue->piobuf; tmp___0 = skb_end_pointer((struct sk_buff const *)skb); } if ((unsigned int )((struct skb_shared_info *)tmp___0)->nr_frags != 0U) { { copy_buf.used = 0; efx_skb_copy_bits_to_pio(tx_queue->efx, skb, & piobuf, & copy_buf); efx_flush_copy_buffer(tx_queue->efx, piobuf, & copy_buf); } } else { __cond = 0; if ((int )__cond) { { __compiletime_assert_306(); } } else { } { memcpy_toio((void volatile *)tx_queue->piobuf, (void const *)skb->data, (size_t )(skb->len + 63U) & 4294967232UL); } } buffer->__annonCompField87.option.u64[0] = (((unsigned long long )skb->len << 32) | (unsigned long long )tx_queue->piobuf_offset) | 0x9000000000000000ULL; tx_queue->pio_packets = tx_queue->pio_packets + 1U; tx_queue->insert_count = tx_queue->insert_count + 1U; return (buffer); } } netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue , struct sk_buff *skb ) { struct efx_nic *efx ; struct device *dma_dev ; struct efx_tx_buffer *buffer ; skb_frag_t *fragment ; unsigned int len ; unsigned int unmap_len ; dma_addr_t dma_addr ; dma_addr_t unmap_addr ; unsigned int dma_len ; unsigned short dma_flags ; int i ; int tmp ; unsigned char *tmp___0 ; int tmp___1 ; int tmp___2 ; bool tmp___3 ; struct efx_tx_queue *tmp___4 ; bool tmp___5 ; int tmp___6 ; long tmp___7 ; long tmp___8 ; unsigned char *tmp___9 ; unsigned char *tmp___10 ; unsigned char *tmp___11 ; unsigned int pkts_compl ; unsigned int bytes_compl ; { { efx = tx_queue->efx; dma_dev = & (efx->pci_dev)->dev; unmap_len = 0U; unmap_addr = 0ULL; i = 0; tmp___0 = skb_end_pointer((struct sk_buff const *)skb); } if ((unsigned int )((struct skb_shared_info *)tmp___0)->gso_size != 0U) { { tmp = efx_enqueue_skb_tso(tx_queue, skb); } return ((netdev_tx_t )tmp); } else { } { len = skb_headlen((struct sk_buff const *)skb); tmp___2 = efx_nic_rev(efx); } if (tmp___2 <= 2 && skb->len <= 32U) { { len = 33U; tmp___1 = skb_pad(skb, (int )(len - skb->len)); } if (tmp___1 != 0) { return (0); } else { } } else { } if (skb->len <= efx_piobuf_size && (unsigned long )tx_queue->piobuf != (unsigned long )((void *)0)) { { tmp___3 = efx_nic_tx_is_empty(tx_queue); } if ((int )tmp___3) { { tmp___4 = efx_tx_queue_partner(tx_queue); tmp___5 = efx_nic_tx_is_empty(tmp___4); } if ((int )tmp___5) { { buffer = efx_enqueue_skb_pio(tx_queue, skb); dma_flags = 16U; } goto finish_packet; } else { } } else { } } else { } { dma_flags = 8U; dma_addr = dma_map_single_attrs(dma_dev, (void *)skb->data, (size_t )len, 1, (struct dma_attrs *)0); } ldv_51571: { tmp___6 = dma_mapping_error(dma_dev, dma_addr); tmp___7 = ldv__builtin_expect(tmp___6 != 0, 0L); } if (tmp___7 != 0L) { goto dma_err; } else { } unmap_len = len; unmap_addr = dma_addr; ldv_51568: { buffer = efx_tx_queue_get_insert_buffer((struct efx_tx_queue const *)tx_queue); dma_len = efx_max_tx_len(efx, dma_addr); tmp___8 = ldv__builtin_expect(dma_len >= len, 1L); } if (tmp___8 != 0L) { dma_len = len; } else { } buffer->len = (unsigned short )dma_len; buffer->__annonCompField87.dma_addr = dma_addr; buffer->flags = 1U; len = len - dma_len; dma_addr = dma_addr + (dma_addr_t )dma_len; tx_queue->insert_count = tx_queue->insert_count + 1U; if (len != 0U) { goto ldv_51568; } else { } { buffer->flags = (unsigned int )dma_flags | 1U; buffer->unmap_len = (unsigned short )unmap_len; buffer->dma_offset = (int )((unsigned short )buffer->__annonCompField87.dma_addr) - (int )((unsigned short )unmap_addr); unmap_len = 0U; tmp___9 = skb_end_pointer((struct sk_buff const *)skb); } if (i >= (int )((struct skb_shared_info *)tmp___9)->nr_frags) { goto ldv_51570; } else { } { tmp___10 = skb_end_pointer((struct sk_buff const *)skb); fragment = (skb_frag_t *)(& ((struct skb_shared_info *)tmp___10)->frags) + (unsigned long )i; len = skb_frag_size((skb_frag_t const *)fragment); i = i + 1; dma_flags = 0U; dma_addr = skb_frag_dma_map(dma_dev, (skb_frag_t const *)fragment, 0UL, (size_t )len, 1); } goto ldv_51571; ldv_51570: ; finish_packet: { buffer->__annonCompField86.skb = (struct sk_buff const *)skb; buffer->flags = (unsigned int )dma_flags | 2U; netdev_tx_sent_queue(tx_queue->core_txq, skb->len); efx_nic_push_buffers(tx_queue); efx_tx_maybe_stop_queue(tx_queue); } return (0); dma_err: ; if ((efx->msg_enable & 128U) != 0U) { { tmp___11 = skb_end_pointer((struct sk_buff const *)skb); netdev_err((struct net_device const *)efx->net_dev, " TX queue %d could not map skb with %d bytes %d fragments for DMA\n", tx_queue->queue, skb->len, (int )((struct skb_shared_info *)tmp___11)->nr_frags + 1); } } else { } { dev_kfree_skb_any(skb); } goto ldv_51575; ldv_51574: { pkts_compl = 0U; bytes_compl = 0U; tx_queue->insert_count = tx_queue->insert_count - 1U; buffer = __efx_tx_queue_get_insert_buffer((struct efx_tx_queue const *)tx_queue); efx_dequeue_buffer(tx_queue, buffer, & pkts_compl, & bytes_compl); } ldv_51575: ; if (tx_queue->insert_count != tx_queue->write_count) { goto ldv_51574; } else { } if (unmap_len != 0U) { if (((int )dma_flags & 8) != 0) { { dma_unmap_single_attrs(dma_dev, unmap_addr, (size_t )unmap_len, 1, (struct dma_attrs *)0); } } else { { dma_unmap_page(dma_dev, unmap_addr, (size_t )unmap_len, 1); } } } else { } return (0); } } static void efx_dequeue_buffers(struct efx_tx_queue *tx_queue , unsigned int index , unsigned int *pkts_compl , unsigned int *bytes_compl ) { struct efx_nic *efx ; unsigned int stop_index ; unsigned int read_ptr ; struct efx_tx_buffer *buffer ; long tmp ; { efx = tx_queue->efx; stop_index = (index + 1U) & tx_queue->ptr_mask; read_ptr = tx_queue->read_count & tx_queue->ptr_mask; goto ldv_51588; ldv_51587: buffer = tx_queue->buffer + (unsigned long )read_ptr; if (((int )buffer->flags & 16) == 0) { { tmp = ldv__builtin_expect((unsigned int )buffer->len == 0U, 0L); } if (tmp != 0L) { if ((efx->msg_enable & 128U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "TX queue %d spurious TX completion id %x\n", tx_queue->queue, read_ptr); } } else { } { efx_schedule_reset(efx, 11); } return; } else { } } else { } { efx_dequeue_buffer(tx_queue, buffer, pkts_compl, bytes_compl); tx_queue->read_count = tx_queue->read_count + 1U; read_ptr = tx_queue->read_count & tx_queue->ptr_mask; } ldv_51588: ; if (read_ptr != stop_index) { goto ldv_51587; } else { } return; } } netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb , struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; struct efx_tx_queue *tx_queue ; unsigned int index ; unsigned int type ; int tmp___0 ; bool tmp___1 ; long tmp___2 ; bool tmp___3 ; long tmp___4 ; u16 tmp___5 ; netdev_tx_t tmp___6 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___1 = efx_xmit_with_hwtstamp(skb); tmp___2 = ldv__builtin_expect((long )tmp___1, 0L); } if (tmp___2 != 0L) { { tmp___3 = efx_ptp_is_ptp_tx(efx, skb); tmp___4 = ldv__builtin_expect((long )tmp___3, 0L); } if (tmp___4 != 0L) { { tmp___0 = efx_ptp_tx(efx, skb); } return ((netdev_tx_t )tmp___0); } else { } } else { } { tmp___5 = skb_get_queue_mapping((struct sk_buff const *)skb); index = (unsigned int )tmp___5; type = (unsigned int )*((unsigned char *)skb + 124UL) == 12U; } if (index >= efx->n_tx_channels) { index = index - efx->n_tx_channels; type = type | 2U; } else { } { tx_queue = efx_get_tx_queue(efx, index, type); tmp___6 = efx_enqueue_skb(tx_queue, skb); } return (tmp___6); } } void efx_init_tx_queue_core_txq(struct efx_tx_queue *tx_queue ) { struct efx_nic *efx ; { { efx = tx_queue->efx; tx_queue->core_txq = netdev_get_tx_queue((struct net_device const *)efx->net_dev, tx_queue->queue / 4U + ((tx_queue->queue & 2U) != 0U ? efx->n_tx_channels : 0U)); } return; } } int efx_setup_tc(struct net_device *net_dev , u8 num_tc ) { struct efx_nic *efx ; void *tmp ; struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; unsigned int tc ; int rc ; int tmp___0 ; bool tmp___1 ; int tmp___2 ; int __max1 ; int __max2 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___0 = efx_nic_rev(efx); } if (tmp___0 <= 1 || (unsigned int )num_tc > 2U) { return (-22); } else { } if ((int )num_tc == (int )net_dev->num_tc) { return (0); } else { } tc = 0U; goto ldv_51612; ldv_51611: net_dev->tc_to_txq[tc].offset = (int )((u16 )tc) * (int )((u16 )efx->n_tx_channels); net_dev->tc_to_txq[tc].count = (u16 )efx->n_tx_channels; tc = tc + 1U; ldv_51612: ; if (tc < (unsigned int )num_tc) { goto ldv_51611; } else { } if ((int )num_tc > (int )net_dev->num_tc) { channel = efx->channel[0]; goto ldv_51619; ldv_51618: { tmp___1 = efx_channel_has_tx_queues(channel); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_51616; ldv_51615: ; if ((tx_queue->queue & 2U) == 0U) { goto ldv_51614; } else { } if ((unsigned long )tx_queue->buffer == (unsigned long )((struct efx_tx_buffer *)0)) { { rc = efx_probe_tx_queue(tx_queue); } if (rc != 0) { return (rc); } else { } } else { } if (! tx_queue->initialised) { { efx_init_tx_queue(tx_queue); } } else { } { efx_init_tx_queue_core_txq(tx_queue); } ldv_51614: tx_queue = tx_queue + 1; ldv_51616: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { goto ldv_51615; } else { } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_51619: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_51618; } else { } } else { net_dev->num_tc = num_tc; } { __max1 = (int )num_tc; __max2 = 1; rc = netif_set_real_num_tx_queues(net_dev, (unsigned int )(__max1 > __max2 ? __max1 : __max2) * efx->n_tx_channels); } if (rc != 0) { return (rc); } else { } net_dev->num_tc = num_tc; return (0); } } void efx_xmit_done(struct efx_tx_queue *tx_queue , unsigned int index ) { unsigned int fill_level ; struct efx_nic *efx ; struct efx_tx_queue *txq2 ; unsigned int pkts_compl ; unsigned int bytes_compl ; unsigned int _max1 ; unsigned int _max2 ; bool tmp ; long tmp___0 ; long tmp___1 ; bool tmp___2 ; long tmp___3 ; { { efx = tx_queue->efx; pkts_compl = 0U; bytes_compl = 0U; efx_dequeue_buffers(tx_queue, index, & pkts_compl, & bytes_compl); netdev_tx_completed_queue(tx_queue->core_txq, pkts_compl, bytes_compl); } if (pkts_compl > 1U) { tx_queue->merge_events = tx_queue->merge_events + 1U; } else { } { __asm__ volatile ("mfence": : : "memory"); tmp = netif_tx_queue_stopped((struct netdev_queue const *)tx_queue->core_txq); tmp___0 = ldv__builtin_expect((long )tmp, 0L); } if (tmp___0 != 0L) { { tmp___1 = ldv__builtin_expect((long )efx->port_enabled, 1L); } if (tmp___1 != 0L) { { tmp___2 = netif_device_present(efx->net_dev); tmp___3 = ldv__builtin_expect((long )tmp___2, 1L); } if (tmp___3 != 0L) { { txq2 = efx_tx_queue_partner(tx_queue); _max1 = tx_queue->insert_count - tx_queue->read_count; _max2 = txq2->insert_count - txq2->read_count; fill_level = _max1 > _max2 ? _max1 : _max2; } if (fill_level <= efx->txq_wake_thresh) { { netif_tx_wake_queue(tx_queue->core_txq); } } else { } } else { } } else { } } else { } if ((int )(tx_queue->read_count - tx_queue->old_write_count) >= 0) { tx_queue->old_write_count = *((unsigned int volatile *)(& tx_queue->write_count)); if (tx_queue->read_count == tx_queue->old_write_count) { __asm__ volatile ("mfence": : : "memory"); tx_queue->empty_read_count = tx_queue->read_count | 2147483648U; } else { } } else { } return; } } static unsigned int efx_tsoh_page_count(struct efx_tx_queue *tx_queue ) { { return ((unsigned int )(((unsigned long )(tx_queue->ptr_mask + 1U) + 63UL) / 64UL)); } } int efx_probe_tx_queue(struct efx_tx_queue *tx_queue ) { struct efx_nic *efx ; unsigned int entries ; int rc ; unsigned long _max1 ; unsigned long tmp___67 ; unsigned long _max2 ; struct _ddebug descriptor ; long tmp___68 ; void *tmp___69 ; unsigned int tmp___70 ; void *tmp___71 ; { { efx = tx_queue->efx; tmp___67 = __roundup_pow_of_two((unsigned long )efx->txq_entries); _max1 = tmp___67; _max2 = 512UL; entries = (unsigned int )(_max1 > _max2 ? _max1 : _max2); tx_queue->ptr_mask = entries - 1U; } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_probe_tx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/tx.c"; descriptor.format = "creating TX queue %d size %#x mask %#x\n"; descriptor.lineno = 685U; descriptor.flags = 0U; tmp___68 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___68 != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "creating TX queue %d size %#x mask %#x\n", tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask); } } else { } } else { } { tmp___69 = kcalloc((size_t )entries, 24UL, 208U); tx_queue->buffer = (struct efx_tx_buffer *)tmp___69; } if ((unsigned long )tx_queue->buffer == (unsigned long )((struct efx_tx_buffer *)0)) { return (-12); } else { } if ((int )tx_queue->queue & 1) { { tmp___70 = efx_tsoh_page_count(tx_queue); tmp___71 = kcalloc((size_t )tmp___70, 24UL, 208U); tx_queue->tsoh_page = (struct efx_buffer *)tmp___71; } if ((unsigned long )tx_queue->tsoh_page == (unsigned long )((struct efx_buffer *)0)) { rc = -12; goto fail1; } else { } } else { } { rc = efx_nic_probe_tx(tx_queue); } if (rc != 0) { goto fail2; } else { } return (0); fail2: { kfree((void const *)tx_queue->tsoh_page); tx_queue->tsoh_page = (struct efx_buffer *)0; } fail1: { kfree((void const *)tx_queue->buffer); tx_queue->buffer = (struct efx_tx_buffer *)0; } return (rc); } } void efx_init_tx_queue(struct efx_tx_queue *tx_queue ) { struct _ddebug descriptor ; long tmp ; { if ((int )(tx_queue->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_init_tx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/tx.c"; descriptor.format = "initialising TX queue %d\n"; descriptor.lineno = 722U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(tx_queue->efx)->net_dev, "initialising TX queue %d\n", tx_queue->queue); } } else { } } else { } { tx_queue->insert_count = 0U; tx_queue->write_count = 0U; tx_queue->old_write_count = 0U; tx_queue->read_count = 0U; tx_queue->old_read_count = 0U; tx_queue->empty_read_count = 2147483648U; efx_nic_init_tx(tx_queue); tx_queue->initialised = 1; } return; } } void efx_fini_tx_queue(struct efx_tx_queue *tx_queue ) { struct efx_tx_buffer *buffer ; struct _ddebug descriptor ; long tmp ; unsigned int pkts_compl ; unsigned int bytes_compl ; { if ((int )(tx_queue->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_fini_tx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/tx.c"; descriptor.format = "shutting down TX queue %d\n"; descriptor.lineno = 742U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(tx_queue->efx)->net_dev, "shutting down TX queue %d\n", tx_queue->queue); } } else { } } else { } if ((unsigned long )tx_queue->buffer == (unsigned long )((struct efx_tx_buffer *)0)) { return; } else { } goto ldv_51666; ldv_51665: { pkts_compl = 0U; bytes_compl = 0U; buffer = tx_queue->buffer + (unsigned long )(tx_queue->read_count & tx_queue->ptr_mask); efx_dequeue_buffer(tx_queue, buffer, & pkts_compl, & bytes_compl); tx_queue->read_count = tx_queue->read_count + 1U; } ldv_51666: ; if (tx_queue->read_count != tx_queue->write_count) { goto ldv_51665; } else { } { netdev_tx_reset_queue(tx_queue->core_txq); } return; } } void efx_remove_tx_queue(struct efx_tx_queue *tx_queue ) { int i ; struct _ddebug descriptor ; long tmp ; unsigned int tmp___0 ; { if ((unsigned long )tx_queue->buffer == (unsigned long )((struct efx_tx_buffer *)0)) { return; } else { } if ((int )(tx_queue->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_remove_tx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/tx.c"; descriptor.format = "destroying TX queue %d\n"; descriptor.lineno = 766U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(tx_queue->efx)->net_dev, "destroying TX queue %d\n", tx_queue->queue); } } else { } } else { } { efx_nic_remove_tx(tx_queue); } if ((unsigned long )tx_queue->tsoh_page != (unsigned long )((struct efx_buffer *)0)) { i = 0; goto ldv_51675; ldv_51674: { efx_nic_free_buffer(tx_queue->efx, tx_queue->tsoh_page + (unsigned long )i); i = i + 1; } ldv_51675: { tmp___0 = efx_tsoh_page_count(tx_queue); } if ((unsigned int )i < tmp___0) { goto ldv_51674; } else { } { kfree((void const *)tx_queue->tsoh_page); tx_queue->tsoh_page = (struct efx_buffer *)0; } } else { } { kfree((void const *)tx_queue->buffer); tx_queue->buffer = (struct efx_tx_buffer *)0; } return; } } static __be16 efx_tso_check_protocol(struct sk_buff *skb ) { __be16 protocol ; struct vlan_ethhdr *veh ; { protocol = skb->protocol; if ((unsigned int )protocol == 129U) { veh = (struct vlan_ethhdr *)skb->data; protocol = veh->h_vlan_encapsulated_proto; } else { } return (protocol); } } static u8 *efx_tsoh_get_buffer(struct efx_tx_queue *tx_queue , struct efx_tx_buffer *buffer , unsigned int len ) { u8 *result ; unsigned int index ; struct efx_buffer *page_buf ; unsigned int offset ; long tmp ; int tmp___0 ; long tmp___1 ; long tmp___2 ; { { tmp___2 = ldv__builtin_expect(len <= 128U, 1L); } if (tmp___2 != 0L) { { index = (tx_queue->insert_count & tx_queue->ptr_mask) / 2U; page_buf = tx_queue->tsoh_page + (unsigned long )(index / 32U); offset = (index & 31U) * 128U; tmp = ldv__builtin_expect((unsigned long )page_buf->addr == (unsigned long )((void *)0), 0L); } if (tmp != 0L) { { tmp___0 = efx_nic_alloc_buffer(tx_queue->efx, page_buf, 4096U, 32U); } if (tmp___0 != 0) { return ((u8 *)0U); } else { } } else { } result = (u8 *)page_buf->addr + (unsigned long )offset; buffer->__annonCompField87.dma_addr = page_buf->dma_addr + (dma_addr_t )offset; buffer->flags = 1U; } else { { tx_queue->tso_long_headers = tx_queue->tso_long_headers + 1U; buffer->__annonCompField86.heap_buf = kmalloc((size_t )len, 32U); tmp___1 = ldv__builtin_expect((unsigned long )buffer->__annonCompField86.heap_buf == (unsigned long )((void *)0), 0L); } if (tmp___1 != 0L) { return ((u8 *)0U); } else { } result = (u8 *)buffer->__annonCompField86.heap_buf; buffer->flags = 5U; } buffer->len = (unsigned short )len; return (result); } } static void efx_tx_queue_insert(struct efx_tx_queue *tx_queue , dma_addr_t dma_addr , unsigned int len , struct efx_tx_buffer **final_buffer ) { struct efx_tx_buffer *buffer ; struct efx_nic *efx ; unsigned int dma_len ; { efx = tx_queue->efx; ldv_51718: { buffer = efx_tx_queue_get_insert_buffer((struct efx_tx_queue const *)tx_queue); tx_queue->insert_count = tx_queue->insert_count + 1U; buffer->__annonCompField87.dma_addr = dma_addr; dma_len = efx_max_tx_len(efx, dma_addr); } if (dma_len >= len) { goto ldv_51717; } else { } buffer->len = (unsigned short )dma_len; buffer->flags = 1U; dma_addr = dma_addr + (dma_addr_t )dma_len; len = len - dma_len; goto ldv_51718; ldv_51717: buffer->len = (unsigned short )len; *final_buffer = buffer; return; } } static int efx_tso_put_header(struct efx_tx_queue *tx_queue , struct efx_tx_buffer *buffer , u8 *header ) { int tmp ; long tmp___0 ; long tmp___1 ; { { tmp___1 = ldv__builtin_expect(((int )buffer->flags & 4) != 0, 0L); } if (tmp___1 != 0L) { { buffer->__annonCompField87.dma_addr = dma_map_single_attrs(& ((tx_queue->efx)->pci_dev)->dev, (void *)header, (size_t )buffer->len, 1, (struct dma_attrs *)0); tmp = dma_mapping_error(& ((tx_queue->efx)->pci_dev)->dev, buffer->__annonCompField87.dma_addr); tmp___0 = ldv__builtin_expect(tmp != 0, 0L); } if (tmp___0 != 0L) { { kfree((void const *)buffer->__annonCompField86.heap_buf); buffer->len = 0U; buffer->flags = 0U; } return (-12); } else { } buffer->unmap_len = buffer->len; buffer->dma_offset = 0U; buffer->flags = (unsigned int )buffer->flags | 8U; } else { } tx_queue->insert_count = tx_queue->insert_count + 1U; return (0); } } static void efx_enqueue_unwind(struct efx_tx_queue *tx_queue ) { struct efx_tx_buffer *buffer ; { goto ldv_51729; ldv_51728: { tx_queue->insert_count = tx_queue->insert_count - 1U; buffer = __efx_tx_queue_get_insert_buffer((struct efx_tx_queue const *)tx_queue); efx_dequeue_buffer(tx_queue, buffer, (unsigned int *)0U, (unsigned int *)0U); } ldv_51729: ; if (tx_queue->insert_count != tx_queue->write_count) { goto ldv_51728; } else { } return; } } static int tso_start(struct tso_state *st , struct efx_nic *efx , struct sk_buff const *skb ) { bool use_options ; int tmp ; struct device *dma_dev ; unsigned int header_len ; unsigned int in_len ; dma_addr_t dma_addr ; unsigned char *tmp___0 ; unsigned char *tmp___1 ; struct tcphdr *tmp___2 ; unsigned int tmp___3 ; struct iphdr *tmp___4 ; __u16 tmp___5 ; struct tcphdr *tmp___6 ; __u32 tmp___7 ; long tmp___8 ; unsigned int tmp___9 ; int tmp___10 ; long tmp___11 ; { { tmp = efx_nic_rev(efx); use_options = tmp > 3; dma_dev = & (efx->pci_dev)->dev; tmp___0 = skb_network_header(skb); st->ip_off = (unsigned int )((long )tmp___0) - (unsigned int )((long )skb->data); tmp___1 = skb_transport_header(skb); st->tcp_off = (unsigned int )((long )tmp___1) - (unsigned int )((long )skb->data); tmp___2 = tcp_hdr(skb); header_len = st->tcp_off + (unsigned int )((int )tmp___2->doff << 2); tmp___3 = skb_headlen(skb); in_len = tmp___3 - header_len; st->header_len = header_len; st->in_len = in_len; } if ((unsigned int )st->protocol == 8U) { { st->ip_base_len = st->header_len - st->ip_off; tmp___4 = ip_hdr(skb); tmp___5 = __fswab16((int )tmp___4->id); st->ipv4_id = tmp___5; } } else { st->ip_base_len = st->header_len - st->tcp_off; st->ipv4_id = 0U; } { tmp___6 = tcp_hdr(skb); tmp___7 = __fswab32(tmp___6->seq); st->seqnum = tmp___7; st->out_len = (unsigned int )skb->len - header_len; } if (! use_options) { { st->header_unmap_len = 0U; tmp___8 = ldv__builtin_expect(in_len == 0U, 1L); } if (tmp___8 != 0L) { st->dma_flags = 0U; st->unmap_len = 0U; return (0); } else { } { dma_addr = dma_map_single_attrs(dma_dev, (void *)skb->data + (unsigned long )header_len, (size_t )in_len, 1, (struct dma_attrs *)0); st->dma_flags = 8U; st->dma_addr = dma_addr; st->unmap_addr = dma_addr; st->unmap_len = in_len; } } else { { tmp___9 = skb_headlen(skb); dma_addr = dma_map_single_attrs(dma_dev, (void *)skb->data, (size_t )tmp___9, 1, (struct dma_attrs *)0); st->header_dma_addr = dma_addr; st->header_unmap_len = skb_headlen(skb); st->dma_flags = 0U; st->dma_addr = dma_addr + (dma_addr_t )header_len; st->unmap_len = 0U; } } { tmp___10 = dma_mapping_error(dma_dev, dma_addr); tmp___11 = ldv__builtin_expect(tmp___10 != 0, 0L); } return (tmp___11 != 0L ? -12 : 0); } } static int tso_get_fragment(struct tso_state *st , struct efx_nic *efx , skb_frag_t *frag ) { unsigned int tmp ; int tmp___0 ; long tmp___1 ; { { tmp = skb_frag_size((skb_frag_t const *)frag); st->unmap_addr = skb_frag_dma_map(& (efx->pci_dev)->dev, (skb_frag_t const *)frag, 0UL, (size_t )tmp, 1); tmp___0 = dma_mapping_error(& (efx->pci_dev)->dev, st->unmap_addr); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 1L); } if (tmp___1 != 0L) { { st->dma_flags = 0U; st->unmap_len = skb_frag_size((skb_frag_t const *)frag); st->in_len = skb_frag_size((skb_frag_t const *)frag); st->dma_addr = st->unmap_addr; } return (0); } else { } return (-12); } } static void tso_fill_packet_with_fragment(struct efx_tx_queue *tx_queue , struct sk_buff const *skb , struct tso_state *st ) { struct efx_tx_buffer *buffer ; int n ; unsigned int _min1 ; unsigned int _min2 ; { if (st->in_len == 0U) { return; } else { } if (st->packet_space == 0U) { return; } else { } { _min1 = st->in_len; _min2 = st->packet_space; n = (int )(_min1 < _min2 ? _min1 : _min2); st->packet_space = st->packet_space - (unsigned int )n; st->out_len = st->out_len - (unsigned int )n; st->in_len = st->in_len - (unsigned int )n; efx_tx_queue_insert(tx_queue, st->dma_addr, (unsigned int )n, & buffer); } if (st->out_len == 0U) { buffer->__annonCompField86.skb = skb; buffer->flags = 2U; } else if (st->packet_space != 0U) { buffer->flags = 1U; } else { } if (st->in_len == 0U) { buffer->unmap_len = (unsigned short )st->unmap_len; buffer->dma_offset = (int )buffer->unmap_len - (int )buffer->len; buffer->flags = (int )buffer->flags | (int )st->dma_flags; st->unmap_len = 0U; } else { } st->dma_addr = st->dma_addr + (dma_addr_t )n; return; } } static int tso_start_new_packet(struct efx_tx_queue *tx_queue , struct sk_buff const *skb , struct tso_state *st ) { struct efx_tx_buffer *buffer ; struct efx_tx_buffer *tmp ; bool is_last ; unsigned char *tmp___0 ; u8 tcp_flags_clear ; unsigned char *tmp___1 ; struct tcphdr *tsoh_th ; unsigned int ip_length ; u8 *header ; int rc ; __u32 tmp___2 ; struct iphdr *tsoh_iph ; __u16 tmp___3 ; __u16 tmp___4 ; struct ipv6hdr *tsoh_iph___0 ; __u16 tmp___5 ; long tmp___6 ; u8 tcp_flags ; struct tcphdr *tmp___7 ; unsigned char *tmp___8 ; { { tmp = efx_tx_queue_get_insert_buffer((struct efx_tx_queue const *)tx_queue); buffer = tmp; tmp___0 = skb_end_pointer(skb); is_last = st->out_len <= (unsigned int )((struct skb_shared_info *)tmp___0)->gso_size; } if (! is_last) { { tmp___1 = skb_end_pointer(skb); st->packet_space = (unsigned int )((struct skb_shared_info *)tmp___1)->gso_size; tcp_flags_clear = 9U; } } else { st->packet_space = st->out_len; tcp_flags_clear = 0U; } if (st->header_unmap_len == 0U) { { header = efx_tsoh_get_buffer(tx_queue, buffer, st->header_len); } if ((unsigned long )header == (unsigned long )((u8 *)0U)) { return (-12); } else { } { tsoh_th = (struct tcphdr *)header + (unsigned long )st->tcp_off; memcpy((void *)header, (void const *)skb->data, (size_t )st->header_len); tmp___2 = __fswab32(st->seqnum); tsoh_th->seq = tmp___2; *((u8 *)tsoh_th + 13UL) = (u8 )((int )((signed char )*((u8 *)tsoh_th + 13UL)) & ~ ((int )((signed char )tcp_flags_clear))); ip_length = st->ip_base_len + st->packet_space; } if ((unsigned int )st->protocol == 8U) { { tsoh_iph = (struct iphdr *)header + (unsigned long )st->ip_off; tmp___3 = __fswab16((int )((__u16 )ip_length)); tsoh_iph->tot_len = tmp___3; tmp___4 = __fswab16((int )st->ipv4_id); tsoh_iph->id = tmp___4; } } else { { tsoh_iph___0 = (struct ipv6hdr *)header + (unsigned long )st->ip_off; tmp___5 = __fswab16((int )((__u16 )ip_length)); tsoh_iph___0->payload_len = tmp___5; } } { rc = efx_tso_put_header(tx_queue, buffer, header); tmp___6 = ldv__builtin_expect(rc != 0, 0L); } if (tmp___6 != 0L) { return (rc); } else { } } else { { tmp___7 = tcp_hdr(skb); tcp_flags = (u8 )((int )((signed char )*((u8 *)tmp___7 + 13UL)) & ~ ((int )((signed char )tcp_flags_clear))); buffer->flags = 16U; buffer->len = 0U; buffer->unmap_len = 0U; buffer->__annonCompField87.option.u64[0] = ((((unsigned long long )tcp_flags << 48) | ((unsigned long long )st->ipv4_id << 32)) | (unsigned long long )st->seqnum) | 0xf000000000000000ULL; tx_queue->insert_count = tx_queue->insert_count + 1U; buffer = efx_tx_queue_get_insert_buffer((struct efx_tx_queue const *)tx_queue); buffer->__annonCompField87.dma_addr = st->header_dma_addr; buffer->len = (unsigned short )st->header_len; } if ((int )is_last) { buffer->flags = 9U; buffer->unmap_len = (unsigned short )st->header_unmap_len; buffer->dma_offset = 0U; st->header_unmap_len = 0U; } else { buffer->flags = 1U; buffer->unmap_len = 0U; } tx_queue->insert_count = tx_queue->insert_count + 1U; } { tmp___8 = skb_end_pointer(skb); st->seqnum = st->seqnum + (unsigned int )((struct skb_shared_info *)tmp___8)->gso_size; st->ipv4_id = (u16 )((int )st->ipv4_id + 1); tx_queue->tso_packets = tx_queue->tso_packets + 1U; } return (0); } } static int efx_enqueue_skb_tso(struct efx_tx_queue *tx_queue , struct sk_buff *skb ) { struct efx_nic *efx ; int frag_i ; int rc ; struct tso_state state ; unsigned char *tmp ; long tmp___0 ; int tmp___1 ; unsigned char *tmp___2 ; unsigned char *tmp___3 ; int tmp___4 ; { { efx = tx_queue->efx; state.protocol = efx_tso_check_protocol(skb); rc = tso_start(& state, efx, (struct sk_buff const *)skb); } if (rc != 0) { goto mem_err; } else { } { tmp___0 = ldv__builtin_expect(state.in_len == 0U, 1L); } if (tmp___0 != 0L) { { frag_i = 0; tmp = skb_end_pointer((struct sk_buff const *)skb); rc = tso_get_fragment(& state, efx, (skb_frag_t *)(& ((struct skb_shared_info *)tmp)->frags) + (unsigned long )frag_i); } if (rc != 0) { goto mem_err; } else { } } else { frag_i = -1; } { tmp___1 = tso_start_new_packet(tx_queue, (struct sk_buff const *)skb, & state); } if (tmp___1 < 0) { goto mem_err; } else { } ldv_51781: { tso_fill_packet_with_fragment(tx_queue, (struct sk_buff const *)skb, & state); } if (state.in_len == 0U) { { frag_i = frag_i + 1; tmp___2 = skb_end_pointer((struct sk_buff const *)skb); } if (frag_i >= (int )((struct skb_shared_info *)tmp___2)->nr_frags) { goto ldv_51780; } else { } { tmp___3 = skb_end_pointer((struct sk_buff const *)skb); rc = tso_get_fragment(& state, efx, (skb_frag_t *)(& ((struct skb_shared_info *)tmp___3)->frags) + (unsigned long )frag_i); } if (rc != 0) { goto mem_err; } else { } } else { } if (state.packet_space == 0U) { { tmp___4 = tso_start_new_packet(tx_queue, (struct sk_buff const *)skb, & state); } if (tmp___4 < 0) { goto mem_err; } else { } } else { } goto ldv_51781; ldv_51780: { netdev_tx_sent_queue(tx_queue->core_txq, skb->len); efx_nic_push_buffers(tx_queue); efx_tx_maybe_stop_queue(tx_queue); tx_queue->tso_bursts = tx_queue->tso_bursts + 1U; } return (0); mem_err: ; if ((efx->msg_enable & 128U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Out of memory for TSO headers, or DMA mapping error\n"); } } else { } { dev_kfree_skb_any(skb); } if (state.unmap_len != 0U) { if (((int )state.dma_flags & 8) != 0) { { dma_unmap_single_attrs(& (efx->pci_dev)->dev, state.unmap_addr, (size_t )state.unmap_len, 1, (struct dma_attrs *)0); } } else { { dma_unmap_page(& (efx->pci_dev)->dev, state.unmap_addr, (size_t )state.unmap_len, 1); } } } else { } if (state.header_unmap_len != 0U) { { dma_unmap_single_attrs(& (efx->pci_dev)->dev, state.header_dma_addr, (size_t )state.header_unmap_len, 1, (struct dma_attrs *)0); } } else { } { efx_enqueue_unwind(tx_queue); } return (0); } } void __builtin_prefetch(void const * , ...) ; int ldv_spin_trylock_filter_lock_of_efx_nic(void) ; extern int _raw_spin_trylock_bh(raw_spinlock_t * ) ; __inline static void ldv_spin_unlock_bh_78(spinlock_t *lock ) ; __inline static int spin_trylock_bh(spinlock_t *lock ) { int tmp ; { { tmp = _raw_spin_trylock_bh(& lock->__annonCompField19.rlock); } return (tmp); } } __inline static int ldv_spin_trylock_bh_84(spinlock_t *lock ) ; static int ldv_del_timer_sync_83___0(struct timer_list *ldv_func_arg1 ) ; extern void dump_page(struct page * , char * ) ; extern struct page *alloc_pages_current(gfp_t , unsigned int ) ; __inline static struct page *alloc_pages(gfp_t gfp_mask , unsigned int order ) { struct page *tmp ; { { tmp = alloc_pages_current(gfp_mask, order); } return (tmp); } } extern void __free_pages(struct page * , unsigned int ) ; __inline static int PageTail(struct page const *page ) { int tmp ; { { tmp = constant_test_bit(15L, (unsigned long const volatile *)(& page->flags)); } return (tmp); } } __inline static struct page *compound_head(struct page *page ) { struct page *head ; int tmp ; long tmp___0 ; int tmp___1 ; long tmp___2 ; { { tmp___1 = PageTail((struct page const *)page); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); } if (tmp___2 != 0L) { { head = page->__annonCompField46.first_page; __asm__ volatile ("": : : "memory"); tmp = PageTail((struct page const *)page); tmp___0 = ldv__builtin_expect(tmp != 0, 1L); } if (tmp___0 != 0L) { return (head); } else { } } else { } return (page); } } __inline static int page_count(struct page *page ) { struct page *tmp ; int tmp___0 ; { { tmp = compound_head(page); tmp___0 = atomic_read((atomic_t const *)(& tmp->__annonCompField43.__annonCompField42.__annonCompField41._count)); } return (tmp___0); } } extern bool __get_page_tail(struct page * ) ; __inline static void get_page(struct page *page ) { bool tmp ; long tmp___0 ; int tmp___1 ; long tmp___2 ; int tmp___3 ; long tmp___4 ; { { tmp___1 = PageTail((struct page const *)page); tmp___2 = ldv__builtin_expect(tmp___1 != 0, 0L); } if (tmp___2 != 0L) { { tmp = __get_page_tail(page); tmp___0 = ldv__builtin_expect((long )tmp, 1L); } if (tmp___0 != 0L) { return; } else { } } else { } { tmp___3 = atomic_read((atomic_t const *)(& page->__annonCompField43.__annonCompField42.__annonCompField41._count)); tmp___4 = ldv__builtin_expect(tmp___3 <= 0, 0L); } if (tmp___4 != 0L) { { dump_page(page, (char *)0); __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/linux/mm.h"), "i" (488), "i" (12UL)); __builtin_unreachable(); } } else { } { atomic_inc(& page->__annonCompField43.__annonCompField42.__annonCompField41._count); } return; } } extern void put_page(struct page * ) ; extern int net_ratelimit(void) ; extern void debug_dma_sync_single_for_cpu(struct device * , dma_addr_t , size_t , int ) ; __inline static void dma_sync_single_for_cpu(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" (103), "i" (12UL)); __builtin_unreachable(); } } else { } if ((unsigned long )ops->sync_single_for_cpu != (unsigned long )((void (*)(struct device * , dma_addr_t , size_t , enum dma_data_direction ))0)) { { (*(ops->sync_single_for_cpu))(dev, addr, size, dir); } } else { } { debug_dma_sync_single_for_cpu(dev, addr, size, (int )dir); } return; } } __inline static void skb_frag_size_set(skb_frag_t *frag , unsigned int size ) { { frag->size = size; return; } } __inline static void skb_set_hash(struct sk_buff *skb , __u32 hash , enum pkt_hash_types type ) { { skb->l4_rxhash = (unsigned int )type == 3U; skb->rxhash = hash; return; } } __inline static bool skb_is_nonlinear(struct sk_buff const *skb ) { { return ((unsigned int )skb->data_len != 0U); } } __inline static void __skb_fill_page_desc(struct sk_buff *skb , int i , struct page *page , int off , int size ) { skb_frag_t *frag ; unsigned char *tmp ; { { tmp = skb_end_pointer((struct sk_buff const *)skb); frag = (skb_frag_t *)(& ((struct skb_shared_info *)tmp)->frags) + (unsigned long )i; frag->page.p = page; frag->page_offset = (__u32 )off; skb_frag_size_set(frag, (unsigned int )size); page = compound_head(page); } if ((int )page->__annonCompField43.__annonCompField38.pfmemalloc && (unsigned long )page->__annonCompField37.mapping == (unsigned long )((struct address_space *)0)) { skb->pfmemalloc = 1U; } else { } return; } } __inline static void skb_fill_page_desc(struct sk_buff *skb , int i , struct page *page , int off , int size ) { unsigned char *tmp ; { { __skb_fill_page_desc(skb, i, page, off, size); tmp = skb_end_pointer((struct sk_buff const *)skb); ((struct skb_shared_info *)tmp)->nr_frags = (unsigned int )((unsigned char )i) + 1U; } return; } } __inline static unsigned char *skb_tail_pointer(struct sk_buff const *skb ) { { return ((unsigned char *)skb->head + (unsigned long )skb->tail); } } __inline static unsigned char *__skb_put(struct sk_buff *skb , unsigned int len ) { unsigned char *tmp ; unsigned char *tmp___0 ; bool tmp___1 ; long tmp___2 ; { { tmp___0 = skb_tail_pointer((struct sk_buff const *)skb); tmp = tmp___0; tmp___1 = skb_is_nonlinear((struct sk_buff const *)skb); tmp___2 = ldv__builtin_expect((long )tmp___1, 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/linux/skbuff.h"), "i" (1498), "i" (12UL)); __builtin_unreachable(); } } else { } skb->tail = skb->tail + len; skb->len = skb->len + len; return (tmp); } } __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; } } 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 void skb_record_rx_queue(struct sk_buff *skb , u16 rx_queue ) { { skb->queue_mapping = (unsigned int )rx_queue + 1U; return; } } __inline static u16 skb_get_rx_queue(struct sk_buff const *skb ) { { return ((unsigned int )((u16 )skb->queue_mapping) + 65535U); } } __inline static void skb_checksum_none_assert(struct sk_buff const *skb ) { { return; } } extern int netif_receive_skb(struct sk_buff * ) ; extern struct sk_buff *napi_get_frags(struct napi_struct * ) ; extern gro_result_t napi_gro_frags(struct napi_struct * ) ; extern struct bus_type pci_bus_type ; extern bool iommu_present(struct bus_type * ) ; __inline static bool ip_is_fragment(struct iphdr const *iph ) { { return (((int )iph->frag_off & 65343) != 0); } } extern __be16 eth_type_trans(struct sk_buff * , struct net_device * ) ; void __efx_rx_skb_attach_timestamp(struct efx_channel *channel , struct sk_buff *skb ) ; __inline static void efx_rx_skb_attach_timestamp(struct efx_channel *channel , struct sk_buff *skb ) { { if ((unsigned int )channel->sync_events_state == 3U) { { __efx_rx_skb_attach_timestamp(channel, skb); } } else { } return; } } __inline static int efx_nic_probe_rx(struct efx_rx_queue *rx_queue ) { int tmp ; { { tmp = (*(((rx_queue->efx)->type)->rx_probe))(rx_queue); } return (tmp); } } __inline static void efx_nic_init_rx(struct efx_rx_queue *rx_queue ) { { { (*(((rx_queue->efx)->type)->rx_init))(rx_queue); } return; } } __inline static void efx_nic_remove_rx(struct efx_rx_queue *rx_queue ) { { { (*(((rx_queue->efx)->type)->rx_remove))(rx_queue); } return; } } __inline static void efx_nic_notify_rx_desc(struct efx_rx_queue *rx_queue ) { { { (*(((rx_queue->efx)->type)->rx_write))(rx_queue); } return; } } __inline static void efx_nic_generate_fill_event(struct efx_rx_queue *rx_queue ) { { { (*(((rx_queue->efx)->type)->rx_defer_refill))(rx_queue); } return; } } void efx_loopback_rx_packet(struct efx_nic *efx , char const *buf_ptr , int pkt_len ) ; static unsigned int rx_refill_threshold ; __inline static u8 *efx_rx_buf_va(struct efx_rx_buffer *buf ) { void *tmp ; { { tmp = lowmem_page_address((struct page const *)buf->page); } return ((u8 *)tmp + (unsigned long )buf->page_offset); } } __inline static u32 efx_rx_buf_hash(struct efx_nic *efx , u8 const *eh ) { __u32 tmp ; { { tmp = __le32_to_cpup((__le32 const *)eh + (unsigned long )efx->rx_packet_hash_offset); } return (tmp); } } __inline static struct efx_rx_buffer *efx_rx_buf_next(struct efx_rx_queue *rx_queue , struct efx_rx_buffer *rx_buf ) { struct efx_rx_buffer *tmp ; struct efx_rx_buffer *tmp___0 ; long tmp___1 ; { { tmp___0 = efx_rx_buffer(rx_queue, rx_queue->ptr_mask); tmp___1 = ldv__builtin_expect((unsigned long )rx_buf == (unsigned long )tmp___0, 0L); } if (tmp___1 != 0L) { { tmp = efx_rx_buffer(rx_queue, 0U); } return (tmp); } else { return (rx_buf + 1UL); } } } __inline static void efx_sync_rx_buffer(struct efx_nic *efx , struct efx_rx_buffer *rx_buf , unsigned int len ) { { { dma_sync_single_for_cpu(& (efx->pci_dev)->dev, rx_buf->dma_addr, (size_t )len, 2); } return; } } void efx_rx_config_page_split(struct efx_nic *efx ) { { efx->rx_page_buf_step = ((efx->rx_dma_len + efx->rx_ip_align) + 63U) & 4294967232U; efx->rx_bufs_per_page = efx->rx_buffer_order == 0U ? 4032U / efx->rx_page_buf_step : 1U; efx->rx_buffer_truesize = (unsigned int )((4096UL << (int )efx->rx_buffer_order) / (unsigned long )efx->rx_bufs_per_page); efx->rx_pages_per_batch = (efx->rx_bufs_per_page + 7U) / efx->rx_bufs_per_page; return; } } static struct page *efx_reuse_page(struct efx_rx_queue *rx_queue ) { struct efx_nic *efx ; struct page *page ; struct efx_rx_page_state *state ; unsigned int index ; void *tmp ; int tmp___0 ; { efx = rx_queue->efx; index = rx_queue->page_remove & rx_queue->page_ptr_mask; page = *(rx_queue->page_ring + (unsigned long )index); if ((unsigned long )page == (unsigned long )((struct page *)0)) { return ((struct page *)0); } else { } *(rx_queue->page_ring + (unsigned long )index) = (struct page *)0; if (rx_queue->page_remove != rx_queue->page_add) { rx_queue->page_remove = rx_queue->page_remove + 1U; } else { } { tmp___0 = page_count(page); } if (tmp___0 == 1) { rx_queue->page_recycle_count = rx_queue->page_recycle_count + 1U; return (page); } else { { tmp = lowmem_page_address((struct page const *)page); state = (struct efx_rx_page_state *)tmp; dma_unmap_page(& (efx->pci_dev)->dev, state->dma_addr, 4096UL << (int )efx->rx_buffer_order, 2); put_page(page); rx_queue->page_recycle_failed = rx_queue->page_recycle_failed + 1U; } } return ((struct page *)0); } } static int efx_init_rx_buffers(struct efx_rx_queue *rx_queue , bool atomic ) { struct efx_nic *efx ; struct efx_rx_buffer *rx_buf ; struct page *page ; unsigned int page_offset ; struct efx_rx_page_state *state ; dma_addr_t dma_addr ; unsigned int index ; unsigned int count ; long tmp ; int tmp___0 ; long tmp___1 ; void *tmp___2 ; void *tmp___3 ; { efx = rx_queue->efx; count = 0U; ldv_52744: { page = efx_reuse_page(rx_queue); } if ((unsigned long )page == (unsigned long )((struct page *)0)) { { page = alloc_pages((int )atomic ? 16672U : 16848U, efx->rx_buffer_order); tmp = ldv__builtin_expect((unsigned long )page == (unsigned long )((struct page *)0), 0L); } if (tmp != 0L) { return (-12); } else { } { dma_addr = dma_map_page(& (efx->pci_dev)->dev, page, 0UL, 4096UL << (int )efx->rx_buffer_order, 2); tmp___0 = dma_mapping_error(& (efx->pci_dev)->dev, dma_addr); tmp___1 = ldv__builtin_expect(tmp___0 != 0, 0L); } if (tmp___1 != 0L) { { __free_pages(page, efx->rx_buffer_order); } return (-5); } else { } { tmp___2 = lowmem_page_address((struct page const *)page); state = (struct efx_rx_page_state *)tmp___2; state->dma_addr = dma_addr; } } else { { tmp___3 = lowmem_page_address((struct page const *)page); state = (struct efx_rx_page_state *)tmp___3; dma_addr = state->dma_addr; } } dma_addr = dma_addr + 64ULL; page_offset = 64U; ldv_52742: { index = rx_queue->added_count & rx_queue->ptr_mask; rx_buf = efx_rx_buffer(rx_queue, index); rx_buf->dma_addr = dma_addr + (dma_addr_t )efx->rx_ip_align; rx_buf->page = page; rx_buf->page_offset = (int )((u16 )page_offset) + (int )((u16 )efx->rx_ip_align); rx_buf->len = (u16 )efx->rx_dma_len; rx_buf->flags = 0U; rx_queue->added_count = rx_queue->added_count + 1U; get_page(page); dma_addr = dma_addr + (dma_addr_t )efx->rx_page_buf_step; page_offset = page_offset + efx->rx_page_buf_step; } if (page_offset + efx->rx_page_buf_step <= 4096U) { goto ldv_52742; } else { } rx_buf->flags = 1U; count = count + 1U; if (count < efx->rx_pages_per_batch) { goto ldv_52744; } else { } return (0); } } static void efx_unmap_rx_buffer(struct efx_nic *efx , struct efx_rx_buffer *rx_buf ) { struct page *page ; struct efx_rx_page_state *state ; void *tmp ; { page = rx_buf->page; if ((unsigned long )page != (unsigned long )((struct page *)0)) { { tmp = lowmem_page_address((struct page const *)page); state = (struct efx_rx_page_state *)tmp; dma_unmap_page(& (efx->pci_dev)->dev, state->dma_addr, 4096UL << (int )efx->rx_buffer_order, 2); } } else { } return; } } static void efx_free_rx_buffer(struct efx_rx_buffer *rx_buf ) { { if ((unsigned long )rx_buf->page != (unsigned long )((struct page *)0)) { { put_page(rx_buf->page); rx_buf->page = (struct page *)0; } } else { } return; } } static void efx_recycle_rx_page(struct efx_channel *channel , struct efx_rx_buffer *rx_buf ) { struct page *page ; struct efx_rx_queue *rx_queue ; struct efx_rx_queue *tmp ; struct efx_nic *efx ; unsigned int index ; unsigned int read_index ; { { page = rx_buf->page; tmp = efx_channel_get_rx_queue(channel); rx_queue = tmp; efx = rx_queue->efx; } if (((int )rx_buf->flags & 1) == 0) { return; } else { } index = rx_queue->page_add & rx_queue->page_ptr_mask; if ((unsigned long )*(rx_queue->page_ring + (unsigned long )index) == (unsigned long )((struct page *)0)) { read_index = rx_queue->page_remove & rx_queue->page_ptr_mask; if (read_index == index) { rx_queue->page_remove = rx_queue->page_remove + 1U; } else { } *(rx_queue->page_ring + (unsigned long )index) = page; rx_queue->page_add = rx_queue->page_add + 1U; return; } else { } { rx_queue->page_recycle_full = rx_queue->page_recycle_full + 1U; efx_unmap_rx_buffer(efx, rx_buf); put_page(rx_buf->page); } return; } } static void efx_fini_rx_buffer(struct efx_rx_queue *rx_queue , struct efx_rx_buffer *rx_buf ) { { if ((unsigned long )rx_buf->page != (unsigned long )((struct page *)0)) { { put_page(rx_buf->page); } } else { } if ((int )rx_buf->flags & 1) { { efx_unmap_rx_buffer(rx_queue->efx, rx_buf); efx_free_rx_buffer(rx_buf); } } else { } rx_buf->page = (struct page *)0; return; } } static void efx_recycle_rx_pages(struct efx_channel *channel , struct efx_rx_buffer *rx_buf , unsigned int n_frags ) { struct efx_rx_queue *rx_queue ; struct efx_rx_queue *tmp ; { { tmp = efx_channel_get_rx_queue(channel); rx_queue = tmp; } ldv_52774: { efx_recycle_rx_page(channel, rx_buf); rx_buf = efx_rx_buf_next(rx_queue, rx_buf); n_frags = n_frags - 1U; } if (n_frags != 0U) { goto ldv_52774; } else { } return; } } static void efx_discard_rx_packet(struct efx_channel *channel , struct efx_rx_buffer *rx_buf , unsigned int n_frags ) { struct efx_rx_queue *rx_queue ; struct efx_rx_queue *tmp ; { { tmp = efx_channel_get_rx_queue(channel); rx_queue = tmp; efx_recycle_rx_pages(channel, rx_buf, n_frags); } ldv_52782: { efx_free_rx_buffer(rx_buf); rx_buf = efx_rx_buf_next(rx_queue, rx_buf); n_frags = n_frags - 1U; } if (n_frags != 0U) { goto ldv_52782; } else { } return; } } void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue , bool atomic ) { struct efx_nic *efx ; unsigned int fill_level ; unsigned int batch_size ; int space ; int rc ; long tmp ; long tmp___1 ; { efx = rx_queue->efx; rc = 0; if (! rx_queue->refill_enabled) { return; } else { } fill_level = rx_queue->added_count - rx_queue->removed_count; if (fill_level >= rx_queue->fast_fill_trigger) { goto out; } else { } { tmp = ldv__builtin_expect(fill_level < rx_queue->min_fill, 0L); } if (tmp != 0L) { if (fill_level != 0U) { rx_queue->min_fill = fill_level; } else { } } else { } batch_size = efx->rx_pages_per_batch * efx->rx_bufs_per_page; space = (int )(rx_queue->max_fill - fill_level); ldv_52795: { rc = efx_init_rx_buffers(rx_queue, (int )atomic); tmp___1 = ldv__builtin_expect(rc != 0, 0L); } if (tmp___1 != 0L) { if (rx_queue->added_count == rx_queue->removed_count) { { efx_schedule_slow_fill(rx_queue); } } else { } goto out; } else { } space = (int )((unsigned int )space - batch_size); if ((unsigned int )space >= batch_size) { goto ldv_52795; } else { } out: ; if (rx_queue->notified_count != rx_queue->added_count) { { efx_nic_notify_rx_desc(rx_queue); } } else { } return; } } void efx_rx_slow_fill(unsigned long context ) { struct efx_rx_queue *rx_queue ; { { rx_queue = (struct efx_rx_queue *)context; efx_nic_generate_fill_event(rx_queue); rx_queue->slow_fill_count = rx_queue->slow_fill_count + 1U; } return; } } static void efx_rx_packet__check_len(struct efx_rx_queue *rx_queue , struct efx_rx_buffer *rx_buf , int len ) { struct efx_nic *efx ; unsigned int max_len ; long tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; struct efx_channel *tmp___5 ; { { efx = rx_queue->efx; max_len = (unsigned int )rx_buf->len - (unsigned int )(efx->type)->rx_buffer_padding; tmp = ldv__builtin_expect((unsigned int )len <= max_len, 1L); } if (tmp != 0L) { return; } else { } rx_buf->flags = (u16 )((unsigned int )rx_buf->flags | 4U); if (len > (int )rx_buf->len) { { tmp___4 = efx_nic_rev(efx); } if (tmp___4 <= 1) { { tmp___1 = net_ratelimit(); } if (tmp___1 != 0) { if ((efx->msg_enable & 64U) != 0U) { { tmp___0 = efx_rx_queue_index(rx_queue); netdev_err((struct net_device const *)efx->net_dev, " RX queue %d seriously overlength RX event (0x%x > 0x%x+0x%x). Leaking\n", tmp___0, len, max_len, (efx->type)->rx_buffer_padding); } } else { } } else { } { efx_schedule_reset(efx, 9); } } else { goto _L; } } else { _L: /* CIL Label */ { tmp___3 = net_ratelimit(); } if (tmp___3 != 0) { if ((efx->msg_enable & 64U) != 0U) { { tmp___2 = efx_rx_queue_index(rx_queue); netdev_err((struct net_device const *)efx->net_dev, " RX queue %d overlength RX event (0x%x > 0x%x)\n", tmp___2, len, max_len); } } else { } } else { } } { tmp___5 = efx_rx_queue_channel(rx_queue); tmp___5->n_rx_overlength = tmp___5->n_rx_overlength + 1U; } return; } } static void efx_rx_packet_gro(struct efx_channel *channel , struct efx_rx_buffer *rx_buf , unsigned int n_frags , u8 *eh ) { struct napi_struct *napi ; gro_result_t gro_result ; struct efx_nic *efx ; struct sk_buff *skb ; unsigned int tmp ; long tmp___0 ; u32 tmp___1 ; unsigned char *tmp___2 ; unsigned char *tmp___3 ; { { napi = & channel->napi_str; efx = channel->efx; skb = napi_get_frags(napi); tmp___0 = ldv__builtin_expect((unsigned long )skb == (unsigned long )((struct sk_buff *)0), 0L); } if (tmp___0 != 0L) { goto ldv_52820; ldv_52819: { put_page(rx_buf->page); rx_buf->page = (struct page *)0; rx_buf = efx_rx_buf_next(& channel->rx_queue, rx_buf); } ldv_52820: tmp = n_frags; n_frags = n_frags - 1U; if (tmp != 0U) { goto ldv_52819; } else { } return; } else { } if (((efx->net_dev)->features & 2147483648ULL) != 0ULL) { { tmp___1 = efx_rx_buf_hash(efx, (u8 const *)eh); skb_set_hash(skb, tmp___1, 2); } } else { } skb->ip_summed = ((int )rx_buf->flags & 2) != 0; ldv_52823: { tmp___2 = skb_end_pointer((struct sk_buff const *)skb); skb_fill_page_desc(skb, (int )((struct skb_shared_info *)tmp___2)->nr_frags, rx_buf->page, (int )rx_buf->page_offset, (int )rx_buf->len); rx_buf->page = (struct page *)0; skb->len = skb->len + (unsigned int )rx_buf->len; tmp___3 = skb_end_pointer((struct sk_buff const *)skb); } if ((unsigned int )((struct skb_shared_info *)tmp___3)->nr_frags == n_frags) { goto ldv_52822; } else { } { rx_buf = efx_rx_buf_next(& channel->rx_queue, rx_buf); } goto ldv_52823; ldv_52822: { skb->data_len = skb->len; skb->truesize = skb->truesize + n_frags * efx->rx_buffer_truesize; skb_record_rx_queue(skb, (int )((u16 )channel->rx_queue.core_index)); gro_result = napi_gro_frags(napi); } if ((unsigned int )gro_result != 4U) { channel->irq_mod_score = channel->irq_mod_score + 2U; } else { } return; } } static struct sk_buff *efx_rx_mk_skb(struct efx_channel *channel , struct efx_rx_buffer *rx_buf , unsigned int n_frags , u8 *eh , int hdr_len ) { struct efx_nic *efx ; struct sk_buff *skb ; long tmp ; unsigned char *tmp___0 ; unsigned char *tmp___1 ; { { efx = channel->efx; skb = netdev_alloc_skb(efx->net_dev, (efx->rx_ip_align + efx->rx_prefix_size) + (unsigned int )hdr_len); tmp = ldv__builtin_expect((unsigned long )skb == (unsigned long )((struct sk_buff *)0), 0L); } if (tmp != 0L) { return ((struct sk_buff *)0); } else { } { memcpy((void *)skb->data + (unsigned long )efx->rx_ip_align, (void const *)(eh + - ((unsigned long )efx->rx_prefix_size)), (size_t )(efx->rx_prefix_size + (unsigned int )hdr_len)); skb_reserve(skb, (int )(efx->rx_ip_align + efx->rx_prefix_size)); __skb_put(skb, (unsigned int )hdr_len); } if ((int )rx_buf->len > hdr_len) { rx_buf->page_offset = (int )rx_buf->page_offset + (int )((u16 )hdr_len); rx_buf->len = (int )rx_buf->len - (int )((u16 )hdr_len); ldv_52834: { tmp___0 = skb_end_pointer((struct sk_buff const *)skb); skb_fill_page_desc(skb, (int )((struct skb_shared_info *)tmp___0)->nr_frags, rx_buf->page, (int )rx_buf->page_offset, (int )rx_buf->len); rx_buf->page = (struct page *)0; skb->len = skb->len + (unsigned int )rx_buf->len; skb->data_len = skb->data_len + (unsigned int )rx_buf->len; tmp___1 = skb_end_pointer((struct sk_buff const *)skb); } if ((unsigned int )((struct skb_shared_info *)tmp___1)->nr_frags == n_frags) { goto ldv_52833; } else { } { rx_buf = efx_rx_buf_next(& channel->rx_queue, rx_buf); } goto ldv_52834; ldv_52833: ; } else { { __free_pages(rx_buf->page, efx->rx_buffer_order); rx_buf->page = (struct page *)0; n_frags = 0U; } } { skb->truesize = skb->truesize + n_frags * efx->rx_buffer_truesize; skb->protocol = eth_type_trans(skb, efx->net_dev); } return (skb); } } void efx_rx_packet(struct efx_rx_queue *rx_queue , unsigned int index , unsigned int n_frags , unsigned int len , u16 flags ) { struct efx_nic *efx ; struct efx_channel *channel ; struct efx_channel *tmp ; struct efx_rx_buffer *rx_buf ; int __ret_warn_on ; long tmp___0 ; long tmp___1 ; long tmp___2 ; long tmp___3 ; long tmp___4 ; long tmp___6 ; u8 *tmp___7 ; unsigned int tail_frags ; { { efx = rx_queue->efx; tmp = efx_rx_queue_channel(rx_queue); channel = tmp; rx_buf = efx_rx_buffer(rx_queue, index); rx_buf->flags = (u16 )((int )rx_buf->flags | (int )flags); } if (n_frags == 1U) { if (((int )flags & 128) == 0) { { efx_rx_packet__check_len(rx_queue, rx_buf, (int )len); } } else { } } else { { tmp___1 = ldv__builtin_expect(n_frags > 6U, 0L); } if (tmp___1 != 0L) { goto _L; } else { { tmp___2 = ldv__builtin_expect(len <= (n_frags - 1U) * efx->rx_dma_len, 0L); } if (tmp___2 != 0L) { goto _L; } else { { tmp___3 = ldv__builtin_expect(len > n_frags * efx->rx_dma_len, 0L); } if (tmp___3 != 0L) { goto _L; } else { { tmp___4 = ldv__builtin_expect((long )(! efx->rx_scatter), 0L); } if (tmp___4 != 0L) { _L: /* CIL Label */ { __ret_warn_on = len != 0U || ((int )rx_buf->flags & 4) == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/rx.c", 545); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); rx_buf->flags = (u16 )((unsigned int )rx_buf->flags | 4U); } } else { } } } } } { tmp___6 = ldv__builtin_expect(((int )rx_buf->flags & 4) != 0, 0L); } if (tmp___6 != 0L) { { efx_rx_flush_packet(channel); efx_discard_rx_packet(channel, rx_buf, n_frags); } return; } else { } if (n_frags == 1U && ((int )flags & 128) == 0) { rx_buf->len = (u16 )len; } else { } { efx_sync_rx_buffer(efx, rx_buf, (unsigned int )rx_buf->len); tmp___7 = efx_rx_buf_va(rx_buf); __builtin_prefetch((void const *)tmp___7); rx_buf->page_offset = (int )rx_buf->page_offset + (int )((u16 )efx->rx_prefix_size); rx_buf->len = (int )rx_buf->len - (int )((u16 )efx->rx_prefix_size); } if (n_frags > 1U) { tail_frags = n_frags - 1U; ldv_52850: { rx_buf = efx_rx_buf_next(rx_queue, rx_buf); tail_frags = tail_frags - 1U; } if (tail_frags == 0U) { goto ldv_52849; } else { } { efx_sync_rx_buffer(efx, rx_buf, efx->rx_dma_len); } goto ldv_52850; ldv_52849: { rx_buf->len = (int )((u16 )len) - (int )((u16 )(n_frags - 1U)) * (int )((u16 )efx->rx_dma_len); efx_sync_rx_buffer(efx, rx_buf, (unsigned int )rx_buf->len); } } else { } { rx_buf = efx_rx_buffer(rx_queue, index); efx_recycle_rx_pages(channel, rx_buf, n_frags); efx_rx_flush_packet(channel); channel->rx_pkt_n_frags = n_frags; channel->rx_pkt_index = index; } return; } } static void efx_rx_deliver(struct efx_channel *channel , u8 *eh , struct efx_rx_buffer *rx_buf , unsigned int n_frags ) { struct sk_buff *skb ; u16 hdr_len ; u16 __min1 ; u16 __min2 ; long tmp ; long tmp___0 ; bool tmp___1 ; { { __min1 = rx_buf->len; __min2 = 128U; hdr_len = (u16 )((int )__min1 < (int )__min2 ? __min1 : __min2); skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, (int )hdr_len); tmp = ldv__builtin_expect((unsigned long )skb == (unsigned long )((struct sk_buff *)0), 0L); } if (tmp != 0L) { { efx_free_rx_buffer(rx_buf); } return; } else { } { skb_record_rx_queue(skb, (int )((u16 )channel->rx_queue.core_index)); skb_checksum_none_assert((struct sk_buff const *)skb); tmp___0 = ldv__builtin_expect(((int )rx_buf->flags & 2) != 0, 1L); } if (tmp___0 != 0L) { skb->ip_summed = 1U; } else { } { efx_rx_skb_attach_timestamp(channel, skb); } if ((unsigned long )(channel->type)->receive_skb != (unsigned long )((bool (*/* const */)(struct efx_channel * , struct sk_buff * ))0)) { { tmp___1 = (*((channel->type)->receive_skb))(channel, skb); } if ((int )tmp___1) { return; } else { } } else { } { netif_receive_skb(skb); } return; } } void __efx_rx_packet(struct efx_channel *channel ) { struct efx_nic *efx ; struct efx_rx_buffer *rx_buf ; struct efx_rx_buffer *tmp ; u8 *eh ; u8 *tmp___0 ; long tmp___1 ; long tmp___2 ; { { efx = channel->efx; tmp = efx_rx_buffer(& channel->rx_queue, channel->rx_pkt_index); rx_buf = tmp; tmp___0 = efx_rx_buf_va(rx_buf); eh = tmp___0; } if (((int )rx_buf->flags & 128) != 0) { { rx_buf->len = __le16_to_cpup((__le16 const *)eh + (unsigned long )efx->rx_packet_len_offset); } } else { } { tmp___1 = ldv__builtin_expect((unsigned long )efx->loopback_selftest != (unsigned long )((void *)0), 0L); } if (tmp___1 != 0L) { { efx_loopback_rx_packet(efx, (char const *)eh, (int )rx_buf->len); efx_free_rx_buffer(rx_buf); } goto out; } else { } { tmp___2 = ldv__builtin_expect(((efx->net_dev)->features & 4294967296ULL) == 0ULL, 0L); } if (tmp___2 != 0L) { rx_buf->flags = (unsigned int )rx_buf->flags & 65533U; } else { } if (((int )rx_buf->flags & 64) != 0 && (unsigned long )(channel->type)->receive_skb == (unsigned long )((bool (*/* const */)(struct efx_channel * , struct sk_buff * ))0)) { { efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh); } } else { { efx_rx_deliver(channel, eh, rx_buf, channel->rx_pkt_n_frags); } } out: channel->rx_pkt_n_frags = 0U; return; } } int efx_probe_rx_queue(struct efx_rx_queue *rx_queue ) { struct efx_nic *efx ; unsigned int entries ; int rc ; unsigned long _max1 ; unsigned long tmp___67 ; unsigned long _max2 ; struct _ddebug descriptor ; int tmp___68 ; long tmp___69 ; void *tmp___70 ; { { efx = rx_queue->efx; tmp___67 = __roundup_pow_of_two((unsigned long )efx->rxq_entries); _max1 = tmp___67; _max2 = 512UL; entries = (unsigned int )(_max1 > _max2 ? _max1 : _max2); rx_queue->ptr_mask = entries - 1U; } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_probe_rx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/rx.c"; descriptor.format = "creating RX queue %d size %#x mask %#x\n"; descriptor.lineno = 687U; descriptor.flags = 0U; tmp___69 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___69 != 0L) { { tmp___68 = efx_rx_queue_index(rx_queue); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "creating RX queue %d size %#x mask %#x\n", tmp___68, efx->rxq_entries, rx_queue->ptr_mask); } } else { } } else { } { tmp___70 = kcalloc((size_t )entries, 24UL, 208U); rx_queue->buffer = (struct efx_rx_buffer *)tmp___70; } if ((unsigned long )rx_queue->buffer == (unsigned long )((struct efx_rx_buffer *)0)) { return (-12); } else { } { rc = efx_nic_probe_rx(rx_queue); } if (rc != 0) { { kfree((void const *)rx_queue->buffer); rx_queue->buffer = (struct efx_rx_buffer *)0; } } else { } return (rc); } } static void efx_init_rx_recycle_ring(struct efx_nic *efx , struct efx_rx_queue *rx_queue ) { unsigned int bufs_in_recycle_ring ; unsigned int page_ring_size ; bool tmp ; unsigned long tmp___68 ; void *tmp___69 ; { { tmp = iommu_present(& pci_bus_type); } if ((int )tmp) { bufs_in_recycle_ring = 4096U; } else { bufs_in_recycle_ring = 16U; } { tmp___68 = __roundup_pow_of_two((unsigned long )(bufs_in_recycle_ring / efx->rx_bufs_per_page)); page_ring_size = (unsigned int )tmp___68; tmp___69 = kcalloc((size_t )page_ring_size, 8UL, 208U); rx_queue->page_ring = (struct page **)tmp___69; rx_queue->page_ptr_mask = page_ring_size - 1U; } return; } } void efx_init_rx_queue(struct efx_rx_queue *rx_queue ) { struct efx_nic *efx ; unsigned int max_fill ; unsigned int trigger ; unsigned int max_trigger ; struct _ddebug descriptor ; int tmp ; long tmp___0 ; unsigned int _min1 ; unsigned int _min2 ; { efx = rx_queue->efx; if ((int )(rx_queue->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_init_rx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/rx.c"; descriptor.format = "initialising RX queue %d\n"; descriptor.lineno = 732U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___0 != 0L) { { tmp = efx_rx_queue_index(rx_queue); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(rx_queue->efx)->net_dev, "initialising RX queue %d\n", tmp); } } else { } } else { } { rx_queue->added_count = 0U; rx_queue->notified_count = 0U; rx_queue->removed_count = 0U; rx_queue->min_fill = 4294967295U; efx_init_rx_recycle_ring(efx, rx_queue); rx_queue->page_remove = 0U; rx_queue->page_add = rx_queue->page_ptr_mask + 1U; rx_queue->page_recycle_count = 0U; rx_queue->page_recycle_failed = 0U; rx_queue->page_recycle_full = 0U; max_fill = efx->rxq_entries - 7U; max_trigger = max_fill - efx->rx_pages_per_batch * efx->rx_bufs_per_page; } if (rx_refill_threshold != 0U) { _min1 = rx_refill_threshold; _min2 = 100U; trigger = (max_fill * (_min1 < _min2 ? _min1 : _min2)) / 100U; if (trigger > max_trigger) { trigger = max_trigger; } else { } } else { trigger = max_trigger; } { rx_queue->max_fill = max_fill; rx_queue->fast_fill_trigger = trigger; rx_queue->refill_enabled = 1; efx_nic_init_rx(rx_queue); } return; } } void efx_fini_rx_queue(struct efx_rx_queue *rx_queue ) { int i ; struct efx_nic *efx ; struct efx_rx_buffer *rx_buf ; struct _ddebug descriptor ; int tmp ; long tmp___0 ; unsigned int index ; struct page *page ; struct efx_rx_page_state *state ; void *tmp___1 ; { efx = rx_queue->efx; if ((int )(rx_queue->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_fini_rx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/rx.c"; descriptor.format = "shutting down RX queue %d\n"; descriptor.lineno = 774U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___0 != 0L) { { tmp = efx_rx_queue_index(rx_queue); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(rx_queue->efx)->net_dev, "shutting down RX queue %d\n", tmp); } } else { } } else { } { ldv_del_timer_sync_83___0(& rx_queue->slow_fill); } if ((unsigned long )rx_queue->buffer != (unsigned long )((struct efx_rx_buffer *)0)) { i = (int )rx_queue->removed_count; goto ldv_52908; ldv_52907: { index = (unsigned int )i & rx_queue->ptr_mask; rx_buf = efx_rx_buffer(rx_queue, index); efx_fini_rx_buffer(rx_queue, rx_buf); i = i + 1; } ldv_52908: ; if ((unsigned int )i < rx_queue->added_count) { goto ldv_52907; } else { } } else { } i = 0; goto ldv_52914; ldv_52913: page = *(rx_queue->page_ring + (unsigned long )i); if ((unsigned long )page == (unsigned long )((struct page *)0)) { goto ldv_52912; } else { } { tmp___1 = lowmem_page_address((struct page const *)page); state = (struct efx_rx_page_state *)tmp___1; dma_unmap_page(& (efx->pci_dev)->dev, state->dma_addr, 4096UL << (int )efx->rx_buffer_order, 2); put_page(page); } ldv_52912: i = i + 1; ldv_52914: ; if ((unsigned int )i <= rx_queue->page_ptr_mask) { goto ldv_52913; } else { } { kfree((void const *)rx_queue->page_ring); rx_queue->page_ring = (struct page **)0; } return; } } void efx_remove_rx_queue(struct efx_rx_queue *rx_queue ) { struct _ddebug descriptor ; int tmp ; long tmp___0 ; { if ((int )(rx_queue->efx)->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_remove_rx_queue"; descriptor.filename = "drivers/net/ethernet/sfc/rx.c"; descriptor.format = "destroying RX queue %d\n"; descriptor.lineno = 809U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___0 != 0L) { { tmp = efx_rx_queue_index(rx_queue); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)(rx_queue->efx)->net_dev, "destroying RX queue %d\n", tmp); } } else { } } else { } { efx_nic_remove_rx(rx_queue); kfree((void const *)rx_queue->buffer); rx_queue->buffer = (struct efx_rx_buffer *)0; } return; } } int efx_filter_rfs(struct net_device *net_dev , struct sk_buff const *skb , u16 rxq_index , u32 flow_id ) { struct efx_nic *efx ; void *tmp ; struct efx_channel *channel ; struct efx_filter_spec spec ; __be16 const *ports ; __be16 ether_type ; int nhoff ; int rc ; struct vlan_hdr const *vh ; struct iphdr const *ip ; bool tmp___0 ; struct ipv6hdr const *ip6 ; u16 tmp___1 ; __u16 tmp___2 ; __u16 tmp___3 ; __u16 tmp___4 ; __u16 tmp___5 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((unsigned int )((unsigned short )skb->protocol) == 129U) { vh = (struct vlan_hdr const *)skb->data; ether_type = vh->h_vlan_encapsulated_proto; nhoff = 4; } else { ether_type = skb->protocol; nhoff = 0; } if ((unsigned int )ether_type != 8U && (unsigned int )ether_type != 56710U) { return (-93); } else { } { efx_filter_init_rx(& spec, 0, (int )efx->rx_scatter ? 2 : 0, (unsigned int )rxq_index); spec.match_flags = 619U; spec.ether_type = ether_type; } if ((unsigned int )ether_type == 8U) { { ip = (struct iphdr const *)skb->data + (unsigned long )nhoff; tmp___0 = ip_is_fragment(ip); } if ((int )tmp___0) { return (-93); } else { } spec.ip_proto = ip->protocol; spec.rem_host[0] = ip->saddr; spec.loc_host[0] = ip->daddr; ports = (__be16 const *)(skb->data + ((unsigned long )nhoff + (unsigned long )((int )ip->ihl * 4))); } else { { ip6 = (struct ipv6hdr const *)skb->data + (unsigned long )nhoff; spec.ip_proto = ip6->nexthdr; memcpy((void *)(& spec.rem_host), (void const *)(& ip6->saddr), 16UL); memcpy((void *)(& spec.loc_host), (void const *)(& ip6->daddr), 16UL); ports = (__be16 const *)ip6 + 1U; } } { spec.rem_port = *ports; spec.loc_port = *(ports + 1UL); rc = (*((efx->type)->filter_rfs_insert))(efx, & spec); } if (rc < 0) { return (rc); } else { } { *(efx->rps_flow_id + (unsigned long )rc) = flow_id; tmp___1 = skb_get_rx_queue(skb); channel = efx_get_channel(efx, (unsigned int )tmp___1); channel->rfs_filters_added = channel->rfs_filters_added + 1U; } if ((unsigned int )ether_type == 8U) { if ((efx->msg_enable & 2048U) != 0U) { { tmp___2 = __fswab16((int )*(ports + 1UL)); tmp___3 = __fswab16((int )*ports); netdev_info((struct net_device const *)efx->net_dev, "steering %s %pI4:%u:%pI4:%u to queue %u [flow %u filter %d]\n", (unsigned int )spec.ip_proto == 6U ? (char *)"TCP" : (char *)"UDP", (__be32 *)(& spec.rem_host), (int )tmp___3, (__be32 *)(& spec.loc_host), (int )tmp___2, (int )rxq_index, flow_id, rc); } } else { } } else if ((efx->msg_enable & 2048U) != 0U) { { tmp___4 = __fswab16((int )*(ports + 1UL)); tmp___5 = __fswab16((int )*ports); netdev_info((struct net_device const *)efx->net_dev, "steering %s [%pI6]:%u:[%pI6]:%u to queue %u [flow %u filter %d]\n", (unsigned int )spec.ip_proto == 6U ? (char *)"TCP" : (char *)"UDP", (__be32 *)(& spec.rem_host), (int )tmp___5, (__be32 *)(& spec.loc_host), (int )tmp___4, (int )rxq_index, flow_id, rc); } } else { } return (rc); } } bool __efx_filter_rfs_expire(struct efx_nic *efx , unsigned int quota ) { bool (*expire_one)(struct efx_nic * , u32 , unsigned int ) ; unsigned int index ; unsigned int size ; u32 flow_id ; int tmp ; bool tmp___0 ; unsigned int tmp___1 ; { { tmp = ldv_spin_trylock_bh_84(& efx->filter_lock); } if (tmp == 0) { return (0); } else { } expire_one = (efx->type)->filter_rfs_expire_one; index = efx->rps_expire_index; size = (efx->type)->max_rx_ip_filters; goto ldv_52961; ldv_52960: { flow_id = *(efx->rps_flow_id + (unsigned long )index); tmp___0 = (*expire_one)(efx, flow_id, index); } if ((int )tmp___0) { if ((efx->msg_enable & 2048U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "expired filter %d [flow %u]\n", index, flow_id); } } else { } } else { } index = index + 1U; if (index == size) { index = 0U; } else { } ldv_52961: tmp___1 = quota; quota = quota - 1U; if (tmp___1 != 0U) { goto ldv_52960; } else { } { efx->rps_expire_index = index; ldv_spin_unlock_bh_78(& efx->filter_lock); } return (1); } } bool efx_filter_is_mc_recipient(struct efx_filter_spec const *spec ) { bool tmp ; bool tmp___0 ; { if (((int )spec->flags & 8) == 0 || (unsigned int )*((unsigned short *)spec + 1UL) == 65520U) { return (0); } else { } if (((int )spec->match_flags & 1040) != 0) { { tmp = is_multicast_ether_addr((u8 const *)(& spec->loc_mac)); } if ((int )tmp) { return (1); } else { } } else { } if (((int )spec->match_flags & 66) == 66) { if ((unsigned int )((unsigned short )spec->ether_type) == 8U) { { tmp___0 = ipv4_is_multicast(spec->loc_host[0]); } if ((int )tmp___0) { return (1); } else { } } else { } if ((unsigned int )((unsigned short )spec->ether_type) == 56710U && (unsigned int )((unsigned char )*((u8 const *)(& spec->loc_host))) == 255U) { return (1); } else { } } else { } return (0); } } static int ldv_del_timer_sync_83___0(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___0 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_del_timer_sync(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } __inline static int ldv_spin_trylock_bh_84(spinlock_t *lock ) { ldv_func_ret_type___1 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = spin_trylock_bh(lock); ldv_func_res = tmp; tmp___0 = ldv_spin_trylock_filter_lock_of_efx_nic(); } return (tmp___0); return (ldv_func_res); } } __inline static void ldv_spin_lock_46(spinlock_t *lock ) ; __inline static void ldv_spin_lock_51(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_49(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_52(spinlock_t *lock ) ; extern struct workqueue_struct *system_wq ; __inline static bool schedule_delayed_work(struct delayed_work *dwork , unsigned long delay ) { bool tmp ; { { tmp = queue_delayed_work(system_wq, dwork, delay); } return (tmp); } } __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern void kfree_skb(struct sk_buff * ) ; extern void consume_skb(struct sk_buff * ) ; 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); } } __inline static struct sk_buff *skb_get(struct sk_buff *skb ) { { { atomic_inc(& skb->users); } return (skb); } } __inline static int skb_shared(struct sk_buff const *skb ) { int tmp ; { { tmp = atomic_read(& skb->users); } return (tmp != 1); } } extern unsigned char *skb_put(struct sk_buff * , unsigned int ) ; __inline static void napi_disable___0(struct napi_struct *n ) { int tmp ; { { __might_sleep("include/linux/netdevice.h", 486, 0); set_bit(1L, (unsigned long volatile *)(& n->state)); } goto ldv_38323; ldv_38322: { msleep(1U); } ldv_38323: { tmp = test_and_set_bit(0L, (unsigned long volatile *)(& n->state)); } if (tmp != 0) { goto ldv_38322; } else { } { clear_bit(1L, (unsigned long volatile *)(& n->state)); } return; } } __inline static void __netif_tx_lock___1(struct netdev_queue *txq , int cpu ) { { { ldv_spin_lock_46(& txq->_xmit_lock); txq->xmit_lock_owner = cpu; } return; } } __inline static void __netif_tx_unlock___1(struct netdev_queue *txq ) { { { txq->xmit_lock_owner = -1; ldv_spin_unlock_49(& txq->_xmit_lock); } return; } } __inline static void netif_tx_lock___1(struct net_device *dev ) { unsigned int i ; int cpu ; int pscr_ret__ ; void const *__vpp_verify ; int pfo_ret__ ; int pfo_ret_____0 ; int pfo_ret_____1 ; int pfo_ret_____2 ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { { ldv_spin_lock_51(& dev->tx_global_lock); __vpp_verify = (void const *)0; } { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___1; } else { } if (4UL == 8UL) { goto case_8___2; } else { } goto switch_default___3; case_1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1___0: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "m" (cpu_number)); goto ldv_39705; case_2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39705; case_4: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39705; case_8: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "m" (cpu_number)); goto ldv_39705; switch_default: /* CIL Label */ { __bad_percpu_size(); } switch_break___0: /* CIL Label */ ; } ldv_39705: pscr_ret__ = pfo_ret__; goto ldv_39711; case_2___0: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___1; } else { } if (4UL == 2UL) { goto case_2___1; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___1: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39715; case_2___1: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39715; case_4___0: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39715; case_8___0: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____0): "m" (cpu_number)); goto ldv_39715; switch_default___0: /* CIL Label */ { __bad_percpu_size(); } switch_break___1: /* CIL Label */ ; } ldv_39715: pscr_ret__ = pfo_ret_____0; goto ldv_39711; case_4___1: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___2; } else { } if (4UL == 2UL) { goto case_2___2; } else { } if (4UL == 4UL) { goto case_4___2; } else { } if (4UL == 8UL) { goto case_8___1; } else { } goto switch_default___1; case_1___2: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39724; case_2___2: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39724; case_4___2: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39724; case_8___1: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____1): "m" (cpu_number)); goto ldv_39724; switch_default___1: /* CIL Label */ { __bad_percpu_size(); } switch_break___2: /* CIL Label */ ; } ldv_39724: pscr_ret__ = pfo_ret_____1; goto ldv_39711; case_8___2: /* CIL Label */ ; { if (4UL == 1UL) { goto case_1___3; } else { } if (4UL == 2UL) { goto case_2___3; } else { } if (4UL == 4UL) { goto case_4___3; } else { } if (4UL == 8UL) { goto case_8___3; } else { } goto switch_default___2; case_1___3: /* CIL Label */ __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39733; case_2___3: /* CIL Label */ __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39733; case_4___3: /* CIL Label */ __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39733; case_8___3: /* CIL Label */ __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret_____2): "m" (cpu_number)); goto ldv_39733; switch_default___2: /* CIL Label */ { __bad_percpu_size(); } switch_break___3: /* CIL Label */ ; } ldv_39733: pscr_ret__ = pfo_ret_____2; goto ldv_39711; switch_default___3: /* CIL Label */ { __bad_size_call_parameter(); } goto ldv_39711; switch_break: /* CIL Label */ ; } ldv_39711: cpu = pscr_ret__; i = 0U; goto ldv_39743; ldv_39742: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; __netif_tx_lock___1(txq, cpu); set_bit(2L, (unsigned long volatile *)(& txq->state)); __netif_tx_unlock___1(txq); i = i + 1U; } ldv_39743: ; if (i < dev->num_tx_queues) { goto ldv_39742; } else { } return; } } __inline static void netif_tx_lock_bh___0(struct net_device *dev ) { { { local_bh_disable(); netif_tx_lock___1(dev); } return; } } __inline static void netif_tx_unlock___1(struct net_device *dev ) { unsigned int i ; struct netdev_queue *txq ; struct netdev_queue *tmp ; { i = 0U; goto ldv_39754; ldv_39753: { tmp = netdev_get_tx_queue((struct net_device const *)dev, i); txq = tmp; clear_bit(2L, (unsigned long volatile *)(& txq->state)); netif_schedule_queue(txq); i = i + 1U; } ldv_39754: ; if (i < dev->num_tx_queues) { goto ldv_39753; } else { } { ldv_spin_unlock_52(& dev->tx_global_lock); } return; } } __inline static void netif_tx_unlock_bh___0(struct net_device *dev ) { { { netif_tx_unlock___1(dev); local_bh_enable(); } return; } } __inline static void efx_device_detach_sync___0(struct efx_nic *efx ) { struct net_device *dev ; { { dev = efx->net_dev; netif_tx_lock_bh___0(dev); netif_device_detach(dev); netif_tx_unlock_bh___0(dev); } return; } } __inline static int efx_nic_event_test_irq_cpu(struct efx_channel *channel ) { { return ((int )*((int volatile *)(& channel->event_test_cpu))); } } __inline static int efx_nic_irq_test_irq_cpu(struct efx_nic *efx ) { { return ((int )*((int volatile *)(& efx->last_irq_cpu))); } } int efx_selftest(struct efx_nic *efx , struct efx_self_tests *tests , unsigned int flags ) ; static unsigned char const payload_source[6U] = { 0U, 15U, 83U, 27U, 27U, 27U}; static char const payload_msg[55U] = { 'H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '!', ' ', 'T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'a', 'n', ' ', 'E', 'f', 'x', ' ', 'l', 'o', 'o', 'p', 'b', 'a', 'c', 'k', ' ', 't', 'e', 's', 't', ' ', 'i', 'n', ' ', 'p', 'r', 'o', 'g', 'r', 'e', 's', 's', '!', '\000'}; static char const * const efx_interrupt_mode_names[3U] = { "MSI-X", "MSI", "legacy"}; static int efx_test_phy_alive(struct efx_nic *efx , struct efx_self_tests *tests ) { int rc ; { rc = 0; if ((unsigned long )(efx->phy_op)->test_alive != (unsigned long )((int (*/* const */)(struct efx_nic * ))0)) { { rc = (*((efx->phy_op)->test_alive))(efx); tests->phy_alive = rc != 0 ? -1 : 1; } } else { } return (rc); } } static int efx_test_nvram(struct efx_nic *efx , struct efx_self_tests *tests ) { int rc ; { rc = 0; if ((unsigned long )(efx->type)->test_nvram != (unsigned long )((int (*/* const */)(struct efx_nic * ))0)) { { rc = (*((efx->type)->test_nvram))(efx); tests->nvram = rc != 0 ? -1 : 1; } } else { } return (rc); } } static int efx_test_interrupts(struct efx_nic *efx , struct efx_self_tests *tests ) { unsigned long timeout ; unsigned long wait ; int cpu ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; struct _ddebug descriptor___1 ; long tmp___1 ; { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_test_interrupts"; descriptor.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor.format = "testing interrupts\n"; descriptor.lineno = 136U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "testing interrupts\n"); } } else { } } else { } { tests->interrupt = -1; efx_nic_irq_test_start(efx); timeout = (unsigned long )jiffies + 250UL; wait = 1UL; } if ((int )efx->msg_enable & 1) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_test_interrupts"; descriptor___0.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor___0.format = "waiting for test interrupt\n"; descriptor___0.lineno = 144U; 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 *)efx->net_dev, "waiting for test interrupt\n"); } } else { } } else { } ldv_50774: { schedule_timeout_uninterruptible((long )wait); cpu = efx_nic_irq_test_irq_cpu(efx); } if (cpu >= 0) { goto success; } else { } wait = wait * 2UL; if ((long )((unsigned long )jiffies - timeout) < 0L) { goto ldv_50774; } else { } if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "timed out waiting for interrupt\n"); } } else { } return (-110); success: ; if ((int )efx->msg_enable & 1) { { descriptor___1.modname = "sfc"; descriptor___1.function = "efx_test_interrupts"; descriptor___1.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor___1.format = "%s test interrupt seen on CPU%d\n"; descriptor___1.lineno = 158U; 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 *)efx->net_dev, "%s test interrupt seen on CPU%d\n", (unsigned int )efx->interrupt_mode <= 2U ? efx_interrupt_mode_names[(unsigned int )efx->interrupt_mode] : (char const */* const */)"(invalid)", cpu); } } else { } } else { } tests->interrupt = 1; return (0); } } extern void __compiletime_assert_172(void) ; static int efx_test_eventq_irq(struct efx_nic *efx , struct efx_self_tests *tests ) { struct efx_channel *channel ; unsigned int read_ptr[32U] ; unsigned long napi_ran ; unsigned long dma_pend ; unsigned long int_pend ; unsigned long timeout ; unsigned long wait ; bool __cond ; bool tmp ; int tmp___0 ; bool dma_seen ; int tmp___2 ; bool int_seen ; int tmp___4 ; struct _ddebug descriptor ; int tmp___6 ; long tmp___7 ; { napi_ran = 0UL; dma_pend = 0UL; int_pend = 0UL; __cond = 0; if ((int )__cond) { { __compiletime_assert_172(); } } else { } channel = efx->channel[0]; goto ldv_50793; ldv_50792: { read_ptr[channel->channel] = channel->eventq_read_ptr; set_bit((long )channel->channel, (unsigned long volatile *)(& dma_pend)); set_bit((long )channel->channel, (unsigned long volatile *)(& int_pend)); efx_nic_event_test_start(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_50793: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_50792; } else { } timeout = (unsigned long )jiffies + 250UL; wait = 1UL; ldv_50804: { schedule_timeout_uninterruptible((long )wait); channel = efx->channel[0]; } goto ldv_50796; ldv_50795: { napi_disable___0(& channel->napi_str); } if (channel->eventq_read_ptr != read_ptr[channel->channel]) { { set_bit((long )channel->channel, (unsigned long volatile *)(& napi_ran)); clear_bit((long )channel->channel, (unsigned long volatile *)(& dma_pend)); clear_bit((long )channel->channel, (unsigned long volatile *)(& int_pend)); } } else { { tmp = efx_nic_event_present(channel); } if ((int )tmp) { { clear_bit((long )channel->channel, (unsigned long volatile *)(& dma_pend)); } } else { } { tmp___0 = efx_nic_event_test_irq_cpu(channel); } if (tmp___0 >= 0) { { clear_bit((long )channel->channel, (unsigned long volatile *)(& int_pend)); } } else { } } { napi_enable(& channel->napi_str); efx_nic_eventq_read_ack(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_50796: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_50795; } else { } wait = wait * 2UL; if ((dma_pend != 0UL || int_pend != 0UL) && (long )((unsigned long )jiffies - timeout) < 0L) { goto ldv_50804; } else { } channel = efx->channel[0]; goto ldv_50811; ldv_50810: { tmp___2 = variable_test_bit((long )channel->channel, (unsigned long const volatile *)(& dma_pend)); dma_seen = tmp___2 == 0; tmp___4 = variable_test_bit((long )channel->channel, (unsigned long const volatile *)(& int_pend)); int_seen = tmp___4 == 0; tests->eventq_dma[channel->channel] = (int )dma_seen ? 1 : -1; tests->eventq_int[channel->channel] = (int )int_seen ? 1 : -1; } if ((int )dma_seen && (int )int_seen) { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_test_eventq_irq"; descriptor.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor.format = "channel %d event queue passed (with%s NAPI)\n"; descriptor.lineno = 222U; descriptor.flags = 0U; tmp___7 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___7 != 0L) { { tmp___6 = variable_test_bit((long )channel->channel, (unsigned long const volatile *)(& napi_ran)); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "channel %d event queue passed (with%s NAPI)\n", channel->channel, tmp___6 != 0 ? (char *)"" : (char *)"out"); } } else { } } else { } } else { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d timed out waiting for event queue\n", channel->channel); } } else { } if ((int )int_seen) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d saw interrupt during event queue test\n", channel->channel); } } else { } } else { } if ((int )dma_seen) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d event was generated, but failed to trigger an interrupt\n", channel->channel); } } else { } } else { } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_50811: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_50810; } else { } return (dma_pend != 0UL || int_pend != 0UL ? -110 : 0); } } static int efx_test_phy(struct efx_nic *efx , struct efx_self_tests *tests , unsigned int flags ) { int rc ; { if ((unsigned long )(efx->phy_op)->run_tests == (unsigned long )((int (*/* const */)(struct efx_nic * , int * , unsigned int ))0)) { return (0); } else { } { mutex_lock_nested(& efx->mac_lock, 0U); rc = (*((efx->phy_op)->run_tests))(efx, (int *)(& tests->phy_ext), flags); mutex_unlock(& efx->mac_lock); } return (rc); } } void efx_loopback_rx_packet(struct efx_nic *efx , char const *buf_ptr , int pkt_len ) { struct efx_loopback_state *state ; struct efx_loopback_payload *received ; struct efx_loopback_payload *payload ; long tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; __u16 tmp___3 ; __u16 tmp___4 ; { { state = (struct efx_loopback_state *)efx->loopback_selftest; tmp = ldv__builtin_expect((unsigned long )buf_ptr == (unsigned long )((char const *)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 *)"drivers/net/ethernet/sfc/selftest.c"), "i" (277), "i" (12UL)); __builtin_unreachable(); } } else { } if ((unsigned long )state == (unsigned long )((struct efx_loopback_state *)0) || (int )state->flush) { return; } else { } payload = & state->payload; received = (struct efx_loopback_payload *)buf_ptr; received->ip.saddr = payload->ip.saddr; if ((int )state->offload_csum) { received->ip.check = payload->ip.check; } else { } if ((unsigned int )pkt_len <= 13U) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "saw runt RX packet (length %d) in %s loopback test\n", pkt_len, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto err; } else { } { tmp___0 = memcmp((void const *)(& received->header), (void const *)(& payload->header), 14UL); } if (tmp___0 != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "saw non-loopback RX packet in %s loopback test\n", (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto err; } else { } if (pkt_len != 108) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "saw incorrect RX packet length %d (wanted %d) in %s loopback test\n", pkt_len, 108, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto err; } else { } { tmp___1 = memcmp((void const *)(& received->ip), (void const *)(& payload->ip), 20UL); } if (tmp___1 != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "saw corrupted IP header in %s loopback test\n", (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto err; } else { } { tmp___2 = memcmp((void const *)(& received->msg), (void const *)(& payload->msg), 64UL); } if (tmp___2 != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "saw corrupted RX packet in %s loopback test\n", (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto err; } else { } if ((int )received->iteration != (int )payload->iteration) { if ((int )efx->msg_enable & 1) { { tmp___3 = __fswab16((int )payload->iteration); tmp___4 = __fswab16((int )received->iteration); netdev_err((struct net_device const *)efx->net_dev, "saw RX packet from iteration %d (wanted %d) in %s loopback test\n", (int )tmp___4, (int )tmp___3, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto err; } else { } { atomic_inc(& state->rx_good); } return; err: { atomic_inc(& state->rx_bad); } return; } } static void efx_iterate_state(struct efx_nic *efx ) { struct efx_loopback_state *state ; struct net_device *net_dev ; struct efx_loopback_payload *payload ; __u16 tmp___2 ; __u16 tmp___3 ; { { state = (struct efx_loopback_state *)efx->loopback_selftest; net_dev = efx->net_dev; payload = & state->payload; memcpy((void *)(& payload->header.h_dest), (void const *)net_dev->dev_addr, 6UL); memcpy((void *)(& payload->header.h_source), (void const *)(& payload_source), 6UL); payload->header.h_proto = 8U; payload->ip.daddr = 16777343U; payload->ip.ihl = 5U; payload->ip.check = 44510U; payload->ip.tot_len = 24064U; payload->ip.version = 4U; payload->ip.protocol = 17U; payload->udp.source = 0U; payload->udp.len = 18944U; payload->udp.check = 0U; tmp___2 = __fswab16((int )payload->iteration); tmp___3 = __fswab16((int )((unsigned int )tmp___2 + 1U)); payload->iteration = tmp___3; memcpy((void *)(& payload->msg), (void const *)(& payload_msg), 55UL); atomic_set(& state->rx_good, 0); atomic_set(& state->rx_bad, 0); __asm__ volatile ("": : : "memory"); } return; } } static int efx_begin_loopback(struct efx_tx_queue *tx_queue ) { struct efx_nic *efx ; struct efx_loopback_state *state ; struct efx_loopback_payload *payload ; struct sk_buff *skb ; int i ; netdev_tx_t rc ; unsigned char *tmp ; __u32 tmp___0 ; { efx = tx_queue->efx; state = (struct efx_loopback_state *)efx->loopback_selftest; i = 0; goto ldv_50845; ldv_50844: { skb = alloc_skb(108U, 208U); } if ((unsigned long )skb == (unsigned long )((struct sk_buff *)0)) { return (-12); } else { } { *(state->skbs + (unsigned long )i) = skb; skb_get(skb); tmp = skb_put(skb, 108U); payload = (struct efx_loopback_payload *)tmp; memcpy((void *)payload, (void const *)(& state->payload), 108UL); tmp___0 = __fswab32((__u32 )((i << 2) | 2130706433)); payload->ip.saddr = tmp___0; __asm__ volatile ("": : : "memory"); netif_tx_lock_bh___0(efx->net_dev); rc = efx_enqueue_skb(tx_queue, skb); netif_tx_unlock_bh___0(efx->net_dev); } if ((int )rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "TX queue %d could not transmit packet %d of %d in %s loopback test\n", tx_queue->queue, i + 1, state->packet_count, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } { kfree_skb(skb); } return (-32); } else { } i = i + 1; ldv_50845: ; if (i < state->packet_count) { goto ldv_50844; } else { } return (0); } } static int efx_poll_loopback(struct efx_nic *efx ) { struct efx_loopback_state *state ; int tmp ; { { state = (struct efx_loopback_state *)efx->loopback_selftest; tmp = atomic_read((atomic_t const *)(& state->rx_good)); } return (tmp == state->packet_count); } } static int efx_end_loopback(struct efx_tx_queue *tx_queue , struct efx_loopback_self_tests *lb_tests ) { struct efx_nic *efx ; struct efx_loopback_state *state ; struct sk_buff *skb ; int tx_done ; int rx_good ; int rx_bad ; int i ; int rc ; int tmp ; struct _ddebug descriptor ; long tmp___0 ; { { efx = tx_queue->efx; state = (struct efx_loopback_state *)efx->loopback_selftest; tx_done = 0; rc = 0; netif_tx_lock_bh___0(efx->net_dev); i = 0; } goto ldv_50864; ldv_50863: skb = *(state->skbs + (unsigned long )i); if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { { tmp = skb_shared((struct sk_buff const *)skb); } if (tmp == 0) { tx_done = tx_done + 1; } else { } } else { } { consume_skb(skb); i = i + 1; } ldv_50864: ; if (i < state->packet_count) { goto ldv_50863; } else { } { netif_tx_unlock_bh___0(efx->net_dev); rx_good = atomic_read((atomic_t const *)(& state->rx_good)); rx_bad = atomic_read((atomic_t const *)(& state->rx_bad)); } if (tx_done != state->packet_count) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "TX queue %d saw only %d out of an expected %d TX completion events in %s loopback test\n", tx_queue->queue, tx_done, state->packet_count, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } rc = -110; } else { } if (rx_good != state->packet_count) { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_end_loopback"; descriptor.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor.format = "TX queue %d saw only %d out of an expected %d received packets in %s loopback test\n"; descriptor.lineno = 498U; 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 *)efx->net_dev, "TX queue %d saw only %d out of an expected %d received packets in %s loopback test\n", tx_queue->queue, rx_good, state->packet_count, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } } else { } rc = -110; } else { } lb_tests->tx_sent[tx_queue->queue] = lb_tests->tx_sent[tx_queue->queue] + state->packet_count; lb_tests->tx_done[tx_queue->queue] = lb_tests->tx_done[tx_queue->queue] + tx_done; lb_tests->rx_good = lb_tests->rx_good + rx_good; lb_tests->rx_bad = lb_tests->rx_bad + rx_bad; return (rc); } } static int efx_test_loopback(struct efx_tx_queue *tx_queue , struct efx_loopback_self_tests *lb_tests ) { struct efx_nic *efx ; struct efx_loopback_state *state ; int i ; int begin_rc ; int end_rc ; int _min1 ; int _min2 ; void *tmp ; struct _ddebug descriptor ; long tmp___0 ; int tmp___1 ; struct _ddebug descriptor___0 ; long tmp___2 ; { efx = tx_queue->efx; state = (struct efx_loopback_state *)efx->loopback_selftest; i = 0; goto ldv_50883; ldv_50882: { state->packet_count = (int )(efx->txq_entries / 3U); _min1 = 1 << (i << 2); _min2 = state->packet_count; state->packet_count = _min1 < _min2 ? _min1 : _min2; tmp = kcalloc((size_t )state->packet_count, 8UL, 208U); state->skbs = (struct sk_buff **)tmp; } if ((unsigned long )state->skbs == (unsigned long )((struct sk_buff **)0)) { return (-12); } else { } state->flush = 0; if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_test_loopback"; descriptor.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor.format = "TX queue %d testing %s loopback with %d packets\n"; descriptor.lineno = 533U; 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 *)efx->net_dev, "TX queue %d testing %s loopback with %d packets\n", tx_queue->queue, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)", state->packet_count); } } else { } } else { } { efx_iterate_state(efx); begin_rc = efx_begin_loopback(tx_queue); msleep(1U); tmp___1 = efx_poll_loopback(efx); } if (tmp___1 == 0) { { msleep(1000U); efx_poll_loopback(efx); } } else { } { end_rc = efx_end_loopback(tx_queue, lb_tests); kfree((void const *)state->skbs); } if ((begin_rc | end_rc) != 0) { { schedule_timeout_uninterruptible(25L); } return (begin_rc != 0 ? begin_rc : end_rc); } else { } i = i + 1; ldv_50883: ; if (i <= 2) { goto ldv_50882; } else { } if ((int )efx->msg_enable & 1) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_test_loopback"; descriptor___0.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor___0.format = "TX queue %d passed %s loopback test with a burst length of %d packets\n"; descriptor___0.lineno = 560U; 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 *)efx->net_dev, "TX queue %d passed %s loopback test with a burst length of %d packets\n", tx_queue->queue, (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)", state->packet_count); } } else { } } else { } return (0); } } static int efx_wait_for_link(struct efx_nic *efx ) { struct efx_link_state *link_state ; int count ; int link_up_count ; bool link_up ; bool tmp ; int tmp___0 ; { link_state = & efx->link_state; link_up_count = 0; count = 0; goto ldv_50894; ldv_50893: { schedule_timeout_uninterruptible(25L); } if ((unsigned long )(efx->type)->monitor != (unsigned long )((void (*/* const */)(struct efx_nic * ))0)) { { mutex_lock_nested(& efx->mac_lock, 0U); (*((efx->type)->monitor))(efx); mutex_unlock(& efx->mac_lock); } } else { } { mutex_lock_nested(& efx->mac_lock, 0U); link_up = link_state->up; } if ((int )link_up) { { tmp = (*((efx->type)->check_mac_fault))(efx); } if ((int )tmp != 0) { tmp___0 = 0; } else { tmp___0 = 1; } link_up = (bool )tmp___0; } else { } { mutex_unlock(& efx->mac_lock); } if ((int )link_up) { link_up_count = link_up_count + 1; if (link_up_count == 2) { return (0); } else { } } else { link_up_count = 0; } count = count + 1; ldv_50894: ; if (count <= 39) { goto ldv_50893; } else { } return (-110); } } static int efx_test_loopbacks(struct efx_nic *efx , struct efx_self_tests *tests , unsigned int loopback_modes ) { enum efx_loopback_mode mode ; struct efx_loopback_state *state ; struct efx_channel *channel ; struct efx_channel *tmp ; struct efx_tx_queue *tx_queue ; int rc ; void *tmp___0 ; long tmp___1 ; bool tmp___2 ; bool tmp___3 ; int tmp___4 ; { { tmp = efx_get_channel(efx, efx->tx_channel_offset); channel = tmp; rc = 0; tmp___0 = kzalloc(136UL, 208U); state = (struct efx_loopback_state *)tmp___0; } if ((unsigned long )state == (unsigned long )((struct efx_loopback_state *)0)) { return (-12); } else { } { tmp___1 = ldv__builtin_expect((unsigned long )efx->loopback_selftest != (unsigned long )((void *)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 *)"drivers/net/ethernet/sfc/selftest.c"), "i" (617), "i" (12UL)); __builtin_unreachable(); } } else { } state->flush = 1; efx->loopback_selftest = (void *)state; mode = 0; goto ldv_50912; ldv_50911: ; if ((loopback_modes & (unsigned int )(1 << (int )mode)) == 0U) { goto ldv_50906; } else { } { state->flush = 1; mutex_lock_nested(& efx->mac_lock, 0U); efx->loopback_mode = mode; rc = __efx_reconfigure_port(efx); mutex_unlock(& efx->mac_lock); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "unable to move into %s loopback\n", (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto out; } else { } { rc = efx_wait_for_link(efx); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "loopback %s never came up\n", (unsigned int )efx->loopback_mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )efx->loopback_mode] : (char const */* const */)"(invalid)"); } } else { } goto out; } else { } { tmp___3 = efx_channel_has_tx_queues(channel); } if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_50909; ldv_50908: { state->offload_csum = (tx_queue->queue & 1U) != 0U; rc = efx_test_loopback(tx_queue, (struct efx_loopback_self_tests *)(& tests->loopback) + (unsigned long )mode); } if (rc != 0) { goto out; } else { } tx_queue = tx_queue + 1; ldv_50909: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___2 = efx_tx_queue_used(tx_queue); } if ((int )tmp___2) { goto ldv_50908; } else { goto ldv_50910; } } else { } ldv_50910: ; } ldv_50906: mode = (enum efx_loopback_mode )((unsigned int )mode + 1U); ldv_50912: ; if ((unsigned int )mode <= 17U) { goto ldv_50911; } else { } out: { state->flush = 1; efx->loopback_selftest = (void *)0; __asm__ volatile ("sfence": : : "memory"); kfree((void const *)state); } return (rc); } } int efx_selftest(struct efx_nic *efx , struct efx_self_tests *tests , unsigned int flags ) { enum efx_loopback_mode loopback_mode ; int phy_mode ; int rc_test ; int rc_reset ; int rc ; int tmp ; { { loopback_mode = efx->loopback_mode; phy_mode = (int )efx->phy_mode; rc_test = 0; efx_selftest_async_cancel(efx); rc = efx_test_phy_alive(efx, tests); } if (rc != 0 && rc_test == 0) { rc_test = rc; } else { } { rc = efx_test_nvram(efx, tests); } if (rc != 0 && rc_test == 0) { rc_test = rc; } else { } { rc = efx_test_interrupts(efx, tests); } if (rc != 0 && rc_test == 0) { rc_test = rc; } else { } { rc = efx_test_eventq_irq(efx, tests); } if (rc != 0 && rc_test == 0) { rc_test = rc; } else { } if (rc_test != 0) { return (rc_test); } else { } if ((flags & 1U) == 0U) { { tmp = efx_test_phy(efx, tests, flags); } return (tmp); } else { } { efx_device_detach_sync___0(efx); } if ((unsigned long )(efx->type)->test_chip != (unsigned long )((int (*/* const */)(struct efx_nic * , struct efx_self_tests * ))0)) { { rc_reset = (*((efx->type)->test_chip))(efx, tests); } if (rc_reset != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Unable to recover from chip test\n"); } } else { } { efx_schedule_reset(efx, 5); } return (rc_reset); } else { } if ((tests->memory < 0 || tests->registers < 0) && rc_test == 0) { rc_test = -5; } else { } } else { } { mutex_lock_nested(& efx->mac_lock, 0U); efx->phy_mode = (enum efx_phy_mode )((unsigned int )efx->phy_mode & 4294967293U); efx->loopback_mode = 0; __efx_reconfigure_port(efx); mutex_unlock(& efx->mac_lock); rc = efx_test_phy(efx, tests, flags); } if (rc != 0 && rc_test == 0) { rc_test = rc; } else { } { rc = efx_test_loopbacks(efx, tests, (unsigned int )efx->loopback_modes); } if (rc != 0 && rc_test == 0) { rc_test = rc; } else { } { mutex_lock_nested(& efx->mac_lock, 0U); efx->phy_mode = (enum efx_phy_mode )phy_mode; efx->loopback_mode = loopback_mode; __efx_reconfigure_port(efx); mutex_unlock(& efx->mac_lock); netif_device_attach(efx->net_dev); } return (rc_test); } } void efx_selftest_async_start(struct efx_nic *efx ) { struct efx_channel *channel ; { channel = efx->channel[0]; goto ldv_50929; ldv_50928: { efx_nic_event_test_start(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_50929: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_50928; } else { } { schedule_delayed_work(& efx->selftest_work, 250UL); } return; } } void efx_selftest_async_cancel(struct efx_nic *efx ) { { { cancel_delayed_work_sync(& efx->selftest_work); } return; } } void efx_selftest_async_work(struct work_struct *data ) { struct efx_nic *efx ; struct work_struct const *__mptr ; struct efx_channel *channel ; int cpu ; struct _ddebug descriptor ; long tmp ; { __mptr = (struct work_struct const *)data; efx = (struct efx_nic *)__mptr + 0xfffffffffffff638UL; channel = efx->channel[0]; goto ldv_50945; ldv_50944: { cpu = efx_nic_event_test_irq_cpu(channel); } if (cpu < 0) { if ((efx->msg_enable & 32U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "channel %d failed to trigger an interrupt\n", channel->channel); } } else { } } else if ((efx->msg_enable & 32U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_selftest_async_work"; descriptor.filename = "drivers/net/ethernet/sfc/selftest.c"; descriptor.format = "channel %d triggered interrupt on CPU %d\n"; descriptor.lineno = 787U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "channel %d triggered interrupt on CPU %d\n", channel->channel, cpu); } } else { } } else { } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_50945: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_50944; } else { } return; } } extern char *strchr(char const * , int ) ; __inline static void ldv_spin_lock_bh_84(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_85(spinlock_t *lock ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; __inline static void ethtool_cmd_speed_set(struct ethtool_cmd *ep , __u32 speed ) { { ep->speed = (unsigned short )speed; ep->speed_hi = (unsigned short )(speed >> 16); return; } } __inline static __u32 ethtool_cmd_speed(struct ethtool_cmd const *ep ) { { return ((__u32 )(((int )ep->speed_hi << 16) | (int )ep->speed)); } } extern u32 ethtool_op_get_link(struct net_device * ) ; extern int dev_open(struct net_device * ) ; __inline static bool is_broadcast_ether_addr(u8 const *addr ) { { return ((unsigned int )(((int )((unsigned short )*((u16 const *)addr)) & (int )((unsigned short )*((u16 const *)addr + 2U))) & (int )((unsigned short )*((u16 const *)addr + 4U))) == 65535U); } } __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 int mdio45_nway_restart(struct mdio_if_info const * ) ; __inline static s32 efx_filter_insert_filter(struct efx_nic *efx , struct efx_filter_spec *spec , bool replace_equal ) { s32 tmp ; { { tmp = (*((efx->type)->filter_insert))(efx, spec, (int )replace_equal); } return (tmp); } } __inline static int efx_filter_remove_id_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id ) { int tmp ; { { tmp = (*((efx->type)->filter_remove_safe))(efx, priority, filter_id); } return (tmp); } } __inline static int efx_filter_get_filter_safe(struct efx_nic *efx , enum efx_filter_priority priority , u32 filter_id , struct efx_filter_spec *spec ) { int tmp ; { { tmp = (*((efx->type)->filter_get_safe))(efx, priority, filter_id, spec); } return (tmp); } } __inline static u32 efx_filter_count_rx_used(struct efx_nic *efx , enum efx_filter_priority priority ) { u32 tmp ; { { tmp = (*((efx->type)->filter_count_rx_used))(efx, priority); } return (tmp); } } __inline static u32 efx_filter_get_rx_id_limit(struct efx_nic *efx ) { u32 tmp ; { { tmp = (*((efx->type)->filter_get_rx_id_limit))(efx); } return (tmp); } } __inline static s32 efx_filter_get_rx_ids(struct efx_nic *efx , enum efx_filter_priority priority , u32 *buf , u32 size ) { s32 tmp ; { { tmp = (*((efx->type)->filter_get_rx_ids))(efx, priority, buf, size); } return (tmp); } } void efx_mcdi_print_fwver(struct efx_nic *efx , char *buf , size_t len ) ; void efx_ptp_get_ts_info(struct efx_nic *efx , struct ethtool_ts_info *ts_info ) ; size_t efx_ptp_describe_stats(struct efx_nic *efx , u8 *strings ) ; size_t efx_ptp_update_stats(struct efx_nic *efx , u64 *stats ) ; static u64 efx_get_uint_stat(void *field ) { { return ((u64 )*((unsigned int *)field)); } } static u64 efx_get_atomic_stat(void *field ) { int tmp ; { { tmp = atomic_read((atomic_t const *)field); } return ((u64 )tmp); } } static struct efx_sw_stat_desc const efx_sw_stat_desc[15U] = { {"tx_merge_events", 2, 136U, & efx_get_uint_stat}, {"tx_tso_bursts", 2, 204U, & efx_get_uint_stat}, {"tx_tso_long_headers", 2, 208U, & efx_get_uint_stat}, {"tx_tso_packets", 2, 212U, & efx_get_uint_stat}, {"tx_pushes", 2, 216U, & efx_get_uint_stat}, {"tx_pio_packets", 2, 220U, & efx_get_uint_stat}, {"rx_reset", 0, 3200U, & efx_get_atomic_stat}, {"rx_tobe_disc", 1, 288U, & efx_get_uint_stat}, {"rx_ip_hdr_chksum_err", 1, 292U, & efx_get_uint_stat}, {"rx_tcp_udp_chksum_err", 1, 296U, & efx_get_uint_stat}, {"rx_mcast_mismatch", 1, 300U, & efx_get_uint_stat}, {"rx_frm_trunc", 1, 304U, & efx_get_uint_stat}, {"rx_nodesc_trunc", 1, 316U, & efx_get_uint_stat}, {"rx_merge_events", 1, 320U, & efx_get_uint_stat}, {"rx_merge_packets", 1, 324U, & efx_get_uint_stat}}; static int efx_ethtool_phys_id(struct net_device *net_dev , enum ethtool_phys_id_state state ) { struct efx_nic *efx ; void *tmp ; enum efx_led_mode mode ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; mode = 2; } { if ((unsigned int )state == 2U) { goto case_2; } else { } if ((unsigned int )state == 3U) { goto case_3; } else { } if ((unsigned int )state == 0U) { goto case_0; } else { } if ((unsigned int )state == 1U) { goto case_1; } else { } goto switch_break; case_2: /* CIL Label */ mode = 1; goto ldv_46021; case_3: /* CIL Label */ mode = 0; goto ldv_46021; case_0: /* CIL Label */ mode = 2; goto ldv_46021; case_1: /* CIL Label */ ; return (1); switch_break: /* CIL Label */ ; } ldv_46021: { (*((efx->type)->set_id_led))(efx, mode); } return (0); } } static int efx_ethtool_get_settings(struct net_device *net_dev , struct ethtool_cmd *ecmd ) { struct efx_nic *efx ; void *tmp ; struct efx_link_state *link_state ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; link_state = & efx->link_state; mutex_lock_nested(& efx->mac_lock, 0U); (*((efx->phy_op)->get_settings))(efx, ecmd); mutex_unlock(& efx->mac_lock); ecmd->supported = ecmd->supported | 24576U; } if ((66600958 >> (int )efx->loopback_mode) & 1) { { ethtool_cmd_speed_set(ecmd, link_state->speed); ecmd->duplex = (__u8 )link_state->fd; } } else { } return (0); } } static int efx_ethtool_set_settings(struct net_device *net_dev , struct ethtool_cmd *ecmd ) { struct efx_nic *efx ; void *tmp ; int rc ; struct _ddebug descriptor ; long tmp___0 ; __u32 tmp___1 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___1 = ethtool_cmd_speed((struct ethtool_cmd const *)ecmd); } if (tmp___1 == 1000U && (unsigned int )ecmd->duplex != 1U) { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_ethtool_set_settings"; descriptor.filename = "drivers/net/ethernet/sfc/ethtool.c"; descriptor.format = "rejecting unsupported 1000Mbps HD setting\n"; descriptor.lineno = 154U; 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 *)efx->net_dev, "rejecting unsupported 1000Mbps HD setting\n"); } } else { } } else { } return (-22); } else { } { mutex_lock_nested(& efx->mac_lock, 0U); rc = (*((efx->phy_op)->set_settings))(efx, ecmd); mutex_unlock(& efx->mac_lock); } return (rc); } } static void efx_ethtool_get_drvinfo(struct net_device *net_dev , struct ethtool_drvinfo *info ) { struct efx_nic *efx ; void *tmp ; int tmp___0 ; char const *tmp___1 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; strlcpy((char *)(& info->driver), "sfc", 32UL); strlcpy((char *)(& info->version), "4.0", 32UL); tmp___0 = efx_nic_rev(efx); } if (tmp___0 > 2) { { efx_mcdi_print_fwver(efx, (char *)(& info->fw_version), 32UL); } } else { } { tmp___1 = pci_name((struct pci_dev const *)efx->pci_dev); strlcpy((char *)(& info->bus_info), tmp___1, 32UL); } return; } } static int efx_ethtool_get_regs_len(struct net_device *net_dev ) { void *tmp ; size_t tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); tmp___0 = efx_nic_get_regs_len((struct efx_nic *)tmp); } return ((int )tmp___0); } } static void efx_ethtool_get_regs(struct net_device *net_dev , struct ethtool_regs *regs , void *buf ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; regs->version = (__u32 )(efx->type)->revision; efx_nic_get_regs(efx, buf); } return; } } static u32 efx_ethtool_get_msglevel(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } return (efx->msg_enable); } } static void efx_ethtool_set_msglevel(struct net_device *net_dev , u32 msg_enable ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; efx->msg_enable = msg_enable; } return; } } static void efx_fill_test(unsigned int test_index , u8 *strings , u64 *data , int *test , char const *unit_format , int unit_id , char const *test_format , char const *test_id ) { char unit_str[32U] ; char test_str[32U] ; char *tmp ; { if ((unsigned long )data != (unsigned long )((u64 *)0ULL)) { *(data + (unsigned long )test_index) = (u64 )*test; } else { } if ((unsigned long )strings != (unsigned long )((u8 *)0U)) { { tmp = strchr(unit_format, 37); } if ((unsigned long )tmp != (unsigned long )((char *)0)) { { snprintf((char *)(& unit_str), 32UL, unit_format, unit_id); } } else { { strcpy((char *)(& unit_str), unit_format); } } { snprintf((char *)(& test_str), 32UL, test_format, test_id); snprintf((char *)strings + (unsigned long )(test_index * 32U), 32UL, "%-6s %-24s", (char *)(& unit_str), (char *)(& test_str)); } } else { } return; } } static int efx_fill_loopback_test(struct efx_nic *efx , struct efx_loopback_self_tests *lb_tests , enum efx_loopback_mode mode , unsigned int test_index , u8 *strings , u64 *data ) { struct efx_channel *channel ; struct efx_channel *tmp ; struct efx_tx_queue *tx_queue ; unsigned int tmp___0 ; unsigned int tmp___1 ; bool tmp___2 ; bool tmp___3 ; int tmp___4 ; unsigned int tmp___5 ; unsigned int tmp___6 ; { { tmp = efx_get_channel(efx, efx->tx_channel_offset); channel = tmp; tmp___3 = efx_channel_has_tx_queues(channel); } if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_46085; ldv_46084: { tmp___0 = test_index; test_index = test_index + 1U; efx_fill_test(tmp___0, strings, data, (int *)(& lb_tests->tx_sent) + (unsigned long )tx_queue->queue, "txq%d", (int )tx_queue->queue, "loopback.%s.tx_sent", (unsigned int )mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )mode] : (char const */* const */)"(invalid)"); tmp___1 = test_index; test_index = test_index + 1U; efx_fill_test(tmp___1, strings, data, (int *)(& lb_tests->tx_done) + (unsigned long )tx_queue->queue, "txq%d", (int )tx_queue->queue, "loopback.%s.tx_done", (unsigned int )mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )mode] : (char const */* const */)"(invalid)"); tx_queue = tx_queue + 1; } ldv_46085: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___2 = efx_tx_queue_used(tx_queue); } if ((int )tmp___2) { goto ldv_46084; } else { goto ldv_46086; } } else { } ldv_46086: ; } { tmp___5 = test_index; test_index = test_index + 1U; efx_fill_test(tmp___5, strings, data, & lb_tests->rx_good, "rx", 0, "loopback.%s.rx_good", (unsigned int )mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )mode] : (char const */* const */)"(invalid)"); tmp___6 = test_index; test_index = test_index + 1U; efx_fill_test(tmp___6, strings, data, & lb_tests->rx_bad, "rx", 0, "loopback.%s.rx_bad", (unsigned int )mode < (unsigned int )efx_loopback_mode_max ? efx_loopback_mode_names[(unsigned int )mode] : (char const */* const */)"(invalid)"); } return ((int )test_index); } } static int efx_ethtool_fill_self_tests(struct efx_nic *efx , struct efx_self_tests *tests , u8 *strings , u64 *data ) { struct efx_channel *channel ; unsigned int n ; unsigned int i ; enum efx_loopback_mode mode ; unsigned int tmp ; unsigned int tmp___0 ; unsigned int tmp___1 ; unsigned int tmp___2 ; unsigned int tmp___3 ; unsigned int tmp___4 ; unsigned int tmp___5 ; char const *name ; unsigned int tmp___6 ; int tmp___7 ; { { n = 0U; tmp = n; n = n + 1U; efx_fill_test(tmp, strings, data, & tests->phy_alive, "phy", 0, "alive", (char const *)0); tmp___0 = n; n = n + 1U; efx_fill_test(tmp___0, strings, data, & tests->nvram, "core", 0, "nvram", (char const *)0); tmp___1 = n; n = n + 1U; efx_fill_test(tmp___1, strings, data, & tests->interrupt, "core", 0, "interrupt", (char const *)0); channel = efx->channel[0]; } goto ldv_46098; ldv_46097: { tmp___2 = n; n = n + 1U; efx_fill_test(tmp___2, strings, data, (int *)(& tests->eventq_dma) + (unsigned long )channel->channel, "chan%d", channel->channel, "eventq.dma", (char const *)0); tmp___3 = n; n = n + 1U; efx_fill_test(tmp___3, strings, data, (int *)(& tests->eventq_int) + (unsigned long )channel->channel, "chan%d", channel->channel, "eventq.int", (char const *)0); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_46098: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_46097; } else { } { tmp___4 = n; n = n + 1U; efx_fill_test(tmp___4, strings, data, & tests->memory, "core", 0, "memory", (char const *)0); tmp___5 = n; n = n + 1U; efx_fill_test(tmp___5, strings, data, & tests->registers, "core", 0, "registers", (char const *)0); } if ((unsigned long )(efx->phy_op)->run_tests != (unsigned long )((int (*/* const */)(struct efx_nic * , int * , unsigned int ))0)) { i = 0U; ldv_46102: { name = (*((efx->phy_op)->test_name))(efx, i); } if ((unsigned long )name == (unsigned long )((char const *)0)) { goto ldv_46101; } else { } { tmp___6 = n; n = n + 1U; efx_fill_test(tmp___6, strings, data, (int *)(& tests->phy_ext) + (unsigned long )i, "phy", 0, name, (char const *)0); i = i + 1U; } goto ldv_46102; ldv_46101: ; } else { } mode = 0; goto ldv_46105; ldv_46104: ; if ((efx->loopback_modes & (u64 )(1 << (int )mode)) == 0ULL) { goto ldv_46103; } else { } { tmp___7 = efx_fill_loopback_test(efx, (struct efx_loopback_self_tests *)(& tests->loopback) + (unsigned long )mode, mode, n, strings, data); n = (unsigned int )tmp___7; } ldv_46103: mode = (enum efx_loopback_mode )((unsigned int )mode + 1U); ldv_46105: ; if ((unsigned int )mode <= 17U) { goto ldv_46104; } else { } return ((int )n); } } static int efx_ethtool_get_sset_count(struct net_device *net_dev , int string_set ) { struct efx_nic *efx ; void *tmp ; size_t tmp___0 ; size_t tmp___1 ; int tmp___2 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } { if (string_set == 1) { goto case_1; } else { } if (string_set == 0) { goto case_0; } else { } goto switch_default; case_1: /* CIL Label */ { tmp___0 = (*((efx->type)->describe_stats))(efx, (u8 *)0U); tmp___1 = efx_ptp_describe_stats(efx, (u8 *)0U); } return ((int )(((unsigned int )tmp___0 + (unsigned int )tmp___1) + 15U)); case_0: /* CIL Label */ { tmp___2 = efx_ethtool_fill_self_tests(efx, (struct efx_self_tests *)0, (u8 *)0U, (u64 *)0ULL); } return (tmp___2); switch_default: /* CIL Label */ ; return (-22); switch_break: /* CIL Label */ ; } } } static void efx_ethtool_get_strings(struct net_device *net_dev , u32 string_set , u8 *strings ) { struct efx_nic *efx ; void *tmp ; int i ; size_t tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } { if (string_set == 1U) { goto case_1; } else { } if (string_set == 0U) { goto case_0; } else { } goto switch_default; case_1: /* CIL Label */ { tmp___0 = (*((efx->type)->describe_stats))(efx, strings); strings = strings + tmp___0 * 32UL; i = 0; } goto ldv_46128; ldv_46127: { strlcpy((char *)strings + (unsigned long )(i * 32), efx_sw_stat_desc[i].name, 32UL); i = i + 1; } ldv_46128: ; if ((unsigned int )i <= 14U) { goto ldv_46127; } else { } { strings = strings + 480UL; efx_ptp_describe_stats(efx, strings); } goto ldv_46132; case_0: /* CIL Label */ { efx_ethtool_fill_self_tests(efx, (struct efx_self_tests *)0, strings, (u64 *)0ULL); } goto ldv_46132; switch_default: /* CIL Label */ ; goto ldv_46132; switch_break: /* CIL Label */ ; } ldv_46132: ; return; } } static void efx_ethtool_get_stats(struct net_device *net_dev , struct ethtool_stats *stats , u64 *data ) { struct efx_nic *efx ; void *tmp ; struct efx_sw_stat_desc const *stat ; struct efx_channel *channel ; struct efx_tx_queue *tx_queue ; int i ; size_t tmp___0 ; u64 tmp___1 ; u64 tmp___2 ; bool tmp___3 ; bool tmp___4 ; int tmp___5 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; ldv_spin_lock_bh_84(& efx->stats_lock); tmp___0 = (*((efx->type)->update_stats))(efx, data, (struct rtnl_link_stats64 *)0); data = data + tmp___0; i = 0; } goto ldv_46161; ldv_46160: stat = (struct efx_sw_stat_desc const *)(& efx_sw_stat_desc) + (unsigned long )i; { if ((unsigned int )stat->source == 0U) { goto case_0; } else { } if ((unsigned int )stat->source == 1U) { goto case_1; } else { } if ((unsigned int )stat->source == 2U) { goto case_2; } else { } goto switch_break; case_0: /* CIL Label */ { *(data + (unsigned long )i) = (*(stat->get_stat))((void *)efx + (unsigned long )stat->offset); } goto ldv_46148; case_1: /* CIL Label */ *(data + (unsigned long )i) = 0ULL; channel = efx->channel[0]; goto ldv_46151; ldv_46150: { tmp___1 = (*(stat->get_stat))((void *)channel + (unsigned long )stat->offset); *(data + (unsigned long )i) = *(data + (unsigned long )i) + tmp___1; channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_46151: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_46150; } else { } goto ldv_46148; case_2: /* CIL Label */ *(data + (unsigned long )i) = 0ULL; channel = efx->channel[0]; goto ldv_46158; ldv_46157: { tmp___4 = efx_channel_has_tx_queues(channel); } if (tmp___4) { tmp___5 = 0; } else { tmp___5 = 1; } if (tmp___5) { } else { tx_queue = (struct efx_tx_queue *)(& channel->tx_queue); goto ldv_46155; ldv_46154: { tmp___2 = (*(stat->get_stat))((void *)tx_queue + (unsigned long )stat->offset); *(data + (unsigned long )i) = *(data + (unsigned long )i) + tmp___2; tx_queue = tx_queue + 1; } ldv_46155: ; if ((unsigned long )tx_queue < (unsigned long )((struct efx_tx_queue *)(& channel->tx_queue) + 4UL)) { { tmp___3 = efx_tx_queue_used(tx_queue); } if ((int )tmp___3) { goto ldv_46154; } else { goto ldv_46156; } } else { } ldv_46156: ; } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_46158: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_46157; } else { } goto ldv_46148; switch_break: /* CIL Label */ ; } ldv_46148: i = i + 1; ldv_46161: ; if ((unsigned int )i <= 14U) { goto ldv_46160; } else { } { data = data + 15UL; ldv_spin_unlock_bh_85(& efx->stats_lock); efx_ptp_update_stats(efx, data); } return; } } static void efx_ethtool_self_test(struct net_device *net_dev , struct ethtool_test *test , u64 *data ) { struct efx_nic *efx ; void *tmp ; struct efx_self_tests *efx_tests ; int already_up ; int rc ; void *tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; rc = -12; tmp___0 = kzalloc(1076UL, 208U); efx_tests = (struct efx_self_tests *)tmp___0; } if ((unsigned long )efx_tests == (unsigned long )((struct efx_self_tests *)0)) { goto fail; } else { } if ((unsigned int )efx->state != 1U) { rc = -5; goto fail1; } else { } if ((int )efx->msg_enable & 1) { { netdev_info((struct net_device const *)efx->net_dev, "starting %sline testing\n", (int )test->flags & 1 ? (char *)"off" : (char *)"on"); } } else { } already_up = (int )(efx->net_dev)->flags & 1; if (already_up == 0) { { rc = dev_open(efx->net_dev); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "failed opening device.\n"); } } else { } goto fail1; } else { } } else { } { rc = efx_selftest(efx, efx_tests, test->flags); } if (already_up == 0) { { dev_close(efx->net_dev); } } else { } if ((int )efx->msg_enable & 1) { { netdev_info((struct net_device const *)efx->net_dev, "%s %sline self-tests\n", rc == 0 ? (char *)"passed" : (char *)"failed", (int )test->flags & 1 ? (char *)"off" : (char *)"on"); } } else { } fail1: { efx_ethtool_fill_self_tests(efx, efx_tests, (u8 *)0U, data); kfree((void const *)efx_tests); } fail: ; if (rc != 0) { test->flags = test->flags | 2U; } else { } return; } } static int efx_ethtool_nway_reset(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; int tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___0 = mdio45_nway_restart((struct mdio_if_info const *)(& efx->mdio)); } return (tmp___0); } } static int efx_ethtool_get_coalesce(struct net_device *net_dev , struct ethtool_coalesce *coalesce ) { struct efx_nic *efx ; void *tmp ; unsigned int tx_usecs ; unsigned int rx_usecs ; bool rx_adaptive ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; efx_get_irq_moderation(efx, & tx_usecs, & rx_usecs, & rx_adaptive); coalesce->tx_coalesce_usecs = tx_usecs; coalesce->tx_coalesce_usecs_irq = tx_usecs; coalesce->rx_coalesce_usecs = rx_usecs; coalesce->rx_coalesce_usecs_irq = rx_usecs; coalesce->use_adaptive_rx_coalesce = (__u32 )rx_adaptive; } return (0); } } static int efx_ethtool_set_coalesce(struct net_device *net_dev , struct ethtool_coalesce *coalesce ) { struct efx_nic *efx ; void *tmp ; struct efx_channel *channel ; unsigned int tx_usecs ; unsigned int rx_usecs ; bool adaptive ; bool rx_may_override_tx ; int rc ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if (coalesce->use_adaptive_tx_coalesce != 0U) { return (-22); } else { } { efx_get_irq_moderation(efx, & tx_usecs, & rx_usecs, & adaptive); } if (coalesce->rx_coalesce_usecs != rx_usecs) { rx_usecs = coalesce->rx_coalesce_usecs; } else { rx_usecs = coalesce->rx_coalesce_usecs_irq; } adaptive = coalesce->use_adaptive_rx_coalesce != 0U; rx_may_override_tx = (bool )(coalesce->tx_coalesce_usecs == tx_usecs && coalesce->tx_coalesce_usecs_irq == tx_usecs); if (coalesce->tx_coalesce_usecs != tx_usecs) { tx_usecs = coalesce->tx_coalesce_usecs; } else { tx_usecs = coalesce->tx_coalesce_usecs_irq; } { rc = efx_init_irq_moderation(efx, tx_usecs, rx_usecs, (int )adaptive, (int )rx_may_override_tx); } if (rc != 0) { return (rc); } else { } channel = efx->channel[0]; goto ldv_46200; ldv_46199: { (*((efx->type)->push_irq_moderation))(channel); channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; } ldv_46200: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_46199; } else { } return (0); } } static void efx_ethtool_get_ringparam(struct net_device *net_dev , struct ethtool_ringparam *ring ) { struct efx_nic *efx ; void *tmp ; int tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; ring->rx_max_pending = 4096U; tmp___0 = efx_nic_rev(efx); ring->tx_max_pending = tmp___0 == 4 && (int )((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388 ? 2048U : 4096U; ring->rx_pending = efx->rxq_entries; ring->tx_pending = efx->txq_entries; } return; } } static int efx_ethtool_set_ringparam(struct net_device *net_dev , struct ethtool_ringparam *ring ) { struct efx_nic *efx ; void *tmp ; u32 txq_entries ; int tmp___0 ; __u32 _max1 ; unsigned int _max2 ; unsigned int tmp___1 ; int tmp___2 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((ring->rx_mini_pending != 0U || ring->rx_jumbo_pending != 0U) || ring->rx_pending > 4096U) { return (-22); } else { { tmp___0 = efx_nic_rev(efx); } if ((unsigned long )ring->tx_pending > (tmp___0 == 4 && (int )((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388 ? 2048UL : 4096UL)) { return (-22); } else { } } if (ring->rx_pending <= 127U) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "RX queues cannot be smaller than %u\n", 128U); } } else { } return (-22); } else { } { _max1 = ring->tx_pending; tmp___1 = efx_tx_max_skb_descs(efx); _max2 = tmp___1 * 2U; txq_entries = _max1 > _max2 ? _max1 : _max2; } if (txq_entries != ring->tx_pending) { if ((int )efx->msg_enable & 1) { { netdev_warn((struct net_device const *)efx->net_dev, "increasing TX queue size to minimum of %u\n", txq_entries); } } else { } } else { } { tmp___2 = efx_realloc_channels(efx, ring->rx_pending, txq_entries); } return (tmp___2); } } static int efx_ethtool_set_pauseparam(struct net_device *net_dev , struct ethtool_pauseparam *pause ) { struct efx_nic *efx ; void *tmp ; u8 wanted_fc ; u8 old_fc ; u32 old_adv ; int rc ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; rc = 0; mutex_lock_nested(& efx->mac_lock, 0U); wanted_fc = (u8 )(((pause->rx_pause != 0U ? 2 : 0) | (pause->tx_pause != 0U)) | (pause->autoneg != 0U ? 4 : 0)); } if (((unsigned int )wanted_fc & 3U) == 1U) { if ((int )efx->msg_enable & 1) { { descriptor.modname = "sfc"; descriptor.function = "efx_ethtool_set_pauseparam"; descriptor.filename = "drivers/net/ethernet/sfc/ethtool.c"; descriptor.format = "Flow control unsupported: tx ON rx OFF\n"; descriptor.lineno = 642U; 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 *)efx->net_dev, "Flow control unsupported: tx ON rx OFF\n"); } } else { } } else { } rc = -22; goto out; } else { } if (((int )wanted_fc & 4) != 0 && efx->link_advertising == 0U) { if ((int )efx->msg_enable & 1) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_ethtool_set_pauseparam"; descriptor___0.filename = "drivers/net/ethernet/sfc/ethtool.c"; descriptor___0.format = "Autonegotiation is disabled\n"; descriptor___0.lineno = 649U; 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 *)efx->net_dev, "Autonegotiation is disabled\n"); } } else { } } else { } rc = -22; goto out; } else { } if (((unsigned long )(efx->type)->prepare_enable_fc_tx != (unsigned long )((void (*/* const */)(struct efx_nic * ))0) && (int )wanted_fc & 1) && ((int )efx->wanted_fc & 1) == 0) { { (*((efx->type)->prepare_enable_fc_tx))(efx); } } else { } { old_adv = efx->link_advertising; old_fc = efx->wanted_fc; efx_link_set_wanted_fc(efx, (int )wanted_fc); } if (efx->link_advertising != old_adv || (((int )efx->wanted_fc ^ (int )old_fc) & 4) != 0) { { rc = (*((efx->phy_op)->reconfigure))(efx); } if (rc != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Unable to advertise requested flow control setting\n"); } } else { } goto out; } else { } } else { } { (*((efx->type)->reconfigure_mac))(efx); } out: { mutex_unlock(& efx->mac_lock); } return (rc); } } static void efx_ethtool_get_pauseparam(struct net_device *net_dev , struct ethtool_pauseparam *pause ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; pause->rx_pause = ((int )efx->wanted_fc & 2) != 0; pause->tx_pause = (__u32 )efx->wanted_fc & 1U; pause->autoneg = ((int )efx->wanted_fc & 4) != 0; } return; } } static void efx_ethtool_get_wol(struct net_device *net_dev , struct ethtool_wolinfo *wol ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } return; } } static int efx_ethtool_set_wol(struct net_device *net_dev , struct ethtool_wolinfo *wol ) { struct efx_nic *efx ; void *tmp ; int tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___0 = (*((efx->type)->set_wol))(efx, wol->wolopts); } return (tmp___0); } } static int efx_ethtool_reset(struct net_device *net_dev , u32 *flags ) { struct efx_nic *efx ; void *tmp ; int rc ; int tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; rc = (*((efx->type)->map_reset_flags))(flags); } if (rc < 0) { return (rc); } else { } { tmp___0 = efx_reset(efx, (enum reset_type )rc); } return (tmp___0); } } static u8 const mac_addr_ig_mask[6U] = { 1U, 0U, 0U, 0U, 0U, 0U}; static int efx_ethtool_get_class_rule(struct efx_nic *efx , struct ethtool_rx_flow_spec *rule ) { struct ethtool_tcpip4_spec *ip_entry ; struct ethtool_tcpip4_spec *ip_mask ; struct ethhdr *mac_entry ; struct ethhdr *mac_mask ; struct efx_filter_spec spec ; int rc ; int __ret_warn_on ; long tmp ; { { ip_entry = & rule->h_u.tcp_ip4_spec; ip_mask = & rule->m_u.tcp_ip4_spec; mac_entry = & rule->h_u.ether_spec; mac_mask = & rule->m_u.ether_spec; rc = efx_filter_get_filter_safe(efx, 2, rule->location, & spec); } if (rc != 0) { return (rc); } else { } if ((unsigned int )*((unsigned short *)(& spec) + 1UL) == 65520U) { rule->ring_cookie = 0xffffffffffffffffULL; } else { rule->ring_cookie = (__u64 )spec.dmaq_id; } if ((((((int )spec.match_flags & 64) != 0 && (unsigned int )spec.ether_type == 8U) && ((int )spec.match_flags & 512) != 0) && ((unsigned int )spec.ip_proto == 6U || (unsigned int )spec.ip_proto == 17U)) && ((int )spec.match_flags & -876) == 0) { rule->flow_type = (unsigned int )spec.ip_proto == 6U ? 1U : 2U; if (((int )spec.match_flags & 2) != 0) { ip_entry->ip4dst = spec.loc_host[0]; ip_mask->ip4dst = 4294967295U; } else { } if ((int )spec.match_flags & 1) { ip_entry->ip4src = spec.rem_host[0]; ip_mask->ip4src = 4294967295U; } else { } if (((int )spec.match_flags & 32) != 0) { ip_entry->pdst = spec.loc_port; ip_mask->pdst = 65535U; } else { } if (((int )spec.match_flags & 8) != 0) { ip_entry->psrc = spec.rem_port; ip_mask->psrc = 65535U; } else { } } else if (((int )spec.match_flags & -1365) == 0) { rule->flow_type = 18U; if (((int )spec.match_flags & 1040) != 0) { { memcpy((void *)(& mac_entry->h_dest), (void const *)(& spec.loc_mac), 6UL); } if (((int )spec.match_flags & 16) != 0) { { memset((void *)(& mac_mask->h_dest), -1, 6UL); } } else { { memcpy((void *)(& mac_mask->h_dest), (void const *)(& mac_addr_ig_mask), 6UL); } } } else { } if (((int )spec.match_flags & 4) != 0) { { memcpy((void *)(& mac_entry->h_source), (void const *)(& spec.rem_mac), 6UL); memset((void *)(& mac_mask->h_source), -1, 6UL); } } else { } if (((int )spec.match_flags & 64) != 0) { mac_entry->h_proto = spec.ether_type; mac_mask->h_proto = 65535U; } else { } } else { { __ret_warn_on = 1; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ethtool.c", 800); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } return (-22); } if (((int )spec.match_flags & 256) != 0) { rule->flow_type = rule->flow_type | 2147483648U; rule->h_ext.vlan_tci = spec.outer_vid; rule->m_ext.vlan_tci = 65295U; } else { } return (rc); } } static int efx_ethtool_get_rxnfc(struct net_device *net_dev , struct ethtool_rxnfc *info , u32 *rule_locs ) { struct efx_nic *efx ; void *tmp ; unsigned int min_revision ; int tmp___0 ; u32 tmp___1 ; u32 tmp___2 ; int tmp___3 ; s32 rc ; u32 tmp___4 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } { if (info->cmd == 45U) { goto case_45; } else { } if (info->cmd == 41U) { goto case_41; } else { } if (info->cmd == 46U) { goto case_46; } else { } if (info->cmd == 47U) { goto case_47; } else { } if (info->cmd == 48U) { goto case_48; } else { } goto switch_default___0; case_45: /* CIL Label */ info->data = (__u64 )efx->n_rx_channels; return (0); case_41: /* CIL Label */ min_revision = 0U; info->data = 0ULL; { if (info->flow_type == 1U) { goto case_1; } else { } if (info->flow_type == 2U) { goto case_2; } else { } if (info->flow_type == 3U) { goto case_3; } else { } if (info->flow_type == 4U) { goto case_4; } else { } if (info->flow_type == 16U) { goto case_16; } else { } if (info->flow_type == 5U) { goto case_5; } else { } if (info->flow_type == 6U) { goto case_6; } else { } if (info->flow_type == 7U) { goto case_7; } else { } if (info->flow_type == 8U) { goto case_8; } else { } if (info->flow_type == 17U) { goto case_17; } else { } goto switch_default; case_1: /* CIL Label */ info->data = info->data | 192ULL; case_2: /* CIL Label */ ; case_3: /* CIL Label */ ; case_4: /* CIL Label */ ; case_16: /* CIL Label */ info->data = info->data | 48ULL; min_revision = 2U; goto ldv_46277; case_5: /* CIL Label */ info->data = info->data | 192ULL; case_6: /* CIL Label */ ; case_7: /* CIL Label */ ; case_8: /* CIL Label */ ; case_17: /* CIL Label */ info->data = info->data | 48ULL; min_revision = 3U; goto ldv_46277; switch_default: /* CIL Label */ ; goto ldv_46277; switch_break___0: /* CIL Label */ ; } ldv_46277: { tmp___0 = efx_nic_rev(efx); } if ((unsigned int )tmp___0 < min_revision) { info->data = 0ULL; } else { } return (0); case_46: /* CIL Label */ { tmp___1 = efx_filter_get_rx_id_limit(efx); info->data = (__u64 )tmp___1; } if (info->data == 0ULL) { return (-95); } else { } { info->data = info->data | 2147483648ULL; info->rule_cnt = efx_filter_count_rx_used(efx, 2); } return (0); case_47: /* CIL Label */ { tmp___2 = efx_filter_get_rx_id_limit(efx); } if (tmp___2 == 0U) { return (-95); } else { } { tmp___3 = efx_ethtool_get_class_rule(efx, & info->fs); } return (tmp___3); case_48: /* CIL Label */ { tmp___4 = efx_filter_get_rx_id_limit(efx); info->data = (__u64 )tmp___4; } if (info->data == 0ULL) { return (-95); } else { } { rc = efx_filter_get_rx_ids(efx, 2, rule_locs, info->rule_cnt); } if (rc < 0) { return (rc); } else { } info->rule_cnt = (__u32 )rc; return (0); switch_default___0: /* CIL Label */ ; return (-95); switch_break: /* CIL Label */ ; } } } static int efx_ethtool_set_class_rule(struct efx_nic *efx , struct ethtool_rx_flow_spec *rule ) { struct ethtool_tcpip4_spec *ip_entry ; struct ethtool_tcpip4_spec *ip_mask ; struct ethhdr *mac_entry ; struct ethhdr *mac_mask ; struct efx_filter_spec spec ; int rc ; bool tmp ; bool tmp___0 ; bool tmp___1 ; int tmp___2 ; bool tmp___3 ; int tmp___4 ; bool tmp___5 ; int tmp___6 ; { ip_entry = & rule->h_u.tcp_ip4_spec; ip_mask = & rule->m_u.tcp_ip4_spec; mac_entry = & rule->h_u.ether_spec; mac_mask = & rule->m_u.ether_spec; if (rule->location != 4294967295U) { return (-22); } else { } if (rule->ring_cookie >= (__u64 )efx->n_rx_channels && rule->ring_cookie != 0xffffffffffffffffULL) { return (-22); } else { } if ((int )rule->flow_type < 0 && (*((unsigned long *)rule + 17UL) != 0UL || rule->m_ext.data[1] != 0U)) { return (-22); } else { } { efx_filter_init_rx(& spec, 2, (int )efx->rx_scatter ? 2 : 0, rule->ring_cookie != 0xffffffffffffffffULL ? (unsigned int )rule->ring_cookie : 4095U); } { if ((rule->flow_type & 2147483647U) == 1U) { goto case_1; } else { } if ((rule->flow_type & 2147483647U) == 2U) { goto case_2; } else { } if ((rule->flow_type & 2147483647U) == 18U) { goto case_18; } else { } goto switch_default; case_1: /* CIL Label */ ; case_2: /* CIL Label */ spec.match_flags = 576U; spec.ether_type = 8U; spec.ip_proto = (rule->flow_type & 2147483647U) == 1U ? 6U : 17U; if (ip_mask->ip4dst != 0U) { if (ip_mask->ip4dst != 4294967295U) { return (-22); } else { } spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 2U; spec.loc_host[0] = ip_entry->ip4dst; } else { } if (ip_mask->ip4src != 0U) { if (ip_mask->ip4src != 4294967295U) { return (-22); } else { } spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 1U; spec.rem_host[0] = ip_entry->ip4src; } else { } if ((unsigned int )ip_mask->pdst != 0U) { if ((unsigned int )ip_mask->pdst != 65535U) { return (-22); } else { } spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 32U; spec.loc_port = ip_entry->pdst; } else { } if ((unsigned int )ip_mask->psrc != 0U) { if ((unsigned int )ip_mask->psrc != 65535U) { return (-22); } else { } spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 8U; spec.rem_port = ip_entry->psrc; } else { } if ((unsigned int )ip_mask->tos != 0U) { return (-22); } else { } goto ldv_46301; case_18: /* CIL Label */ { tmp___1 = is_zero_ether_addr((u8 const *)(& mac_mask->h_dest)); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { { tmp___0 = ether_addr_equal((u8 const *)(& mac_mask->h_dest), (u8 const *)(& mac_addr_ig_mask)); } if ((int )tmp___0) { spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 1024U; } else { { tmp = is_broadcast_ether_addr((u8 const *)(& mac_mask->h_dest)); } if ((int )tmp) { spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 16U; } else { return (-22); } } { memcpy((void *)(& spec.loc_mac), (void const *)(& mac_entry->h_dest), 6UL); } } else { } { tmp___5 = is_zero_ether_addr((u8 const *)(& mac_mask->h_source)); } if (tmp___5) { tmp___6 = 0; } else { tmp___6 = 1; } if (tmp___6) { { tmp___3 = is_broadcast_ether_addr((u8 const *)(& mac_mask->h_source)); } if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { return (-22); } else { } { spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 4U; memcpy((void *)(& spec.rem_mac), (void const *)(& mac_entry->h_source), 6UL); } } else { } if ((unsigned int )mac_mask->h_proto != 0U) { if ((unsigned int )mac_mask->h_proto != 65535U) { return (-22); } else { } spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 64U; spec.ether_type = mac_entry->h_proto; } else { } goto ldv_46301; switch_default: /* CIL Label */ ; return (-22); switch_break: /* CIL Label */ ; } ldv_46301: ; if ((int )rule->flow_type < 0 && (unsigned int )rule->m_ext.vlan_tci != 0U) { if ((unsigned int )rule->m_ext.vlan_tci != 65295U) { return (-22); } else { } spec.match_flags = (unsigned int )((unsigned short )spec.match_flags) | 256U; spec.outer_vid = rule->h_ext.vlan_tci; } else { } { rc = efx_filter_insert_filter(efx, & spec, 1); } if (rc < 0) { return (rc); } else { } rule->location = (__u32 )rc; return (0); } } static int efx_ethtool_set_rxnfc(struct net_device *net_dev , struct ethtool_rxnfc *info ) { struct efx_nic *efx ; void *tmp ; u32 tmp___0 ; int tmp___1 ; int tmp___2 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___0 = efx_filter_get_rx_id_limit(efx); } if (tmp___0 == 0U) { return (-95); } else { } { if (info->cmd == 50U) { goto case_50; } else { } if (info->cmd == 49U) { goto case_49; } else { } goto switch_default; case_50: /* CIL Label */ { tmp___1 = efx_ethtool_set_class_rule(efx, & info->fs); } return (tmp___1); case_49: /* CIL Label */ { tmp___2 = efx_filter_remove_id_safe(efx, 2, info->fs.location); } return (tmp___2); switch_default: /* CIL Label */ ; return (-95); switch_break: /* CIL Label */ ; } } } static u32 efx_ethtool_get_rxfh_indir_size(struct net_device *net_dev ) { struct efx_nic *efx ; void *tmp ; int tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; tmp___0 = efx_nic_rev(efx); } return (tmp___0 <= 1 || efx->n_rx_channels == 1U ? 0U : 128U); } } static int efx_ethtool_get_rxfh_indir(struct net_device *net_dev , u32 *indir ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; memcpy((void *)indir, (void const *)(& efx->rx_indir_table), 512UL); } return (0); } } static int efx_ethtool_set_rxfh_indir(struct net_device *net_dev , u32 const *indir ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; memcpy((void *)(& efx->rx_indir_table), (void const *)indir, 512UL); (*((efx->type)->rx_push_rss_config))(efx); } return (0); } } static int efx_ethtool_get_ts_info(struct net_device *net_dev , struct ethtool_ts_info *ts_info ) { struct efx_nic *efx ; void *tmp ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; ts_info->so_timestamping = 24U; ts_info->phc_index = -1; efx_ptp_get_ts_info(efx, ts_info); } return (0); } } static int efx_ethtool_get_module_eeprom(struct net_device *net_dev , struct ethtool_eeprom *ee , u8 *data ) { struct efx_nic *efx ; void *tmp ; int ret ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((unsigned long )efx->phy_op == (unsigned long )((struct efx_phy_operations const *)0) || (unsigned long )(efx->phy_op)->get_module_eeprom == (unsigned long )((int (*/* const */)(struct efx_nic * , struct ethtool_eeprom * , u8 * ))0)) { return (-95); } else { } { mutex_lock_nested(& efx->mac_lock, 0U); ret = (*((efx->phy_op)->get_module_eeprom))(efx, ee, data); mutex_unlock(& efx->mac_lock); } return (ret); } } static int efx_ethtool_get_module_info(struct net_device *net_dev , struct ethtool_modinfo *modinfo ) { struct efx_nic *efx ; void *tmp ; int ret ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((unsigned long )efx->phy_op == (unsigned long )((struct efx_phy_operations const *)0) || (unsigned long )(efx->phy_op)->get_module_info == (unsigned long )((int (*/* const */)(struct efx_nic * , struct ethtool_modinfo * ))0)) { return (-95); } else { } { mutex_lock_nested(& efx->mac_lock, 0U); ret = (*((efx->phy_op)->get_module_info))(efx, modinfo); mutex_unlock(& efx->mac_lock); } return (ret); } } struct ethtool_ops const efx_ethtool_ops = {& efx_ethtool_get_settings, & efx_ethtool_set_settings, & efx_ethtool_get_drvinfo, & efx_ethtool_get_regs_len, & efx_ethtool_get_regs, & efx_ethtool_get_wol, & efx_ethtool_set_wol, & efx_ethtool_get_msglevel, & efx_ethtool_set_msglevel, & efx_ethtool_nway_reset, & ethtool_op_get_link, 0, 0, 0, & efx_ethtool_get_coalesce, & efx_ethtool_set_coalesce, & efx_ethtool_get_ringparam, & efx_ethtool_set_ringparam, & efx_ethtool_get_pauseparam, & efx_ethtool_set_pauseparam, & efx_ethtool_self_test, & efx_ethtool_get_strings, & efx_ethtool_phys_id, & efx_ethtool_get_stats, 0, 0, 0, 0, & efx_ethtool_get_sset_count, & efx_ethtool_get_rxnfc, & efx_ethtool_set_rxnfc, 0, & efx_ethtool_reset, & efx_ethtool_get_rxfh_indir_size, & efx_ethtool_get_rxfh_indir, & efx_ethtool_set_rxfh_indir, 0, 0, 0, 0, 0, & efx_ethtool_get_ts_info, & efx_ethtool_get_module_info, & efx_ethtool_get_module_eeprom, 0, 0}; int (*ldv_1_callback_get_coalesce)(struct net_device * , struct ethtool_coalesce * ) = & efx_ethtool_get_coalesce; void (*ldv_1_callback_get_drvinfo)(struct net_device * , struct ethtool_drvinfo * ) = & efx_ethtool_get_drvinfo; void (*ldv_1_callback_get_ethtool_stats)(struct net_device * , struct ethtool_stats * , unsigned long long * ) = & efx_ethtool_get_stats; unsigned int (*ldv_1_callback_get_link)(struct net_device * ) = & ethtool_op_get_link; int (*ldv_1_callback_get_module_eeprom)(struct net_device * , struct ethtool_eeprom * , unsigned char * ) = & efx_ethtool_get_module_eeprom; int (*ldv_1_callback_get_module_info)(struct net_device * , struct ethtool_modinfo * ) = & efx_ethtool_get_module_info; unsigned int (*ldv_1_callback_get_msglevel)(struct net_device * ) = & efx_ethtool_get_msglevel; void (*ldv_1_callback_get_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) = & efx_ethtool_get_pauseparam; void (*ldv_1_callback_get_regs)(struct net_device * , struct ethtool_regs * , void * ) = & efx_ethtool_get_regs; int (*ldv_1_callback_get_regs_len)(struct net_device * ) = & efx_ethtool_get_regs_len; void (*ldv_1_callback_get_ringparam)(struct net_device * , struct ethtool_ringparam * ) = & efx_ethtool_get_ringparam; int (*ldv_1_callback_get_rxfh_indir)(struct net_device * , unsigned int * ) = & efx_ethtool_get_rxfh_indir; unsigned int (*ldv_1_callback_get_rxfh_indir_size)(struct net_device * ) = & efx_ethtool_get_rxfh_indir_size; int (*ldv_1_callback_get_rxnfc)(struct net_device * , struct ethtool_rxnfc * , unsigned int * ) = & efx_ethtool_get_rxnfc; int (*ldv_1_callback_get_settings)(struct net_device * , struct ethtool_cmd * ) = & efx_ethtool_get_settings; int (*ldv_1_callback_get_sset_count)(struct net_device * , int ) = & efx_ethtool_get_sset_count; void (*ldv_1_callback_get_strings)(struct net_device * , unsigned int , unsigned char * ) = & efx_ethtool_get_strings; int (*ldv_1_callback_get_ts_info)(struct net_device * , struct ethtool_ts_info * ) = & efx_ethtool_get_ts_info; void (*ldv_1_callback_get_wol)(struct net_device * , struct ethtool_wolinfo * ) = & efx_ethtool_get_wol; int (*ldv_1_callback_nway_reset)(struct net_device * ) = & efx_ethtool_nway_reset; int (*ldv_1_callback_reset)(struct net_device * , unsigned int * ) = & efx_ethtool_reset; void (*ldv_1_callback_self_test)(struct net_device * , struct ethtool_test * , unsigned long long * ) = & efx_ethtool_self_test; int (*ldv_1_callback_set_coalesce)(struct net_device * , struct ethtool_coalesce * ) = & efx_ethtool_set_coalesce; void (*ldv_1_callback_set_msglevel)(struct net_device * , unsigned int ) = & efx_ethtool_set_msglevel; int (*ldv_1_callback_set_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) = & efx_ethtool_set_pauseparam; int (*ldv_1_callback_set_phys_id)(struct net_device * , enum ethtool_phys_id_state ) = & efx_ethtool_phys_id; int (*ldv_1_callback_set_ringparam)(struct net_device * , struct ethtool_ringparam * ) = & efx_ethtool_set_ringparam; int (*ldv_1_callback_set_rxfh_indir)(struct net_device * , unsigned int * ) = (int (*)(struct net_device * , unsigned int * ))(& efx_ethtool_set_rxfh_indir); int (*ldv_1_callback_set_rxnfc)(struct net_device * , struct ethtool_rxnfc * ) = & efx_ethtool_set_rxnfc; int (*ldv_1_callback_set_settings)(struct net_device * , struct ethtool_cmd * ) = & efx_ethtool_set_settings; int (*ldv_1_callback_set_wol)(struct net_device * , struct ethtool_wolinfo * ) = & efx_ethtool_set_wol; unsigned long long (*ldv_7_callback_get_stat)(void * ) = & efx_get_atomic_stat; unsigned long long (*ldv_8_callback_get_stat)(void * ) = & efx_get_uint_stat; void ldv_base_instance_callback_7_9(unsigned long long (*arg0)(void * ) , void *arg1 ) { { { efx_get_atomic_stat(arg1); } return; } } void ldv_base_instance_callback_8_9(unsigned long long (*arg0)(void * ) , void *arg1 ) { { { efx_get_uint_stat(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_11(unsigned int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { ethtool_op_get_link(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_12(int (*arg0)(struct net_device * , struct ethtool_eeprom * , unsigned char * ) , struct net_device *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { efx_ethtool_get_module_eeprom(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_15(int (*arg0)(struct net_device * , struct ethtool_modinfo * ) , struct net_device *arg1 , struct ethtool_modinfo *arg2 ) { { { efx_ethtool_get_module_info(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_16(unsigned int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_ethtool_get_msglevel(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_17(void (*arg0)(struct net_device * , struct ethtool_pauseparam * ) , struct net_device *arg1 , struct ethtool_pauseparam *arg2 ) { { { efx_ethtool_get_pauseparam(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_18(void (*arg0)(struct net_device * , struct ethtool_regs * , void * ) , struct net_device *arg1 , struct ethtool_regs *arg2 , void *arg3 ) { { { efx_ethtool_get_regs(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_19(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_ethtool_get_regs_len(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_20(void (*arg0)(struct net_device * , struct ethtool_ringparam * ) , struct net_device *arg1 , struct ethtool_ringparam *arg2 ) { { { efx_ethtool_get_ringparam(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_21(int (*arg0)(struct net_device * , unsigned int * ) , struct net_device *arg1 , unsigned int *arg2 ) { { { efx_ethtool_get_rxfh_indir(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_24(unsigned int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_ethtool_get_rxfh_indir_size(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_25(int (*arg0)(struct net_device * , struct ethtool_rxnfc * , unsigned int * ) , struct net_device *arg1 , struct ethtool_rxnfc *arg2 , unsigned int *arg3 ) { { { efx_ethtool_get_rxnfc(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_28(int (*arg0)(struct net_device * , struct ethtool_cmd * ) , struct net_device *arg1 , struct ethtool_cmd *arg2 ) { { { efx_ethtool_get_settings(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_29(int (*arg0)(struct net_device * , int ) , struct net_device *arg1 , int arg2 ) { { { efx_ethtool_get_sset_count(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_3(int (*arg0)(struct net_device * , struct ethtool_coalesce * ) , struct net_device *arg1 , struct ethtool_coalesce *arg2 ) { { { efx_ethtool_get_coalesce(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_32(void (*arg0)(struct net_device * , unsigned int , unsigned char * ) , struct net_device *arg1 , unsigned int arg2 , unsigned char *arg3 ) { { { efx_ethtool_get_strings(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_35(int (*arg0)(struct net_device * , struct ethtool_ts_info * ) , struct net_device *arg1 , struct ethtool_ts_info *arg2 ) { { { efx_ethtool_get_ts_info(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_36(void (*arg0)(struct net_device * , struct ethtool_wolinfo * ) , struct net_device *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ethtool_get_wol(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_7(void (*arg0)(struct net_device * , struct ethtool_drvinfo * ) , struct net_device *arg1 , struct ethtool_drvinfo *arg2 ) { { { efx_ethtool_get_drvinfo(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_73(int (*arg0)(struct net_device * ) , struct net_device *arg1 ) { { { efx_ethtool_nway_reset(arg1); } return; } } void ldv_dummy_resourceless_instance_callback_1_74(int (*arg0)(struct net_device * , unsigned int * ) , struct net_device *arg1 , unsigned int *arg2 ) { { { efx_ethtool_reset(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_77(void (*arg0)(struct net_device * , struct ethtool_test * , unsigned long long * ) , struct net_device *arg1 , struct ethtool_test *arg2 , unsigned long long *arg3 ) { { { efx_ethtool_self_test(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_8(void (*arg0)(struct net_device * , struct ethtool_stats * , unsigned long long * ) , struct net_device *arg1 , struct ethtool_stats *arg2 , unsigned long long *arg3 ) { { { efx_ethtool_get_stats(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_1_80(int (*arg0)(struct net_device * , struct ethtool_coalesce * ) , struct net_device *arg1 , struct ethtool_coalesce *arg2 ) { { { efx_ethtool_set_coalesce(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_81(void (*arg0)(struct net_device * , unsigned int ) , struct net_device *arg1 , unsigned int arg2 ) { { { efx_ethtool_set_msglevel(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_84(int (*arg0)(struct net_device * , struct ethtool_pauseparam * ) , struct net_device *arg1 , struct ethtool_pauseparam *arg2 ) { { { efx_ethtool_set_pauseparam(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_85(int (*arg0)(struct net_device * , enum ethtool_phys_id_state ) , struct net_device *arg1 , enum ethtool_phys_id_state arg2 ) { { { efx_ethtool_phys_id(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_86(int (*arg0)(struct net_device * , struct ethtool_ringparam * ) , struct net_device *arg1 , struct ethtool_ringparam *arg2 ) { { { efx_ethtool_set_ringparam(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_87(int (*arg0)(struct net_device * , unsigned int * ) , struct net_device *arg1 , unsigned int *arg2 ) { { { efx_ethtool_set_rxfh_indir(arg1, (u32 const *)arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_90(int (*arg0)(struct net_device * , struct ethtool_rxnfc * ) , struct net_device *arg1 , struct ethtool_rxnfc *arg2 ) { { { efx_ethtool_set_rxnfc(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_91(int (*arg0)(struct net_device * , struct ethtool_cmd * ) , struct net_device *arg1 , struct ethtool_cmd *arg2 ) { { { efx_ethtool_set_settings(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_1_92(int (*arg0)(struct net_device * , struct ethtool_wolinfo * ) , struct net_device *arg1 , struct ethtool_wolinfo *arg2 ) { { { efx_ethtool_set_wol(arg1, arg2); } return; } } __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern int mdio_set_flag(struct mdio_if_info const * , int , int , u16 , int , bool ) ; extern void mdio45_ethtool_gset_npage(struct mdio_if_info const * , struct ethtool_cmd * , u32 , u32 ) ; __inline static void mdio45_ethtool_gset(struct mdio_if_info const *mdio , struct ethtool_cmd *ecmd ) { { { mdio45_ethtool_gset_npage(mdio, ecmd, 0U, 0U); } return; } } __inline static unsigned int efx_mdio_id_rev(u32 id ) { { return (id & 15U); } } __inline static unsigned int efx_mdio_id_model(u32 id ) { { return ((id >> 4) & 63U); } } unsigned int efx_mdio_id_oui(u32 id ) ; __inline static void efx_mdio_write(struct efx_nic *efx , int devad , int addr , int value ) { { { (*(efx->mdio.mdio_write))(efx->net_dev, efx->mdio.prtad, devad, (int )((u16 )addr), (int )((u16 )value)); } return; } } __inline static u32 efx_mdio_read_id(struct efx_nic *efx , int mmd ) { u16 id_low ; int tmp ; u16 id_hi ; int tmp___0 ; { { tmp = efx_mdio_read(efx, mmd, 3); id_low = (u16 )tmp; tmp___0 = efx_mdio_read(efx, mmd, 2); id_hi = (u16 )tmp___0; } return ((u32 )(((int )id_hi << 16) | (int )id_low)); } } int efx_mdio_reset_mmd(struct efx_nic *port , int mmd , int spins , int spintime ) ; bool efx_mdio_links_ok(struct efx_nic *efx , unsigned int mmd_mask ) ; void efx_mdio_transmit_disable(struct efx_nic *efx ) ; void efx_mdio_phy_reconfigure(struct efx_nic *efx ) ; int efx_mdio_set_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) ; __inline static void efx_mdio_set_flag(struct efx_nic *efx , int devad , int addr , int mask , bool state ) { { { mdio_set_flag((struct mdio_if_info const *)(& efx->mdio), efx->mdio.prtad, devad, (int )((u16 )addr), mask, (int )state); } return; } } int efx_mdio_test_alive(struct efx_nic *efx ) ; void falcon_qt202x_set_led(struct efx_nic *p , int led , int mode ) ; void falcon_qt202x_set_led(struct efx_nic *p , int led , int mode ) { int addr ; { { addr = led + 53254; efx_mdio_write(p, 1, addr, mode); } return; } } static int qt2025c_wait_heartbeat(struct efx_nic *efx ) { unsigned long timeout ; int reg ; int old_counter ; int counter ; { timeout = (unsigned long )jiffies + 1250UL; old_counter = 0; ldv_46078: { reg = efx_mdio_read(efx, 3, 55278); } if (reg < 0) { return (reg); } else { } counter = reg & 255; if (old_counter == 0) { old_counter = counter; } else if (counter != old_counter) { goto ldv_46071; } else { } if ((long )(timeout - (unsigned long )jiffies) < 0L) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "If an SFP+ direct attach cable is connected, please check that it complies with the SFP+ specification\n"); } } else { } return (-110); } else { } { msleep(100U); } goto ldv_46078; ldv_46071: ; return (0); } } static int qt2025c_wait_fw_status_good(struct efx_nic *efx ) { unsigned long timeout ; int reg ; { timeout = (unsigned long )jiffies + 625UL; ldv_46091: { reg = efx_mdio_read(efx, 3, 55293); } if (reg < 0) { return (reg); } else { } if ((reg & 255) > 31) { goto ldv_46084; } else { } if ((long )(timeout - (unsigned long )jiffies) < 0L) { return (-110); } else { } { msleep(100U); } goto ldv_46091; ldv_46084: ; return (0); } } static void qt2025c_restart_firmware(struct efx_nic *efx ) { { { efx_mdio_write(efx, 3, 59476, 192); efx_mdio_write(efx, 3, 59476, 64); msleep(50U); } return; } } static int qt2025c_wait_reset(struct efx_nic *efx ) { int rc ; struct _ddebug descriptor ; long tmp ; { { rc = qt2025c_wait_heartbeat(efx); } if (rc != 0) { return (rc); } else { } { rc = qt2025c_wait_fw_status_good(efx); } if (rc == -110) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "qt2025c_wait_reset"; descriptor.filename = "drivers/net/ethernet/sfc/qt202x_phy.c"; descriptor.format = "bashing QT2025C microcontroller\n"; descriptor.lineno = 152U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "bashing QT2025C microcontroller\n"); } } else { } } else { } { qt2025c_restart_firmware(efx); rc = qt2025c_wait_heartbeat(efx); } if (rc != 0) { return (rc); } else { } { rc = qt2025c_wait_fw_status_good(efx); } } else { } return (rc); } } static void qt2025c_firmware_id(struct efx_nic *efx ) { struct qt202x_phy_data *phy_data ; u8 firmware_id[9U] ; size_t i ; int tmp ; { phy_data = (struct qt202x_phy_data *)efx->phy_data; i = 0UL; goto ldv_46108; ldv_46107: { tmp = efx_mdio_read(efx, 3, (int )((unsigned int )i + 55280U)); firmware_id[i] = (u8 )tmp; i = i + 1UL; } ldv_46108: ; if (i <= 8UL) { goto ldv_46107; } else { } if ((efx->msg_enable & 2U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "QT2025C firmware %xr%d v%d.%d.%d.%d [20%02d-%02d-%02d]\n", ((int )firmware_id[0] << 8) | (int )firmware_id[1], (int )firmware_id[2], (int )firmware_id[3] >> 4, (int )firmware_id[3] & 15, (int )firmware_id[4], (int )firmware_id[5], (int )firmware_id[6], (int )firmware_id[7], (int )firmware_id[8]); } } else { } phy_data->firmware_ver = (u32 )((((((int )firmware_id[3] & 240) << 20) | (((int )firmware_id[3] & 15) << 16)) | ((int )firmware_id[4] << 8)) | (int )firmware_id[5]); return; } } static void qt2025c_bug17190_workaround(struct efx_nic *efx ) { struct qt202x_phy_data *phy_data ; bool tmp ; int tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; { phy_data = (struct qt202x_phy_data *)efx->phy_data; if ((int )efx->link_state.up) { phy_data->bug17190_in_bad_state = 0; return; } else { { tmp = efx_mdio_links_ok(efx, 18U); } if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { phy_data->bug17190_in_bad_state = 0; return; } else { } } if (! phy_data->bug17190_in_bad_state) { phy_data->bug17190_in_bad_state = 1; phy_data->bug17190_timer = (unsigned long )jiffies + 500UL; return; } else { } if ((long )((unsigned long )jiffies - phy_data->bug17190_timer) >= 0L) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "qt2025c_bug17190_workaround"; descriptor.filename = "drivers/net/ethernet/sfc/qt202x_phy.c"; descriptor.format = "bashing QT2025C PMA/PMD\n"; descriptor.lineno = 206U; 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 *)efx->net_dev, "bashing QT2025C PMA/PMD\n"); } } else { } } else { } { efx_mdio_set_flag(efx, 1, 0, 1, 1); msleep(100U); efx_mdio_set_flag(efx, 1, 0, 1, 0); phy_data->bug17190_timer = (unsigned long )jiffies + 500UL; } } else { } return; } } static int qt2025c_select_phy_mode(struct efx_nic *efx ) { struct qt202x_phy_data *phy_data ; struct falcon_board *board ; struct falcon_board *tmp ; int reg ; int rc ; int i ; uint16_t phy_op_mode ; struct _ddebug descriptor ; long tmp___0 ; { { phy_data = (struct qt202x_phy_data *)efx->phy_data; tmp = falcon_board(efx); board = tmp; } if (phy_data->firmware_ver <= 33554687U) { return (0); } else { } { phy_op_mode = (unsigned int )efx->loopback_mode == 0U ? 56U : 32U; reg = efx_mdio_read(efx, 1, 49945); } if ((reg & 56) == (int )phy_op_mode) { return (0); } else { } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "qt2025c_select_phy_mode"; descriptor.filename = "drivers/net/ethernet/sfc/qt202x_phy.c"; descriptor.format = "Switching PHY to mode 0x%04x\n"; descriptor.lineno = 240U; 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 *)efx->net_dev, "Switching PHY to mode 0x%04x\n", (int )phy_op_mode); } } else { } } else { } { efx_mdio_write(efx, 1, 49920, 0); } if (board->major == 0 && board->minor <= 1) { { efx_mdio_write(efx, 1, 49923, 17560); i = 0; } goto ldv_46134; ldv_46133: { efx_mdio_write(efx, 1, 49923, 17544); efx_mdio_write(efx, 1, 49923, 17536); efx_mdio_write(efx, 1, 49923, 17552); efx_mdio_write(efx, 1, 49923, 17560); i = i + 1; } ldv_46134: ; if (i <= 8) { goto ldv_46133; } else { } } else { { efx_mdio_write(efx, 1, 49923, 2336); efx_mdio_write(efx, 1, 53256, 4); i = 0; } goto ldv_46137; ldv_46136: { efx_mdio_write(efx, 1, 49923, 2304); efx_mdio_write(efx, 1, 53256, 5); efx_mdio_write(efx, 1, 49923, 2336); efx_mdio_write(efx, 1, 53256, 4); i = i + 1; } ldv_46137: ; if (i <= 8) { goto ldv_46136; } else { } { efx_mdio_write(efx, 1, 49923, 18688); } } { efx_mdio_write(efx, 1, 49923, 18688); efx_mdio_write(efx, 1, 49922, 4); efx_mdio_write(efx, 1, 49942, 19); efx_mdio_write(efx, 1, 49944, 84); efx_mdio_write(efx, 1, 49945, (int )phy_op_mode); efx_mdio_write(efx, 1, 49946, 152); efx_mdio_write(efx, 3, 38, 3584); efx_mdio_write(efx, 3, 39, 19); efx_mdio_write(efx, 3, 40, 42280); efx_mdio_write(efx, 1, 53254, 10); efx_mdio_write(efx, 1, 53255, 9); efx_mdio_write(efx, 1, 53256, 4); efx_mdio_write(efx, 1, 49943, 255); efx_mdio_set_flag(efx, 1, 49921, 64, 0); efx_mdio_write(efx, 1, 49920, 2); msleep(20U); qt2025c_restart_firmware(efx); rc = qt2025c_wait_reset(efx); } if (rc < 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PHY microcontroller reset during mode switch timed out\n"); } } else { } return (rc); } else { } return (0); } } static int qt202x_reset_phy(struct efx_nic *efx ) { int rc ; struct falcon_board *tmp ; { if (efx->phy_type == 9U) { { rc = qt2025c_wait_reset(efx); } if (rc < 0) { goto fail; } else { } } else { { rc = efx_mdio_reset_mmd(efx, 4, 50, 10); } if (rc < 0) { goto fail; } else { } } { msleep(250U); tmp = falcon_board(efx); (*((tmp->type)->init_phy))(efx); } return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PHY reset timed out\n"); } } else { } return (rc); } } static int qt202x_phy_probe(struct efx_nic *efx ) { struct qt202x_phy_data *phy_data ; void *tmp ; { { tmp = kzalloc(24UL, 208U); phy_data = (struct qt202x_phy_data *)tmp; } if ((unsigned long )phy_data == (unsigned long )((struct qt202x_phy_data *)0)) { return (-12); } else { } efx->phy_data = (void *)phy_data; phy_data->phy_mode = efx->phy_mode; phy_data->bug17190_in_bad_state = 0; phy_data->bug17190_timer = 0UL; efx->mdio.mmds = 26U; efx->mdio.mode_support = 6U; efx->loopback_modes = 67305528ULL; return (0); } } static int qt202x_phy_init(struct efx_nic *efx ) { u32 devid ; int rc ; unsigned int tmp ; unsigned int tmp___0 ; unsigned int tmp___1 ; { { rc = qt202x_reset_phy(efx); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PHY init failed\n"); } } else { } return (rc); } else { } { devid = efx_mdio_read_id(efx, 4); } if ((efx->msg_enable & 2U) != 0U) { { tmp = efx_mdio_id_rev(devid); tmp___0 = efx_mdio_id_model(devid); tmp___1 = efx_mdio_id_oui(devid); netdev_info((struct net_device const *)efx->net_dev, "PHY ID reg %x (OUI %06x model %02x revision %x)\n", devid, tmp___1, tmp___0, tmp); } } else { } if (efx->phy_type == 9U) { { qt2025c_firmware_id(efx); } } else { } return (0); } } static int qt202x_link_ok(struct efx_nic *efx ) { bool tmp ; { { tmp = efx_mdio_links_ok(efx, 26U); } return ((int )tmp); } } static bool qt202x_phy_poll(struct efx_nic *efx ) { bool was_up ; int tmp ; { { was_up = efx->link_state.up; tmp = qt202x_link_ok(efx); efx->link_state.up = tmp != 0; efx->link_state.speed = 10000U; efx->link_state.fd = 1; efx->link_state.fc = efx->wanted_fc; } if (efx->phy_type == 9U) { { qt2025c_bug17190_workaround(efx); } } else { } return ((int )efx->link_state.up != (int )was_up); } } static int qt202x_phy_reconfigure(struct efx_nic *efx ) { struct qt202x_phy_data *phy_data ; int rc ; int tmp ; { phy_data = (struct qt202x_phy_data *)efx->phy_data; if (efx->phy_type == 9U) { { tmp = qt2025c_select_phy_mode(efx); rc = tmp; } if (rc != 0) { return (rc); } else { } { mdio_set_flag((struct mdio_if_info const *)(& efx->mdio), efx->mdio.prtad, 1, 49929, 8192, (int )((bool )((*((unsigned int *)efx + 783UL) != 0U || (unsigned int )efx->loopback_mode == 16U) || (unsigned int )efx->loopback_mode == 17U))); } } else { if (((unsigned int )efx->phy_mode & 1U) == 0U && (int )phy_data->phy_mode & 1) { { qt202x_reset_phy(efx); } } else { } { efx_mdio_transmit_disable(efx); } } { efx_mdio_phy_reconfigure(efx); phy_data->phy_mode = efx->phy_mode; } return (0); } } static void qt202x_phy_get_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) { { { mdio45_ethtool_gset((struct mdio_if_info const *)(& efx->mdio), ecmd); } return; } } static void qt202x_phy_remove(struct efx_nic *efx ) { { { kfree((void const *)efx->phy_data); efx->phy_data = (void *)0; } return; } } static int qt202x_phy_get_module_info(struct efx_nic *efx , struct ethtool_modinfo *modinfo ) { { modinfo->type = 1U; modinfo->eeprom_len = 256U; return (0); } } static int qt202x_phy_get_module_eeprom(struct efx_nic *efx , struct ethtool_eeprom *ee , u8 *data ) { int mmd ; int reg_base ; int rc ; int i ; { if (efx->phy_type == 9U) { mmd = 3; reg_base = 53248; } else { mmd = 1; reg_base = 32775; } i = 0; goto ldv_46186; ldv_46185: { rc = efx_mdio_read(efx, mmd, (int )(((__u32 )reg_base + ee->offset) + (__u32 )i)); } if (rc < 0) { return (rc); } else { } *(data + (unsigned long )i) = (u8 )rc; i = i + 1; ldv_46186: ; if ((__u32 )i < ee->len) { goto ldv_46185; } else { } return (0); } } struct efx_phy_operations const falcon_qt202x_phy_ops = {& qt202x_phy_probe, & qt202x_phy_init, & efx_port_dummy_op_void, & qt202x_phy_remove, & qt202x_phy_reconfigure, & qt202x_phy_poll, & qt202x_phy_get_settings, & efx_mdio_set_settings, 0, & efx_mdio_test_alive, 0, 0, & qt202x_phy_get_module_eeprom, & qt202x_phy_get_module_info}; struct efx_phy_operations *ldv_11_container_struct_efx_phy_operations ; int (*ldv_11_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) = & qt202x_phy_get_module_eeprom; int (*ldv_11_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) = & qt202x_phy_get_module_info; void (*ldv_11_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) = & qt202x_phy_get_settings; _Bool (*ldv_11_callback_poll)(struct efx_nic * ) = & qt202x_phy_poll; int (*ldv_11_callback_reconfigure)(struct efx_nic * ) = & qt202x_phy_reconfigure; void ldv_io_instance_callback_11_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { qt202x_phy_poll(arg1); } return; } } void ldv_io_instance_callback_11_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { qt202x_phy_reconfigure(arg1); } return; } } void ldv_io_instance_callback_11_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { qt202x_phy_get_module_eeprom(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_11_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { qt202x_phy_get_module_info(arg1, arg2); } return; } } void ldv_io_instance_callback_11_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { qt202x_phy_get_settings(arg1, arg2); } return; } } __inline static u16 mii_advertise_flowctrl(int cap ) { u16 adv ; { adv = 0U; if ((cap & 2) != 0) { adv = 3072U; } else { } if (cap & 1) { adv = (u16 )((unsigned int )adv ^ 2048U); } else { } return (adv); } } __inline static u8 mii_resolve_flowctrl_fdx(u16 lcladv , u16 rmtadv ) { u8 cap ; { cap = 0U; if ((((int )lcladv & (int )rmtadv) & 1024) != 0) { cap = 3U; } else if ((((int )lcladv & (int )rmtadv) & 2048) != 0) { if (((int )lcladv & 1024) != 0) { cap = 2U; } else if (((int )rmtadv & 1024) != 0) { cap = 1U; } else { } } else { } return (cap); } } extern int mdio45_links_ok(struct mdio_if_info const * , u32 ) ; int efx_mdio_check_mmds(struct efx_nic *efx , unsigned int mmd_mask ) ; void efx_mdio_set_mmds_lpower(struct efx_nic *efx , int low_power , unsigned int mmd_mask ) ; void efx_mdio_an_reconfigure(struct efx_nic *efx ) ; u8 efx_mdio_get_pause(struct efx_nic *efx ) ; int efx_mdio_wait_reset_mmds(struct efx_nic *efx , unsigned int mmd_mask ) ; unsigned int efx_mdio_id_oui(u32 id ) { unsigned int oui ; int i ; { oui = 0U; i = 0; goto ldv_45141; ldv_45140: ; if ((id & (u32 )(1 << (i + 10))) != 0U) { oui = oui | (unsigned int )(1 << (i ^ 7)); } else { } i = i + 1; ldv_45141: ; if (i <= 21) { goto ldv_45140; } else { } return (oui); } } int efx_mdio_reset_mmd(struct efx_nic *port , int mmd , int spins , int spintime ) { u32 ctrl ; int tmp ; { { efx_mdio_write(port, mmd, 0, 32768); } ldv_45150: { msleep((unsigned int )spintime); tmp = efx_mdio_read(port, mmd, 0); ctrl = (u32 )tmp; spins = spins - 1; } if (spins != 0 && (ctrl & 32768U) != 0U) { goto ldv_45150; } else { } return (spins != 0 ? spins : -110); } } static int efx_mdio_check_mmd(struct efx_nic *efx , int mmd ) { int status ; { if (mmd != 7) { { status = efx_mdio_read(efx, mmd, 8); } if ((status & 49152) != 32768) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PHY MMD %d not responding.\n", mmd); } } else { } return (-5); } else { } } else { } return (0); } } int efx_mdio_wait_reset_mmds(struct efx_nic *efx , unsigned int mmd_mask ) { int spintime ; int tries ; int rc ; int in_reset ; int mask ; int mmd ; int stat ; { spintime = 10; tries = 100; rc = 0; goto ldv_45173; ldv_45172: mask = (int )mmd_mask; mmd = 0; in_reset = 0; goto ldv_45169; ldv_45168: ; if (mask & 1) { { stat = efx_mdio_read(efx, mmd, 0); } if (stat < 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to read status of MMD %d\n", mmd); } } else { } return (-5); } else { } if ((stat & 32768) != 0) { in_reset = in_reset | (1 << mmd); } else { } } else { } mask = mask >> 1; mmd = mmd + 1; ldv_45169: ; if (mask != 0) { goto ldv_45168; } else { } if (in_reset == 0) { goto ldv_45171; } else { } { tries = tries - 1; msleep((unsigned int )spintime); } ldv_45173: ; if (tries != 0) { goto ldv_45172; } else { } ldv_45171: ; if (in_reset != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "not all MMDs came out of reset in time. MMDs still in reset: %x\n", in_reset); } } else { } rc = -110; } else { } return (rc); } } int efx_mdio_check_mmds(struct efx_nic *efx , unsigned int mmd_mask ) { int mmd ; int probe_mmd ; int devs1 ; int devs2 ; u32 devices ; unsigned long tmp ; int tmp___0 ; { mmd = 0; if ((mmd_mask & 16U) == 0U) { { tmp = __ffs((unsigned long )mmd_mask); probe_mmd = (int )tmp; } } else { probe_mmd = 4; } { devs1 = efx_mdio_read(efx, probe_mmd, 5); devs2 = efx_mdio_read(efx, probe_mmd, 6); } if (devs1 < 0 || devs2 < 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "failed to read devices present\n"); } } else { } return (-5); } else { } devices = (u32 )(devs1 | (devs2 << 16)); if ((devices & mmd_mask) != mmd_mask) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "required MMDs not present: got %x, wanted %x\n", devices, mmd_mask); } } else { } return (-19); } else { } goto ldv_45185; ldv_45184: ; if ((int )mmd_mask & 1) { { tmp___0 = efx_mdio_check_mmd(efx, mmd); } if (tmp___0 != 0) { return (-5); } else { } } else { } mmd_mask = mmd_mask >> 1; mmd = mmd + 1; ldv_45185: ; if (mmd_mask != 0U) { goto ldv_45184; } else { } return (0); } } bool efx_mdio_links_ok(struct efx_nic *efx , unsigned int mmd_mask ) { bool tmp ; int tmp___0 ; { if ((66600958 >> (int )efx->loopback_mode) & 1) { return (1); } else if ((133693440 >> (int )efx->loopback_mode) & 1) { return (0); } else { { tmp = efx_phy_mode_disabled(efx->phy_mode); } if ((int )tmp) { return (0); } else if ((unsigned int )efx->loopback_mode == 15U) { mmd_mask = mmd_mask & 4294967141U; } else if ((unsigned int )efx->loopback_mode == 16U) { mmd_mask = mmd_mask & 4294967157U; } else if ((unsigned int )efx->loopback_mode == 17U) { mmd_mask = mmd_mask & 4294967165U; } else { } } { tmp___0 = mdio45_links_ok((struct mdio_if_info const *)(& efx->mdio), mmd_mask); } return (tmp___0 != 0); } } void efx_mdio_transmit_disable(struct efx_nic *efx ) { { { efx_mdio_set_flag(efx, 1, 9, 1, (int )efx->phy_mode & 1); } return; } } void efx_mdio_phy_reconfigure(struct efx_nic *efx ) { { { efx_mdio_set_flag(efx, 1, 0, 1, (unsigned int )efx->loopback_mode == 17U); efx_mdio_set_flag(efx, 3, 0, 16384, (unsigned int )efx->loopback_mode == 16U); efx_mdio_set_flag(efx, 4, 0, 16384, (unsigned int )efx->loopback_mode == 26U); } return; } } static void efx_mdio_set_mmd_lpower(struct efx_nic *efx , int lpower , int mmd ) { int stat ; int tmp ; { { tmp = efx_mdio_read(efx, mmd, 1); stat = tmp; } if ((stat & 2) != 0) { { efx_mdio_set_flag(efx, mmd, 0, 2048, lpower != 0); } } else { } return; } } void efx_mdio_set_mmds_lpower(struct efx_nic *efx , int low_power , unsigned int mmd_mask ) { int mmd ; { mmd = 0; mmd_mask = mmd_mask & 4294967167U; goto ldv_45211; ldv_45210: ; if ((int )mmd_mask & 1) { { efx_mdio_set_mmd_lpower(efx, low_power, mmd); } } else { } mmd_mask = mmd_mask >> 1; mmd = mmd + 1; ldv_45211: ; if (mmd_mask != 0U) { goto ldv_45210; } else { } return; } } int efx_mdio_set_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) { struct ethtool_cmd prev ; __u32 tmp ; __u32 tmp___0 ; { { prev.cmd = 1U; prev.supported = 0U; prev.advertising = 0U; prev.speed = (unsigned short)0; prev.duplex = (unsigned char)0; prev.port = (unsigned char)0; prev.phy_address = (unsigned char)0; prev.transceiver = (unsigned char)0; prev.autoneg = (unsigned char)0; prev.mdio_support = (unsigned char)0; prev.maxtxpkt = 0U; prev.maxrxpkt = 0U; prev.speed_hi = (unsigned short)0; prev.eth_tp_mdix = (unsigned char)0; prev.eth_tp_mdix_ctrl = (unsigned char)0; prev.lp_advertising = 0U; prev.reserved[0] = 0U; prev.reserved[1] = 0U; (*((efx->phy_op)->get_settings))(efx, & prev); } if (ecmd->advertising == prev.advertising) { { tmp = ethtool_cmd_speed((struct ethtool_cmd const *)ecmd); tmp___0 = ethtool_cmd_speed((struct ethtool_cmd const *)(& prev)); } if (tmp == tmp___0) { if ((int )*((unsigned short *)ecmd + 7UL) == (int )*((unsigned short *)(& prev) + 7UL)) { if ((int )ecmd->autoneg == (int )prev.autoneg) { return (0); } else { } } else { } } else { } } else { } if ((unsigned int )prev.port != 0U || (unsigned int )ecmd->port != 0U) { return (-22); } else { } if ((unsigned int )ecmd->autoneg == 0U || ((ecmd->advertising | 64U) & ~ prev.supported) != 0U) { return (-22); } else { } { efx_link_set_advertising(efx, ecmd->advertising | 64U); efx_mdio_an_reconfigure(efx); } return (0); } } void efx_mdio_an_reconfigure(struct efx_nic *efx ) { int reg ; int __ret_warn_on ; long tmp ; { { __ret_warn_on = (efx->mdio.mmds & 128U) == 0U; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mdio_10g.c", 268); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); reg = 4097; } if ((efx->link_advertising & 8192U) != 0U) { reg = reg | 1024; } else { } if ((efx->link_advertising & 16384U) != 0U) { reg = reg | 2048; } else { } { efx_mdio_write(efx, 7, 16, reg); (*((efx->phy_op)->set_npage_adv))(efx, efx->link_advertising); reg = efx_mdio_read(efx, 7, 0); reg = reg | 12800; efx_mdio_write(efx, 7, 0, reg); } return; } } extern void __compiletime_assert_289(void) ; u8 efx_mdio_get_pause(struct efx_nic *efx ) { bool __cond ; int __ret_warn_on ; long tmp ; int tmp___0 ; u16 tmp___1 ; u8 tmp___2 ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_289(); } } else { } if (((int )efx->wanted_fc & 4) == 0) { return (efx->wanted_fc); } else { } { __ret_warn_on = (efx->mdio.mmds & 128U) == 0U; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mdio_10g.c", 294); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); tmp___0 = efx_mdio_read(efx, 7, 19); tmp___1 = mii_advertise_flowctrl((int )efx->wanted_fc); tmp___2 = mii_resolve_flowctrl_fdx((int )tmp___1, (int )((u16 )tmp___0)); } return (tmp___2); } } int efx_mdio_test_alive(struct efx_nic *efx ) { int rc ; int devad ; unsigned long tmp ; u16 physid1 ; u16 physid2 ; int tmp___0 ; int tmp___1 ; { { tmp = __ffs((unsigned long )efx->mdio.mmds); devad = (int )tmp; mutex_lock_nested(& efx->mac_lock, 0U); tmp___0 = efx_mdio_read(efx, devad, 2); physid1 = (u16 )tmp___0; tmp___1 = efx_mdio_read(efx, devad, 3); physid2 = (u16 )tmp___1; } if (((unsigned int )physid1 - 1U > 65533U || (unsigned int )physid2 == 0U) || (unsigned int )physid2 == 65535U) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "no MDIO PHY present with ID %d\n", efx->mdio.prtad); } } else { } rc = -22; } else { { rc = efx_mdio_check_mmds(efx, efx->mdio.mmds); } } { mutex_unlock(& efx->mac_lock); } return (rc); } } __inline static void *kzalloc(size_t size , gfp_t flags ) ; void tenxpress_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) ; static int tenxpress_init(struct efx_nic *efx ) { { { efx_mdio_write(efx, 3, 55303, 8); efx_mdio_set_flag(efx, 1, 49159, 8, 1); efx_mdio_write(efx, 1, 49161, 128); } return (0); } } static int tenxpress_phy_probe(struct efx_nic *efx ) { struct tenxpress_phy_data *phy_data ; void *tmp ; { { tmp = kzalloc(12UL, 208U); phy_data = (struct tenxpress_phy_data *)tmp; } if ((unsigned long )phy_data == (unsigned long )((struct tenxpress_phy_data *)0)) { return (-12); } else { } efx->phy_data = (void *)phy_data; phy_data->phy_mode = efx->phy_mode; efx->mdio.mmds = 154U; efx->mdio.mode_support = 2U; efx->loopback_modes = 67338296ULL; efx->link_advertising = 4288U; return (0); } } static int tenxpress_phy_init(struct efx_nic *efx ) { int rc ; struct falcon_board *tmp ; { { tmp = falcon_board(efx); (*((tmp->type)->init_phy))(efx); } if (((unsigned int )efx->phy_mode & 8U) == 0U) { { rc = efx_mdio_wait_reset_mmds(efx, 154U); } if (rc < 0) { return (rc); } else { } { rc = efx_mdio_check_mmds(efx, 154U); } if (rc < 0) { return (rc); } else { } } else { } { rc = tenxpress_init(efx); } if (rc < 0) { return (rc); } else { } { efx_link_set_wanted_fc(efx, (int )efx->wanted_fc); efx_mdio_an_reconfigure(efx); schedule_timeout_uninterruptible(50L); falcon_reset_xaui(efx); } return (0); } } static int tenxpress_special_reset(struct efx_nic *efx ) { int rc ; int reg ; unsigned long __ms ; unsigned long tmp ; unsigned long __ms___0 ; unsigned long tmp___0 ; { { falcon_stop_nic_stats(efx); reg = efx_mdio_read(efx, 1, 49152); reg = reg | 32768; efx_mdio_write(efx, 1, 49152, reg); __ms = 200UL; } goto ldv_46075; ldv_46074: { __const_udelay(4295000UL); } ldv_46075: tmp = __ms; __ms = __ms - 1UL; if (tmp != 0UL) { goto ldv_46074; } else { } { rc = efx_mdio_wait_reset_mmds(efx, 154U); } if (rc < 0) { goto out; } else { } { rc = tenxpress_init(efx); } if (rc < 0) { goto out; } else { } __ms___0 = 10UL; goto ldv_46080; ldv_46079: { __const_udelay(4295000UL); } ldv_46080: tmp___0 = __ms___0; __ms___0 = __ms___0 - 1UL; if (tmp___0 != 0UL) { goto ldv_46079; } else { } out: { falcon_start_nic_stats(efx); } return (rc); } } static void sfx7101_check_bad_lp(struct efx_nic *efx , bool link_ok ) { struct tenxpress_phy_data *pd ; bool bad_lp ; int reg ; { pd = (struct tenxpress_phy_data *)efx->phy_data; if ((int )link_ok) { bad_lp = 0; } else { { reg = efx_mdio_read(efx, 7, 1); } if ((reg & 1) == 0) { return; } else { } bad_lp = (reg & 32) == 0; if ((int )bad_lp) { pd->bad_lp_tries = pd->bad_lp_tries + 1; } else { } } if (pd->bad_lp_tries == 0) { return; } else { } if (! bad_lp || pd->bad_lp_tries == 5) { { reg = efx_mdio_read(efx, 1, 49161); reg = reg & -193; } if (! bad_lp) { reg = reg | 128; } else { reg = reg | 192; if ((efx->msg_enable & 4U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "appears to be plugged into a port that is not 10GBASE-T capable. The PHY supports 10GBASE-T ONLY, so no link can be established\n"); } } else { } } { efx_mdio_write(efx, 1, 49161, reg); pd->bad_lp_tries = (int )bad_lp; } } else { } return; } } static bool sfx7101_link_ok(struct efx_nic *efx ) { bool tmp ; { { tmp = efx_mdio_links_ok(efx, 26U); } return (tmp); } } static void tenxpress_ext_loopback(struct efx_nic *efx ) { { { efx_mdio_set_flag(efx, 4, 49162, 256, (unsigned int )efx->loopback_mode == 15U); } return; } } static void tenxpress_low_power(struct efx_nic *efx ) { { { efx_mdio_set_mmds_lpower(efx, ((unsigned int )efx->phy_mode & 2U) != 0U, 154U); } return; } } static int tenxpress_phy_reconfigure(struct efx_nic *efx ) { struct tenxpress_phy_data *phy_data ; bool phy_mode_change ; bool loop_reset ; { phy_data = (struct tenxpress_phy_data *)efx->phy_data; if (((unsigned int )efx->phy_mode & 12U) != 0U) { phy_data->phy_mode = efx->phy_mode; return (0); } else { } phy_mode_change = (bool )((unsigned int )efx->phy_mode == 0U && (unsigned int )phy_data->phy_mode != 0U); loop_reset = (bool )(((((u64 )(1 << (int )phy_data->loopback_mode) & efx->loopback_modes) & 0xfffffffffc07c000ULL) != 0ULL && (((u64 )(1 << (int )efx->loopback_mode) & efx->loopback_modes) & 0xfffffffffc07c000ULL) == 0ULL) || (((1 << (int )phy_data->loopback_mode) ^ (1 << (int )efx->loopback_mode)) & 16384) != 0); if ((int )loop_reset || (int )phy_mode_change) { { tenxpress_special_reset(efx); falcon_reset_xaui(efx); } } else { } { tenxpress_low_power(efx); efx_mdio_transmit_disable(efx); efx_mdio_phy_reconfigure(efx); tenxpress_ext_loopback(efx); efx_mdio_an_reconfigure(efx); phy_data->loopback_mode = efx->loopback_mode; phy_data->phy_mode = efx->phy_mode; } return (0); } } static void tenxpress_get_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) ; static bool tenxpress_phy_poll(struct efx_nic *efx ) { struct efx_link_state old_state ; bool tmp ; int tmp___0 ; { { old_state = efx->link_state; efx->link_state.up = sfx7101_link_ok(efx); efx->link_state.speed = 10000U; efx->link_state.fd = 1; efx->link_state.fc = efx_mdio_get_pause(efx); sfx7101_check_bad_lp(efx, (int )efx->link_state.up); tmp = efx_link_state_equal((struct efx_link_state const *)(& efx->link_state), (struct efx_link_state const *)(& old_state)); } if ((int )tmp != 0) { tmp___0 = 0; } else { tmp___0 = 1; } return ((bool )tmp___0); } } static void sfx7101_phy_fini(struct efx_nic *efx ) { int reg ; { { reg = 256; efx_mdio_write(efx, 1, 49152, reg); schedule_timeout_uninterruptible(50L); } return; } } static void tenxpress_phy_remove(struct efx_nic *efx ) { { { kfree((void const *)efx->phy_data); efx->phy_data = (void *)0; } return; } } void tenxpress_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) { int reg ; { { if ((unsigned int )mode == 0U) { goto case_0; } else { } if ((unsigned int )mode == 1U) { goto case_1; } else { } goto switch_default; case_0: /* CIL Label */ reg = 162; goto ldv_46124; case_1: /* CIL Label */ reg = 81; goto ldv_46124; switch_default: /* CIL Label */ reg = 128; goto ldv_46124; switch_break: /* CIL Label */ ; } ldv_46124: { efx_mdio_write(efx, 1, 49161, reg); } return; } } static char const * const sfx7101_test_names[1U] = { "bist"}; static char const *sfx7101_test_name(struct efx_nic *efx , unsigned int index ) { { if (index == 0U) { return ((char const *)sfx7101_test_names[index]); } else { } return ((char const *)0); } } static int sfx7101_run_tests(struct efx_nic *efx , int *results , unsigned int flags ) { int rc ; { if ((flags & 1U) == 0U) { return (0); } else { } { rc = tenxpress_special_reset(efx); *results = rc != 0 ? -1 : 1; efx_mdio_an_reconfigure(efx); } return (rc); } } static void tenxpress_get_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) { u32 adv ; u32 lpa ; int reg ; { { adv = 0U; lpa = 0U; reg = efx_mdio_read(efx, 7, 32); } if ((reg & 4096) != 0) { adv = adv | 4096U; } else { } { reg = efx_mdio_read(efx, 7, 33); } if ((reg & 2048) != 0) { lpa = lpa | 4096U; } else { } { mdio45_ethtool_gset_npage((struct mdio_if_info const *)(& efx->mdio), ecmd, adv, lpa); } if ((((u64 )(1 << (int )efx->loopback_mode) & efx->loopback_modes) & 0xfffffffffc07c000ULL) != 0ULL) { { ethtool_cmd_speed_set(ecmd, 10000U); } } else { } return; } } static int tenxpress_set_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) { int tmp ; { if ((unsigned int )ecmd->autoneg == 0U) { return (-22); } else { } { tmp = efx_mdio_set_settings(efx, ecmd); } return (tmp); } } static void sfx7101_set_npage_adv(struct efx_nic *efx , u32 advertising ) { { { efx_mdio_set_flag(efx, 7, 32, 4096, (advertising & 4096U) != 0U); } return; } } struct efx_phy_operations const falcon_sfx7101_phy_ops = {& tenxpress_phy_probe, & tenxpress_phy_init, & sfx7101_phy_fini, & tenxpress_phy_remove, & tenxpress_phy_reconfigure, & tenxpress_phy_poll, & tenxpress_get_settings, & tenxpress_set_settings, & sfx7101_set_npage_adv, & efx_mdio_test_alive, & sfx7101_test_name, & sfx7101_run_tests, 0, 0}; struct efx_phy_operations *ldv_12_container_struct_efx_phy_operations ; void (*ldv_12_callback_fini)(struct efx_nic * ) = & sfx7101_phy_fini; void (*ldv_12_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) = & tenxpress_get_settings; int (*ldv_12_callback_init)(struct efx_nic * ) = & tenxpress_phy_init; _Bool (*ldv_12_callback_poll)(struct efx_nic * ) = & tenxpress_phy_poll; int (*ldv_12_callback_reconfigure)(struct efx_nic * ) = & tenxpress_phy_reconfigure; int (*ldv_12_callback_run_tests)(struct efx_nic * , int * , unsigned int ) = & sfx7101_run_tests; void (*ldv_12_callback_set_npage_adv)(struct efx_nic * , unsigned int ) = & sfx7101_set_npage_adv; int (*ldv_12_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) = & tenxpress_set_settings; char *(*ldv_12_callback_test_name)(struct efx_nic * , unsigned int ) = (char *(*)(struct efx_nic * , unsigned int ))(& sfx7101_test_name); void ldv_io_instance_callback_12_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { tenxpress_phy_poll(arg1); } return; } } void ldv_io_instance_callback_12_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { tenxpress_phy_reconfigure(arg1); } return; } } void ldv_io_instance_callback_12_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { sfx7101_run_tests(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_12_139(void (*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { sfx7101_set_npage_adv(arg1, arg2); } return; } } void ldv_io_instance_callback_12_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { tenxpress_set_settings(arg1, arg2); } return; } } void ldv_io_instance_callback_12_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { sfx7101_test_name(arg1, arg2); } return; } } void ldv_io_instance_callback_12_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfx7101_phy_fini(arg1); } return; } } void ldv_io_instance_callback_12_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { tenxpress_get_settings(arg1, arg2); } return; } } void ldv_io_instance_callback_12_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { tenxpress_phy_init(arg1); } return; } } int ldv_io_instance_probe_12_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = tenxpress_phy_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_12_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = tenxpress_phy_probe(arg1); } return (tmp); } } void ldv_io_instance_release_12_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { tenxpress_phy_remove(arg1); } return; } } void ldv_io_instance_release_12_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { tenxpress_phy_remove(arg1); } return; } } __inline static void *kzalloc(size_t size , gfp_t flags ) ; void falcon_txc_set_gpio_dir(struct efx_nic *efx , int pin , int dir ) ; void falcon_txc_set_gpio_val(struct efx_nic *efx , int pin , int on ) ; static void txc_reset_logic(struct efx_nic *efx ) ; void falcon_txc_set_gpio_val(struct efx_nic *efx , int pin , int on ) { { { efx_mdio_set_flag(efx, 4, 49990, 1 << pin, on != 0); } return; } } void falcon_txc_set_gpio_dir(struct efx_nic *efx , int pin , int dir ) { { { efx_mdio_set_flag(efx, 4, 49992, 1 << pin, dir != 0); } return; } } static int txc_reset_phy(struct efx_nic *efx ) { int rc ; int tmp ; { { tmp = efx_mdio_reset_mmd(efx, 1, 50, 10); rc = tmp; } if (rc < 0) { goto fail; } else { } { rc = efx_mdio_check_mmds(efx, 26U); } if (rc < 0) { goto fail; } else { } return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "TXC43128: reset timed out!\n"); } } else { } return (rc); } } static int txc_bist_one(struct efx_nic *efx , int mmd , int test ) { int ctrl ; int bctl ; int lane ; int rc ; int count ; int tmp ; { { rc = 0; ctrl = efx_mdio_read(efx, 3, 49999); ctrl = ctrl | 1024; efx_mdio_write(efx, 3, 49999, ctrl); bctl = test << 10; efx_mdio_write(efx, mmd, 49792, bctl); bctl = bctl | 8192; efx_mdio_write(efx, mmd, 49792, bctl); efx_mdio_write(efx, mmd, 49792, bctl | 32768); __const_udelay(214750UL); bctl = bctl | 16384; efx_mdio_write(efx, mmd, 49792, bctl); } goto ldv_46084; ldv_46083: { bctl = efx_mdio_read(efx, mmd, 49792); } ldv_46084: ; if ((bctl & 16384) != 0) { goto ldv_46083; } else { } lane = 0; goto ldv_46088; ldv_46087: { tmp = efx_mdio_read(efx, mmd, lane + 49798); count = tmp; } if (count != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "TXC43128: BIST error. Lane %d had %d errs\n", lane, count); } } else { } rc = -5; } else { } { count = efx_mdio_read(efx, mmd, lane + 49794); } if (count == 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "TXC43128: BIST error. Lane %d got 0 frames\n", lane); } } else { } rc = -5; } else { } lane = lane + 1; ldv_46088: ; if (lane <= 3) { goto ldv_46087; } else { } if (rc == 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "TXC43128: BIST pass\n"); } } else { } } else { } { efx_mdio_write(efx, mmd, 49792, 0); ctrl = ctrl & -1025; efx_mdio_write(efx, 3, 49999, ctrl); } return (rc); } } static int txc_bist(struct efx_nic *efx ) { int tmp ; { { tmp = txc_bist_one(efx, 3, 0); } return (tmp); } } static void txc_apply_defaults(struct efx_nic *efx ) { int mctrl ; struct falcon_board *tmp ; { { efx_mdio_write(efx, 4, 49219, 0); efx_mdio_write(efx, 4, 49220, 0); efx_mdio_write(efx, 4, 49217, 51400); efx_mdio_write(efx, 4, 49218, 51400); efx_mdio_write(efx, 1, 49219, 4112); efx_mdio_write(efx, 1, 49220, 4112); efx_mdio_write(efx, 1, 49217, 24672); efx_mdio_write(efx, 1, 49218, 24672); mctrl = efx_mdio_read(efx, 4, 49984); mctrl = mctrl & -24577; efx_mdio_write(efx, 4, 49984, mctrl); txc_reset_logic(efx); tmp = falcon_board(efx); (*((tmp->type)->init_phy))(efx); } return; } } static int txc43128_phy_probe(struct efx_nic *efx ) { struct txc43128_data *phy_data ; void *tmp ; { { tmp = kzalloc(16UL, 208U); phy_data = (struct txc43128_data *)tmp; } if ((unsigned long )phy_data == (unsigned long )((struct txc43128_data *)0)) { return (-12); } else { } efx->phy_data = (void *)phy_data; phy_data->phy_mode = efx->phy_mode; efx->mdio.mmds = 26U; efx->mdio.mode_support = 6U; efx->loopback_modes = 67305528ULL; return (0); } } static int txc43128_phy_init(struct efx_nic *efx ) { int rc ; { { rc = txc_reset_phy(efx); } if (rc < 0) { return (rc); } else { } { rc = txc_bist(efx); } if (rc < 0) { return (rc); } else { } { txc_apply_defaults(efx); } return (0); } } static void txc_glrgs_lane_power(struct efx_nic *efx , int mmd ) { int pd ; int ctl ; int tmp ; { { pd = 96; tmp = efx_mdio_read(efx, mmd, 49156); ctl = tmp; } if (((unsigned int )efx->phy_mode & 2U) == 0U) { ctl = ctl & ~ pd; } else { ctl = ctl | pd; } { efx_mdio_write(efx, mmd, 49156, ctl); } return; } } static void txc_analog_lane_power(struct efx_nic *efx , int mmd ) { int txpd ; int rxpd ; int txctl ; int tmp ; int rxctl ; int tmp___0 ; { { txpd = 61440; rxpd = 61440; tmp = efx_mdio_read(efx, mmd, 49216); txctl = tmp; tmp___0 = efx_mdio_read(efx, mmd, 49221); rxctl = tmp___0; } if (((unsigned int )efx->phy_mode & 2U) == 0U) { txctl = txctl & ~ txpd; rxctl = rxctl & ~ rxpd; } else { txctl = txctl | txpd; rxctl = rxctl | rxpd; } { efx_mdio_write(efx, mmd, 49216, txctl); efx_mdio_write(efx, mmd, 49221, rxctl); } return; } } static void txc_set_power(struct efx_nic *efx ) { { { efx_mdio_set_mmds_lpower(efx, ((unsigned int )efx->phy_mode & 2U) != 0U, 26U); txc_glrgs_lane_power(efx, 3); txc_glrgs_lane_power(efx, 4); txc_analog_lane_power(efx, 1); txc_analog_lane_power(efx, 4); } return; } } static void txc_reset_logic_mmd(struct efx_nic *efx , int mmd ) { int val ; int tmp ; int tries ; int tmp___0 ; { { tmp = efx_mdio_read(efx, mmd, 49156); val = tmp; tries = 50; val = val | 16384; efx_mdio_write(efx, mmd, 49156, val); } goto ldv_46130; ldv_46129: { val = efx_mdio_read(efx, mmd, 49156); } if ((val & 16384) == 0) { goto ldv_46128; } else { } { __const_udelay(4295UL); } ldv_46130: tmp___0 = tries; tries = tries - 1; if (tmp___0 != 0) { goto ldv_46129; } else { } ldv_46128: ; if (tries == 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "TXC43128 Logic reset timed out!\n"); } } else { } } else { } return; } } static void txc_reset_logic(struct efx_nic *efx ) { { { txc_reset_logic_mmd(efx, 3); } return; } } static bool txc43128_phy_read_link(struct efx_nic *efx ) { bool tmp ; { { tmp = efx_mdio_links_ok(efx, 26U); } return (tmp); } } static int txc43128_phy_reconfigure(struct efx_nic *efx ) { struct txc43128_data *phy_data ; enum efx_phy_mode mode_change ; bool loop_change ; { phy_data = (struct txc43128_data *)efx->phy_data; mode_change = (unsigned int )efx->phy_mode ^ (unsigned int )phy_data->phy_mode; loop_change = (((1 << (int )phy_data->loopback_mode) ^ (1 << (int )efx->loopback_mode)) & 67305472) != 0; if ((int )((unsigned int )efx->phy_mode & (unsigned int )mode_change) & 1) { { txc_reset_phy(efx); txc_apply_defaults(efx); falcon_reset_xaui(efx); mode_change = (enum efx_phy_mode )((unsigned int )mode_change & 4294967294U); } } else { } { efx_mdio_transmit_disable(efx); efx_mdio_phy_reconfigure(efx); } if (((unsigned int )mode_change & 2U) != 0U) { { txc_set_power(efx); } } else { } if ((int )loop_change || (unsigned int )mode_change != 0U) { { txc_reset_logic(efx); } } else { } phy_data->phy_mode = efx->phy_mode; phy_data->loopback_mode = efx->loopback_mode; return (0); } } static void txc43128_phy_fini(struct efx_nic *efx ) { { { efx_mdio_write(efx, 1, 36866, 0); } return; } } static void txc43128_phy_remove(struct efx_nic *efx ) { { { kfree((void const *)efx->phy_data); efx->phy_data = (void *)0; } return; } } static bool txc43128_phy_poll(struct efx_nic *efx ) { struct txc43128_data *data ; bool was_up ; { { data = (struct txc43128_data *)efx->phy_data; was_up = efx->link_state.up; efx->link_state.up = txc43128_phy_read_link(efx); efx->link_state.speed = 10000U; efx->link_state.fd = 1; efx->link_state.fc = efx->wanted_fc; } if ((int )efx->link_state.up || (unsigned int )efx->loopback_mode != 0U) { data->bug10934_timer = jiffies; } else if ((long )(((unsigned long )jiffies - data->bug10934_timer) - 1250UL) >= 0L) { { data->bug10934_timer = jiffies; txc_reset_logic(efx); } } else { } return ((int )efx->link_state.up != (int )was_up); } } static char const * const txc43128_test_names[1U] = { "bist"}; static char const *txc43128_test_name(struct efx_nic *efx , unsigned int index ) { { if (index == 0U) { return ((char const *)txc43128_test_names[index]); } else { } return ((char const *)0); } } static int txc43128_run_tests(struct efx_nic *efx , int *results , unsigned int flags ) { int rc ; { if ((flags & 1U) == 0U) { return (0); } else { } { rc = txc_reset_phy(efx); } if (rc < 0) { return (rc); } else { } { rc = txc_bist(efx); txc_apply_defaults(efx); *results = rc != 0 ? -1 : 1; } return (rc); } } static void txc43128_get_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) { { { mdio45_ethtool_gset((struct mdio_if_info const *)(& efx->mdio), ecmd); } return; } } struct efx_phy_operations const falcon_txc_phy_ops = {& txc43128_phy_probe, & txc43128_phy_init, & txc43128_phy_fini, & txc43128_phy_remove, & txc43128_phy_reconfigure, & txc43128_phy_poll, & txc43128_get_settings, & efx_mdio_set_settings, 0, & efx_mdio_test_alive, & txc43128_test_name, & txc43128_run_tests, 0, 0}; struct efx_phy_operations *ldv_13_container_struct_efx_phy_operations ; int (*ldv_11_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) = & efx_mdio_set_settings; int (*ldv_11_callback_test_alive)(struct efx_nic * ) = & efx_mdio_test_alive; int (*ldv_12_callback_test_alive)(struct efx_nic * ) = & efx_mdio_test_alive; void (*ldv_13_callback_fini)(struct efx_nic * ) = & txc43128_phy_fini; void (*ldv_13_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) = & txc43128_get_settings; int (*ldv_13_callback_init)(struct efx_nic * ) = & txc43128_phy_init; _Bool (*ldv_13_callback_poll)(struct efx_nic * ) = & txc43128_phy_poll; int (*ldv_13_callback_reconfigure)(struct efx_nic * ) = & txc43128_phy_reconfigure; int (*ldv_13_callback_run_tests)(struct efx_nic * , int * , unsigned int ) = & txc43128_run_tests; int (*ldv_13_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) = & efx_mdio_set_settings; int (*ldv_13_callback_test_alive)(struct efx_nic * ) = & efx_mdio_test_alive; char *(*ldv_13_callback_test_name)(struct efx_nic * , unsigned int ) = (char *(*)(struct efx_nic * , unsigned int ))(& txc43128_test_name); void ldv_io_instance_callback_11_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { efx_mdio_set_settings(arg1, arg2); } return; } } void ldv_io_instance_callback_11_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mdio_test_alive(arg1); } return; } } void ldv_io_instance_callback_12_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mdio_test_alive(arg1); } return; } } void ldv_io_instance_callback_13_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { txc43128_phy_poll(arg1); } return; } } void ldv_io_instance_callback_13_123(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { txc43128_phy_reconfigure(arg1); } return; } } void ldv_io_instance_callback_13_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { txc43128_run_tests(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_13_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { efx_mdio_set_settings(arg1, arg2); } return; } } void ldv_io_instance_callback_13_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mdio_test_alive(arg1); } return; } } void ldv_io_instance_callback_13_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { txc43128_test_name(arg1, arg2); } return; } } void ldv_io_instance_callback_13_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { txc43128_phy_fini(arg1); } return; } } void ldv_io_instance_callback_13_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { txc43128_get_settings(arg1, arg2); } return; } } void ldv_io_instance_callback_13_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { txc43128_phy_init(arg1); } return; } } int ldv_io_instance_probe_13_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = txc43128_phy_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_13_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = txc43128_phy_probe(arg1); } return (tmp); } } void ldv_io_instance_release_13_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { txc43128_phy_remove(arg1); } return; } } void ldv_io_instance_release_13_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { txc43128_phy_remove(arg1); } return; } } static void *ldv_dev_get_drvdata_58___0(struct device const *dev ) ; __inline static void *pci_get_drvdata___0(struct pci_dev *pdev ) { void *tmp ; { { tmp = ldv_dev_get_drvdata_58___0((struct device const *)(& pdev->dev)); } return (tmp); } } extern s32 i2c_smbus_read_byte_data(struct i2c_client const * , u8 ) ; extern s32 i2c_smbus_write_byte_data(struct i2c_client const * , u8 , u8 ) ; extern struct i2c_client *i2c_new_device(struct i2c_adapter * , struct i2c_board_info const * ) ; extern struct i2c_client *i2c_new_dummy(struct i2c_adapter * , u16 ) ; extern void i2c_unregister_device(struct i2c_client * ) ; static int efx_poke_lm87(struct i2c_client *client , u8 const *reg_values ) { u8 reg ; u8 const *tmp ; u8 value ; u8 const *tmp___0 ; int rc ; s32 tmp___1 ; { goto ldv_45985; ldv_45984: { tmp = reg_values; reg_values = reg_values + 1; reg = *tmp; tmp___0 = reg_values; reg_values = reg_values + 1; value = *tmp___0; tmp___1 = i2c_smbus_write_byte_data((struct i2c_client const *)client, (int )reg, (int )value); rc = tmp___1; } if (rc != 0) { return (rc); } else { } ldv_45985: ; if ((unsigned int )((unsigned char )*reg_values) != 0U) { goto ldv_45984; } else { } return (0); } } static u8 const falcon_lm87_common_regs[13U] = { 19U, 95U, 23U, 95U, 55U, 90U, 56U, 0U, 20U, 125U, 24U, 125U, 0U}; static int efx_init_lm87(struct efx_nic *efx , struct i2c_board_info const *info , u8 const *reg_values ) { struct falcon_board *board ; struct falcon_board *tmp ; struct i2c_client *client ; struct i2c_client *tmp___0 ; int rc ; { { tmp = falcon_board(efx); board = tmp; tmp___0 = i2c_new_device(& board->i2c_adap, info); client = tmp___0; } if ((unsigned long )client == (unsigned long )((struct i2c_client *)0)) { return (-5); } else { } { i2c_smbus_read_byte_data((struct i2c_client const *)client, 65); i2c_smbus_read_byte_data((struct i2c_client const *)client, 66); rc = efx_poke_lm87(client, reg_values); } if (rc != 0) { goto err; } else { } { rc = efx_poke_lm87(client, (u8 const *)(& falcon_lm87_common_regs)); } if (rc != 0) { goto err; } else { } board->hwmon_client = client; return (0); err: { i2c_unregister_device(client); } return (rc); } } static void efx_fini_lm87(struct efx_nic *efx ) { struct falcon_board *tmp ; { { tmp = falcon_board(efx); i2c_unregister_device(tmp->hwmon_client); } return; } } static int efx_check_lm87(struct efx_nic *efx , unsigned int mask ) { struct i2c_client *client ; struct falcon_board *tmp ; bool temp_crit ; bool elec_fault ; bool is_failure ; u16 alarms ; s32 reg ; { { tmp = falcon_board(efx); client = tmp->hwmon_client; } if ((int )efx->link_state.up) { return (0); } else { } { reg = i2c_smbus_read_byte_data((struct i2c_client const *)client, 65); } if (reg < 0) { return (reg); } else { } { alarms = (u16 )reg; reg = i2c_smbus_read_byte_data((struct i2c_client const *)client, 66); } if (reg < 0) { return (reg); } else { } alarms = (u16 )((int )((short )alarms) | (int )((short )(reg << 8))); alarms = (int )alarms & (int )((u16 )mask); temp_crit = 0; if (((int )alarms & 16) != 0) { { reg = i2c_smbus_read_byte_data((struct i2c_client const *)client, 39); } if (reg < 0) { return (reg); } else { } if (reg > 95) { temp_crit = 1; } else { } } else { } if (((int )alarms & 32) != 0) { { reg = i2c_smbus_read_byte_data((struct i2c_client const *)client, 38); } if (reg < 0) { return (reg); } else { } if (reg > 125) { temp_crit = 1; } else { } } else { } elec_fault = ((int )alarms & -49) != 0; is_failure = (bool )((int )temp_crit || (int )elec_fault); if ((unsigned int )alarms != 0U) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "LM87 detected a hardware %s (status %02x:%02x)%s%s%s%s\n", (int )is_failure ? (char *)"failure" : (char *)"problem", (int )alarms & 255, (int )alarms >> 8, ((int )alarms & 16) != 0 ? (char *)"; board is overheating" : (char *)"", ((int )alarms & 32) != 0 ? (char *)"; controller is overheating" : (char *)"", (int )temp_crit ? (char *)"; reached critical temperature" : (char *)"", (int )elec_fault ? (char *)"; electrical fault" : (char *)""); } } else { } } else { } return ((int )is_failure ? -34 : 0); } } static void sfe4001_poweroff(struct efx_nic *efx ) { struct i2c_client *ioexp_client ; struct falcon_board *tmp ; struct i2c_client *hwmon_client ; struct falcon_board *tmp___0 ; { { tmp = falcon_board(efx); ioexp_client = tmp->ioexp_client; tmp___0 = falcon_board(efx); hwmon_client = tmp___0->hwmon_client; i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 2, 255); i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 7, 255); i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 6, 255); i2c_smbus_read_byte_data((struct i2c_client const *)hwmon_client, 2); } return; } } static int sfe4001_poweron(struct efx_nic *efx ) { struct i2c_client *ioexp_client ; struct falcon_board *tmp ; struct i2c_client *hwmon_client ; struct falcon_board *tmp___0 ; unsigned int i ; unsigned int j ; int rc ; u8 out ; { { tmp = falcon_board(efx); ioexp_client = tmp->ioexp_client; tmp___0 = falcon_board(efx); hwmon_client = tmp___0->hwmon_client; rc = i2c_smbus_read_byte_data((struct i2c_client const *)hwmon_client, 2); } if (rc < 0) { return (rc); } else { } { rc = i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 6, 0); } if (rc != 0) { return (rc); } else { } { rc = i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 7, 239); } if (rc != 0) { goto fail_on; } else { } { rc = i2c_smbus_read_byte_data((struct i2c_client const *)ioexp_client, 2); } if (rc < 0) { goto fail_on; } else { } out = 255U; if (rc != (int )out) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "power-cycling PHY\n"); } } else { } { rc = i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 2, (int )out); } if (rc != 0) { goto fail_on; } else { } { schedule_timeout_uninterruptible(250L); } } else { } i = 0U; goto ldv_46029; ldv_46028: out = 161U; if (((unsigned int )efx->phy_mode & 8U) != 0U) { out = (u8 )((unsigned int )out | 8U); } else { } { rc = i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 2, (int )out); } if (rc != 0) { goto fail_on; } else { } { msleep(10U); out = (unsigned int )out & 254U; rc = i2c_smbus_write_byte_data((struct i2c_client const *)ioexp_client, 2, (int )out); } if (rc != 0) { goto fail_on; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "waiting for DSP boot (attempt %d)...\n", i); } } else { } if (((unsigned int )efx->phy_mode & 8U) != 0U) { { schedule_timeout_uninterruptible(250L); } return (0); } else { } j = 0U; goto ldv_46026; ldv_46025: { msleep(100U); rc = i2c_smbus_read_byte_data((struct i2c_client const *)ioexp_client, 1); } if (rc < 0) { goto fail_on; } else { } if (rc & 1) { return (0); } else { } j = j + 1U; ldv_46026: ; if (j <= 9U) { goto ldv_46025; } else { } i = i + 1U; ldv_46029: ; if (i <= 19U) { goto ldv_46028; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "timed out waiting for DSP boot\n"); } } else { } rc = -110; fail_on: { sfe4001_poweroff(efx); } return (rc); } } static ssize_t show_phy_flash_cfg(struct device *dev , struct device_attribute *attr , char *buf ) { struct efx_nic *efx ; struct device const *__mptr ; void *tmp ; int tmp___0 ; { { __mptr = (struct device const *)dev; tmp = pci_get_drvdata___0((struct pci_dev *)__mptr + 0xffffffffffffff68UL); efx = (struct efx_nic *)tmp; tmp___0 = sprintf(buf, "%d\n", ((unsigned int )efx->phy_mode & 8U) != 0U); } return ((ssize_t )tmp___0); } } static ssize_t set_phy_flash_cfg(struct device *dev , struct device_attribute *attr , char const *buf , size_t count ) { struct efx_nic *efx ; struct device const *__mptr ; void *tmp ; enum efx_phy_mode old_mode ; enum efx_phy_mode new_mode ; int err ; bool tmp___0 ; { { __mptr = (struct device const *)dev; tmp = pci_get_drvdata___0((struct pci_dev *)__mptr + 0xffffffffffffff68UL); efx = (struct efx_nic *)tmp; rtnl_lock(); old_mode = efx->phy_mode; } if (count == 0UL || (int )((signed char )*buf) == 48) { new_mode = (enum efx_phy_mode )((unsigned int )old_mode & 4294967287U); } else { new_mode = 8; } if ((((unsigned int )old_mode ^ (unsigned int )new_mode) & 8U) == 0U) { err = 0; } else if ((unsigned int )efx->state != 1U) { err = -16; } else { { tmp___0 = netif_running((struct net_device const *)efx->net_dev); } if ((int )tmp___0) { err = -16; } else { efx->phy_mode = new_mode; if (((unsigned int )new_mode & 8U) != 0U) { { falcon_stop_nic_stats(efx); } } else { } { err = sfe4001_poweron(efx); } if (err == 0) { { err = efx_reconfigure_port(efx); } } else { } if (((unsigned int )new_mode & 8U) == 0U) { { falcon_start_nic_stats(efx); } } else { } } } { rtnl_unlock(); } return ((ssize_t )(err != 0 ? (size_t )err : count)); } } static struct device_attribute dev_attr_phy_flash_cfg = {{"phy_flash_cfg", 420U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & show_phy_flash_cfg, & set_phy_flash_cfg}; static void sfe4001_fini(struct efx_nic *efx ) { struct falcon_board *board ; struct falcon_board *tmp ; { { tmp = falcon_board(efx); board = tmp; } if ((int )efx->msg_enable & 1) { { netdev_info((struct net_device const *)efx->net_dev, "%s\n", "sfe4001_fini"); } } else { } { device_remove_file(& (efx->pci_dev)->dev, (struct device_attribute const *)(& dev_attr_phy_flash_cfg)); sfe4001_poweroff(efx); i2c_unregister_device(board->ioexp_client); i2c_unregister_device(board->hwmon_client); } return; } } static int sfe4001_check_hw(struct efx_nic *efx ) { struct falcon_nic_data *nic_data ; s32 status ; struct falcon_board *tmp ; { nic_data = (struct falcon_nic_data *)efx->nic_data; if (! nic_data->xmac_poll_required) { return (0); } else { } { tmp = falcon_board(efx); status = i2c_smbus_read_byte_data((struct i2c_client const *)tmp->ioexp_client, 1); } if (status >= 0 && (status & 3) != 0) { return (0); } else { } { sfe4001_poweroff(efx); efx->phy_mode = 4; } return (status < 0 ? -5 : -34); } } static struct i2c_board_info const sfe4001_hwmon_info = {{'m', 'a', 'x', '6', '6', '4', '7', '\000'}, (unsigned short)0, 78U, 0, 0, 0, {0}, 0}; static int sfe4001_init(struct efx_nic *efx ) { struct falcon_board *board ; struct falcon_board *tmp ; int rc ; { { tmp = falcon_board(efx); board = tmp; board->hwmon_client = i2c_new_device(& board->i2c_adap, & sfe4001_hwmon_info); } if ((unsigned long )board->hwmon_client == (unsigned long )((struct i2c_client *)0)) { return (-5); } else { } { rc = i2c_smbus_write_byte_data((struct i2c_client const *)board->hwmon_client, 11, 90); } if (rc != 0) { goto fail_hwmon; } else { } { board->ioexp_client = i2c_new_dummy(& board->i2c_adap, 116); } if ((unsigned long )board->ioexp_client == (unsigned long )((struct i2c_client *)0)) { rc = -5; goto fail_hwmon; } else { } if (((unsigned int )efx->phy_mode & 8U) != 0U) { { falcon_stop_nic_stats(efx); } } else { } { rc = sfe4001_poweron(efx); } if (rc != 0) { goto fail_ioexp; } else { } { rc = device_create_file(& (efx->pci_dev)->dev, (struct device_attribute const *)(& dev_attr_phy_flash_cfg)); } if (rc != 0) { goto fail_on; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "PHY is powered on\n"); } } else { } return (0); fail_on: { sfe4001_poweroff(efx); } fail_ioexp: { i2c_unregister_device(board->ioexp_client); } fail_hwmon: { i2c_unregister_device(board->hwmon_client); } return (rc); } } static u8 sfe4002_lm87_channel = 3U; static u8 const sfe4002_lm87_regs[41U] = { 43U, 153U, 44U, 124U, 45U, 94U, 46U, 76U, 47U, 212U, 48U, 172U, 49U, 212U, 50U, 172U, 51U, 224U, 52U, 172U, 53U, 79U, 54U, 63U, 59U, 187U, 26U, 152U, 60U, 169U, 27U, 138U, 57U, 95U, 58U, 0U, 55U, 90U, 56U, 0U, 0U}; static struct i2c_board_info const sfe4002_hwmon_info = {{'l', 'm', '8', '7', '\000'}, (unsigned short)0, 46U, (void *)(& sfe4002_lm87_channel), 0, 0, {0}, 0}; static void sfe4002_init_phy(struct efx_nic *efx ) { { { falcon_qt202x_set_led(efx, 1, 3); falcon_qt202x_set_led(efx, 0, 11); falcon_qt202x_set_led(efx, 2, 4); } return; } } static void sfe4002_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) { { { falcon_qt202x_set_led(efx, 2, (unsigned int )mode == 1U ? 5 : 4); } return; } } static int sfe4002_check_hw(struct efx_nic *efx ) { struct falcon_board *board ; struct falcon_board *tmp ; unsigned int alarm_mask ; int tmp___0 ; { { tmp = falcon_board(efx); board = tmp; alarm_mask = ((unsigned long )*((long *)board + 1UL) & 0xffffffffffffffffUL) == 0UL ? 4294967263U : 4294967295U; tmp___0 = efx_check_lm87(efx, alarm_mask); } return (tmp___0); } } static int sfe4002_init(struct efx_nic *efx ) { int tmp ; { { tmp = efx_init_lm87(efx, & sfe4002_hwmon_info, (u8 const *)(& sfe4002_lm87_regs)); } return (tmp); } } static u8 sfn4112f_lm87_channel = 3U; static u8 const sfn4112f_lm87_regs[33U] = { 43U, 153U, 44U, 124U, 45U, 94U, 46U, 76U, 47U, 212U, 48U, 172U, 51U, 224U, 52U, 172U, 53U, 79U, 54U, 63U, 60U, 169U, 27U, 138U, 57U, 75U, 58U, 0U, 55U, 90U, 56U, 0U, 0U}; static struct i2c_board_info const sfn4112f_hwmon_info = {{'l', 'm', '8', '7', '\000'}, (unsigned short)0, 46U, (void *)(& sfn4112f_lm87_channel), 0, 0, {0}, 0}; static void sfn4112f_init_phy(struct efx_nic *efx ) { { { falcon_qt202x_set_led(efx, 0, 10); falcon_qt202x_set_led(efx, 1, 9); } return; } } static void sfn4112f_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) { int reg ; { { if ((unsigned int )mode == 0U) { goto case_0; } else { } if ((unsigned int )mode == 1U) { goto case_1; } else { } goto switch_default; case_0: /* CIL Label */ reg = 4; goto ldv_46101; case_1: /* CIL Label */ reg = 5; goto ldv_46101; switch_default: /* CIL Label */ reg = 9; goto ldv_46101; switch_break: /* CIL Label */ ; } ldv_46101: { falcon_qt202x_set_led(efx, 1, reg); } return; } } static int sfn4112f_check_hw(struct efx_nic *efx ) { int tmp ; { { tmp = efx_check_lm87(efx, 4294967223U); } return (tmp); } } static int sfn4112f_init(struct efx_nic *efx ) { int tmp ; { { tmp = efx_init_lm87(efx, & sfn4112f_hwmon_info, (u8 const *)(& sfn4112f_lm87_regs)); } return (tmp); } } static u8 sfe4003_lm87_channel = 3U; static u8 const sfe4003_lm87_regs[25U] = { 43U, 127U, 44U, 103U, 45U, 94U, 46U, 76U, 47U, 212U, 48U, 172U, 51U, 224U, 52U, 172U, 53U, 79U, 54U, 63U, 57U, 85U, 58U, 0U, 0U}; static struct i2c_board_info const sfe4003_hwmon_info = {{'l', 'm', '8', '7', '\000'}, (unsigned short)0, 46U, (void *)(& sfe4003_lm87_channel), 0, 0, {0}, 0}; static void sfe4003_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) { struct falcon_board *board ; struct falcon_board *tmp ; { { tmp = falcon_board(efx); board = tmp; } if (board->minor <= 2 && board->major == 0) { return; } else { } { falcon_txc_set_gpio_val(efx, 11, (unsigned int )mode == 1U); } return; } } static void sfe4003_init_phy(struct efx_nic *efx ) { struct falcon_board *board ; struct falcon_board *tmp ; { { tmp = falcon_board(efx); board = tmp; } if (board->minor <= 2 && board->major == 0) { return; } else { } { falcon_txc_set_gpio_dir(efx, 11, 1); falcon_txc_set_gpio_val(efx, 11, 0); } return; } } static int sfe4003_check_hw(struct efx_nic *efx ) { struct falcon_board *board ; struct falcon_board *tmp ; unsigned int alarm_mask ; int tmp___0 ; { { tmp = falcon_board(efx); board = tmp; alarm_mask = board->major == 0 && board->minor <= 2 ? 4294967263U : 4294967295U; tmp___0 = efx_check_lm87(efx, alarm_mask); } return (tmp___0); } } static int sfe4003_init(struct efx_nic *efx ) { int tmp ; { { tmp = efx_init_lm87(efx, & sfe4003_hwmon_info, (u8 const *)(& sfe4003_lm87_regs)); } return (tmp); } } static struct falcon_board_type const board_types[4U] = { {1U, & sfe4001_init, & efx_port_dummy_op_void, & sfe4001_fini, & tenxpress_set_id_led, & sfe4001_check_hw}, {2U, & sfe4002_init, & sfe4002_init_phy, & efx_fini_lm87, & sfe4002_set_id_led, & sfe4002_check_hw}, {3U, & sfe4003_init, & sfe4003_init_phy, & efx_fini_lm87, & sfe4003_set_id_led, & sfe4003_check_hw}, {82U, & sfn4112f_init, & sfn4112f_init_phy, & efx_fini_lm87, & sfn4112f_set_id_led, & sfn4112f_check_hw}}; int falcon_probe_board(struct efx_nic *efx , u16 revision_info ) { struct falcon_board *board ; struct falcon_board *tmp ; u8 type_id ; int i ; { { tmp = falcon_board(efx); board = tmp; type_id = (u8 )((int )revision_info >> 8); board->major = ((int )revision_info >> 4) & 15; board->minor = (int )revision_info & 15; i = 0; } goto ldv_46141; ldv_46140: ; if ((int )((unsigned char )board_types[i].id) == (int )type_id) { board->type = (struct falcon_board_type const *)(& board_types) + (unsigned long )i; } else { } i = i + 1; ldv_46141: ; if ((unsigned int )i <= 3U) { goto ldv_46140; } else { } if ((unsigned long )board->type != (unsigned long )((struct falcon_board_type const *)0)) { return (0); } else { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "unknown board type %d\n", (int )type_id); } } else { } return (-19); } } } void ldv_dummy_resourceless_instance_callback_5_3(long (*arg0)(struct device * , struct device_attribute * , char * ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 ) ; void ldv_dummy_resourceless_instance_callback_5_9(long (*arg0)(struct device * , struct device_attribute * , char * , unsigned long ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 , unsigned long arg4 ) ; long (*ldv_5_callback_show)(struct device * , struct device_attribute * , char * ) ; long (*ldv_5_callback_store)(struct device * , struct device_attribute * , char * , unsigned long ) ; struct device_attribute *ldv_5_container_struct_device_attribute ; int ldv_statevar_5 ; void (*ldv_10_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_10_callback_monitor)(struct efx_nic * ) = & sfn4112f_check_hw; void (*ldv_10_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & sfn4112f_set_id_led; void (*ldv_11_callback_fini)(struct efx_nic * ) = & sfe4001_fini; int (*ldv_11_callback_init)(struct efx_nic * ) = & sfe4001_init; void (*ldv_11_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_11_callback_monitor)(struct efx_nic * ) = & sfe4001_check_hw; void (*ldv_11_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & tenxpress_set_id_led; void (*ldv_12_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_12_callback_monitor)(struct efx_nic * ) = & sfn4112f_check_hw; void (*ldv_12_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & tenxpress_set_id_led; void (*ldv_13_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_13_callback_monitor)(struct efx_nic * ) = & sfn4112f_check_hw; void (*ldv_13_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & tenxpress_set_id_led; int (*ldv_14_callback_init)(struct efx_nic * ) = & sfn4112f_init; void (*ldv_14_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_14_callback_monitor)(struct efx_nic * ) = & sfn4112f_check_hw; void (*ldv_14_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & tenxpress_set_id_led; void (*ldv_15_callback_fini)(struct efx_nic * ) = & sfe4001_fini; int (*ldv_15_callback_init)(struct efx_nic * ) = & sfn4112f_init; void (*ldv_15_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_15_callback_monitor)(struct efx_nic * ) = & sfn4112f_check_hw; void (*ldv_15_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & tenxpress_set_id_led; void (*ldv_16_callback_fini)(struct efx_nic * ) = & efx_fini_lm87; int (*ldv_16_callback_init)(struct efx_nic * ) = & sfn4112f_init; void (*ldv_16_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_16_callback_monitor)(struct efx_nic * ) = & sfn4112f_check_hw; void (*ldv_16_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & tenxpress_set_id_led; void (*ldv_17_callback_fini)(struct efx_nic * ) = & efx_fini_lm87; int (*ldv_17_callback_init)(struct efx_nic * ) = & sfe4002_init; void (*ldv_17_callback_init_phy)(struct efx_nic * ) = & sfe4002_init_phy; int (*ldv_17_callback_monitor)(struct efx_nic * ) = & sfe4002_check_hw; void (*ldv_17_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & sfe4002_set_id_led; void (*ldv_18_callback_fini)(struct efx_nic * ) = & efx_fini_lm87; int (*ldv_18_callback_init)(struct efx_nic * ) = & sfe4003_init; void (*ldv_18_callback_init_phy)(struct efx_nic * ) = & sfe4003_init_phy; int (*ldv_18_callback_monitor)(struct efx_nic * ) = & sfe4003_check_hw; void (*ldv_18_callback_set_id_led)(struct efx_nic * , enum efx_led_mode ) = & sfe4003_set_id_led; long (*ldv_5_callback_show)(struct device * , struct device_attribute * , char * ) = & show_phy_flash_cfg; long (*ldv_5_callback_store)(struct device * , struct device_attribute * , char * , unsigned long ) = (long (*)(struct device * , struct device_attribute * , char * , unsigned long ))(& set_phy_flash_cfg); void (*ldv_9_callback_fini)(struct efx_nic * ) = & efx_fini_lm87; void (*ldv_9_callback_init_phy)(struct efx_nic * ) = & sfn4112f_init_phy; int (*ldv_9_callback_monitor)(struct efx_nic * ) = & sfn4112f_check_hw; void ldv_dummy_resourceless_instance_callback_5_3(long (*arg0)(struct device * , struct device_attribute * , char * ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 ) { { { show_phy_flash_cfg(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_5_9(long (*arg0)(struct device * , struct device_attribute * , char * , unsigned long ) , struct device *arg1 , struct device_attribute *arg2 , char *arg3 , unsigned long arg4 ) { { { set_phy_flash_cfg(arg1, arg2, (char const *)arg3, arg4); } return; } } void ldv_io_instance_callback_10_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { sfn4112f_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_10_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_10_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_check_hw(arg1); } return; } } void ldv_io_instance_callback_11_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { tenxpress_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_11_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4001_fini(arg1); } return; } } void ldv_io_instance_callback_11_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4001_init(arg1); } return; } } void ldv_io_instance_callback_11_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_11_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4001_check_hw(arg1); } return; } } void ldv_io_instance_callback_12_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { tenxpress_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_12_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_12_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_check_hw(arg1); } return; } } void ldv_io_instance_callback_13_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { tenxpress_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_13_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_13_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_check_hw(arg1); } return; } } void ldv_io_instance_callback_14_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { tenxpress_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_14_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init(arg1); } return; } } void ldv_io_instance_callback_14_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_14_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_check_hw(arg1); } return; } } void ldv_io_instance_callback_15_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { tenxpress_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_15_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4001_fini(arg1); } return; } } void ldv_io_instance_callback_15_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init(arg1); } return; } } void ldv_io_instance_callback_15_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_15_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_check_hw(arg1); } return; } } void ldv_io_instance_callback_16_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { tenxpress_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_16_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_fini_lm87(arg1); } return; } } void ldv_io_instance_callback_16_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init(arg1); } return; } } void ldv_io_instance_callback_16_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_16_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_check_hw(arg1); } return; } } void ldv_io_instance_callback_17_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { sfe4002_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_17_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_fini_lm87(arg1); } return; } } void ldv_io_instance_callback_17_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4002_init(arg1); } return; } } void ldv_io_instance_callback_17_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4002_init_phy(arg1); } return; } } void ldv_io_instance_callback_17_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4002_check_hw(arg1); } return; } } void ldv_io_instance_callback_18_138(void (*arg0)(struct efx_nic * , enum efx_led_mode ) , struct efx_nic *arg1 , enum efx_led_mode arg2 ) { { { sfe4003_set_id_led(arg1, arg2); } return; } } void ldv_io_instance_callback_18_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_fini_lm87(arg1); } return; } } void ldv_io_instance_callback_18_70(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4003_init(arg1); } return; } } void ldv_io_instance_callback_18_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4003_init_phy(arg1); } return; } } void ldv_io_instance_callback_18_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfe4003_check_hw(arg1); } return; } } void ldv_io_instance_callback_9_55(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_fini_lm87(arg1); } return; } } void ldv_io_instance_callback_9_71(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_init_phy(arg1); } return; } } void ldv_io_instance_callback_9_94(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { sfn4112f_check_hw(arg1); } return; } } void ldv_struct_device_attribute_dummy_resourceless_instance_5(void *arg0 ) { int tmp ; int tmp___0 ; void *tmp___1 ; int tmp___2 ; void *tmp___3 ; { { if (ldv_statevar_5 == 1) { goto case_1; } else { } if (ldv_statevar_5 == 2) { goto case_2; } else { } if (ldv_statevar_5 == 3) { goto case_3; } else { } if (ldv_statevar_5 == 4) { goto case_4; } else { } if (ldv_statevar_5 == 5) { goto case_5; } else { } if (ldv_statevar_5 == 7) { goto case_7; } else { } if (ldv_statevar_5 == 10) { goto case_10; } else { } goto switch_default; case_1: /* CIL Label */ ; goto ldv_46825; case_2: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_5 = 1; } else { ldv_statevar_5 = 7; } goto ldv_46825; case_3: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_5_3(ldv_5_callback_show, ldv_5_container_struct_device_ptr, ldv_5_container_struct_device_attribute, ldv_5_ldv_param_3_2_default); ldv_free((void *)ldv_5_ldv_param_3_2_default); ldv_statevar_5 = 2; } goto ldv_46825; case_4: /* CIL Label */ { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_5 = 1; } else { ldv_statevar_5 = 7; } goto ldv_46825; case_5: /* CIL Label */ ; goto ldv_46825; case_7: /* CIL Label */ { tmp___1 = ldv_xmalloc(1UL); ldv_5_ldv_param_3_2_default = (char *)tmp___1; tmp___2 = ldv_undef_int(); } if (tmp___2 != 0) { ldv_statevar_5 = 3; } else { ldv_statevar_5 = 10; } goto ldv_46825; case_10: /* CIL Label */ { tmp___3 = ldv_xmalloc(1UL); ldv_5_ldv_param_9_2_default = (char *)tmp___3; ldv_assume((unsigned int )ldv_statevar_22 - 2U <= 1U); ldv_dummy_resourceless_instance_callback_5_9(ldv_5_callback_store, ldv_5_container_struct_device_ptr, ldv_5_container_struct_device_attribute, ldv_5_ldv_param_9_2_default, ldv_5_ldv_param_9_3_default); ldv_free((void *)ldv_5_ldv_param_9_2_default); ldv_free((void *)ldv_5_ldv_param_3_2_default); ldv_statevar_5 = 2; } goto ldv_46825; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_46825: ; return; } } void ldv_switch_automaton_state_5_1(void) { { ldv_statevar_5 = 5; return; } } void ldv_switch_automaton_state_5_5(void) { { ldv_statevar_5 = 4; return; } } static void *ldv_dev_get_drvdata_58___0(struct device const *dev ) { void *tmp ; { { tmp = ldv_dev_get_drvdata(dev); } return (tmp); } } __inline static int list_empty(struct list_head const *head ) { { return ((unsigned long )((struct list_head const *)head->next) == (unsigned long )head); } } void ldv_spin_lock_async_lock_of_efx_mcdi_iface(void) ; void ldv_spin_unlock_async_lock_of_efx_mcdi_iface(void) ; void ldv_spin_lock_iface_lock_of_efx_mcdi_iface(void) ; void ldv_spin_unlock_iface_lock_of_efx_mcdi_iface(void) ; __inline static void ldv_spin_lock_85(spinlock_t *lock ) ; __inline static void ldv_spin_lock_88(spinlock_t *lock ) ; __inline static void ldv_spin_lock_85(spinlock_t *lock ) ; __inline static void ldv_spin_lock_85(spinlock_t *lock ) ; __inline static void ldv_spin_lock_85(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76___1(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76___1(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76___1(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_82(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76___1(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_76___1(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_82(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_86(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_89(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_86(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_86(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_86(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_77___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_77___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_77___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_84___1(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_77___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_77___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_84___1(spinlock_t *lock ) ; static int ldv_mod_timer_83___0(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; static int ldv_mod_timer_97(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) ; static int ldv_del_timer_sync_87(struct timer_list *ldv_func_arg1 ) ; static int ldv_del_timer_sync_99(struct timer_list *ldv_func_arg1 ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; int efx_mcdi_rpc_start(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen ) ; int efx_mcdi_rpc_finish(struct efx_nic *efx , unsigned int cmd , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) ; int efx_mcdi_rpc_finish_quiet(struct efx_nic *efx , unsigned int cmd , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) ; int efx_mcdi_rpc_async_quiet(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , size_t outlen , efx_mcdi_async_completer *complete___0 , unsigned long cookie ) ; void efx_mcdi_sensor_event(struct efx_nic *efx , efx_qword_t *ev ) ; void efx_mcdi_process_link_change(struct efx_nic *efx , efx_qword_t *ev ) ; void efx_sriov_flr(struct efx_nic *efx , unsigned int vf_i ) ; void efx_ptp_event(struct efx_nic *efx , efx_qword_t *ev ) ; void efx_time_sync_event(struct efx_channel *channel , efx_qword_t *ev ) ; static void efx_mcdi_timeout_async(unsigned long context ) ; static int efx_mcdi_drv_attach(struct efx_nic *efx , bool driver_operating , bool *was_attached ) ; static bool efx_mcdi_poll_once(struct efx_nic *efx ) ; __inline static struct efx_mcdi_iface *efx_mcdi(struct efx_nic *efx ) { { return (& (efx->mcdi)->iface); } } int efx_mcdi_init(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; bool already_attached ; int rc ; void *tmp ; struct lock_class_key __key ; struct lock_class_key __key___0 ; struct lock_class_key __key___1 ; struct lock_class_key __key___2 ; { { tmp = kzalloc(704UL, 208U); efx->mcdi = (struct efx_mcdi_data *)tmp; } if ((unsigned long )efx->mcdi == (unsigned long )((struct efx_mcdi_data *)0)) { return (-12); } else { } { mcdi = efx_mcdi(efx); mcdi->efx = efx; __init_waitqueue_head(& mcdi->wq, "&mcdi->wq", & __key); spinlock_check(& mcdi->iface_lock); __raw_spin_lock_init(& mcdi->iface_lock.__annonCompField19.rlock, "&(&mcdi->iface_lock)->rlock", & __key___0); mcdi->state = 0; mcdi->mode = 0; spinlock_check(& mcdi->async_lock); __raw_spin_lock_init(& mcdi->async_lock.__annonCompField19.rlock, "&(&mcdi->async_lock)->rlock", & __key___1); INIT_LIST_HEAD(& mcdi->async_list); init_timer_key(& mcdi->async_timer, 0U, "((&mcdi->async_timer))", & __key___2); mcdi->async_timer.function = & efx_mcdi_timeout_async; mcdi->async_timer.data = (unsigned long )mcdi; efx_mcdi_poll_reboot(efx); mcdi->new_epoch = 1; rc = efx_mcdi_handle_assertion(efx); } if (rc != 0) { return (rc); } else { } { rc = efx_mcdi_drv_attach(efx, 1, & already_attached); } if (rc != 0) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Unable to register driver with MCPU\n"); } } else { } return (rc); } else { } if ((int )already_attached) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Host already registered with MCPU\n"); } } else { } } else { } if ((int )(efx->mcdi)->fn_flags & 1) { efx->primary = efx; } else { } return (0); } } void efx_mcdi_fini(struct efx_nic *efx ) { long tmp ; { if ((unsigned long )efx->mcdi == (unsigned long )((struct efx_mcdi_data *)0)) { return; } else { } { tmp = ldv__builtin_expect((unsigned int )(efx->mcdi)->iface.state != 0U, 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 *)"drivers/net/ethernet/sfc/mcdi.c"), "i" (117), "i" (12UL)); __builtin_unreachable(); } } else { } { efx_mcdi_drv_attach(efx, 0, (bool *)0); kfree((void const *)efx->mcdi); } return; } } static void efx_mcdi_send_request(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; efx_dword_t hdr[2U] ; size_t hdr_len ; u32 xflags ; u32 seqno ; long tmp___0 ; long tmp___1 ; { { tmp = efx_mcdi(efx); mcdi = tmp; tmp___0 = ldv__builtin_expect((unsigned int )mcdi->state == 0U, 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 *)"drivers/net/ethernet/sfc/mcdi.c"), "i" (133), "i" (12UL)); __builtin_unreachable(); } } else { } { ldv_spin_lock_bh_76___1(& mcdi->iface_lock); mcdi->seqno = mcdi->seqno + 1U; ldv_spin_unlock_bh_77___0(& mcdi->iface_lock); seqno = mcdi->seqno & 15U; xflags = 0U; } if ((unsigned int )mcdi->mode == 1U) { xflags = xflags | 1U; } else { } if ((int )(efx->type)->mcdi_max_ver == 1) { hdr[0].u32[0] = ((((cmd | ((unsigned int )inlen << 8)) | (seqno << 16)) | (xflags << 24)) | ((unsigned int )(! mcdi->new_epoch) << 21)) | 128U; hdr_len = 4UL; } else { { tmp___1 = ldv__builtin_expect(inlen > 1024UL, 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 *)"drivers/net/ethernet/sfc/mcdi.c"), "i" (158), "i" (12UL)); __builtin_unreachable(); } } else { } hdr[0].u32[0] = (((seqno << 16) | (xflags << 24)) | ((unsigned int )(! mcdi->new_epoch) << 21)) | 255U; hdr[1].u32[0] = cmd | ((unsigned int )inlen << 16); hdr_len = 8UL; } { (*((efx->type)->mcdi_request))(efx, (efx_dword_t const *)(& hdr), hdr_len, inbuf, inlen); mcdi->new_epoch = 0; } return; } } static int efx_mcdi_errno(unsigned int mcdi_err ) { { { if (mcdi_err == 0U) { goto case_0; } else { } if (mcdi_err == 1U) { goto case_1; } else { } if (mcdi_err == 2U) { goto case_2; } else { } if (mcdi_err == 4U) { goto case_4; } else { } if (mcdi_err == 11U) { goto case_11; } else { } if (mcdi_err == 13U) { goto case_13; } else { } if (mcdi_err == 16U) { goto case_16; } else { } if (mcdi_err == 22U) { goto case_22; } else { } if (mcdi_err == 35U) { goto case_35; } else { } if (mcdi_err == 38U) { goto case_38; } else { } if (mcdi_err == 62U) { goto case_62; } else { } if (mcdi_err == 114U) { goto case_114; } else { } if (mcdi_err == 28U) { goto case_28; } else { } if (mcdi_err == 95U) { goto case_95; } else { } if (mcdi_err == 4096U) { goto case_4096; } else { } if (mcdi_err == 4105U) { goto case_4105; } else { } goto switch_default; case_0: /* CIL Label */ ; return (0); case_1: /* CIL Label */ ; return (-1); case_2: /* CIL Label */ ; return (-2); case_4: /* CIL Label */ ; return (-4); case_11: /* CIL Label */ ; return (-11); case_13: /* CIL Label */ ; return (-13); case_16: /* CIL Label */ ; return (-16); case_22: /* CIL Label */ ; return (-22); case_35: /* CIL Label */ ; return (-35); case_38: /* CIL Label */ ; return (-38); case_62: /* CIL Label */ ; return (-62); case_114: /* CIL Label */ ; return (-114); case_28: /* CIL Label */ ; return (-28); case_95: /* CIL Label */ ; return (-95); case_4096: /* CIL Label */ ; return (-105); case_4105: /* CIL Label */ ; return (-98); switch_default: /* CIL Label */ ; return (-71); switch_break: /* CIL Label */ ; } } } static void efx_mcdi_read_response_header(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; unsigned int respseq ; unsigned int respcmd ; unsigned int error ; efx_dword_t hdr ; { { tmp = efx_mcdi(efx); mcdi = tmp; (*((efx->type)->mcdi_read_response))(efx, & hdr, 0UL, 4UL); respseq = (hdr.u32[0] >> 16) & 15U; respcmd = hdr.u32[0] & 127U; error = (hdr.u32[0] >> 22) & 1U; } if (respcmd != 127U) { mcdi->resp_hdr_len = 4UL; mcdi->resp_data_len = (size_t )(hdr.u32[0] >> 8) & 255UL; } else { { (*((efx->type)->mcdi_read_response))(efx, & hdr, 4UL, 4UL); mcdi->resp_hdr_len = 8UL; mcdi->resp_data_len = (size_t )(hdr.u32[0] >> 16) & 1023UL; } } if (error != 0U && mcdi->resp_data_len == 0UL) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC rebooted\n"); } } else { } mcdi->resprc = -5; } else if (((respseq ^ mcdi->seqno) & 15U) != 0U) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC response mismatch tx seq 0x%x rx seq 0x%x\n", respseq, mcdi->seqno); } } else { } mcdi->resprc = -5; } else if (error != 0U) { { (*((efx->type)->mcdi_read_response))(efx, & hdr, mcdi->resp_hdr_len, 4UL); mcdi->resprc = efx_mcdi_errno(hdr.u32[0]); } } else { mcdi->resprc = 0; } return; } } static bool efx_mcdi_poll_once(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; bool tmp___0 ; int tmp___1 ; { { tmp = efx_mcdi(efx); mcdi = tmp; __asm__ volatile ("lfence": : : "memory"); tmp___0 = (*((efx->type)->mcdi_poll_response))(efx); } if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { return (0); } else { } { ldv_spin_lock_bh_76___1(& mcdi->iface_lock); efx_mcdi_read_response_header(efx); ldv_spin_unlock_bh_77___0(& mcdi->iface_lock); } return (1); } } static int efx_mcdi_poll(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; unsigned long time ; unsigned long finish ; unsigned int spins ; int rc ; bool tmp___0 ; { { tmp = efx_mcdi(efx); mcdi = tmp; rc = efx_mcdi_poll_reboot(efx); } if (rc != 0) { { ldv_spin_lock_bh_76___1(& mcdi->iface_lock); mcdi->resprc = rc; mcdi->resp_hdr_len = 0UL; mcdi->resp_data_len = 0UL; ldv_spin_unlock_bh_77___0(& mcdi->iface_lock); } return (0); } else { } spins = 10000U; finish = (unsigned long )jiffies + 2500UL; ldv_46361: ; if (spins != 0U) { { spins = spins - 1U; __const_udelay(4295UL); } } else { { schedule_timeout_uninterruptible(1L); } } { time = jiffies; tmp___0 = efx_mcdi_poll_once(efx); } if ((int )tmp___0) { goto ldv_46354; } else { } if ((long )(finish - time) < 0L) { return (-110); } else { } goto ldv_46361; ldv_46354: ; return (0); } } int efx_mcdi_poll_reboot(struct efx_nic *efx ) { int tmp ; { if ((unsigned long )efx->mcdi == (unsigned long )((struct efx_mcdi_data *)0)) { return (0); } else { } { tmp = (*((efx->type)->mcdi_poll_reboot))(efx); } return (tmp); } } static bool efx_mcdi_acquire_async(struct efx_mcdi_iface *mcdi ) { enum efx_mcdi_state __ret ; enum efx_mcdi_state __old ; enum efx_mcdi_state __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; { __old = 0; __new = 2; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ __ptr = (u8 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_46373; case_2: /* CIL Label */ __ptr___0 = (u16 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_46373; case_4: /* CIL Label */ __ptr___1 = (u32 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_46373; case_8: /* CIL Label */ __ptr___2 = (u64 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_46373; switch_default: /* CIL Label */ { __cmpxchg_wrong_size(); } switch_break: /* CIL Label */ ; } ldv_46373: ; return ((unsigned int )__ret == 0U); } } static void efx_mcdi_acquire_sync(struct efx_mcdi_iface *mcdi ) { enum efx_mcdi_state __ret ; enum efx_mcdi_state __old ; enum efx_mcdi_state __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; wait_queue_t __wait ; long __ret___0 ; long __int ; long tmp ; enum efx_mcdi_state __ret___1 ; enum efx_mcdi_state __old___0 ; enum efx_mcdi_state __new___0 ; u8 volatile *__ptr___3 ; u16 volatile *__ptr___4 ; u32 volatile *__ptr___5 ; u64 volatile *__ptr___6 ; { __old = 0; __new = 1; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ __ptr = (u8 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_46390; case_2: /* CIL Label */ __ptr___0 = (u16 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_46390; case_4: /* CIL Label */ __ptr___1 = (u32 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_46390; case_8: /* CIL Label */ __ptr___2 = (u64 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_46390; switch_default: /* CIL Label */ { __cmpxchg_wrong_size(); } switch_break: /* CIL Label */ ; } ldv_46390: ; if ((unsigned int )__ret == 0U) { goto ldv_46399; } else { } { __ret___0 = 0L; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; } ldv_46419: { tmp = prepare_to_wait_event(& mcdi->wq, & __wait, 2); __int = tmp; __old___0 = 0; __new___0 = 1; } { if (4UL == 1UL) { goto case_1___0; } else { } if (4UL == 2UL) { goto case_2___0; } else { } if (4UL == 4UL) { goto case_4___0; } else { } if (4UL == 8UL) { goto case_8___0; } else { } goto switch_default___0; case_1___0: /* CIL Label */ __ptr___3 = (u8 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret___1), "+m" (*__ptr___3): "q" (__new___0), "0" (__old___0): "memory"); goto ldv_46409; case_2___0: /* CIL Label */ __ptr___4 = (u16 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret___1), "+m" (*__ptr___4): "r" (__new___0), "0" (__old___0): "memory"); goto ldv_46409; case_4___0: /* CIL Label */ __ptr___5 = (u32 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret___1), "+m" (*__ptr___5): "r" (__new___0), "0" (__old___0): "memory"); goto ldv_46409; case_8___0: /* CIL Label */ __ptr___6 = (u64 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret___1), "+m" (*__ptr___6): "r" (__new___0), "0" (__old___0): "memory"); goto ldv_46409; switch_default___0: /* CIL Label */ { __cmpxchg_wrong_size(); } switch_break___0: /* CIL Label */ ; } ldv_46409: ; if ((unsigned int )__ret___1 == 0U) { goto ldv_46418; } else { } { schedule(); } goto ldv_46419; ldv_46418: { finish_wait(& mcdi->wq, & __wait); } ldv_46399: ; return; } } static int efx_mcdi_await_completion(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; long __ret ; wait_queue_t __wait ; long __ret___0 ; long __int ; long tmp___0 ; bool __cond ; bool __cond___0 ; int tmp___1 ; { { tmp = efx_mcdi(efx); mcdi = tmp; __ret = 2500L; __cond___0 = (unsigned int )mcdi->state == 3U; } if ((int )__cond___0 && __ret == 0L) { __ret = 1L; } else { } if (((int )__cond___0 || __ret == 0L) == 0) { { __ret___0 = 2500L; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; } ldv_46435: { tmp___0 = prepare_to_wait_event(& mcdi->wq, & __wait, 2); __int = tmp___0; __cond = (unsigned int )mcdi->state == 3U; } if ((int )__cond && __ret___0 == 0L) { __ret___0 = 1L; } else { } if (((int )__cond || __ret___0 == 0L) != 0) { goto ldv_46434; } else { } { __ret___0 = schedule_timeout(__ret___0); } goto ldv_46435; ldv_46434: { finish_wait(& mcdi->wq, & __wait); } __ret = __ret___0; } else { } if (__ret == 0L) { return (-110); } else { } if ((unsigned int )mcdi->mode == 0U) { { tmp___1 = efx_mcdi_poll(efx); } return (tmp___1); } else { } return (0); } } static bool efx_mcdi_complete_sync(struct efx_mcdi_iface *mcdi ) { enum efx_mcdi_state __ret ; enum efx_mcdi_state __old ; enum efx_mcdi_state __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; { __old = 1; __new = 3; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ __ptr = (u8 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_46446; case_2: /* CIL Label */ __ptr___0 = (u16 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_46446; case_4: /* CIL Label */ __ptr___1 = (u32 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_46446; case_8: /* CIL Label */ __ptr___2 = (u64 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_46446; switch_default: /* CIL Label */ { __cmpxchg_wrong_size(); } switch_break: /* CIL Label */ ; } ldv_46446: ; if ((unsigned int )__ret == 1U) { { __wake_up(& mcdi->wq, 3U, 1, (void *)0); } return (1); } else { } return (0); } } static void efx_mcdi_release(struct efx_mcdi_iface *mcdi ) { struct efx_mcdi_async_param *async ; struct efx_nic *efx ; struct list_head const *__mptr ; int tmp___0 ; { if ((unsigned int )mcdi->mode == 1U) { { efx = mcdi->efx; ldv_spin_lock_bh_82(& mcdi->async_lock); tmp___0 = list_empty((struct list_head const *)(& mcdi->async_list)); } if (tmp___0 == 0) { __mptr = (struct list_head const *)mcdi->async_list.next; async = (struct efx_mcdi_async_param *)__mptr; } else { async = (struct efx_mcdi_async_param *)0; } if ((unsigned long )async != (unsigned long )((struct efx_mcdi_async_param *)0)) { { mcdi->state = 2; efx_mcdi_send_request(efx, async->cmd, (efx_dword_t const *)async + 1U, async->inlen); ldv_mod_timer_83___0(& mcdi->async_timer, (unsigned long )jiffies + 2500UL); } } else { } { ldv_spin_unlock_bh_84___1(& mcdi->async_lock); } if ((unsigned long )async != (unsigned long )((struct efx_mcdi_async_param *)0)) { return; } else { } } else { } { mcdi->state = 0; __wake_up(& mcdi->wq, 3U, 1, (void *)0); } return; } } static bool efx_mcdi_complete_async(struct efx_mcdi_iface *mcdi , bool timeout ) { struct efx_nic *efx ; struct efx_mcdi_async_param *async ; size_t hdr_len ; size_t data_len ; size_t err_len ; efx_dword_t *outbuf ; size_t __max1 ; size_t __max2 ; efx_dword_t *errbuf ; unsigned long __lengthoferrbuf ; void *tmp ; int rc ; enum efx_mcdi_state __ret ; enum efx_mcdi_state __old ; enum efx_mcdi_state __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; struct list_head const *__mptr ; size_t _min1 ; size_t _min2 ; unsigned long _min1___0 ; size_t __max1___0 ; size_t __max2___0 ; size_t _min2___0 ; size_t __max1___1 ; size_t __max2___1 ; { { efx = mcdi->efx; __max1 = 0UL; __max2 = 8UL; __lengthoferrbuf = (unsigned long )((long )(((__max1 > __max2 ? __max1 : __max2) + 3UL) / 4UL)); tmp = __builtin_alloca(sizeof(*errbuf) * __lengthoferrbuf); errbuf = (efx_dword_t *)tmp; __old = 2; __new = 3; } { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ __ptr = (u8 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_46482; case_2: /* CIL Label */ __ptr___0 = (u16 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_46482; case_4: /* CIL Label */ __ptr___1 = (u32 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_46482; case_8: /* CIL Label */ __ptr___2 = (u64 volatile *)(& mcdi->state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_46482; switch_default: /* CIL Label */ { __cmpxchg_wrong_size(); } switch_break: /* CIL Label */ ; } ldv_46482: ; if ((unsigned int )__ret != 2U) { return (0); } else { } { ldv_spin_lock_85(& mcdi->iface_lock); } if ((int )timeout) { mcdi->seqno = mcdi->seqno + 1U; mcdi->credits = mcdi->credits + 1U; rc = -110; hdr_len = 0UL; data_len = 0UL; } else { rc = mcdi->resprc; hdr_len = mcdi->resp_hdr_len; data_len = mcdi->resp_data_len; } { ldv_spin_unlock_86(& mcdi->iface_lock); } if (! timeout) { { ldv_del_timer_sync_87(& mcdi->async_timer); } } else { } { ldv_spin_lock_88(& mcdi->async_lock); __mptr = (struct list_head const *)mcdi->async_list.next; async = (struct efx_mcdi_async_param *)__mptr; list_del(& async->list); ldv_spin_unlock_89(& mcdi->async_lock); outbuf = (efx_dword_t *)async + 1U; _min1 = async->outlen; _min2 = data_len; (*((efx->type)->mcdi_read_response))(efx, outbuf, hdr_len, _min1 < _min2 ? _min1 : _min2); } if ((! timeout && rc != 0) && ! async->quiet) { { __max1___0 = 0UL; __max2___0 = 8UL; _min1___0 = (((__max1___0 > __max2___0 ? __max1___0 : __max2___0) + 3UL) / 4UL) * 4UL; _min2___0 = data_len; err_len = _min1___0 < _min2___0 ? _min1___0 : _min2___0; __max1___1 = 0UL; __max2___1 = 8UL; (*((efx->type)->mcdi_read_response))(efx, (efx_dword_t *)(& errbuf), hdr_len, (((__max1___1 > __max2___1 ? __max1___1 : __max2___1) + 3UL) / 4UL) * 4UL); efx_mcdi_display_error(efx, async->cmd, async->inlen, (efx_dword_t *)(& errbuf), err_len, rc); } } else { } { (*(async->complete))(efx, async->cookie, rc, outbuf, data_len); kfree((void const *)async); efx_mcdi_release(mcdi); } return (1); } } static void efx_mcdi_ev_cpl(struct efx_nic *efx , unsigned int seqno , unsigned int datalen , unsigned int mcdi_err ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; bool wake ; bool tmp___0 ; int tmp___1 ; { { tmp = efx_mcdi(efx); mcdi = tmp; wake = 0; ldv_spin_lock_85(& mcdi->iface_lock); } if (((seqno ^ mcdi->seqno) & 15U) != 0U) { if (mcdi->credits != 0U) { mcdi->credits = mcdi->credits - 1U; } else if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC response mismatch tx seq 0x%x rx seq 0x%x\n", seqno, mcdi->seqno); } } else { } } else { if ((int )(efx->type)->mcdi_max_ver > 1) { { efx_mcdi_read_response_header(efx); } } else { { mcdi->resprc = efx_mcdi_errno(mcdi_err); mcdi->resp_hdr_len = 4UL; mcdi->resp_data_len = (size_t )datalen; } } wake = 1; } { ldv_spin_unlock_86(& mcdi->iface_lock); } if ((int )wake) { { tmp___0 = efx_mcdi_complete_async(mcdi, 0); } if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { { efx_mcdi_complete_sync(mcdi); } } else { } } else { } return; } } static void efx_mcdi_timeout_async(unsigned long context ) { struct efx_mcdi_iface *mcdi ; { { mcdi = (struct efx_mcdi_iface *)context; efx_mcdi_complete_async(mcdi, 1); } return; } } static int efx_mcdi_check_supported(struct efx_nic *efx , unsigned int cmd , size_t inlen ) { { if ((int )(efx->type)->mcdi_max_ver < 0 || ((int )(efx->type)->mcdi_max_ver <= 1 && cmd > 127U)) { return (-22); } else { } if (inlen > 1024UL || ((int )(efx->type)->mcdi_max_ver <= 1 && inlen > 252UL)) { return (-90); } else { } return (0); } } static int _efx_mcdi_rpc_finish(struct efx_nic *efx , unsigned int cmd , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual , bool quiet ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; size_t __max1 ; size_t __max2 ; efx_dword_t *errbuf ; unsigned long __lengthoferrbuf ; void *tmp___0 ; int rc ; bool tmp___1 ; size_t hdr_len ; size_t data_len ; size_t err_len ; unsigned long _min1 ; size_t __max1___0 ; size_t __max2___0 ; size_t _min2 ; long tmp___2 ; size_t _min1___0 ; size_t _min2___0 ; { { tmp = efx_mcdi(efx); mcdi = tmp; __max1 = 0UL; __max2 = 8UL; __lengthoferrbuf = (unsigned long )((long )(((__max1 > __max2 ? __max1 : __max2) + 3UL) / 4UL)); tmp___0 = __builtin_alloca(sizeof(*errbuf) * __lengthoferrbuf); errbuf = (efx_dword_t *)tmp___0; } if ((unsigned int )mcdi->mode == 0U) { { rc = efx_mcdi_poll(efx); } } else { { rc = efx_mcdi_await_completion(efx); } } if (rc != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC command 0x%x inlen %d mode %d timed out\n", cmd, (int )inlen, (unsigned int )mcdi->mode); } } else { } if ((unsigned int )mcdi->mode == 1U) { { tmp___1 = efx_mcdi_poll_once(efx); } if ((int )tmp___1) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MCDI request was completed without an event\n"); } } else { } rc = 0; } else { } } else { } { ldv_spin_lock_bh_76___1(& mcdi->iface_lock); mcdi->seqno = mcdi->seqno + 1U; mcdi->credits = mcdi->credits + 1U; ldv_spin_unlock_bh_77___0(& mcdi->iface_lock); } } else { } if (rc != 0) { if ((unsigned long )outlen_actual != (unsigned long )((size_t *)0UL)) { *outlen_actual = 0UL; } else { } } else { { ldv_spin_lock_bh_76___1(& mcdi->iface_lock); rc = mcdi->resprc; hdr_len = mcdi->resp_hdr_len; data_len = mcdi->resp_data_len; __max1___0 = 0UL; __max2___0 = 8UL; _min1 = (((__max1___0 > __max2___0 ? __max1___0 : __max2___0) + 3UL) / 4UL) * 4UL; _min2 = data_len; err_len = _min1 < _min2 ? _min1 : _min2; ldv_spin_unlock_bh_77___0(& mcdi->iface_lock); tmp___2 = ldv__builtin_expect(rc > 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 *)"drivers/net/ethernet/sfc/mcdi.c"), "i" (588), "i" (12UL)); __builtin_unreachable(); } } else { } { _min1___0 = outlen; _min2___0 = data_len; (*((efx->type)->mcdi_read_response))(efx, outbuf, hdr_len, _min1___0 < _min2___0 ? _min1___0 : _min2___0); } if ((unsigned long )outlen_actual != (unsigned long )((size_t *)0UL)) { *outlen_actual = data_len; } else { } { (*((efx->type)->mcdi_read_response))(efx, (efx_dword_t *)(& errbuf), hdr_len, err_len); } if (cmd == 61U && rc == -5) { } else if ((unsigned int )rc - 4294967291U <= 1U) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC fatal error %d\n", - rc); } } else { } { efx_schedule_reset(efx, 12); } } else if (rc != 0 && ! quiet) { { efx_mcdi_display_error(efx, cmd, inlen, (efx_dword_t *)(& errbuf), err_len, rc); } } else { } if ((unsigned int )rc - 4294967291U <= 1U) { { msleep(250U); efx_mcdi_poll_reboot(efx); mcdi->new_epoch = 1; } } else { } } { efx_mcdi_release(mcdi); } return (rc); } } static int _efx_mcdi_rpc(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual , bool quiet ) { int rc ; int tmp ; { { rc = efx_mcdi_rpc_start(efx, cmd, inbuf, inlen); } if (rc != 0) { if ((unsigned long )outlen_actual != (unsigned long )((size_t *)0UL)) { *outlen_actual = 0UL; } else { } return (rc); } else { } { tmp = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, outlen_actual, (int )quiet); } return (tmp); } } int efx_mcdi_rpc(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) { int tmp ; { { tmp = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, outbuf, outlen, outlen_actual, 0); } return (tmp); } } int efx_mcdi_rpc_quiet(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) { int tmp ; { { tmp = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, outbuf, outlen, outlen_actual, 1); } return (tmp); } } int efx_mcdi_rpc_start(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; int rc ; { { tmp = efx_mcdi(efx); mcdi = tmp; rc = efx_mcdi_check_supported(efx, cmd, inlen); } if (rc != 0) { return (rc); } else { } if ((int )efx->mc_bist_for_other_fn) { return (-100); } else { } { efx_mcdi_acquire_sync(mcdi); efx_mcdi_send_request(efx, cmd, inbuf, inlen); } return (0); } } static int _efx_mcdi_rpc_async(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , size_t outlen , efx_mcdi_async_completer *complete___0 , unsigned long cookie , bool quiet ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; struct efx_mcdi_async_param *async ; int rc ; size_t _max1 ; size_t _max2 ; void *tmp___0 ; bool tmp___1 ; { { tmp = efx_mcdi(efx); mcdi = tmp; rc = efx_mcdi_check_supported(efx, cmd, inlen); } if (rc != 0) { return (rc); } else { } if ((int )efx->mc_bist_for_other_fn) { return (-100); } else { } { _max1 = inlen; _max2 = outlen; tmp___0 = kmalloc((((_max1 > _max2 ? _max1 : _max2) + 3UL) & 0xfffffffffffffffcUL) + 64UL, 32U); async = (struct efx_mcdi_async_param *)tmp___0; } if ((unsigned long )async == (unsigned long )((struct efx_mcdi_async_param *)0)) { return (-12); } else { } { async->cmd = cmd; async->inlen = inlen; async->outlen = outlen; async->quiet = quiet; async->complete = complete___0; async->cookie = cookie; memcpy((void *)async + 1U, (void const *)inbuf, inlen); ldv_spin_lock_bh_82(& mcdi->async_lock); } if ((unsigned int )mcdi->mode == 1U) { { list_add_tail(& async->list, & mcdi->async_list); } if ((unsigned long )mcdi->async_list.next == (unsigned long )(& async->list)) { { tmp___1 = efx_mcdi_acquire_async(mcdi); } if ((int )tmp___1) { { efx_mcdi_send_request(efx, cmd, inbuf, inlen); ldv_mod_timer_97(& mcdi->async_timer, (unsigned long )jiffies + 2500UL); } } else { } } else { } } else { { kfree((void const *)async); rc = -100; } } { ldv_spin_unlock_bh_84___1(& mcdi->async_lock); } return (rc); } } int efx_mcdi_rpc_async(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , size_t outlen , efx_mcdi_async_completer *complete___0 , unsigned long cookie ) { int tmp ; { { tmp = _efx_mcdi_rpc_async(efx, cmd, inbuf, inlen, outlen, complete___0, cookie, 0); } return (tmp); } } int efx_mcdi_rpc_async_quiet(struct efx_nic *efx , unsigned int cmd , efx_dword_t const *inbuf , size_t inlen , size_t outlen , efx_mcdi_async_completer *complete___0 , unsigned long cookie ) { int tmp ; { { tmp = _efx_mcdi_rpc_async(efx, cmd, inbuf, inlen, outlen, complete___0, cookie, 1); } return (tmp); } } int efx_mcdi_rpc_finish(struct efx_nic *efx , unsigned int cmd , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) { int tmp ; { { tmp = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, outlen_actual, 0); } return (tmp); } } int efx_mcdi_rpc_finish_quiet(struct efx_nic *efx , unsigned int cmd , size_t inlen , efx_dword_t *outbuf , size_t outlen , size_t *outlen_actual ) { int tmp ; { { tmp = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, outlen_actual, 1); } return (tmp); } } void efx_mcdi_display_error(struct efx_nic *efx , unsigned int cmd , size_t inlen , efx_dword_t *outbuf , size_t outlen , int rc ) { int code ; int err_arg ; { code = 0; err_arg = 0; if (outlen > 3UL) { code = (int )outbuf->u32[0]; } else { } if (outlen > 7UL) { err_arg = (int )(outbuf + 1UL)->u32[0]; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC command 0x%x inlen %d failed rc=%d (raw=%d) arg=%d\n", cmd, (int )inlen, rc, code, err_arg); } } else { } return; } } void efx_mcdi_mode_poll(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; { if ((unsigned long )efx->mcdi == (unsigned long )((struct efx_mcdi_data *)0)) { return; } else { } { mcdi = efx_mcdi(efx); } if ((unsigned int )mcdi->mode == 0U) { return; } else { } { mcdi->mode = 0; efx_mcdi_complete_sync(mcdi); } return; } } void efx_mcdi_flush_async(struct efx_nic *efx ) { struct efx_mcdi_async_param *async ; struct efx_mcdi_async_param *next ; struct efx_mcdi_iface *mcdi ; long tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { if ((unsigned long )efx->mcdi == (unsigned long )((struct efx_mcdi_data *)0)) { return; } else { } { mcdi = efx_mcdi(efx); tmp = ldv__builtin_expect((unsigned int )mcdi->mode != 0U, 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 *)"drivers/net/ethernet/sfc/mcdi.c"), "i" (845), "i" (12UL)); __builtin_unreachable(); } } else { } { ldv_del_timer_sync_99(& mcdi->async_timer); } if ((unsigned int )mcdi->state == 2U) { { efx_mcdi_poll(efx); mcdi->state = 0; } } else { } __mptr = (struct list_head const *)mcdi->async_list.next; async = (struct efx_mcdi_async_param *)__mptr; __mptr___0 = (struct list_head const *)async->list.next; next = (struct efx_mcdi_async_param *)__mptr___0; goto ldv_46668; ldv_46667: { (*(async->complete))(efx, async->cookie, -100, (efx_dword_t *)0, 0UL); list_del(& async->list); kfree((void const *)async); async = next; __mptr___1 = (struct list_head const *)next->list.next; next = (struct efx_mcdi_async_param *)__mptr___1; } ldv_46668: ; if ((unsigned long )(& async->list) != (unsigned long )(& mcdi->async_list)) { goto ldv_46667; } else { } return; } } void efx_mcdi_mode_event(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; { if ((unsigned long )efx->mcdi == (unsigned long )((struct efx_mcdi_data *)0)) { return; } else { } { mcdi = efx_mcdi(efx); } if ((unsigned int )mcdi->mode == 1U) { return; } else { } { efx_mcdi_acquire_sync(mcdi); mcdi->mode = 1; efx_mcdi_release(mcdi); } return; } } static void efx_mcdi_ev_death(struct efx_nic *efx , int rc ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; int count ; int tmp___0 ; bool tmp___1 ; { { tmp = efx_mcdi(efx); mcdi = tmp; ldv_spin_lock_85(& mcdi->iface_lock); tmp___1 = efx_mcdi_complete_sync(mcdi); } if ((int )tmp___1) { if ((unsigned int )mcdi->mode == 1U) { mcdi->resprc = rc; mcdi->resp_hdr_len = 0UL; mcdi->resp_data_len = 0UL; mcdi->credits = mcdi->credits + 1U; } else { } } else { count = 0; goto ldv_46682; ldv_46681: { tmp___0 = efx_mcdi_poll_reboot(efx); } if (tmp___0 != 0) { goto ldv_46680; } else { } { __const_udelay(429500UL); count = count + 1; } ldv_46682: ; if (count <= 2499) { goto ldv_46681; } else { } ldv_46680: { mcdi->new_epoch = 1; efx_schedule_reset(efx, 12); } } { ldv_spin_unlock_86(& mcdi->iface_lock); } return; } } static void efx_mcdi_ev_bist(struct efx_nic *efx ) { struct efx_mcdi_iface *mcdi ; struct efx_mcdi_iface *tmp ; bool tmp___0 ; { { tmp = efx_mcdi(efx); mcdi = tmp; ldv_spin_lock_85(& mcdi->iface_lock); efx->mc_bist_for_other_fn = 1; tmp___0 = efx_mcdi_complete_sync(mcdi); } if ((int )tmp___0) { if ((unsigned int )mcdi->mode == 1U) { mcdi->resprc = -5; mcdi->resp_hdr_len = 0UL; mcdi->resp_data_len = 0UL; mcdi->credits = mcdi->credits + 1U; } else { } } else { } { mcdi->new_epoch = 1; efx_schedule_reset(efx, 13); ldv_spin_unlock_86(& mcdi->iface_lock); } return; } } extern void __compiletime_assert_1037(void) ; void efx_mcdi_process_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; int code ; u32 data ; struct _ddebug descriptor ; long tmp ; bool __cond ; { efx = channel->efx; code = (int )(event->u64[0] >> 44) & 255; data = (u32 )event->u64[0]; { if (code == 1) { goto case_1; } else { } if (code == 2) { goto case_2; } else { } if (code == 3) { goto case_3; } else { } if (code == 4) { goto case_4; } else { } if (code == 5) { goto case_5; } else { } if (code == 6) { goto case_6; } else { } if (code == 7) { goto case_7; } else { } if (code == 21) { goto case_21; } else { } if (code == 25) { goto case_25; } else { } if (code == 8) { goto case_8; } else { } if (code == 10) { goto case_10; } else { } if (code == 13) { goto case_13; } else { } if (code == 14) { goto case_14; } else { } if (code == 15) { goto case_15; } else { } if (code == 26) { goto case_26; } else { } if (code == 12) { goto case_12; } else { } if (code == 16) { goto case_16; } else { } if (code == 11) { goto case_11; } else { } if (code == 17) { goto case_17; } else { } goto switch_default; case_1: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC watchdog or assertion failure at 0x%x\n", data); } } else { } { efx_mcdi_ev_death(efx, -4); } goto ldv_46695; case_2: /* CIL Label */ ; if ((efx->msg_enable & 16384U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "MCDI PM event.\n"); } } else { } goto ldv_46695; case_3: /* CIL Label */ { efx_mcdi_ev_cpl(efx, (unsigned int )event->u64[0] & 255U, (unsigned int )(event->u64[0] >> 8) & 255U, (unsigned int )(event->u64[0] >> 16) & 255U); } goto ldv_46695; case_4: /* CIL Label */ { efx_mcdi_process_link_change(efx, event); } goto ldv_46695; case_5: /* CIL Label */ { efx_mcdi_sensor_event(efx, event); } goto ldv_46695; case_6: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_mcdi_process_event"; descriptor.filename = "drivers/net/ethernet/sfc/mcdi.c"; descriptor.format = "MC Scheduler alert (0x%x)\n"; descriptor.lineno = 1003U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "MC Scheduler alert (0x%x)\n", data); } } else { } } else { } goto ldv_46695; case_7: /* CIL Label */ ; case_21: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "MC Reboot\n"); } } else { } { efx_mcdi_ev_death(efx, -5); } goto ldv_46695; case_25: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "MC entered BIST mode\n"); } } else { } { efx_mcdi_ev_bist(efx); } goto ldv_46695; case_8: /* CIL Label */ ; goto ldv_46695; case_10: /* CIL Label */ { efx_sriov_flr(efx, (unsigned int )event->u64[0] & 255U); } goto ldv_46695; case_13: /* CIL Label */ ; case_14: /* CIL Label */ ; case_15: /* CIL Label */ { efx_ptp_event(efx, event); } goto ldv_46695; case_26: /* CIL Label */ { efx_time_sync_event(channel, event); } goto ldv_46695; case_12: /* CIL Label */ ; case_16: /* CIL Label */ __cond = 0; if ((int )__cond) { { __compiletime_assert_1037(); } } else { } if (((event->u64[0] >> 12) & 1ULL) == 0ULL) { { efx_ef10_handle_drain_event(efx); } } else { } goto ldv_46695; case_11: /* CIL Label */ ; case_17: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s DMA error (event: %08x:%08x)\n", code == 11 ? (char *)"TX" : (char *)"RX", event->u32[1], event->u32[0]); } } else { } { efx_schedule_reset(efx, 10); } goto ldv_46695; switch_default: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Unknown MCDI event 0x%x\n", code); } } else { } switch_break: /* CIL Label */ ; } ldv_46695: ; return; } } extern void __compiletime_assert_1072(void) ; extern void __compiletime_assert_1091(void) ; void efx_mcdi_print_fwver(struct efx_nic *efx , char *buf , size_t len ) { int _max1 ; int _max2 ; efx_dword_t *outbuf ; unsigned long __lengthofoutbuf ; void *tmp ; size_t outlength ; __le16 const *ver_words ; size_t offset ; int rc ; bool __cond ; int _max1___0 ; int _max2___0 ; int tmp___0 ; bool __cond___0 ; int _max1___1 ; int _max2___1 ; int tmp___1 ; int tmp___2 ; int __ret_warn_on ; long tmp___3 ; long tmp___4 ; int tmp___5 ; { { _max1 = 32; _max2 = 20; __lengthofoutbuf = (unsigned long )((long )(((_max1 > _max2 ? _max1 : _max2) + 3) / 4)); tmp = __builtin_alloca(sizeof(*outbuf) * __lengthofoutbuf); outbuf = (efx_dword_t *)tmp; __cond = 0; } if ((int )__cond) { { __compiletime_assert_1072(); } } else { } { _max1___0 = 32; _max2___0 = 20; rc = efx_mcdi_rpc(efx, 8U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), (unsigned long )(((_max1___0 > _max2___0 ? _max1___0 : _max2___0) + 3) / 4) * 4UL, & outlength); } if (rc != 0) { goto fail; } else { } if (outlength <= 31UL) { rc = -5; goto fail; } else { } { ver_words = (__le16 const *)(& outbuf) + 24U; tmp___0 = snprintf(buf, len, "%u.%u.%u.%u", (int )*ver_words, (int )*(ver_words + 1UL), (int )*(ver_words + 2UL), (int )*(ver_words + 3UL)); offset = (size_t )tmp___0; tmp___5 = efx_nic_rev(efx); } if (tmp___5 > 3) { __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_1091(); } } else { } { _max1___1 = 32; _max2___1 = 20; rc = efx_mcdi_rpc(efx, 190U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), (unsigned long )(((_max1___1 > _max2___1 ? _max1___1 : _max2___1) + 3) / 4) * 4UL, & outlength); } if (rc != 0 || outlength <= 19UL) { { tmp___1 = snprintf(buf + offset, len - offset, " rx? tx?"); offset = offset + (size_t )tmp___1; } } else { { tmp___2 = snprintf(buf + offset, len - offset, " rx%x tx%x", (int )*((__le16 const *)(& outbuf) + 4U), (int )*((__le16 const *)(& outbuf) + 6U)); offset = offset + (size_t )tmp___2; } } { __ret_warn_on = offset >= len; tmp___3 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___3 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mcdi.c", 1109); } } else { } { tmp___4 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___4 != 0L) { *buf = 0; } else { } } else { } return; fail: ; if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_print_fwver", rc); } } else { } *buf = 0; return; } } static int efx_mcdi_drv_attach(struct efx_nic *efx , bool driver_operating , bool *was_attached ) { efx_dword_t inbuf[3U] ; efx_dword_t outbuf[2U] ; size_t outlen ; int rc ; unsigned int tmp ; { { ((efx_dword_t *)(& inbuf))->u32[0] = (int )driver_operating ? 1U : 0U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 1U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = 1U; rc = efx_mcdi_rpc(efx, 28U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)(& outbuf), 8UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 3UL) { rc = -5; goto fail; } else { } if ((int )driver_operating) { if (outlen > 7UL) { (efx->mcdi)->fn_flags = ((efx_dword_t *)(& outbuf) + 1UL)->u32[0]; } else { { tmp = efx_port_num(efx); (efx->mcdi)->fn_flags = tmp == 0U ? 7U : 6U; } } } else { } if ((int )driver_operating && ((efx->mcdi)->fn_flags & 6U) != 6U) { if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "This driver version only supports one function per port\n"); } } else { } return (-19); } else { } if ((unsigned long )was_attached != (unsigned long )((bool *)0)) { *was_attached = ((efx_dword_t *)(& outbuf))->u32[0] != 0U; } else { } return (0); fail: ; if ((efx->msg_enable & 2U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_drv_attach", rc); } } else { } return (rc); } } extern void __compiletime_assert_1189(void) ; int efx_mcdi_get_board_cfg(struct efx_nic *efx , u8 *mac_address , u16 *fw_subtype_list , u32 *capabilities ) { efx_dword_t outbuf[34U] ; size_t outlen ; size_t i ; int port_num ; unsigned int tmp ; int rc ; bool __cond ; size_t __min1 ; size_t __min2 ; { { tmp = efx_port_num(efx); port_num = (int )tmp; __cond = 0; } if ((int )__cond) { { __compiletime_assert_1189(); } } else { } { rc = efx_mcdi_rpc(efx, 24U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 136UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 95UL) { rc = -5; goto fail; } else { } if ((unsigned long )mac_address != (unsigned long )((u8 *)0U)) { { memcpy((void *)mac_address, port_num != 0 ? (void const *)(& outbuf) + 50U : (void const *)(& outbuf) + 44U, 6UL); } } else { } if ((unsigned long )fw_subtype_list != (unsigned long )((u16 *)0U)) { i = 0UL; goto ldv_46801; ldv_46800: *(fw_subtype_list + i) = (u16 )*((__le16 const *)(& outbuf) + (i + 36UL) * 2UL); i = i + 1UL; ldv_46801: __min1 = 32UL; __min2 = (outlen - 72UL) / 2UL; if (i < (__min1 < __min2 ? __min1 : __min2)) { goto ldv_46800; } else { } goto ldv_46804; ldv_46803: *(fw_subtype_list + i) = 0U; i = i + 1UL; ldv_46804: ; if (i <= 31UL) { goto ldv_46803; } else { } } else { } if ((unsigned long )capabilities != (unsigned long )((u32 *)0U)) { if (port_num != 0) { *capabilities = ((efx_dword_t *)(& outbuf) + 10UL)->u32[0]; } else { *capabilities = ((efx_dword_t *)(& outbuf) + 9UL)->u32[0]; } } else { } return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d len=%d\n", "efx_mcdi_get_board_cfg", rc, (int )outlen); } } else { } return (rc); } } extern void __compiletime_assert_1249(void) ; int efx_mcdi_log_ctrl(struct efx_nic *efx , bool evq , bool uart , u32 dest_evq ) { efx_dword_t inbuf[2U] ; u32 dest ; int rc ; bool __cond ; { dest = 0U; if ((int )uart) { dest = dest | 1U; } else { } if ((int )evq) { dest = dest | 2U; } else { } ((efx_dword_t *)(& inbuf))->u32[0] = dest; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = dest_evq; __cond = 0; if ((int )__cond) { { __compiletime_assert_1249(); } } else { } { rc = efx_mcdi_rpc(efx, 7U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } extern void __compiletime_assert_1262(void) ; int efx_mcdi_nvram_types(struct efx_nic *efx , u32 *nvram_types_out ) { efx_dword_t outbuf[1U] ; size_t outlen ; int rc ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1262(); } } else { } { rc = efx_mcdi_rpc(efx, 54U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 4UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 3UL) { rc = -5; goto fail; } else { } *nvram_types_out = ((efx_dword_t *)(& outbuf))->u32[0]; return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_nvram_types", rc); } } else { } return (rc); } } int efx_mcdi_nvram_info(struct efx_nic *efx , unsigned int type , size_t *size_out , size_t *erase_size_out , bool *protected_out ) { efx_dword_t inbuf[1U] ; efx_dword_t outbuf[6U] ; size_t outlen ; int rc ; { { ((efx_dword_t *)(& inbuf))->u32[0] = type; rc = efx_mcdi_rpc(efx, 55U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 24UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 23UL) { rc = -5; goto fail; } else { } *size_out = (size_t )((efx_dword_t *)(& outbuf) + 1UL)->u32[0]; *erase_size_out = (size_t )((efx_dword_t *)(& outbuf) + 2UL)->u32[0]; *protected_out = ((int )((efx_dword_t *)(& outbuf) + 3UL)->u32[0] & 1) != 0; return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_nvram_info", rc); } } else { } return (rc); } } static int efx_mcdi_nvram_test(struct efx_nic *efx , unsigned int type ) { efx_dword_t inbuf[1U] ; efx_dword_t outbuf[1U] ; int rc ; { { ((efx_dword_t *)(& inbuf))->u32[0] = type; rc = efx_mcdi_rpc(efx, 76U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 4UL, (size_t *)0UL); } if (rc != 0) { return (rc); } else { } { if (((efx_dword_t *)(& outbuf))->u32[0] == 0U) { goto case_0; } else { } if (((efx_dword_t *)(& outbuf))->u32[0] == 2U) { goto case_2; } else { } goto switch_default; case_0: /* CIL Label */ ; case_2: /* CIL Label */ ; return (0); switch_default: /* CIL Label */ ; return (-5); switch_break: /* CIL Label */ ; } } } int efx_mcdi_nvram_test_all(struct efx_nic *efx ) { u32 nvram_types ; unsigned int type ; int rc ; { { rc = efx_mcdi_nvram_types(efx, & nvram_types); } if (rc != 0) { goto fail1; } else { } type = 0U; goto ldv_46901; ldv_46900: ; if ((int )nvram_types & 1) { { rc = efx_mcdi_nvram_test(efx, type); } if (rc != 0) { goto fail2; } else { } } else { } type = type + 1U; nvram_types = nvram_types >> 1; ldv_46901: ; if (nvram_types != 0U) { goto ldv_46900; } else { } return (0); fail2: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed type=%u\n", "efx_mcdi_nvram_test_all", type); } } else { } fail1: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_nvram_test_all", rc); } } else { } return (rc); } } static int efx_mcdi_read_assertion(struct efx_nic *efx ) { efx_dword_t inbuf[1U] ; size_t __max1 ; size_t __max2 ; efx_dword_t *outbuf ; unsigned long __lengthofoutbuf ; void *tmp ; unsigned int flags ; unsigned int index ; char const *reason ; size_t outlen ; int retry ; int rc ; size_t __max1___0 ; size_t __max2___0 ; int tmp___0 ; { { __max1 = 140UL; __max2 = 8UL; __lengthofoutbuf = (unsigned long )((long )(((__max1 > __max2 ? __max1 : __max2) + 3UL) / 4UL)); tmp = __builtin_alloca(sizeof(*outbuf) * __lengthofoutbuf); outbuf = (efx_dword_t *)tmp; retry = 2; } ldv_46920: { ((efx_dword_t *)(& inbuf))->u32[0] = 1U; __max1___0 = 140UL; __max2___0 = 8UL; rc = efx_mcdi_rpc_quiet(efx, 6U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), (((__max1___0 > __max2___0 ? __max1___0 : __max2___0) + 3UL) / 4UL) * 4UL, & outlen); } if ((unsigned int )rc - 4294967291U <= 1U) { tmp___0 = retry; retry = retry - 1; if (tmp___0 > 0) { goto ldv_46920; } else { goto ldv_46921; } } else { } ldv_46921: ; if (rc != 0) { { efx_mcdi_display_error(efx, 6U, 4UL, (efx_dword_t *)(& outbuf), outlen, rc); } return (rc); } else { } if (outlen <= 139UL) { return (-5); } else { } flags = ((efx_dword_t *)(& outbuf))->u32[0]; if (flags == 1U) { return (0); } else { } reason = flags != 2U ? (flags != 3U ? (flags == 4U ? "watchdog reset" : "unknown assertion") : "thread-level assertion") : "system-level assertion"; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MCPU %s at PC = 0x%.8x in thread 0x%.8x\n", reason, ((efx_dword_t *)(& outbuf) + 1UL)->u32[0], ((efx_dword_t *)(& outbuf) + 33UL)->u32[0]); } } else { } index = 0U; goto ldv_46947; ldv_46946: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "R%.2d (?): 0x%.8x\n", index + 1U, ((efx_dword_t *)(& outbuf) + ((unsigned long )index + 2UL) * 4UL)->u32[0]); } } else { } index = index + 1U; ldv_46947: ; if (index <= 30U) { goto ldv_46946; } else { } return (0); } } extern void __compiletime_assert_1437(void) ; static void efx_mcdi_exit_assertion(struct efx_nic *efx ) { efx_dword_t inbuf[1U] ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1437(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = 1U; efx_mcdi_rpc(efx, 61U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return; } } int efx_mcdi_handle_assertion(struct efx_nic *efx ) { int rc ; { { rc = efx_mcdi_read_assertion(efx); } if (rc != 0) { return (rc); } else { } { efx_mcdi_exit_assertion(efx); } return (0); } } extern void __compiletime_assert_1462(void) ; extern void __compiletime_assert_1463(void) ; extern void __compiletime_assert_1464(void) ; extern void __compiletime_assert_1466(void) ; void efx_mcdi_set_id_led(struct efx_nic *efx , enum efx_led_mode mode ) { efx_dword_t inbuf[1U] ; int rc ; bool __cond ; bool __cond___0 ; bool __cond___1 ; bool __cond___2 ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1462(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_1463(); } } else { } __cond___1 = 0; if ((int )__cond___1) { { __compiletime_assert_1464(); } } else { } __cond___2 = 0; if ((int )__cond___2) { { __compiletime_assert_1466(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )mode; rc = efx_mcdi_rpc(efx, 43U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return; } } extern void __compiletime_assert_1479(void) ; static int efx_mcdi_reset_func(struct efx_nic *efx ) { efx_dword_t inbuf[1U] ; int rc ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1479(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = 1U; rc = efx_mcdi_rpc(efx, 32U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } extern void __compiletime_assert_1492(void) ; static int efx_mcdi_reset_mc(struct efx_nic *efx ) { efx_dword_t inbuf[1U] ; int rc ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1492(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = 0U; rc = efx_mcdi_rpc(efx, 61U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc == -5) { return (0); } else { } if (rc == 0) { rc = -5; } else { } return (rc); } } enum reset_type efx_mcdi_map_reset_reason(enum reset_type reason ) { { return (1); } } int efx_mcdi_reset(struct efx_nic *efx , enum reset_type method ) { int rc ; int tmp ; int tmp___0 ; { { rc = efx_mcdi_handle_assertion(efx); } if (rc != 0) { return (rc); } else { } if ((unsigned int )method == 3U) { { tmp = efx_mcdi_reset_mc(efx); } return (tmp); } else { { tmp___0 = efx_mcdi_reset_func(efx); } return (tmp___0); } } } static int efx_mcdi_wol_filter_set(struct efx_nic *efx , u32 type , u8 const *mac , int *id_out ) { efx_dword_t inbuf[48U] ; efx_dword_t outbuf[1U] ; size_t outlen ; int rc ; { { ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = type; ((efx_dword_t *)(& inbuf))->u32[0] = 0U; memcpy((void *)(& inbuf) + 8U, (void const *)mac, 6UL); rc = efx_mcdi_rpc(efx, 50U, (efx_dword_t const *)(& inbuf), 192UL, (efx_dword_t *)(& outbuf), 4UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 3UL) { rc = -5; goto fail; } else { } *id_out = (int )((efx_dword_t *)(& outbuf))->u32[0]; return (0); fail: *id_out = -1; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_wol_filter_set", rc); } } else { } return (rc); } } int efx_mcdi_wol_filter_set_magic(struct efx_nic *efx , u8 const *mac , int *id_out ) { int tmp ; { { tmp = efx_mcdi_wol_filter_set(efx, 0U, mac, id_out); } return (tmp); } } int efx_mcdi_wol_filter_get_magic(struct efx_nic *efx , int *id_out ) { efx_dword_t outbuf[1U] ; size_t outlen ; int rc ; { { rc = efx_mcdi_rpc(efx, 69U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 4UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 3UL) { rc = -5; goto fail; } else { } *id_out = (int )((efx_dword_t *)(& outbuf))->u32[0]; return (0); fail: *id_out = -1; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_wol_filter_get_magic", rc); } } else { } return (rc); } } int efx_mcdi_wol_filter_remove(struct efx_nic *efx , int id ) { efx_dword_t inbuf[1U] ; int rc ; { { ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )id; rc = efx_mcdi_rpc(efx, 51U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } extern void __compiletime_assert_1614(void) ; int efx_mcdi_flush_rxqs(struct efx_nic *efx ) { struct efx_channel *channel ; struct efx_rx_queue *rx_queue ; efx_dword_t inbuf[32U] ; int rc ; int count ; bool __cond ; int tmp ; bool tmp___0 ; int tmp___1 ; int __ret_warn_on ; long tmp___2 ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1614(); } } else { } count = 0; channel = efx->channel[0]; goto ldv_47091; ldv_47090: { tmp___0 = efx_channel_has_rx_queue(channel); } if (tmp___0) { tmp___1 = 0; } else { tmp___1 = 1; } if (tmp___1) { } else { rx_queue = & channel->rx_queue; goto ldv_47088; ldv_47087: ; if ((int )rx_queue->flush_pending) { { rx_queue->flush_pending = 0; atomic_dec(& efx->rxq_flush_pending); tmp = efx_rx_queue_index(rx_queue); ((efx_dword_t *)(& inbuf) + (unsigned long )count * 4UL)->u32[0] = (__le32 )tmp; count = count + 1; } } else { } rx_queue = (struct efx_rx_queue *)0; ldv_47088: ; if ((unsigned long )rx_queue != (unsigned long )((struct efx_rx_queue *)0)) { goto ldv_47087; } else { } } channel = (unsigned int )(channel->channel + 1) < efx->n_channels ? efx->channel[channel->channel + 1] : (struct efx_channel *)0; ldv_47091: ; if ((unsigned long )channel != (unsigned long )((struct efx_channel *)0)) { goto ldv_47090; } else { } { rc = efx_mcdi_rpc(efx, 39U, (efx_dword_t const *)(& inbuf), (size_t )(count * 4), (efx_dword_t *)0, 0UL, (size_t *)0UL); __ret_warn_on = rc < 0; tmp___2 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___2 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mcdi.c", 1632); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); } return (rc); } } int efx_mcdi_wol_filter_reset(struct efx_nic *efx ) { int rc ; { { rc = efx_mcdi_rpc(efx, 52U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } extern void __compiletime_assert_1649(void) ; int efx_mcdi_set_workaround(struct efx_nic *efx , u32 type , bool enabled ) { efx_dword_t inbuf[2U] ; bool __cond ; int tmp ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_1649(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = type; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )enabled; tmp = efx_mcdi_rpc(efx, 74U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (tmp); } } extern void __compiletime_assert_1667(void) ; static int efx_mcdi_nvram_update_start(struct efx_nic *efx , unsigned int type ) { efx_dword_t inbuf[1U] ; int rc ; bool __cond ; { ((efx_dword_t *)(& inbuf))->u32[0] = type; __cond = 0; if ((int )__cond) { { __compiletime_assert_1667(); } } else { } { rc = efx_mcdi_rpc(efx, 56U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } static int efx_mcdi_nvram_read(struct efx_nic *efx , unsigned int type , loff_t offset , u8 *buffer , size_t length ) { efx_dword_t inbuf[3U] ; efx_dword_t outbuf[32U] ; size_t outlen ; int rc ; { { ((efx_dword_t *)(& inbuf))->u32[0] = type; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )offset; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )length; rc = efx_mcdi_rpc(efx, 57U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)(& outbuf), 128UL, & outlen); } if (rc != 0) { return (rc); } else { } { memcpy((void *)buffer, (void const *)(& outbuf), length); } return (0); } } extern void __compiletime_assert_1708(void) ; static int efx_mcdi_nvram_write(struct efx_nic *efx , unsigned int type , loff_t offset , u8 const *buffer , size_t length ) { efx_dword_t inbuf[35U] ; int rc ; bool __cond ; { { ((efx_dword_t *)(& inbuf))->u32[0] = type; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )offset; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )length; memcpy((void *)(& inbuf) + 12U, (void const *)buffer, length); __cond = 0; } if ((int )__cond) { { __compiletime_assert_1708(); } } else { } { rc = efx_mcdi_rpc(efx, 58U, (efx_dword_t const *)(& inbuf), (length + 15UL) & 0xfffffffffffffffcUL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } extern void __compiletime_assert_1726(void) ; static int efx_mcdi_nvram_erase(struct efx_nic *efx , unsigned int type , loff_t offset , size_t length ) { efx_dword_t inbuf[3U] ; int rc ; bool __cond ; { ((efx_dword_t *)(& inbuf))->u32[0] = type; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )offset; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )length; __cond = 0; if ((int )__cond) { { __compiletime_assert_1726(); } } else { } { rc = efx_mcdi_rpc(efx, 59U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } extern void __compiletime_assert_1740(void) ; static int efx_mcdi_nvram_update_finish(struct efx_nic *efx , unsigned int type ) { efx_dword_t inbuf[2U] ; int rc ; bool __cond ; { ((efx_dword_t *)(& inbuf))->u32[0] = type; __cond = 0; if ((int )__cond) { { __compiletime_assert_1740(); } } else { } { rc = efx_mcdi_rpc(efx, 60U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } int efx_mcdi_mtd_read(struct mtd_info *mtd , loff_t start , size_t len , size_t *retlen , u8 *buffer ) { struct efx_mcdi_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; loff_t offset ; loff_t end ; loff_t __min1 ; loff_t __min2 ; size_t chunk ; int rc ; size_t __min1___0 ; size_t __min2___0 ; { __mptr = (struct mtd_info const *)mtd; part = (struct efx_mcdi_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; offset = start; __min1 = (loff_t )((unsigned long long )start + (unsigned long long )len); __min2 = (loff_t )mtd->size; end = __min1 < __min2 ? __min1 : __min2; rc = 0; goto ldv_47214; ldv_47213: { __min1___0 = (size_t )(end - offset); __min2___0 = 128UL; chunk = __min1___0 < __min2___0 ? __min1___0 : __min2___0; rc = efx_mcdi_nvram_read(efx, (unsigned int )part->nvram_type, offset, buffer, chunk); } if (rc != 0) { goto out; } else { } offset = (loff_t )((unsigned long long )offset + (unsigned long long )chunk); buffer = buffer + chunk; ldv_47214: ; if (offset < end) { goto ldv_47213; } else { } out: *retlen = (size_t )(offset - start); return (rc); } } int efx_mcdi_mtd_erase(struct mtd_info *mtd , loff_t start , size_t len ) { struct efx_mcdi_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; loff_t offset ; loff_t end ; loff_t __min1 ; loff_t __min2 ; size_t chunk ; int rc ; { __mptr = (struct mtd_info const *)mtd; part = (struct efx_mcdi_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; offset = start & ~ ((long long )(mtd->erasesize - 1U)); __min1 = (loff_t )((unsigned long long )start + (unsigned long long )len); __min2 = (loff_t )mtd->size; end = __min1 < __min2 ? __min1 : __min2; chunk = (size_t )part->common.mtd.erasesize; rc = 0; if (! part->updating) { { rc = efx_mcdi_nvram_update_start(efx, (unsigned int )part->nvram_type); } if (rc != 0) { goto out; } else { } part->updating = 1; } else { } goto ldv_47234; ldv_47233: { rc = efx_mcdi_nvram_erase(efx, (unsigned int )part->nvram_type, offset, chunk); } if (rc != 0) { goto out; } else { } offset = (loff_t )((unsigned long long )offset + (unsigned long long )chunk); ldv_47234: ; if (offset < end) { goto ldv_47233; } else { } out: ; return (rc); } } int efx_mcdi_mtd_write(struct mtd_info *mtd , loff_t start , size_t len , size_t *retlen , u8 const *buffer ) { struct efx_mcdi_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; loff_t offset ; loff_t end ; loff_t __min1 ; loff_t __min2 ; size_t chunk ; int rc ; size_t __min1___0 ; size_t __min2___0 ; { __mptr = (struct mtd_info const *)mtd; part = (struct efx_mcdi_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; offset = start; __min1 = (loff_t )((unsigned long long )start + (unsigned long long )len); __min2 = (loff_t )mtd->size; end = __min1 < __min2 ? __min1 : __min2; rc = 0; if (! part->updating) { { rc = efx_mcdi_nvram_update_start(efx, (unsigned int )part->nvram_type); } if (rc != 0) { goto out; } else { } part->updating = 1; } else { } goto ldv_47259; ldv_47258: { __min1___0 = (size_t )(end - offset); __min2___0 = 128UL; chunk = __min1___0 < __min2___0 ? __min1___0 : __min2___0; rc = efx_mcdi_nvram_write(efx, (unsigned int )part->nvram_type, offset, buffer, chunk); } if (rc != 0) { goto out; } else { } offset = (loff_t )((unsigned long long )offset + (unsigned long long )chunk); buffer = buffer + chunk; ldv_47259: ; if (offset < end) { goto ldv_47258; } else { } out: *retlen = (size_t )(offset - start); return (rc); } } int efx_mcdi_mtd_sync(struct mtd_info *mtd ) { struct efx_mcdi_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; int rc ; { __mptr = (struct mtd_info const *)mtd; part = (struct efx_mcdi_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; rc = 0; if ((int )part->updating) { { part->updating = 0; rc = efx_mcdi_nvram_update_finish(efx, (unsigned int )part->nvram_type); } } else { } return (rc); } } void efx_mcdi_mtd_rename(struct efx_mtd_partition *part ) { struct efx_mcdi_mtd_partition *mcdi_part ; struct efx_mtd_partition const *__mptr ; struct efx_nic *efx ; { { __mptr = (struct efx_mtd_partition const *)part; mcdi_part = (struct efx_mcdi_mtd_partition *)__mptr; efx = (struct efx_nic *)part->mtd.priv; snprintf((char *)(& part->name), 36UL, "%s %s:%02x", (char *)(& efx->name), part->type_name, (int )mcdi_part->fw_subtype); } return; } } __inline static void ldv_spin_lock_bh_76___1(spinlock_t *lock ) { { { ldv_spin_lock_iface_lock_of_efx_mcdi_iface(); spin_lock_bh(lock); } return; } } __inline static void ldv_spin_unlock_bh_77___0(spinlock_t *lock ) { { { ldv_spin_unlock_iface_lock_of_efx_mcdi_iface(); spin_unlock_bh(lock); } return; } } __inline static void ldv_spin_lock_bh_82(spinlock_t *lock ) { { { ldv_spin_lock_async_lock_of_efx_mcdi_iface(); spin_lock_bh(lock); } return; } } static int ldv_mod_timer_83___0(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___0 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; tmp___0 = ldv_mod_timer(ldv_func_res, ldv_func_arg1, ldv_func_arg2); } return (tmp___0); return (ldv_func_res); } } __inline static void ldv_spin_unlock_bh_84___1(spinlock_t *lock ) { { { ldv_spin_unlock_async_lock_of_efx_mcdi_iface(); spin_unlock_bh(lock); } return; } } __inline static void ldv_spin_lock_85(spinlock_t *lock ) { { { ldv_spin_lock_iface_lock_of_efx_mcdi_iface(); spin_lock(lock); } return; } } __inline static void ldv_spin_unlock_86(spinlock_t *lock ) { { { ldv_spin_unlock_iface_lock_of_efx_mcdi_iface(); spin_unlock(lock); } return; } } static int ldv_del_timer_sync_87(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___1 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_del_timer_sync(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } __inline static void ldv_spin_lock_88(spinlock_t *lock ) { { { ldv_spin_lock_async_lock_of_efx_mcdi_iface(); spin_lock(lock); } return; } } __inline static void ldv_spin_unlock_89(spinlock_t *lock ) { { { ldv_spin_unlock_async_lock_of_efx_mcdi_iface(); spin_unlock(lock); } return; } } static int ldv_mod_timer_97(struct timer_list *ldv_func_arg1 , unsigned long ldv_func_arg2 ) { ldv_func_ret_type___7 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = mod_timer(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; tmp___0 = ldv_mod_timer(ldv_func_res, ldv_func_arg1, ldv_func_arg2); } return (tmp___0); return (ldv_func_res); } } static int ldv_del_timer_sync_99(struct timer_list *ldv_func_arg1 ) { ldv_func_ret_type___3 ldv_func_res ; int tmp ; int tmp___0 ; { { tmp = del_timer_sync(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_del_timer_sync(ldv_func_res, ldv_func_arg1); } return (tmp___0); return (ldv_func_res); } } __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern void __compiletime_assert_43(void) ; extern void __compiletime_assert_44(void) ; static int efx_mcdi_get_phy_cfg(struct efx_nic *efx , struct efx_mcdi_phy_data *cfg ) { efx_dword_t outbuf[18U] ; size_t outlen ; int rc ; bool __cond ; bool __cond___0 ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_43(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_44(); } } else { } { rc = efx_mcdi_rpc(efx, 36U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 72UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 71UL) { rc = -5; goto fail; } else { } { cfg->flags = ((efx_dword_t *)(& outbuf))->u32[0]; cfg->type = ((efx_dword_t *)(& outbuf) + 1UL)->u32[0]; cfg->supported_cap = ((efx_dword_t *)(& outbuf) + 2UL)->u32[0]; cfg->channel = ((efx_dword_t *)(& outbuf) + 3UL)->u32[0]; cfg->port = ((efx_dword_t *)(& outbuf) + 4UL)->u32[0]; cfg->stats_mask = ((efx_dword_t *)(& outbuf) + 5UL)->u32[0]; memcpy((void *)(& cfg->name), (void const *)(& outbuf) + 24U, 20UL); cfg->media = ((efx_dword_t *)(& outbuf) + 11UL)->u32[0]; cfg->mmd_mask = ((efx_dword_t *)(& outbuf) + 12UL)->u32[0]; memcpy((void *)(& cfg->revision), (void const *)(& outbuf) + 52U, 20UL); } return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_get_phy_cfg", rc); } } else { } return (rc); } } extern void __compiletime_assert_84(void) ; static int efx_mcdi_set_link(struct efx_nic *efx , u32 capabilities , u32 flags , u32 loopback_mode , u32 loopback_speed ) { efx_dword_t inbuf[4U] ; int rc ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_84(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = capabilities; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = flags; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = loopback_mode; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = loopback_speed; rc = efx_mcdi_rpc(efx, 42U, (efx_dword_t const *)(& inbuf), 16UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } static int efx_mcdi_loopback_modes(struct efx_nic *efx , u64 *loopback_modes ) { efx_dword_t outbuf[10U] ; size_t outlen ; int rc ; { { rc = efx_mcdi_rpc(efx, 40U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 40UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 31UL) { rc = -5; goto fail; } else { } *loopback_modes = (unsigned long long )((efx_dword_t *)(& outbuf) + 6UL)->u32[0] | ((unsigned long long )((efx_dword_t *)(& outbuf) + 7U)->u32[0] << 32); return (0); fail: ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "%s: failed rc=%d\n", "efx_mcdi_loopback_modes", rc); } } else { } return (rc); } } static int efx_mcdi_mdio_read(struct net_device *net_dev , int prtad , int devad , u16 addr ) { struct efx_nic *efx ; void *tmp ; efx_dword_t inbuf[4U] ; efx_dword_t outbuf[2U] ; size_t outlen ; int rc ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; ((efx_dword_t *)(& inbuf))->u32[0] = efx->mdio_bus; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )prtad; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )devad; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = (unsigned int )addr; rc = efx_mcdi_rpc(efx, 16U, (efx_dword_t const *)(& inbuf), 16UL, (efx_dword_t *)(& outbuf), 8UL, & outlen); } if (rc != 0) { return (rc); } else { } if (((efx_dword_t *)(& outbuf) + 1UL)->u32[0] != 8U) { return (-5); } else { } return ((int )((unsigned short )((efx_dword_t *)(& outbuf))->u32[0])); } } static int efx_mcdi_mdio_write(struct net_device *net_dev , int prtad , int devad , u16 addr , u16 value ) { struct efx_nic *efx ; void *tmp ; efx_dword_t inbuf[5U] ; efx_dword_t outbuf[1U] ; size_t outlen ; int rc ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; ((efx_dword_t *)(& inbuf))->u32[0] = efx->mdio_bus; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )prtad; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )devad; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = (unsigned int )addr; ((efx_dword_t *)(& inbuf) + 4UL)->u32[0] = (unsigned int )value; rc = efx_mcdi_rpc(efx, 17U, (efx_dword_t const *)(& inbuf), 20UL, (efx_dword_t *)(& outbuf), 4UL, & outlen); } if (rc != 0) { return (rc); } else { } if (((efx_dword_t *)(& outbuf))->u32[0] != 8U) { return (-5); } else { } return (0); } } static u32 mcdi_to_ethtool_cap(u32 media , u32 cap ) { u32 result ; { result = 0U; { if (media == 3U) { goto case_3; } else { } if (media == 4U) { goto case_4; } else { } if (media == 5U) { goto case_5; } else { } if (media == 6U) { goto case_6; } else { } goto switch_break; case_3: /* CIL Label */ result = result | 65536U; if ((cap & 64U) != 0U) { result = result | 131072U; } else { } if ((cap & 128U) != 0U) { result = result | 262144U; } else { } goto ldv_46163; case_4: /* CIL Label */ ; case_5: /* CIL Label */ result = result | 1024U; goto ldv_46163; case_6: /* CIL Label */ result = result | 128U; if ((cap & 2U) != 0U) { result = result | 1U; } else { } if ((cap & 4U) != 0U) { result = result | 2U; } else { } if ((cap & 8U) != 0U) { result = result | 4U; } else { } if ((cap & 16U) != 0U) { result = result | 8U; } else { } if ((cap & 32U) != 0U) { result = result | 16U; } else { } if ((cap & 64U) != 0U) { result = result | 32U; } else { } if ((cap & 128U) != 0U) { result = result | 4096U; } else { } goto ldv_46163; switch_break: /* CIL Label */ ; } ldv_46163: ; if ((cap & 256U) != 0U) { result = result | 8192U; } else { } if ((cap & 512U) != 0U) { result = result | 16384U; } else { } if ((cap & 1024U) != 0U) { result = result | 64U; } else { } return (result); } } static u32 ethtool_to_mcdi_cap(u32 cap ) { u32 result ; { result = 0U; if ((int )cap & 1) { result = result | 2U; } else { } if ((cap & 2U) != 0U) { result = result | 4U; } else { } if ((cap & 4U) != 0U) { result = result | 8U; } else { } if ((cap & 8U) != 0U) { result = result | 16U; } else { } if ((cap & 16U) != 0U) { result = result | 32U; } else { } if ((cap & 131104U) != 0U) { result = result | 64U; } else { } if ((cap & 266240U) != 0U) { result = result | 128U; } else { } if ((cap & 8192U) != 0U) { result = result | 256U; } else { } if ((cap & 16384U) != 0U) { result = result | 512U; } else { } if ((cap & 64U) != 0U) { result = result | 1024U; } else { } return (result); } } static u32 efx_get_mcdi_phy_flags(struct efx_nic *efx ) { struct efx_mcdi_phy_data *phy_cfg ; enum efx_phy_mode mode ; enum efx_phy_mode supported ; u32 flags ; { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; supported = 0; if ((phy_cfg->flags & 32U) != 0U) { supported = (enum efx_phy_mode )((unsigned int )supported | 1U); } else { } if ((phy_cfg->flags & 8U) != 0U) { supported = (enum efx_phy_mode )((unsigned int )supported | 2U); } else { } if ((phy_cfg->flags & 16U) != 0U) { supported = (enum efx_phy_mode )((unsigned int )supported | 4U); } else { } mode = (enum efx_phy_mode )((unsigned int )efx->phy_mode & (unsigned int )supported); flags = 0U; if ((int )mode & 1) { flags = flags | 4U; } else { } if (((unsigned int )mode & 2U) != 0U) { flags = flags | 1U; } else { } if (((unsigned int )mode & 4U) != 0U) { flags = flags | 2U; } else { } return (flags); } } static u32 mcdi_to_ethtool_media(u32 media ) { { { if (media == 1U) { goto case_1; } else { } if (media == 2U) { goto case_2; } else { } if (media == 3U) { goto case_3; } else { } if (media == 4U) { goto case_4; } else { } if (media == 5U) { goto case_5; } else { } if (media == 6U) { goto case_6; } else { } goto switch_default; case_1: /* CIL Label */ ; case_2: /* CIL Label */ ; case_3: /* CIL Label */ ; return (255U); case_4: /* CIL Label */ ; case_5: /* CIL Label */ ; return (3U); case_6: /* CIL Label */ ; return (0U); switch_default: /* CIL Label */ ; return (255U); switch_break: /* CIL Label */ ; } } } static void efx_mcdi_phy_decode_link(struct efx_nic *efx , struct efx_link_state *link_state , u32 speed , u32 flags , u32 fcntl ) { int __ret_warn_on ; long tmp ; int __ret_warn_on___0 ; long tmp___0 ; { { if (fcntl == 3U) { goto case_3; } else { } if (fcntl == 2U) { goto case_2; } else { } if (fcntl == 1U) { goto case_1; } else { } if (fcntl == 0U) { goto case_0; } else { } goto switch_default; case_3: /* CIL Label */ { __ret_warn_on = 1; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mcdi_port.c", 304); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); link_state->fc = 7U; } goto ldv_46198; case_2: /* CIL Label */ link_state->fc = 3U; goto ldv_46198; case_1: /* CIL Label */ link_state->fc = 2U; goto ldv_46198; switch_default: /* CIL Label */ { __ret_warn_on___0 = 1; tmp___0 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mcdi_port.c", 314); } } else { } { ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } case_0: /* CIL Label */ link_state->fc = 0U; goto ldv_46198; switch_break: /* CIL Label */ ; } ldv_46198: link_state->up = ((int )flags & 1) != 0; link_state->fd = (flags & 2U) != 0U; link_state->speed = speed; return; } } extern void __compiletime_assert_342(void) ; extern void __compiletime_assert_369(void) ; extern void __compiletime_assert_370(void) ; extern void __compiletime_assert_371(void) ; extern void __compiletime_assert_372(void) ; extern void __compiletime_assert_373(void) ; extern void __compiletime_assert_374(void) ; extern void __compiletime_assert_375(void) ; extern void __compiletime_assert_376(void) ; extern void __compiletime_assert_377(void) ; extern void __compiletime_assert_378(void) ; extern void __compiletime_assert_379(void) ; extern void __compiletime_assert_380(void) ; extern void __compiletime_assert_381(void) ; extern void __compiletime_assert_382(void) ; extern void __compiletime_assert_383(void) ; extern void __compiletime_assert_384(void) ; extern void __compiletime_assert_385(void) ; extern void __compiletime_assert_386(void) ; extern void __compiletime_assert_387(void) ; extern void __compiletime_assert_388(void) ; extern void __compiletime_assert_390(void) ; extern void __compiletime_assert_391(void) ; extern void __compiletime_assert_392(void) ; extern void __compiletime_assert_393(void) ; extern void __compiletime_assert_394(void) ; extern void __compiletime_assert_395(void) ; static int efx_mcdi_phy_probe(struct efx_nic *efx ) { struct efx_mcdi_phy_data *phy_data ; efx_dword_t outbuf[7U] ; u32 caps ; int rc ; void *tmp ; bool __cond ; bool __cond___0 ; bool __cond___1 ; bool __cond___2 ; bool __cond___3 ; bool __cond___4 ; bool __cond___5 ; bool __cond___6 ; bool __cond___7 ; bool __cond___8 ; bool __cond___9 ; bool __cond___10 ; bool __cond___11 ; bool __cond___12 ; bool __cond___13 ; bool __cond___14 ; bool __cond___15 ; bool __cond___16 ; bool __cond___17 ; bool __cond___18 ; bool __cond___19 ; bool __cond___20 ; bool __cond___21 ; bool __cond___22 ; bool __cond___23 ; bool __cond___24 ; bool __cond___25 ; bool __cond___26 ; { { tmp = kzalloc(76UL, 208U); phy_data = (struct efx_mcdi_phy_data *)tmp; } if ((unsigned long )phy_data == (unsigned long )((struct efx_mcdi_phy_data *)0)) { return (-12); } else { } { rc = efx_mcdi_get_phy_cfg(efx, phy_data); } if (rc != 0) { goto fail; } else { } __cond = 0; if ((int )__cond) { { __compiletime_assert_342(); } } else { } { rc = efx_mcdi_rpc(efx, 41U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 28UL, (size_t *)0UL); } if (rc != 0) { goto fail; } else { } efx->phy_data = (void *)phy_data; efx->phy_type = phy_data->type; efx->mdio_bus = phy_data->channel; efx->mdio.prtad = (int )phy_data->port; efx->mdio.mmds = phy_data->mmd_mask & 4294967294U; efx->mdio.mode_support = 0U; if ((int )phy_data->mmd_mask & 1) { efx->mdio.mode_support = efx->mdio.mode_support | 1U; } else { } if ((phy_data->mmd_mask & 4294967294U) != 0U) { efx->mdio.mode_support = efx->mdio.mode_support | 6U; } else { } caps = ((efx_dword_t *)(& outbuf))->u32[0]; if ((caps & 1024U) != 0U) { { efx->link_advertising = mcdi_to_ethtool_cap(phy_data->media, caps); } } else { phy_data->forced_cap = caps; } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_369(); } } else { } __cond___1 = 0; if ((int )__cond___1) { { __compiletime_assert_370(); } } else { } __cond___2 = 0; if ((int )__cond___2) { { __compiletime_assert_371(); } } else { } __cond___3 = 0; if ((int )__cond___3) { { __compiletime_assert_372(); } } else { } __cond___4 = 0; if ((int )__cond___4) { { __compiletime_assert_373(); } } else { } __cond___5 = 0; if ((int )__cond___5) { { __compiletime_assert_374(); } } else { } __cond___6 = 0; if ((int )__cond___6) { { __compiletime_assert_375(); } } else { } __cond___7 = 0; if ((int )__cond___7) { { __compiletime_assert_376(); } } else { } __cond___8 = 0; if ((int )__cond___8) { { __compiletime_assert_377(); } } else { } __cond___9 = 0; if ((int )__cond___9) { { __compiletime_assert_378(); } } else { } __cond___10 = 0; if ((int )__cond___10) { { __compiletime_assert_379(); } } else { } __cond___11 = 0; if ((int )__cond___11) { { __compiletime_assert_380(); } } else { } __cond___12 = 0; if ((int )__cond___12) { { __compiletime_assert_381(); } } else { } __cond___13 = 0; if ((int )__cond___13) { { __compiletime_assert_382(); } } else { } __cond___14 = 0; if ((int )__cond___14) { { __compiletime_assert_383(); } } else { } __cond___15 = 0; if ((int )__cond___15) { { __compiletime_assert_384(); } } else { } __cond___16 = 0; if ((int )__cond___16) { { __compiletime_assert_385(); } } else { } __cond___17 = 0; if ((int )__cond___17) { { __compiletime_assert_386(); } } else { } __cond___18 = 0; if ((int )__cond___18) { { __compiletime_assert_387(); } } else { } __cond___19 = 0; if ((int )__cond___19) { { __compiletime_assert_388(); } } else { } __cond___20 = 0; if ((int )__cond___20) { { __compiletime_assert_389(); } } else { } __cond___21 = 0; if ((int )__cond___21) { { __compiletime_assert_390(); } } else { } __cond___22 = 0; if ((int )__cond___22) { { __compiletime_assert_391(); } } else { } __cond___23 = 0; if ((int )__cond___23) { { __compiletime_assert_392(); } } else { } __cond___24 = 0; if ((int )__cond___24) { { __compiletime_assert_393(); } } else { } __cond___25 = 0; if ((int )__cond___25) { { __compiletime_assert_394(); } } else { } __cond___26 = 0; if ((int )__cond___26) { { __compiletime_assert_395(); } } else { } { rc = efx_mcdi_loopback_modes(efx, & efx->loopback_modes); } if (rc != 0) { goto fail; } else { } { efx->loopback_modes = efx->loopback_modes & 0xfffffffffffffffeULL; efx_mcdi_phy_decode_link(efx, & efx->link_state, ((efx_dword_t *)(& outbuf) + 2UL)->u32[0], ((efx_dword_t *)(& outbuf) + 4UL)->u32[0], ((efx_dword_t *)(& outbuf) + 5UL)->u32[0]); efx->wanted_fc = 3U; } if ((phy_data->supported_cap & 1024U) != 0U) { efx->wanted_fc = (u8 )((unsigned int )efx->wanted_fc | 4U); } else { } { efx_link_set_wanted_fc(efx, (int )efx->wanted_fc); } return (0); fail: { kfree((void const *)phy_data); } return (rc); } } int efx_mcdi_port_reconfigure(struct efx_nic *efx ) { struct efx_mcdi_phy_data *phy_cfg ; u32 caps ; u32 tmp ; u32 tmp___0 ; u32 tmp___1 ; int tmp___2 ; { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; if (efx->link_advertising != 0U) { { tmp = ethtool_to_mcdi_cap(efx->link_advertising); tmp___0 = tmp; } } else { tmp___0 = phy_cfg->forced_cap; } { caps = tmp___0; tmp___1 = efx_get_mcdi_phy_flags(efx); tmp___2 = efx_mcdi_set_link(efx, caps, tmp___1, (u32 )efx->loopback_mode, 0U); } return (tmp___2); } } static void efx_mcdi_phy_check_fcntl(struct efx_nic *efx , u32 lpa ) { struct efx_mcdi_phy_data *phy_cfg ; u32 rmtadv ; { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; if ((phy_cfg->supported_cap & 1024U) == 0U) { return; } else { } if (((int )efx->wanted_fc & 4) != 0) { return; } else { } rmtadv = 0U; if ((lpa & 256U) != 0U) { rmtadv = rmtadv | 8192U; } else { } if ((lpa & 512U) != 0U) { rmtadv = rmtadv | 16384U; } else { } if (((int )efx->wanted_fc & 1) != 0 && rmtadv == 16384U) { if ((efx->msg_enable & 4U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "warning: link partner doesn\'t support pause frames"); } } else { } } else { } return; } } extern void __compiletime_assert_471(void) ; static bool efx_mcdi_phy_poll(struct efx_nic *efx ) { struct efx_link_state old_state ; efx_dword_t outbuf[7U] ; int rc ; int __ret_warn_on ; int tmp ; long tmp___0 ; bool __cond ; bool tmp___1 ; int tmp___2 ; { { old_state = efx->link_state; tmp = mutex_is_locked(& efx->mac_lock); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mcdi_port.c", 469); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); __cond = 0; } if ((int )__cond) { { __compiletime_assert_471(); } } else { } { rc = efx_mcdi_rpc(efx, 41U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 28UL, (size_t *)0UL); } if (rc != 0) { efx->link_state.up = 0; } else { { efx_mcdi_phy_decode_link(efx, & efx->link_state, ((efx_dword_t *)(& outbuf) + 2UL)->u32[0], ((efx_dword_t *)(& outbuf) + 4UL)->u32[0], ((efx_dword_t *)(& outbuf) + 5UL)->u32[0]); } } { tmp___1 = efx_link_state_equal((struct efx_link_state const *)(& efx->link_state), (struct efx_link_state const *)(& old_state)); } if ((int )tmp___1 != 0) { tmp___2 = 0; } else { tmp___2 = 1; } return ((bool )tmp___2); } } static void efx_mcdi_phy_remove(struct efx_nic *efx ) { struct efx_mcdi_phy_data *phy_data ; { { phy_data = (struct efx_mcdi_phy_data *)efx->phy_data; efx->phy_data = (void *)0; kfree((void const *)phy_data); } return; } } extern void __compiletime_assert_513(void) ; static void efx_mcdi_phy_get_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) { struct efx_mcdi_phy_data *phy_cfg ; efx_dword_t outbuf[7U] ; int rc ; u32 tmp ; bool __cond ; { { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; ecmd->supported = mcdi_to_ethtool_cap(phy_cfg->media, phy_cfg->supported_cap); ecmd->advertising = efx->link_advertising; ethtool_cmd_speed_set(ecmd, efx->link_state.speed); ecmd->duplex = (__u8 )efx->link_state.fd; tmp = mcdi_to_ethtool_media(phy_cfg->media); ecmd->port = (__u8 )tmp; ecmd->phy_address = (__u8 )phy_cfg->port; ecmd->transceiver = 0U; ecmd->autoneg = (efx->link_advertising & 64U) != 0U; ecmd->mdio_support = (unsigned int )((__u8 )efx->mdio.mode_support) & 3U; __cond = 0; } if ((int )__cond) { { __compiletime_assert_513(); } } else { } { rc = efx_mcdi_rpc(efx, 41U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 28UL, (size_t *)0UL); } if (rc != 0) { return; } else { } { ecmd->lp_advertising = mcdi_to_ethtool_cap(phy_cfg->media, ((efx_dword_t *)(& outbuf) + 1UL)->u32[0]); } return; } } static int efx_mcdi_phy_set_settings(struct efx_nic *efx , struct ethtool_cmd *ecmd ) { struct efx_mcdi_phy_data *phy_cfg ; u32 caps ; int rc ; u32 tmp ; __u32 tmp___0 ; __u32 tmp___1 ; u32 tmp___2 ; { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; if ((unsigned int )ecmd->autoneg != 0U) { { tmp = ethtool_to_mcdi_cap(ecmd->advertising); caps = tmp | 1024U; } } else if ((unsigned int )ecmd->duplex != 0U) { { tmp___0 = ethtool_cmd_speed((struct ethtool_cmd const *)ecmd); } { if (tmp___0 == 10U) { goto case_10; } else { } if (tmp___0 == 100U) { goto case_100; } else { } if (tmp___0 == 1000U) { goto case_1000; } else { } if (tmp___0 == 10000U) { goto case_10000; } else { } if (tmp___0 == 40000U) { goto case_40000; } else { } goto switch_default; case_10: /* CIL Label */ caps = 4U; goto ldv_46403; case_100: /* CIL Label */ caps = 16U; goto ldv_46403; case_1000: /* CIL Label */ caps = 64U; goto ldv_46403; case_10000: /* CIL Label */ caps = 128U; goto ldv_46403; case_40000: /* CIL Label */ caps = 2048U; goto ldv_46403; switch_default: /* CIL Label */ ; return (-22); switch_break: /* CIL Label */ ; } ldv_46403: ; } else { { tmp___1 = ethtool_cmd_speed((struct ethtool_cmd const *)ecmd); } { if (tmp___1 == 10U) { goto case_10___0; } else { } if (tmp___1 == 100U) { goto case_100___0; } else { } if (tmp___1 == 1000U) { goto case_1000___0; } else { } goto switch_default___0; case_10___0: /* CIL Label */ caps = 2U; goto ldv_46410; case_100___0: /* CIL Label */ caps = 8U; goto ldv_46410; case_1000___0: /* CIL Label */ caps = 32U; goto ldv_46410; switch_default___0: /* CIL Label */ ; return (-22); switch_break___0: /* CIL Label */ ; } ldv_46410: ; } { tmp___2 = efx_get_mcdi_phy_flags(efx); rc = efx_mcdi_set_link(efx, caps, tmp___2, (u32 )efx->loopback_mode, 0U); } if (rc != 0) { return (rc); } else { } if ((unsigned int )ecmd->autoneg != 0U) { { efx_link_set_advertising(efx, ecmd->advertising | 64U); phy_cfg->forced_cap = 0U; } } else { { efx_link_set_advertising(efx, 0U); phy_cfg->forced_cap = caps; } } return (0); } } extern void __compiletime_assert_572(void) ; static int efx_mcdi_phy_test_alive(struct efx_nic *efx ) { efx_dword_t outbuf[1U] ; size_t outlen ; int rc ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_572(); } } else { } { rc = efx_mcdi_rpc(efx, 67U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 4UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 3UL) { return (-5); } else { } if (((efx_dword_t *)(& outbuf))->u32[0] != 1U) { return (-22); } else { } return (0); } } static char const * const mcdi_sft9001_cable_diag_names[8U] = { "cable.pairA.length", "cable.pairB.length", "cable.pairC.length", "cable.pairD.length", "cable.pairA.status", "cable.pairB.status", "cable.pairC.status", "cable.pairD.status"}; extern void __compiletime_assert_609(void) ; extern void __compiletime_assert_618(void) ; static int efx_mcdi_bist(struct efx_nic *efx , unsigned int bist_mode , int *results ) { unsigned int retry ; unsigned int i ; unsigned int count ; size_t outlen ; u32 status ; efx_dword_t inbuf[1U] ; efx_dword_t outbuf[9U] ; u8 *ptr ; int rc ; bool __cond ; bool __cond___0 ; unsigned int tmp ; { count = 0U; __cond = 0; if ((int )__cond) { { __compiletime_assert_609(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = bist_mode; rc = efx_mcdi_rpc(efx, 37U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { goto out; } else { } retry = 0U; goto ldv_46460; ldv_46459: __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_618(); } } else { } { rc = efx_mcdi_rpc(efx, 38U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 36UL, & outlen); } if (rc != 0) { goto out; } else { } status = ((efx_dword_t *)(& outbuf))->u32[0]; if (status != 1U) { goto finished; } else { } { msleep(100U); retry = retry + 1U; } ldv_46460: ; if (retry <= 99U) { goto ldv_46459; } else { } rc = -110; goto out; finished: tmp = count; count = count + 1U; *(results + (unsigned long )tmp) = status == 2U ? 1 : -1; if (efx->phy_type == 10U && bist_mode - 1U <= 1U) { ptr = (u8 *)(& outbuf) + 4UL; if (status == 2U && outlen > 35UL) { i = 0U; goto ldv_46463; ldv_46462: *(results + (unsigned long )(count + i)) = (int )((efx_dword_t *)ptr + (unsigned long )i)->u32[0]; i = i + 1U; ldv_46463: ; if (i <= 7U) { goto ldv_46462; } else { } } else { } count = count + 8U; } else { } rc = (int )count; out: ; return (rc); } } static int efx_mcdi_phy_run_tests(struct efx_nic *efx , int *results , unsigned int flags ) { struct efx_mcdi_phy_data *phy_cfg ; u32 mode ; int rc ; { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; if ((phy_cfg->flags & 64U) != 0U) { { rc = efx_mcdi_bist(efx, 5U, results); } if (rc < 0) { return (rc); } else { } results = results + (unsigned long )rc; } else { } mode = 0U; if ((phy_cfg->flags & 2U) != 0U) { if ((int )flags & 1 && (phy_cfg->flags & 4U) != 0U) { mode = 2U; } else { mode = 1U; } } else if ((phy_cfg->flags & 4U) != 0U) { mode = 2U; } else { } if (mode != 0U) { { rc = efx_mcdi_bist(efx, mode, results); } if (rc < 0) { return (rc); } else { } results = results + (unsigned long )rc; } else { } return (0); } } static char const *efx_mcdi_phy_test_name(struct efx_nic *efx , unsigned int index ) { struct efx_mcdi_phy_data *phy_cfg ; { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; if ((phy_cfg->flags & 64U) != 0U) { if (index == 0U) { return ("bist"); } else { } index = index - 1U; } else { } if ((phy_cfg->flags & 6U) != 0U) { if (index == 0U) { return ("cable"); } else { } index = index - 1U; if (efx->phy_type == 10U) { if (index <= 7U) { return ((char const *)mcdi_sft9001_cable_diag_names[index]); } else { } index = index - 8U; } else { } } else { } return ((char const *)0); } } extern void __compiletime_assert_740(void) ; static int efx_mcdi_phy_get_module_eeprom(struct efx_nic *efx , struct ethtool_eeprom *ee , u8 *data ) { efx_dword_t outbuf[63U] ; efx_dword_t inbuf[1U] ; size_t outlen ; int rc ; unsigned int payload_len ; unsigned int space_remaining ; unsigned int page ; unsigned int page_off ; unsigned int to_copy ; u8 *user_data ; bool __cond ; { space_remaining = ee->len; user_data = data; __cond = 0; if ((int )__cond) { { __compiletime_assert_740(); } } else { } page_off = ee->offset & 127U; page = ee->offset / 128U; goto ldv_46508; ldv_46507: { ((efx_dword_t *)(& inbuf))->u32[0] = page; rc = efx_mcdi_rpc(efx, 75U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 252UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 131UL) { return (-5); } else { } payload_len = ((efx_dword_t *)(& outbuf))->u32[0]; if (payload_len != 128U) { return (-5); } else { } { payload_len = payload_len - page_off; to_copy = space_remaining < payload_len ? space_remaining : payload_len; memcpy((void *)user_data, (void const *)(& outbuf) + ((unsigned long )page_off + 4UL), (size_t )to_copy); space_remaining = space_remaining - to_copy; user_data = user_data + (unsigned long )to_copy; page_off = 0U; page = page + 1U; } ldv_46508: ; if (space_remaining != 0U && page <= 1U) { goto ldv_46507; } else { } return (0); } } static int efx_mcdi_phy_get_module_info(struct efx_nic *efx , struct ethtool_modinfo *modinfo ) { struct efx_mcdi_phy_data *phy_cfg ; { phy_cfg = (struct efx_mcdi_phy_data *)efx->phy_data; { if (phy_cfg->media == 5U) { goto case_5; } else { } goto switch_default; case_5: /* CIL Label */ modinfo->type = 1U; modinfo->eeprom_len = 256U; return (0); switch_default: /* CIL Label */ ; return (-95); switch_break: /* CIL Label */ ; } } } static struct efx_phy_operations const efx_mcdi_phy_ops = {& efx_mcdi_phy_probe, & efx_port_dummy_op_int, & efx_port_dummy_op_void, & efx_mcdi_phy_remove, & efx_mcdi_port_reconfigure, & efx_mcdi_phy_poll, & efx_mcdi_phy_get_settings, & efx_mcdi_phy_set_settings, 0, & efx_mcdi_phy_test_alive, & efx_mcdi_phy_test_name, & efx_mcdi_phy_run_tests, & efx_mcdi_phy_get_module_eeprom, & efx_mcdi_phy_get_module_info}; u32 efx_mcdi_phy_get_caps(struct efx_nic *efx ) { struct efx_mcdi_phy_data *phy_data ; { phy_data = (struct efx_mcdi_phy_data *)efx->phy_data; return (phy_data->supported_cap); } } static unsigned int efx_mcdi_event_link_speed[5U] = { 0U, 100U, 1000U, 10000U, 40000U}; void efx_mcdi_process_link_change(struct efx_nic *efx , efx_qword_t *ev ) { u32 flags ; u32 fcntl ; u32 speed ; u32 lpa ; { { speed = (u32 )(ev->u64[0] >> 16) & 15U; speed = efx_mcdi_event_link_speed[speed]; flags = (u32 )(ev->u64[0] >> 24) & 255U; fcntl = (u32 )(ev->u64[0] >> 20) & 15U; lpa = (u32 )ev->u64[0] & 65535U; efx_mcdi_phy_decode_link(efx, & efx->link_state, speed, flags, fcntl); efx_mcdi_phy_check_fcntl(efx, lpa); efx_link_status_changed(efx); } return; } } extern void __compiletime_assert_855(void) ; int efx_mcdi_set_mac(struct efx_nic *efx ) { u32 fcntl ; efx_dword_t cmdbytes[6U] ; bool __cond ; int tmp ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_855(); } } else { } { memcpy((void *)(& cmdbytes) + 8U, (void const *)(efx->net_dev)->dev_addr, 6UL); ((efx_dword_t *)(& cmdbytes))->u32[0] = (((efx->net_dev)->mtu + 29U) & 4294967288U) + 16U; ((efx_dword_t *)(& cmdbytes) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& cmdbytes) + 4UL)->u32[0] = (unsigned int )efx->unicast_filter; } { if ((int )efx->wanted_fc == 3) { goto case_3; } else { } if ((int )efx->wanted_fc == 2) { goto case_2; } else { } goto switch_default; case_3: /* CIL Label */ fcntl = 2U; goto ldv_46547; case_2: /* CIL Label */ fcntl = 1U; goto ldv_46547; switch_default: /* CIL Label */ fcntl = 0U; goto ldv_46547; switch_break: /* CIL Label */ ; } ldv_46547: ; if (((int )efx->wanted_fc & 4) != 0) { fcntl = 3U; } else { } if (efx->fc_disable != 0U) { fcntl = 0U; } else { } { ((efx_dword_t *)(& cmdbytes) + 5UL)->u32[0] = fcntl; tmp = efx_mcdi_rpc(efx, 44U, (efx_dword_t const *)(& cmdbytes), 24UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (tmp); } } extern void __compiletime_assert_896(void) ; bool efx_mcdi_mac_check_fault(struct efx_nic *efx ) { efx_dword_t outbuf[7U] ; size_t outlength ; int rc ; bool __cond ; { __cond = 0; if ((int )__cond) { { __compiletime_assert_896(); } } else { } { rc = efx_mcdi_rpc(efx, 41U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 28UL, & outlength); } if (rc != 0) { return (1); } else { } return (((efx_dword_t *)(& outbuf) + 6UL)->u32[0] != 0U); } } extern void __compiletime_assert_924(void) ; static int efx_mcdi_mac_stats(struct efx_nic *efx , enum efx_stats_action action , int clear ) { efx_dword_t inbuf[4U] ; int rc ; int change ; int enable ; int period ; dma_addr_t dma_addr ; u32 dma_len ; bool __cond ; { change = (unsigned int )action != 2U; enable = (unsigned int )action == 0U; period = (unsigned int )action == 0U ? 1000 : 0; dma_addr = efx->stats_buffer.dma_addr; dma_len = (unsigned int )action != 1U ? 776U : 0U; __cond = 0; if ((int )__cond) { { __compiletime_assert_924(); } } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )dma_addr; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )(dma_addr >> 32); ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (((((unsigned int )(enable != 0) | ((unsigned int )clear << 1)) | ((unsigned int )change << 2)) | ((unsigned int )enable << 3)) | ((unsigned int )period << 16)) | 32U; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = dma_len; rc = efx_mcdi_rpc(efx, 46U, (efx_dword_t const *)(& inbuf), 16UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (rc); } } void efx_mcdi_mac_start_stats(struct efx_nic *efx ) { __le64 *dma_stats ; { { dma_stats = (__le64 *)efx->stats_buffer.addr; *(dma_stats + 96UL) = 0xffffffffffffffffULL; efx_mcdi_mac_stats(efx, 0, 0); } return; } } void efx_mcdi_mac_stop_stats(struct efx_nic *efx ) { { { efx_mcdi_mac_stats(efx, 1, 0); } return; } } void efx_mcdi_mac_pull_stats(struct efx_nic *efx ) { __le64 *dma_stats ; int attempts ; int tmp ; { { dma_stats = (__le64 *)efx->stats_buffer.addr; attempts = 10; *(dma_stats + 96UL) = 0xffffffffffffffffULL; efx_mcdi_mac_stats(efx, 2, 0); } goto ldv_46607; ldv_46606: { __const_udelay(429500UL); } ldv_46607: ; if (*(dma_stats + 96UL) == 0xffffffffffffffffULL) { tmp = attempts; attempts = attempts - 1; if (tmp != 0) { goto ldv_46606; } else { goto ldv_46608; } } else { } ldv_46608: ; return; } } int efx_mcdi_port_probe(struct efx_nic *efx ) { int rc ; struct _ddebug descriptor ; phys_addr_t tmp ; long tmp___0 ; { { efx->phy_op = & efx_mcdi_phy_ops; efx->mdio.mode_support = 6U; efx->mdio.mdio_read = & efx_mcdi_mdio_read; efx->mdio.mdio_write = & efx_mcdi_mdio_write; rc = (*((efx->phy_op)->probe))(efx); } if (rc != 0) { return (rc); } else { } { rc = efx_nic_alloc_buffer(efx, & efx->stats_buffer, 776U, 208U); } if (rc != 0) { return (rc); } else { } if ((efx->msg_enable & 2U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_mcdi_port_probe"; descriptor.filename = "drivers/net/ethernet/sfc/mcdi_port.c"; descriptor.format = "stats buffer at %llx (virt %p phys %llx)\n"; descriptor.lineno = 999U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp___0 != 0L) { { tmp = virt_to_phys((void volatile *)efx->stats_buffer.addr); __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "stats buffer at %llx (virt %p phys %llx)\n", efx->stats_buffer.dma_addr, efx->stats_buffer.addr, tmp); } } else { } } else { } { efx_mcdi_mac_stats(efx, 1, 1); } return (0); } } void efx_mcdi_port_remove(struct efx_nic *efx ) { { { (*((efx->phy_op)->remove))(efx); efx_nic_free_buffer(efx, & efx->stats_buffer); } return; } } int efx_mcdi_port_get_number(struct efx_nic *efx ) { efx_dword_t outbuf[1U] ; int rc ; { { rc = efx_mcdi_rpc(efx, 184U, (efx_dword_t const *)0, 0UL, (efx_dword_t *)(& outbuf), 4UL, (size_t *)0UL); } if (rc != 0) { return (rc); } else { } return ((int )((efx_dword_t *)(& outbuf))->u32[0]); } } struct efx_phy_operations *ldv_10_container_struct_efx_phy_operations ; int (*ldv_10_callback_get_module_eeprom)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) = & efx_mcdi_phy_get_module_eeprom; int (*ldv_10_callback_get_module_info)(struct efx_nic * , struct ethtool_modinfo * ) = & efx_mcdi_phy_get_module_info; void (*ldv_10_callback_get_settings)(struct efx_nic * , struct ethtool_cmd * ) = & efx_mcdi_phy_get_settings; _Bool (*ldv_10_callback_poll)(struct efx_nic * ) = & efx_mcdi_phy_poll; int (*ldv_10_callback_run_tests)(struct efx_nic * , int * , unsigned int ) = & efx_mcdi_phy_run_tests; int (*ldv_10_callback_set_settings)(struct efx_nic * , struct ethtool_cmd * ) = & efx_mcdi_phy_set_settings; int (*ldv_10_callback_test_alive)(struct efx_nic * ) = & efx_mcdi_phy_test_alive; char *(*ldv_10_callback_test_name)(struct efx_nic * , unsigned int ) = (char *(*)(struct efx_nic * , unsigned int ))(& efx_mcdi_phy_test_name); void ldv_io_instance_callback_10_107(_Bool (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_phy_poll(arg1); } return; } } void ldv_io_instance_callback_10_129(int (*arg0)(struct efx_nic * , int * , unsigned int ) , struct efx_nic *arg1 , int *arg2 , unsigned int arg3 ) { { { efx_mcdi_phy_run_tests(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_10_142(int (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { efx_mcdi_phy_set_settings(arg1, arg2); } return; } } void ldv_io_instance_callback_10_148(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_phy_test_alive(arg1); } return; } } void ldv_io_instance_callback_10_150(char *(*arg0)(struct efx_nic * , unsigned int ) , struct efx_nic *arg1 , unsigned int arg2 ) { { { efx_mcdi_phy_test_name(arg1, arg2); } return; } } void ldv_io_instance_callback_10_59(int (*arg0)(struct efx_nic * , struct ethtool_eeprom * , unsigned char * ) , struct efx_nic *arg1 , struct ethtool_eeprom *arg2 , unsigned char *arg3 ) { { { efx_mcdi_phy_get_module_eeprom(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_10_62(int (*arg0)(struct efx_nic * , struct ethtool_modinfo * ) , struct efx_nic *arg1 , struct ethtool_modinfo *arg2 ) { { { efx_mcdi_phy_get_module_info(arg1, arg2); } return; } } void ldv_io_instance_callback_10_66(void (*arg0)(struct efx_nic * , struct ethtool_cmd * ) , struct efx_nic *arg1 , struct ethtool_cmd *arg2 ) { { { efx_mcdi_phy_get_settings(arg1, arg2); } return; } } int ldv_io_instance_probe_10_11(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_mcdi_phy_probe(arg1); } return (tmp); } } int ldv_io_instance_probe_10_161(int (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { int tmp ; { { tmp = efx_mcdi_phy_probe(arg1); } return (tmp); } } void ldv_io_instance_release_10_17(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_phy_remove(arg1); } return; } } void ldv_io_instance_release_10_2(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_mcdi_phy_remove(arg1); } return; } } long ldv_is_err(void const *ptr ) ; long ldv_ptr_err(void const *ptr ) ; __inline static long PTR_ERR(void const *ptr ) ; __inline static long IS_ERR(void const *ptr ) ; static void *ldv_dev_get_drvdata_66(struct device const *dev ) ; extern struct device *hwmon_device_register_with_groups(struct device * , char const * , void * , struct attribute_group const ** ) ; extern void hwmon_device_unregister(struct device * ) ; __inline static struct efx_mcdi_mon *efx_mcdi_mon(struct efx_nic *efx ) { { return (& (efx->mcdi)->hwmon); } } static char const * const efx_hwmon_unit[6U] = { 0, " degC", " rpm", " mV", " mA", " W"}; static struct __anonstruct_efx_mcdi_sensor_type_248 const efx_mcdi_sensor_type[46U] = { {"Controller board temp.", 1, -1}, {"PHY temp.", 1, -1}, {"Controller heat sink", 2, -1}, {"PHY temp.", 1, 0}, {"PHY heat sink", 2, 0}, {"PHY temp.", 1, 1}, {"PHY heat sink", 2, 1}, {"1.0V supply", 3, -1}, {"1.2V supply", 3, -1}, {"1.8V supply", 3, -1}, {"2.5V supply", 3, -1}, {"3.3V supply", 3, -1}, {"12.0V supply", 3, -1}, {"1.2V analogue supply", 3, -1}, {"Ref. voltage", 3, -1}, {"AOE FPGA supply", 3, -1}, {"AOE FPGA temp.", 1, -1}, {"AOE regulator temp.", 1, -1}, {"Controller regulator temp.", 1, -1}, {"Fan 0", 2, -1}, {"Fan 1", 2, -1}, {"Fan 2", 2, -1}, {"Fan 3", 2, -1}, {"Fan 4", 2, -1}, {"AOE input supply", 3, -1}, {"AOE output current", 4, -1}, {"AOE input current", 4, -1}, {"Board power use", 5, -1}, {"0.9V supply", 3, -1}, {"0.9V supply current", 4, -1}, {"1.2V supply current", 4, -1}, {0, 0, 0}, {"0.9V supply (ext. ADC)", 3, -1}, {"Controller board temp. 2", 1, -1}, {"Regulator die temp.", 1, -1}, {"0.9V regulator temp.", 1, -1}, {"1.2V regulator temp.", 1, -1}, {"Controller PTAT voltage (int. ADC)", 3, -1}, {"Controller die temp. (int. ADC)", 1, -1}, {"Controller PTAT voltage (ext. ADC)", 3, -1}, {"Controller die temp. (ext. ADC)", 1, -1}, {"Ambient temp.", 1, -1}, {"Air flow raw", 3, -1}, {"0.9V die (int. ADC)", 3, -1}, {"0.9V die (ext. ADC)", 3, -1}, {"Controller board temp. (hotpoint)", 1, -1}}; static char const * const sensor_status_names[5U] = { "OK", "Warning", "Fatal", "Device failure", "No reading"}; void efx_mcdi_sensor_event(struct efx_nic *efx , efx_qword_t *ev ) { unsigned int type ; unsigned int state ; unsigned int value ; enum efx_hwmon_type hwmon_type ; char const *name ; char const *state_txt ; char const *unit ; { hwmon_type = 0; name = (char const *)0; type = (unsigned int )ev->u64[0] & 255U; state = (unsigned int )(ev->u64[0] >> 8) & 255U; value = (unsigned int )(ev->u64[0] >> 16) & 65535U; if (type <= 45U) { name = efx_mcdi_sensor_type[type].label; hwmon_type = efx_mcdi_sensor_type[type].hwmon_type; } else { } if ((unsigned long )name == (unsigned long )((char const *)0)) { name = "No sensor name available"; } else { } state_txt = sensor_status_names[state]; unit = efx_hwmon_unit[(unsigned int )hwmon_type]; if ((unsigned long )unit == (unsigned long )((char const *)0)) { unit = ""; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "Sensor %d (%s) reports condition \'%s\' for value %d%s\n", type, name, state_txt, value, unit); } } else { } return; } } static int efx_mcdi_mon_update(struct efx_nic *efx ) { struct efx_mcdi_mon *hwmon ; struct efx_mcdi_mon *tmp ; efx_dword_t inbuf[3U] ; int rc ; { { tmp = efx_mcdi_mon(efx); hwmon = tmp; ((efx_dword_t *)(& inbuf))->u32[0] = (unsigned int )hwmon->dma_buf.dma_addr; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = (unsigned int )(hwmon->dma_buf.dma_addr >> 32); ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = hwmon->dma_buf.len; rc = efx_mcdi_rpc(efx, 66U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc == 0) { hwmon->last_update = jiffies; } else { } return (rc); } } extern void __compiletime_assert_171(void) ; static int efx_mcdi_mon_get_entry(struct device *dev , unsigned int index , efx_dword_t *entry ) { struct efx_nic *efx ; void *tmp ; struct efx_mcdi_mon *hwmon ; struct efx_mcdi_mon *tmp___0 ; int rc ; bool __cond ; { { tmp = ldv_dev_get_drvdata_66((struct device const *)dev->parent); efx = (struct efx_nic *)tmp; tmp___0 = efx_mcdi_mon(efx); hwmon = tmp___0; __cond = 0; } if ((int )__cond) { { __compiletime_assert_171(); } } else { } { mutex_lock_nested(& hwmon->update_lock, 0U); } if ((long )(((unsigned long )jiffies - hwmon->last_update) - 250UL) < 0L) { rc = 0; } else { { rc = efx_mcdi_mon_update(efx); } } { *entry = *((efx_dword_t *)hwmon->dma_buf.addr + (unsigned long )index); mutex_unlock(& hwmon->update_lock); } return (rc); } } static ssize_t efx_mcdi_mon_show_value(struct device *dev , struct device_attribute *attr , char *buf ) { struct efx_mcdi_mon_attribute *mon_attr ; struct device_attribute const *__mptr ; efx_dword_t entry ; unsigned int value ; unsigned int state ; int rc ; int tmp ; { { __mptr = (struct device_attribute const *)attr; mon_attr = (struct efx_mcdi_mon_attribute *)__mptr; rc = efx_mcdi_mon_get_entry(dev, mon_attr->index, & entry); } if (rc != 0) { return ((ssize_t )rc); } else { } state = (entry.u32[0] >> 16) & 255U; if (state == 4U) { return (-16L); } else { } value = entry.u32[0] & 65535U; { if ((unsigned int )mon_attr->hwmon_type == 1U) { goto case_1; } else { } if ((unsigned int )mon_attr->hwmon_type == 5U) { goto case_5; } else { } goto switch_default; case_1: /* CIL Label */ value = value * 1000U; goto ldv_46056; case_5: /* CIL Label */ value = value * 1000000U; goto ldv_46056; switch_default: /* CIL Label */ ; goto ldv_46056; switch_break: /* CIL Label */ ; } ldv_46056: { tmp = sprintf(buf, "%u\n", value); } return ((ssize_t )tmp); } } static ssize_t efx_mcdi_mon_show_limit(struct device *dev , struct device_attribute *attr , char *buf ) { struct efx_mcdi_mon_attribute *mon_attr ; struct device_attribute const *__mptr ; unsigned int value ; int tmp ; { __mptr = (struct device_attribute const *)attr; mon_attr = (struct efx_mcdi_mon_attribute *)__mptr; value = mon_attr->limit_value; { if ((unsigned int )mon_attr->hwmon_type == 1U) { goto case_1; } else { } if ((unsigned int )mon_attr->hwmon_type == 5U) { goto case_5; } else { } goto switch_default; case_1: /* CIL Label */ value = value * 1000U; goto ldv_46069; case_5: /* CIL Label */ value = value * 1000000U; goto ldv_46069; switch_default: /* CIL Label */ ; goto ldv_46069; switch_break: /* CIL Label */ ; } ldv_46069: { tmp = sprintf(buf, "%u\n", value); } return ((ssize_t )tmp); } } static ssize_t efx_mcdi_mon_show_alarm(struct device *dev , struct device_attribute *attr , char *buf ) { struct efx_mcdi_mon_attribute *mon_attr ; struct device_attribute const *__mptr ; efx_dword_t entry ; int state ; int rc ; int tmp ; { { __mptr = (struct device_attribute const *)attr; mon_attr = (struct efx_mcdi_mon_attribute *)__mptr; rc = efx_mcdi_mon_get_entry(dev, mon_attr->index, & entry); } if (rc != 0) { return ((ssize_t )rc); } else { } { state = (int )(entry.u32[0] >> 16) & 255; tmp = sprintf(buf, "%d\n", state != 0); } return ((ssize_t )tmp); } } static ssize_t efx_mcdi_mon_show_label(struct device *dev , struct device_attribute *attr , char *buf ) { struct efx_mcdi_mon_attribute *mon_attr ; struct device_attribute const *__mptr ; int tmp ; { { __mptr = (struct device_attribute const *)attr; mon_attr = (struct efx_mcdi_mon_attribute *)__mptr; tmp = sprintf(buf, "%s\n", efx_mcdi_sensor_type[mon_attr->type].label); } return ((ssize_t )tmp); } } static void efx_mcdi_mon_add_attr(struct efx_nic *efx , char const *name , ssize_t (*reader)(struct device * , struct device_attribute * , char * ) , unsigned int index , unsigned int type , unsigned int limit_value ) { struct efx_mcdi_mon *hwmon ; struct efx_mcdi_mon *tmp ; struct efx_mcdi_mon_attribute *attr ; struct lock_class_key __key ; unsigned int tmp___0 ; { { tmp = efx_mcdi_mon(efx); hwmon = tmp; attr = hwmon->attrs + (unsigned long )hwmon->n_attrs; strlcpy((char *)(& attr->name), name, 12UL); attr->index = index; attr->type = type; } if (type <= 45U) { attr->hwmon_type = efx_mcdi_sensor_type[type].hwmon_type; } else { attr->hwmon_type = 0; } attr->limit_value = limit_value; attr->dev_attr.attr.key = & __key; attr->dev_attr.attr.name = (char const *)(& attr->name); attr->dev_attr.attr.mode = 292U; attr->dev_attr.show = reader; tmp___0 = hwmon->n_attrs; hwmon->n_attrs = hwmon->n_attrs + 1U; *(hwmon->group.attrs + (unsigned long )tmp___0) = & attr->dev_attr.attr; return; } } int efx_mcdi_mon_probe(struct efx_nic *efx ) { unsigned int n_temp ; unsigned int n_cool ; unsigned int n_in ; unsigned int n_curr ; unsigned int n_power ; struct efx_mcdi_mon *hwmon ; struct efx_mcdi_mon *tmp ; efx_dword_t inbuf[1U] ; efx_dword_t outbuf[63U] ; unsigned int n_pages ; unsigned int n_sensors ; unsigned int n_attrs ; unsigned int page ; size_t outlen ; char name[12U] ; u32 mask ; int rc ; int i ; int j ; int type ; unsigned int tmp___0 ; struct lock_class_key __key ; void *tmp___1 ; void *tmp___2 ; enum efx_hwmon_type hwmon_type ; char const *hwmon_prefix ; unsigned int hwmon_index ; u16 min1 ; u16 max1 ; u16 min2 ; u16 max2 ; unsigned int tmp___3 ; unsigned int tmp___4 ; unsigned int tmp___5 ; long tmp___6 ; long tmp___7 ; { { n_temp = 0U; n_cool = 0U; n_in = 0U; n_curr = 0U; n_power = 0U; tmp = efx_mcdi_mon(efx); hwmon = tmp; n_sensors = 0U; page = 0U; } ldv_46135: { ((efx_dword_t *)(& inbuf))->u32[0] = page; rc = efx_mcdi_rpc(efx, 65U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 252UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 3UL) { return (-5); } else { } { mask = ((efx_dword_t *)(& outbuf))->u32[0]; tmp___0 = __arch_hweight32(mask & 2147483647U); n_sensors = n_sensors + tmp___0; page = page + 1U; } if ((int )mask < 0) { goto ldv_46135; } else { } n_pages = page; if (n_sensors == 0U) { return (0); } else { } { rc = efx_nic_alloc_buffer(efx, & hwmon->dma_buf, n_sensors * 4U, 208U); } if (rc != 0) { return (rc); } else { } { __mutex_init(& hwmon->update_lock, "&hwmon->update_lock", & __key); efx_mcdi_mon_update(efx); n_attrs = n_sensors * 6U; tmp___1 = kcalloc((size_t )n_attrs, 80UL, 208U); hwmon->attrs = (struct efx_mcdi_mon_attribute *)tmp___1; } if ((unsigned long )hwmon->attrs == (unsigned long )((struct efx_mcdi_mon_attribute *)0)) { rc = -12; goto fail; } else { } { tmp___2 = kcalloc((size_t )(n_attrs + 1U), 8UL, 208U); hwmon->group.attrs = (struct attribute **)tmp___2; } if ((unsigned long )hwmon->group.attrs == (unsigned long )((struct attribute **)0)) { rc = -12; goto fail; } else { } i = 0; j = -1; type = -1; ldv_46198: ; ldv_46153: type = type + 1; if (((unsigned int )type & 31U) == 0U) { page = (unsigned int )(type / 32); j = -1; if (page == n_pages) { goto hwmon_register; } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = page; rc = efx_mcdi_rpc(efx, 65U, (efx_dword_t const *)(& inbuf), 4UL, (efx_dword_t *)(& outbuf), 252UL, & outlen); } if (rc != 0) { goto fail; } else { } if (outlen <= 3UL) { rc = -5; goto fail; } else { } { mask = ((efx_dword_t *)(& outbuf))->u32[0] & 2147483647U; tmp___3 = __arch_hweight32(mask); } if (outlen < (size_t )(tmp___3 * 8U + 4U)) { rc = -5; goto fail; } else { } } else { } if ((mask & (u32 )(1 << type % 32)) == 0U) { goto ldv_46153; } else { } j = j + 1; if ((unsigned int )type <= 45U) { hwmon_type = efx_mcdi_sensor_type[type].hwmon_type; if ((unsigned int )hwmon_type != 0U && (int )efx_mcdi_sensor_type[type].port >= 0) { { tmp___4 = efx_port_num(efx); } if ((unsigned int )efx_mcdi_sensor_type[type].port != tmp___4) { goto ldv_46157; } else { } } else { } } else { hwmon_type = 0; } { if ((unsigned int )hwmon_type == 1U) { goto case_1; } else { } if ((unsigned int )hwmon_type == 2U) { goto case_2; } else { } if ((unsigned int )hwmon_type == 4U) { goto case_4; } else { } if ((unsigned int )hwmon_type == 5U) { goto case_5; } else { } goto switch_default; case_1: /* CIL Label */ hwmon_prefix = "temp"; n_temp = n_temp + 1U; hwmon_index = n_temp; goto ldv_46159; case_2: /* CIL Label */ hwmon_prefix = "fan"; n_cool = n_cool + 1U; hwmon_index = n_cool; goto ldv_46159; switch_default: /* CIL Label */ hwmon_prefix = "in"; tmp___5 = n_in; n_in = n_in + 1U; hwmon_index = tmp___5; goto ldv_46159; case_4: /* CIL Label */ hwmon_prefix = "curr"; n_curr = n_curr + 1U; hwmon_index = n_curr; goto ldv_46159; case_5: /* CIL Label */ hwmon_prefix = "power"; n_power = n_power + 1U; hwmon_index = n_power; goto ldv_46159; switch_break: /* CIL Label */ ; } ldv_46159: min1 = (u16 )((efx_dword_t *)(& outbuf) + ((unsigned long )j * 8UL + 4UL))->u32[0]; max1 = (u16 )(((efx_dword_t *)(& outbuf) + ((unsigned long )j * 8UL + 4UL))->u32[0] >> 16); min2 = (u16 )((efx_dword_t *)(& outbuf) + ((unsigned long )j + 1UL) * 8UL)->u32[0]; max2 = (u16 )(((efx_dword_t *)(& outbuf) + ((unsigned long )j + 1UL) * 8UL)->u32[0] >> 16); if ((int )min1 != (int )max1) { { snprintf((char *)(& name), 12UL, "%s%u_input", hwmon_prefix, hwmon_index); efx_mcdi_mon_add_attr(efx, (char const *)(& name), & efx_mcdi_mon_show_value, (unsigned int )i, (unsigned int )type, 0U); } if ((unsigned int )hwmon_type != 5U) { { snprintf((char *)(& name), 12UL, "%s%u_min", hwmon_prefix, hwmon_index); efx_mcdi_mon_add_attr(efx, (char const *)(& name), & efx_mcdi_mon_show_limit, (unsigned int )i, (unsigned int )type, (unsigned int )min1); } } else { } { snprintf((char *)(& name), 12UL, "%s%u_max", hwmon_prefix, hwmon_index); efx_mcdi_mon_add_attr(efx, (char const *)(& name), & efx_mcdi_mon_show_limit, (unsigned int )i, (unsigned int )type, (unsigned int )max1); } if ((int )min2 != (int )max2) { { snprintf((char *)(& name), 12UL, "%s%u_crit", hwmon_prefix, hwmon_index); efx_mcdi_mon_add_attr(efx, (char const *)(& name), & efx_mcdi_mon_show_limit, (unsigned int )i, (unsigned int )type, (unsigned int )max2); } } else { } } else { } { snprintf((char *)(& name), 12UL, "%s%u_alarm", hwmon_prefix, hwmon_index); efx_mcdi_mon_add_attr(efx, (char const *)(& name), & efx_mcdi_mon_show_alarm, (unsigned int )i, (unsigned int )type, 0U); } if ((unsigned int )type <= 45U && (unsigned long )efx_mcdi_sensor_type[type].label != (unsigned long )((char const */* const */)0)) { { snprintf((char *)(& name), 12UL, "%s%u_label", hwmon_prefix, hwmon_index); efx_mcdi_mon_add_attr(efx, (char const *)(& name), & efx_mcdi_mon_show_label, (unsigned int )i, (unsigned int )type, 0U); } } else { } ldv_46157: i = i + 1; goto ldv_46198; hwmon_register: { hwmon->groups[0] = (struct attribute_group const *)(& hwmon->group); hwmon->device = hwmon_device_register_with_groups(& (efx->pci_dev)->dev, "sfc", (void *)0, (struct attribute_group const **)(& hwmon->groups)); tmp___7 = IS_ERR((void const *)hwmon->device); } if (tmp___7 != 0L) { { tmp___6 = PTR_ERR((void const *)hwmon->device); rc = (int )tmp___6; } goto fail; } else { } return (0); fail: { efx_mcdi_mon_remove(efx); } return (rc); } } void efx_mcdi_mon_remove(struct efx_nic *efx ) { struct efx_mcdi_mon *hwmon ; struct efx_mcdi_mon *tmp ; { { tmp = efx_mcdi_mon(efx); hwmon = tmp; } if ((unsigned long )hwmon->device != (unsigned long )((struct device *)0)) { { hwmon_device_unregister(hwmon->device); } } else { } { kfree((void const *)hwmon->attrs); kfree((void const *)hwmon->group.attrs); efx_nic_free_buffer(efx, & hwmon->dma_buf); } return; } } __inline static long PTR_ERR(void const *ptr ) { long tmp ; { { tmp = ldv_ptr_err(ptr); } return (tmp); } } __inline static long IS_ERR(void const *ptr ) { long tmp ; { { tmp = ldv_is_err(ptr); } return (tmp); } } static void *ldv_dev_get_drvdata_66(struct device const *dev ) { void *tmp ; { { tmp = ldv_dev_get_drvdata(dev); } return (tmp); } } __inline static void list_add(struct list_head *new , struct list_head *head ) { { { __list_add(new, head, head->next); } return; } } extern void __list_del_entry(struct list_head * ) ; __inline static void list_move(struct list_head *list , struct list_head *head ) { { { __list_del_entry(list); list_add(list, head); } return; } } extern void might_fault(void) ; __inline static u32 __iter_div_u64_rem(u64 dividend , u32 divisor , u64 *remainder ) { u32 ret ; { ret = 0U; goto ldv_4923; ldv_4922: __asm__ ("": "+rm" (dividend)); dividend = dividend - (u64 )divisor; ret = ret + 1U; ldv_4923: ; if (dividend >= (u64 )divisor) { goto ldv_4922; } else { } *remainder = dividend; return (ret); } } __inline static long PTR_ERR(void const *ptr ) ; __inline static long IS_ERR(void const *ptr ) ; void ldv_spin_lock_evt_lock_of_efx_ptp_data(void) ; void ldv_spin_unlock_evt_lock_of_efx_ptp_data(void) ; __inline static void ldv_spin_lock_bh_93___0(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_93___0(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_93___0(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_93___0(spinlock_t *lock ) ; __inline static void ldv_spin_lock_bh_93___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_94___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_94___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_94___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_94___0(spinlock_t *lock ) ; __inline static void ldv_spin_unlock_bh_94___0(spinlock_t *lock ) ; __inline static int timespec_compare(struct timespec const *lhs , struct timespec const *rhs ) { { if ((long )lhs->tv_sec < (long )rhs->tv_sec) { return (-1); } else { } if ((long )lhs->tv_sec > (long )rhs->tv_sec) { return (1); } else { } return ((int )((unsigned int )lhs->tv_nsec - (unsigned int )rhs->tv_nsec)); } } extern void set_normalized_timespec(struct timespec * , time_t , s64 ) ; __inline static struct timespec timespec_sub(struct timespec lhs , struct timespec rhs ) { struct timespec ts_delta ; { { set_normalized_timespec(& ts_delta, lhs.tv_sec - rhs.tv_sec, (s64 )(lhs.tv_nsec - rhs.tv_nsec)); } return (ts_delta); } } extern void getnstimeofday(struct timespec * ) ; __inline static s64 timespec_to_ns(struct timespec const *ts ) { { return ((long long )ts->tv_sec * 1000000000LL + (long long )ts->tv_nsec); } } extern struct timespec ns_to_timespec(s64 const ) ; __inline static void timespec_add_ns(struct timespec *a , u64 ns ) { u32 tmp ; { { tmp = __iter_div_u64_rem((unsigned long long )a->tv_nsec + ns, 1000000000U, & ns); a->tv_sec = a->tv_sec + (__kernel_time_t )tmp; a->tv_nsec = (long )ns; } return; } } __inline static ktime_t ktime_set(long const secs , unsigned long const nsecs ) { ktime_t __constr_expr_0 ; long tmp ; ktime_t __constr_expr_1 ; { { tmp = ldv__builtin_expect((long long )secs > 9223372035LL, 0L); } if (tmp != 0L) { __constr_expr_0.tv64 = 9223372036854775807LL; return (__constr_expr_0); } else { } __constr_expr_1.tv64 = (long long )secs * 1000000000LL + (long long )nsecs; return (__constr_expr_1); } } __inline static void *kzalloc(size_t size , gfp_t flags ) ; 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 ; long tmp ; long tmp___0 ; { { sz = -1; might_fault(); tmp = ldv__builtin_expect(sz < 0, 1L); } if (tmp != 0L) { { n = _copy_from_user(to, from, (unsigned int )n); } } else { { tmp___0 = ldv__builtin_expect((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 ; long tmp ; long tmp___0 ; { { sz = -1; might_fault(); tmp = ldv__builtin_expect(sz < 0, 1L); } if (tmp != 0L) { { n = _copy_to_user(to, from, (unsigned int )n); } } else { { tmp___0 = ldv__builtin_expect((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 struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb ) { unsigned char *tmp ; { { tmp = skb_end_pointer((struct sk_buff const *)skb); } return (& ((struct skb_shared_info *)tmp)->hwtstamps); } } __inline static struct sk_buff *skb_peek(struct sk_buff_head const *list_ ) { struct sk_buff *skb ; { skb = list_->next; if ((unsigned long )skb == (unsigned long )((struct sk_buff *)list_)) { skb = (struct sk_buff *)0; } else { } return (skb); } } __inline static void __skb_queue_head_init(struct sk_buff_head *list ) { struct sk_buff *tmp ; { tmp = (struct sk_buff *)list; list->next = tmp; list->prev = tmp; list->qlen = 0U; return; } } __inline static void skb_queue_head_init(struct sk_buff_head *list ) { struct lock_class_key __key ; { { spinlock_check(& list->lock); __raw_spin_lock_init(& list->lock.__annonCompField19.rlock, "&(&list->lock)->rlock", & __key); __skb_queue_head_init(list); } return; } } __inline static void __skb_insert(struct sk_buff *newsk , struct sk_buff *prev , struct sk_buff *next , struct sk_buff_head *list ) { struct sk_buff *tmp ; { newsk->next = next; newsk->prev = prev; tmp = newsk; prev->next = tmp; next->prev = tmp; list->qlen = list->qlen + 1U; return; } } __inline static void __skb_queue_before(struct sk_buff_head *list , struct sk_buff *next , struct sk_buff *newsk ) { { { __skb_insert(newsk, next->prev, next, list); } return; } } extern void skb_queue_head(struct sk_buff_head * , struct sk_buff * ) ; extern void skb_queue_tail(struct sk_buff_head * , struct sk_buff * ) ; __inline static void __skb_queue_tail(struct sk_buff_head *list , struct sk_buff *newsk ) { { { __skb_queue_before(list, (struct sk_buff *)list, newsk); } return; } } __inline static void __skb_unlink(struct sk_buff *skb , struct sk_buff_head *list ) { struct sk_buff *next ; struct sk_buff *prev ; struct sk_buff *tmp ; { list->qlen = list->qlen - 1U; next = skb->next; prev = skb->prev; tmp = (struct sk_buff *)0; skb->prev = tmp; skb->next = tmp; next->prev = prev; prev->next = next; return; } } extern struct sk_buff *skb_dequeue(struct sk_buff_head * ) ; __inline static struct sk_buff *__skb_dequeue(struct sk_buff_head *list ) { struct sk_buff *skb ; struct sk_buff *tmp ; { { tmp = skb_peek((struct sk_buff_head const *)list); skb = tmp; } if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { { __skb_unlink(skb, list); } } else { } return (skb); } } extern unsigned char *__pskb_pull_tail(struct sk_buff * , int ) ; __inline static int pskb_may_pull(struct sk_buff *skb , unsigned int len ) { unsigned int tmp ; long tmp___0 ; long tmp___1 ; unsigned int tmp___2 ; unsigned char *tmp___3 ; { { tmp = skb_headlen((struct sk_buff const *)skb); tmp___0 = ldv__builtin_expect(len <= tmp, 1L); } if (tmp___0 != 0L) { return (1); } else { } { tmp___1 = ldv__builtin_expect(len > skb->len, 0L); } if (tmp___1 != 0L) { return (0); } else { } { tmp___2 = skb_headlen((struct sk_buff const *)skb); tmp___3 = __pskb_pull_tail(skb, (int )(len - tmp___2)); } return ((unsigned long )tmp___3 != (unsigned long )((unsigned char *)0U)); } } __inline static bool skb_transport_header_was_set(struct sk_buff const *skb ) { { return ((unsigned int )((unsigned short )skb->transport_header) != 65535U); } } __inline static unsigned char *skb_mac_header(struct sk_buff const *skb ) { { return ((unsigned char *)skb->head + (unsigned long )skb->mac_header); } } __inline static int skb_transport_offset(struct sk_buff const *skb ) { unsigned char *tmp ; { { tmp = skb_transport_header(skb); } return ((int )((unsigned int )((long )tmp) - (unsigned int )((long )skb->data))); } } __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_queue_purge(struct sk_buff_head * ) ; __inline static int __skb_linearize(struct sk_buff *skb ) { unsigned char *tmp ; { { tmp = __pskb_pull_tail(skb, (int )skb->data_len); } return ((unsigned long )tmp != (unsigned long )((unsigned char *)0U) ? 0 : -12); } } __inline static int skb_linearize(struct sk_buff *skb ) { int tmp___0 ; int tmp___1 ; bool tmp___2 ; { { tmp___2 = skb_is_nonlinear((struct sk_buff const *)skb); } if ((int )tmp___2) { { tmp___0 = __skb_linearize(skb); tmp___1 = tmp___0; } } else { tmp___1 = 0; } return (tmp___1); } } __inline static void skb_copy_from_linear_data(struct sk_buff const *skb , void *to , unsigned int const len ) { { { memcpy(to, (void const *)skb->data, (size_t )len); } return; } } extern void skb_tstamp_tx(struct sk_buff * , struct skb_shared_hwtstamps * ) ; extern int skb_checksum_help(struct sk_buff * ) ; __inline static struct udphdr *udp_hdr(struct sk_buff const *skb ) { unsigned char *tmp ; { { tmp = skb_transport_header(skb); } return ((struct udphdr *)tmp); } } __inline static void pps_get_ts(struct pps_event_time *ts ) { { { getnstimeofday(& ts->ts_real); } return; } } __inline static void pps_sub_ts(struct pps_event_time *ts , struct timespec delta ) { { { ts->ts_real = timespec_sub(ts->ts_real, delta); } return; } } extern struct ptp_clock *ptp_clock_register(struct ptp_clock_info * , struct device * ) ; static struct ptp_clock *ldv_ptp_clock_register_101(struct ptp_clock_info *ldv_func_arg1 , struct device *ldv_func_arg2 ) ; extern int ptp_clock_unregister(struct ptp_clock * ) ; extern void ptp_clock_event(struct ptp_clock * , struct ptp_clock_event * ) ; extern int ptp_clock_index(struct ptp_clock * ) ; __inline static int efx_filter_set_ipv4_local(struct efx_filter_spec *spec , u8 proto , __be32 host , __be16 port ) { { spec->match_flags = (unsigned int )((unsigned short )spec->match_flags) | 610U; spec->ether_type = 8U; spec->ip_proto = proto; spec->loc_host[0] = host; spec->loc_port = port; return (0); } } __inline static void efx_xmit_hwtstamp_pending(struct sk_buff *skb ) { unsigned char *tmp ; unsigned char *tmp___0 ; { { tmp = skb_end_pointer((struct sk_buff const *)skb); tmp___0 = skb_end_pointer((struct sk_buff const *)skb); ((struct skb_shared_info *)tmp)->tx_flags = (__u8 )((unsigned int )((struct skb_shared_info *)tmp___0)->tx_flags | 4U); } return; } } static int efx_phc_adjfreq(struct ptp_clock_info *ptp , s32 delta ) ; static int efx_phc_adjtime(struct ptp_clock_info *ptp , s64 delta ) ; static int efx_phc_gettime(struct ptp_clock_info *ptp , struct timespec *ts ) ; static int efx_phc_settime(struct ptp_clock_info *ptp , struct timespec const *e_ts ) ; static int efx_phc_enable(struct ptp_clock_info *ptp , struct ptp_clock_request *request , int enable ) ; static struct efx_hw_stat_desc const efx_ptp_stat_desc[14U] = { {"ptp_good_syncs", 0U, 1336U}, {"ptp_fast_syncs", 0U, 1340U}, {"ptp_bad_syncs", 0U, 1344U}, {"ptp_sync_timeouts", 0U, 1348U}, {"ptp_no_time_syncs", 0U, 1352U}, {"ptp_invalid_sync_windows", 0U, 1356U}, {"ptp_undersize_sync_windows", 0U, 1360U}, {"ptp_oversize_sync_windows", 0U, 1364U}, {"ptp_rx_no_timestamp", 0U, 1368U}, {"ptp_tx_timestamp_packets", 32U, 4U}, {"ptp_rx_timestamp_packets", 32U, 8U}, {"ptp_timestamp_packets", 32U, 12U}, {"ptp_filter_matches", 32U, 16U}, {"ptp_non_filter_matches", 32U, 20U}}; static unsigned long const efx_ptp_stat_mask[1U] = { 0xffffffffffffffffUL}; size_t efx_ptp_describe_stats(struct efx_nic *efx , u8 *strings ) { size_t tmp ; { if ((unsigned long )efx->ptp_data == (unsigned long )((struct efx_ptp_data *)0)) { return (0UL); } else { } { tmp = efx_nic_describe_stats((struct efx_hw_stat_desc const *)(& efx_ptp_stat_desc), 14UL, (unsigned long const *)(& efx_ptp_stat_mask), strings); } return (tmp); } } size_t efx_ptp_update_stats(struct efx_nic *efx , u64 *stats ) { efx_dword_t inbuf[2U] ; efx_dword_t outbuf[16U] ; size_t i ; int rc ; { if ((unsigned long )efx->ptp_data == (unsigned long )((struct efx_ptp_data *)0)) { return (0UL); } else { } i = 0UL; goto ldv_50768; ldv_50767: ; if ((unsigned int )((unsigned short )efx_ptp_stat_desc[i].dma_width) != 0U) { goto ldv_50766; } else { } *(stats + i) = (u64 )*((unsigned int *)efx->ptp_data + (unsigned long )efx_ptp_stat_desc[i].offset); ldv_50766: i = i + 1UL; ldv_50768: ; if (i <= 13UL) { goto ldv_50767; } else { } { ((efx_dword_t *)(& inbuf))->u32[0] = 5U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; rc = efx_mcdi_rpc(efx, 11U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)(& outbuf), 64UL, (size_t *)0UL); } if (rc != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "MC_CMD_PTP_OP_STATUS failed (%d)\n", rc); } } else { } { memset((void *)(& outbuf), 0, 64UL); } } else { } { efx_nic_update_stats((struct efx_hw_stat_desc const *)(& efx_ptp_stat_desc), 14UL, (unsigned long const *)(& efx_ptp_stat_mask), stats, (void const *)(& outbuf), 0); } return (14UL); } } static void efx_ptp_ns_to_s_ns(s64 ns , u32 *nic_major , u32 *nic_minor ) { struct timespec ts ; struct timespec tmp ; { { tmp = ns_to_timespec(ns); ts = tmp; *nic_major = (u32 )ts.tv_sec; *nic_minor = (u32 )ts.tv_nsec; } return; } } static ktime_t efx_ptp_s_ns_to_ktime_correction(u32 nic_major , u32 nic_minor , s32 correction ) { ktime_t kt ; ktime_t tmp ; ktime_t __constr_expr_0 ; ktime_t __constr_expr_1 ; { { tmp = ktime_set((long const )nic_major, (unsigned long const )nic_minor); kt = tmp; } if (correction >= 0) { __constr_expr_0.tv64 = (long long )((unsigned long long )kt.tv64 + (unsigned long long )correction); kt = __constr_expr_0; } else { __constr_expr_1.tv64 = (long long )((unsigned long long )kt.tv64 - (unsigned long long )(- correction)); kt = __constr_expr_1; } return (kt); } } static void efx_ptp_ns_to_s27(s64 ns , u32 *nic_major , u32 *nic_minor ) { struct timespec ts ; struct timespec tmp ; u32 maj ; u32 min ; { { tmp = ns_to_timespec(ns); ts = tmp; maj = (u32 )ts.tv_sec; min = (unsigned int )(((unsigned long long )ts.tv_nsec * 9223372037ULL + 34359738368ULL) >> 36); } if (min > 134217727U) { min = min - 134217728U; maj = maj + 1U; } else { } *nic_major = maj; *nic_minor = min; return; } } __inline static ktime_t efx_ptp_s27_to_ktime(u32 nic_major , u32 nic_minor ) { u32 ns ; ktime_t tmp ; { { ns = (unsigned int )(((unsigned long long )nic_minor * 1000000000ULL + 67108864ULL) >> 27); tmp = ktime_set((long const )nic_major, (unsigned long const )ns); } return (tmp); } } static ktime_t efx_ptp_s27_to_ktime_correction(u32 nic_major , u32 nic_minor , s32 correction ) { ktime_t tmp ; { nic_minor = nic_minor + (u32 )correction; if ((int )nic_minor < 0) { nic_minor = nic_minor + 134217728U; nic_major = nic_major - 1U; } else if (nic_minor > 134217727U) { nic_minor = nic_minor - 134217728U; nic_major = nic_major + 1U; } else { } { tmp = efx_ptp_s27_to_ktime(nic_major, nic_minor); } return (tmp); } } static int efx_ptp_get_attributes(struct efx_nic *efx ) { efx_dword_t inbuf[2U] ; efx_dword_t outbuf[2U] ; struct efx_ptp_data *ptp ; int rc ; u32 fmt ; size_t out_len ; { { ptp = efx->ptp_data; ((efx_dword_t *)(& inbuf))->u32[0] = 22U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; rc = efx_mcdi_rpc(efx, 11U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)(& outbuf), 8UL, & out_len); } if (rc == 0) { fmt = ((efx_dword_t *)(& outbuf))->u32[0]; } else if (rc == -22) { fmt = 0U; } else { return (rc); } if (fmt == 2U) { ptp->ns_to_nic_time = & efx_ptp_ns_to_s27; ptp->nic_to_kernel_time = & efx_ptp_s27_to_ktime_correction; } else if (fmt == 0U) { ptp->ns_to_nic_time = & efx_ptp_ns_to_s_ns; ptp->nic_to_kernel_time = & efx_ptp_s_ns_to_ktime_correction; } else { return (-34); } ptp->time_format = fmt; if (rc == 0 && out_len > 7UL) { ptp->min_synchronisation_ns = ((efx_dword_t *)(& outbuf) + 1UL)->u32[0]; } else { ptp->min_synchronisation_ns = 120U; } return (0); } } static int efx_ptp_get_timestamp_corrections(struct efx_nic *efx ) { efx_dword_t inbuf[2U] ; efx_dword_t outbuf[4U] ; int rc ; { { ((efx_dword_t *)(& inbuf))->u32[0] = 23U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; rc = efx_mcdi_rpc(efx, 11U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)(& outbuf), 16UL, (size_t *)0UL); } if (rc == 0) { (efx->ptp_data)->ts_corrections.tx = (s32 )((efx_dword_t *)(& outbuf))->u32[0]; (efx->ptp_data)->ts_corrections.rx = (s32 )((efx_dword_t *)(& outbuf) + 1UL)->u32[0]; (efx->ptp_data)->ts_corrections.pps_out = (s32 )((efx_dword_t *)(& outbuf) + 2UL)->u32[0]; (efx->ptp_data)->ts_corrections.pps_in = (s32 )((efx_dword_t *)(& outbuf) + 3UL)->u32[0]; } else if (rc == -22) { (efx->ptp_data)->ts_corrections.tx = 0; (efx->ptp_data)->ts_corrections.rx = 0; (efx->ptp_data)->ts_corrections.pps_out = 0; (efx->ptp_data)->ts_corrections.pps_in = 0; } else { return (rc); } return (0); } } static int efx_ptp_enable(struct efx_nic *efx ) { efx_dword_t inbuf[4U] ; size_t __max1 ; size_t __max2 ; efx_dword_t *outbuf ; unsigned long __lengthofoutbuf ; void *tmp ; int rc ; size_t __max1___0 ; size_t __max2___0 ; size_t __max1___1 ; size_t __max2___1 ; { { __max1 = 0UL; __max2 = 8UL; __lengthofoutbuf = (unsigned long )((long )(((__max1 > __max2 ? __max1 : __max2) + 3UL) / 4UL)); tmp = __builtin_alloca(sizeof(*outbuf) * __lengthofoutbuf); outbuf = (efx_dword_t *)tmp; ((efx_dword_t *)(& inbuf))->u32[0] = 1U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned long )(efx->ptp_data)->channel != (unsigned long )((struct efx_channel *)0) ? (unsigned int )((efx->ptp_data)->channel)->channel : 0U; ((efx_dword_t *)(& inbuf) + 3UL)->u32[0] = (efx->ptp_data)->mode; __max1___0 = 0UL; __max2___0 = 8UL; rc = efx_mcdi_rpc_quiet(efx, 11U, (efx_dword_t const *)(& inbuf), 16UL, (efx_dword_t *)(& outbuf), (((__max1___0 > __max2___0 ? __max1___0 : __max2___0) + 3UL) / 4UL) * 4UL, (size_t *)0UL); rc = rc != -114 ? rc : 0; } if (rc != 0) { { __max1___1 = 0UL; __max2___1 = 8UL; efx_mcdi_display_error(efx, 11U, 16UL, (efx_dword_t *)(& outbuf), (((__max1___1 > __max2___1 ? __max1___1 : __max2___1) + 3UL) / 4UL) * 4UL, rc); } } else { } return (rc); } } static int efx_ptp_disable(struct efx_nic *efx ) { efx_dword_t inbuf[2U] ; size_t __max1 ; size_t __max2 ; efx_dword_t *outbuf ; unsigned long __lengthofoutbuf ; void *tmp ; int rc ; size_t __max1___0 ; size_t __max2___0 ; size_t __max1___1 ; size_t __max2___1 ; { { __max1 = 0UL; __max2 = 8UL; __lengthofoutbuf = (unsigned long )((long )(((__max1 > __max2 ? __max1 : __max2) + 3UL) / 4UL)); tmp = __builtin_alloca(sizeof(*outbuf) * __lengthofoutbuf); outbuf = (efx_dword_t *)tmp; ((efx_dword_t *)(& inbuf))->u32[0] = 2U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; __max1___0 = 0UL; __max2___0 = 8UL; rc = efx_mcdi_rpc_quiet(efx, 11U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)(& outbuf), (((__max1___0 > __max2___0 ? __max1___0 : __max2___0) + 3UL) / 4UL) * 4UL, (size_t *)0UL); rc = rc != -114 ? rc : 0; } if (rc != 0) { { __max1___1 = 0UL; __max2___1 = 8UL; efx_mcdi_display_error(efx, 11U, 8UL, (efx_dword_t *)(& outbuf), (((__max1___1 > __max2___1 ? __max1___1 : __max2___1) + 3UL) / 4UL) * 4UL, rc); } } else { } return (rc); } } static void efx_ptp_deliver_rx_queue(struct sk_buff_head *q ) { struct sk_buff *skb ; { goto ldv_50892; ldv_50891: { local_bh_disable(); netif_receive_skb(skb); local_bh_enable(); } ldv_50892: { skb = skb_dequeue(q); } if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { goto ldv_50891; } else { } return; } } static void efx_ptp_handle_no_channel(struct efx_nic *efx ) { { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: PTP requires MSI-X and 1 additional interruptvector. PTP disabled\n"); } } else { } return; } } static void efx_ptp_send_times(struct efx_nic *efx , struct pps_event_time *last_time ) { struct pps_event_time now ; struct timespec limit ; struct efx_ptp_data *ptp ; struct timespec start ; int *mc_running ; struct timespec update_time ; unsigned int host_time ; int tmp ; int tmp___0 ; { { ptp = efx->ptp_data; mc_running = (int *)ptp->start.addr; pps_get_ts(& now); start = now.ts_real; limit = now.ts_real; timespec_add_ns(& limit, 250000ULL); } goto ldv_50911; ldv_50910: { update_time = now.ts_real; timespec_add_ns(& update_time, 200ULL); } ldv_50908: { pps_get_ts(& now); tmp = timespec_compare((struct timespec const *)(& now.ts_real), (struct timespec const *)(& update_time)); } if (tmp < 0 && (int )*((int volatile *)mc_running) != 0) { goto ldv_50908; } else { } { host_time = (unsigned int )((int )(now.ts_real.tv_sec << 30) | (int )now.ts_real.tv_nsec); (*((efx->type)->ptp_write_host_time))(efx, host_time); } ldv_50911: { tmp___0 = timespec_compare((struct timespec const *)(& now.ts_real), (struct timespec const *)(& limit)); } if (tmp___0 < 0 && (int )*((int volatile *)mc_running) != 0) { goto ldv_50910; } else { } *last_time = now; return; } } static void efx_ptp_read_timeset(efx_dword_t *data , struct efx_ptp_timeset *timeset ) { unsigned int start_ns ; unsigned int end_ns ; { timeset->host_start = data->u32[0]; timeset->major = (data + 1UL)->u32[0]; timeset->minor = (data + 2UL)->u32[0]; timeset->host_end = (data + 3UL)->u32[0]; timeset->wait = (data + 4UL)->u32[0]; start_ns = timeset->host_start & 1073741823U; end_ns = timeset->host_end & 1073741823U; if (end_ns < start_ns) { end_ns = end_ns + 1000000000U; } else { } timeset->window = end_ns - start_ns; return; } } static int efx_ptp_process_times(struct efx_nic *efx , efx_dword_t *synch_buf , size_t response_length , struct pps_event_time const *last_time ) { unsigned int number_readings ; size_t __min1 ; size_t __min2 ; unsigned int i ; unsigned int ngood ; unsigned int last_good ; struct efx_ptp_data *ptp ; u32 last_sec ; u32 start_sec ; struct timespec delta ; ktime_t mc_time ; s32 window ; s32 corrected ; struct timespec wait ; ktime_t tmp ; { __min1 = 12UL; __min2 = response_length / 20UL; number_readings = (unsigned int )(__min1 < __min2 ? __min1 : __min2); ngood = 0U; last_good = 0U; ptp = efx->ptp_data; if (number_readings == 0U) { return (-11); } else { } i = 0U; goto ldv_50965; ldv_50964: { efx_ptp_read_timeset(synch_buf + (unsigned long )i * 20UL, (struct efx_ptp_timeset *)(& ptp->timeset) + (unsigned long )i); tmp = (*(ptp->nic_to_kernel_time))(0U, ptp->timeset[i].wait, 0); wait = ns_to_timespec(tmp.tv64); window = (s32 )ptp->timeset[i].window; corrected = (s32 )((unsigned int )window - (unsigned int )wait.tv_nsec); } if (window <= 199) { ptp->invalid_sync_windows = ptp->invalid_sync_windows + 1U; } else if (corrected > 999) { ptp->oversize_sync_windows = ptp->oversize_sync_windows + 1U; } else if ((unsigned int )corrected < ptp->min_synchronisation_ns) { ptp->undersize_sync_windows = ptp->undersize_sync_windows + 1U; } else { ngood = ngood + 1U; last_good = i; } i = i + 1U; ldv_50965: ; if (i < number_readings) { goto ldv_50964; } else { } if (ngood == 0U) { if ((int )efx->msg_enable & 1) { { netdev_warn((struct net_device const *)efx->net_dev, "PTP no suitable synchronisations\n"); } } else { } return (-11); } else { } { mc_time = (*(ptp->nic_to_kernel_time))(ptp->timeset[last_good].major, ptp->timeset[last_good].minor, 0); delta = ns_to_timespec(mc_time.tv64); delta.tv_nsec = delta.tv_nsec + ((long )last_time->ts_real.tv_nsec - ((long )ptp->timeset[last_good].host_start & 1073741823L)); start_sec = ptp->timeset[last_good].host_start >> 30; last_sec = (u32 )last_time->ts_real.tv_sec & 3U; } if (start_sec != last_sec) { if (((start_sec + 1U) & 3U) != last_sec) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_warn((struct net_device const *)efx->net_dev, "PTP bad synchronisation seconds\n"); } } else { } return (-11); } else { delta.tv_sec = 1L; } } else { delta.tv_sec = 0L; } { ptp->host_time_pps = *last_time; pps_sub_ts(& ptp->host_time_pps, delta); } return (0); } } static int efx_ptp_synchronize(struct efx_nic *efx , unsigned int num_readings ) { struct efx_ptp_data *ptp ; efx_dword_t synch_buf[60U] ; size_t response_length ; int rc ; unsigned long timeout ; struct pps_event_time last_time ; unsigned int loops ; int *start ; unsigned long tmp ; { { ptp = efx->ptp_data; last_time.ts_real.tv_sec = 0L; last_time.ts_real.tv_nsec = 0L; loops = 0U; start = (int *)ptp->start.addr; ((efx_dword_t *)(& synch_buf))->u32[0] = 7U; ((efx_dword_t *)(& synch_buf) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& synch_buf) + 2UL)->u32[0] = num_readings; ((efx_dword_t *)(& synch_buf) + 3UL)->u32[0] = (unsigned int )ptp->start.dma_addr; ((efx_dword_t *)(& synch_buf) + 4U)->u32[0] = (unsigned int )(ptp->start.dma_addr >> 32); *((int volatile *)start) = 0; rc = efx_mcdi_rpc_start(efx, 11U, (efx_dword_t const *)(& synch_buf), 20UL); tmp = msecs_to_jiffies(2U); timeout = (unsigned long )jiffies + tmp; } goto ldv_50996; ldv_50995: { __const_udelay(85900UL); loops = loops + 1U; } ldv_50996: ; if ((int )*((int volatile *)start) == 0 && (long )((unsigned long )jiffies - timeout) < 0L) { goto ldv_50995; } else { } if (loops <= 1U) { ptp->fast_syncs = ptp->fast_syncs + 1U; } else { } if ((long )((unsigned long )jiffies - timeout) >= 0L) { ptp->sync_timeouts = ptp->sync_timeouts + 1U; } else { } if ((int )*((int volatile *)start) != 0) { { efx_ptp_send_times(efx, & last_time); } } else { } { rc = efx_mcdi_rpc_finish(efx, 11U, 20UL, (efx_dword_t *)(& synch_buf), 240UL, & response_length); } if (rc == 0) { { rc = efx_ptp_process_times(efx, (efx_dword_t *)(& synch_buf), response_length, (struct pps_event_time const *)(& last_time)); } if (rc == 0) { ptp->good_syncs = ptp->good_syncs + 1U; } else { ptp->no_time_syncs = ptp->no_time_syncs + 1U; } } else { } if (rc != 0) { ptp->bad_syncs = ptp->bad_syncs + 1U; } else { } return (rc); } } static int efx_ptp_xmit_skb(struct efx_nic *efx , struct sk_buff *skb ) { struct efx_ptp_data *ptp_data ; struct skb_shared_hwtstamps timestamps ; int rc ; efx_dword_t txtime[2U] ; size_t len ; unsigned char *tmp ; { { ptp_data = efx->ptp_data; rc = -5; ((efx_dword_t *)(& ptp_data->txbuf))->u32[0] = 3U; ((efx_dword_t *)(& ptp_data->txbuf) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& ptp_data->txbuf) + 2UL)->u32[0] = skb->len; tmp = skb_end_pointer((struct sk_buff const *)skb); } if ((unsigned int )((struct skb_shared_info *)tmp)->nr_frags != 0U) { { rc = skb_linearize(skb); } if (rc != 0) { goto fail; } else { } } else { } if ((unsigned int )*((unsigned char *)skb + 124UL) == 12U) { { rc = skb_checksum_help(skb); } if (rc != 0) { goto fail; } else { } } else { } { skb_copy_from_linear_data((struct sk_buff const *)skb, (void *)(& ptp_data->txbuf) + 12U, skb->len); rc = efx_mcdi_rpc(efx, 11U, (efx_dword_t const *)(& ptp_data->txbuf), (size_t )(skb->len + 12U), (efx_dword_t *)(& txtime), 8UL, & len); } if (rc != 0) { goto fail; } else { } { memset((void *)(& timestamps), 0, 16UL); timestamps.hwtstamp = (*(ptp_data->nic_to_kernel_time))(((efx_dword_t *)(& txtime))->u32[0], ((efx_dword_t *)(& txtime) + 1UL)->u32[0], ptp_data->ts_corrections.tx); skb_tstamp_tx(skb, & timestamps); rc = 0; } fail: { consume_skb(skb); } return (rc); } } static void efx_ptp_drop_time_expired_events(struct efx_nic *efx ) { struct efx_ptp_data *ptp ; struct list_head *cursor ; struct list_head *next ; struct efx_ptp_event_rx *evt ; struct list_head const *__mptr ; int tmp ; int tmp___0 ; { ptp = efx->ptp_data; if ((int )ptp->rx_ts_inline) { return; } else { } { ldv_spin_lock_bh_93___0(& ptp->evt_lock); tmp = list_empty((struct list_head const *)(& ptp->evt_list)); } if (tmp == 0) { cursor = ptp->evt_list.next; next = cursor->next; goto ldv_51044; ldv_51043: __mptr = (struct list_head const *)cursor; evt = (struct efx_ptp_event_rx *)__mptr; if ((long )(evt->expiry - (unsigned long )jiffies) < 0L) { { list_move(& evt->link, & ptp->evt_free_list); } if ((efx->msg_enable & 8192U) != 0U) { { netdev_warn((struct net_device const *)efx->net_dev, "PTP rx event dropped\n"); } } else { } } else { } cursor = next; next = cursor->next; ldv_51044: ; if ((unsigned long )cursor != (unsigned long )(& ptp->evt_list)) { goto ldv_51043; } else { } } else { } if ((int )ptp->evt_overflow) { { tmp___0 = list_empty((struct list_head const *)(& ptp->evt_list)); } if (tmp___0 != 0) { ptp->evt_overflow = 0; } else { } } else { } { ldv_spin_unlock_bh_94___0(& ptp->evt_lock); } return; } } static enum ptp_packet_state efx_ptp_match_rx(struct efx_nic *efx , struct sk_buff *skb ) { struct efx_ptp_data *ptp ; bool evts_waiting ; struct list_head *cursor ; struct list_head *next ; struct efx_ptp_match *match ; enum ptp_packet_state rc ; bool __warned ; int __ret_warn_once ; int __ret_warn_on ; long tmp ; long tmp___0 ; long tmp___1 ; int tmp___2 ; struct efx_ptp_event_rx *evt ; struct list_head const *__mptr ; struct skb_shared_hwtstamps *timestamps ; int tmp___3 ; { { ptp = efx->ptp_data; rc = 0; __ret_warn_once = (int )ptp->rx_ts_inline; tmp___1 = ldv__builtin_expect(__ret_warn_once != 0, 0L); } if (tmp___1 != 0L) { { __ret_warn_on = ! __warned; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ptp.c", 962); } } else { } { tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { __warned = 1; } else { } } else { } { ldv__builtin_expect(__ret_warn_once != 0, 0L); ldv_spin_lock_bh_93___0(& ptp->evt_lock); tmp___2 = list_empty((struct list_head const *)(& ptp->evt_list)); evts_waiting = tmp___2 == 0; ldv_spin_unlock_bh_94___0(& ptp->evt_lock); } if (! evts_waiting) { return (0); } else { } { match = (struct efx_ptp_match *)(& skb->cb); ldv_spin_lock_bh_93___0(& ptp->evt_lock); cursor = ptp->evt_list.next; next = cursor->next; } goto ldv_51067; ldv_51066: __mptr = (struct list_head const *)cursor; evt = (struct efx_ptp_event_rx *)__mptr; if (*((unsigned long *)evt + 2UL) == *((unsigned long *)match + 0UL)) { { timestamps = skb_hwtstamps(skb); timestamps->hwtstamp = evt->hwtimestamp; match->state = 1; rc = 1; list_move(& evt->link, & ptp->evt_free_list); } goto ldv_51065; } else { } cursor = next; next = cursor->next; ldv_51067: ; if ((unsigned long )cursor != (unsigned long )(& ptp->evt_list)) { goto ldv_51066; } else { } ldv_51065: ; if ((int )ptp->evt_overflow) { { tmp___3 = list_empty((struct list_head const *)(& ptp->evt_list)); } if (tmp___3 != 0) { ptp->evt_overflow = 0; } else { } } else { } { ldv_spin_unlock_bh_94___0(& ptp->evt_lock); } return (rc); } } static void efx_ptp_process_events(struct efx_nic *efx , struct sk_buff_head *q ) { struct efx_ptp_data *ptp ; struct sk_buff *skb ; struct efx_ptp_match *match ; enum ptp_packet_state tmp ; { ptp = efx->ptp_data; goto ldv_51083; ldv_51082: match = (struct efx_ptp_match *)(& skb->cb); if ((unsigned int )match->state == 3U) { { __skb_queue_tail(q, skb); } } else { { tmp = efx_ptp_match_rx(efx, skb); } if ((unsigned int )tmp == 1U) { { __skb_queue_tail(q, skb); } } else if ((long )(match->expiry - (unsigned long )jiffies) < 0L) { { match->state = 2; ptp->rx_no_timestamp = ptp->rx_no_timestamp + 1U; __skb_queue_tail(q, skb); } } else { { skb_queue_head(& ptp->rxq, skb); } goto ldv_51081; } } ldv_51083: { skb = skb_dequeue(& ptp->rxq); } if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { goto ldv_51082; } else { } ldv_51081: ; return; } } __inline static void efx_ptp_process_rx(struct efx_nic *efx , struct sk_buff *skb ) { { { local_bh_disable(); netif_receive_skb(skb); local_bh_enable(); } return; } } static void efx_ptp_remove_multicast_filters(struct efx_nic *efx ) { struct efx_ptp_data *ptp ; { ptp = efx->ptp_data; if ((int )ptp->rxfilter_installed) { { efx_filter_remove_id_safe(efx, 3, ptp->rxfilter_general); efx_filter_remove_id_safe(efx, 3, ptp->rxfilter_event); ptp->rxfilter_installed = 0; } } else { } return; } } static int efx_ptp_insert_multicast_filters(struct efx_nic *efx ) { struct efx_ptp_data *ptp ; struct efx_filter_spec rxfilter ; int rc ; struct efx_rx_queue *tmp ; int tmp___0 ; struct efx_rx_queue *tmp___1 ; int tmp___2 ; { ptp = efx->ptp_data; if ((unsigned long )ptp->channel == (unsigned long )((struct efx_channel *)0) || (int )ptp->rxfilter_installed) { return (0); } else { } { tmp = efx_channel_get_rx_queue(ptp->channel); tmp___0 = efx_rx_queue_index(tmp); efx_filter_init_rx(& rxfilter, 3, 0, (unsigned int )tmp___0); rc = efx_filter_set_ipv4_local(& rxfilter, 17, 2164326624U, 16129); } if (rc != 0) { return (rc); } else { } { rc = efx_filter_insert_filter(efx, & rxfilter, 1); } if (rc < 0) { return (rc); } else { } { ptp->rxfilter_event = (u32 )rc; tmp___1 = efx_channel_get_rx_queue(ptp->channel); tmp___2 = efx_rx_queue_index(tmp___1); efx_filter_init_rx(& rxfilter, 3, 0, (unsigned int )tmp___2); rc = efx_filter_set_ipv4_local(& rxfilter, 17, 2164326624U, 16385); } if (rc != 0) { goto fail; } else { } { rc = efx_filter_insert_filter(efx, & rxfilter, 1); } if (rc < 0) { goto fail; } else { } ptp->rxfilter_general = (u32 )rc; ptp->rxfilter_installed = 1; return (0); fail: { efx_filter_remove_id_safe(efx, 3, ptp->rxfilter_event); } return (rc); } } static int efx_ptp_start(struct efx_nic *efx ) { struct efx_ptp_data *ptp ; int rc ; { { ptp = efx->ptp_data; ptp->reset_required = 0; rc = efx_ptp_insert_multicast_filters(efx); } if (rc != 0) { return (rc); } else { } { rc = efx_ptp_enable(efx); } if (rc != 0) { goto fail; } else { } ptp->evt_frag_idx = 0; ptp->current_adjfreq = 0LL; return (0); fail: { efx_ptp_remove_multicast_filters(efx); } return (rc); } } static int efx_ptp_stop(struct efx_nic *efx ) { struct efx_ptp_data *ptp ; struct list_head *cursor ; struct list_head *next ; int rc ; { ptp = efx->ptp_data; if ((unsigned long )ptp == (unsigned long )((struct efx_ptp_data *)0)) { return (0); } else { } { rc = efx_ptp_disable(efx); efx_ptp_remove_multicast_filters(efx); efx_ptp_deliver_rx_queue(& (efx->ptp_data)->rxq); skb_queue_purge(& (efx->ptp_data)->txq); ldv_spin_lock_bh_93___0(& (efx->ptp_data)->evt_lock); cursor = (efx->ptp_data)->evt_list.next; next = cursor->next; } goto ldv_51113; ldv_51112: { list_move(cursor, & (efx->ptp_data)->evt_free_list); cursor = next; next = cursor->next; } ldv_51113: ; if ((unsigned long )cursor != (unsigned long )(& (efx->ptp_data)->evt_list)) { goto ldv_51112; } else { } { ptp->evt_overflow = 0; ldv_spin_unlock_bh_94___0(& (efx->ptp_data)->evt_lock); } return (rc); } } static int efx_ptp_restart(struct efx_nic *efx ) { int tmp ; { if ((unsigned long )efx->ptp_data != (unsigned long )((struct efx_ptp_data *)0) && (int )(efx->ptp_data)->enabled) { { tmp = efx_ptp_start(efx); } return (tmp); } else { } return (0); } } static void efx_ptp_pps_worker(struct work_struct *work ) { struct efx_ptp_data *ptp ; struct work_struct const *__mptr ; struct efx_nic *efx ; struct ptp_clock_event ptp_evt ; int tmp ; { { __mptr = (struct work_struct const *)work; ptp = (struct efx_ptp_data *)__mptr + 0xfffffffffffffc20UL; efx = ptp->efx; tmp = efx_ptp_synchronize(efx, 4U); } if (tmp != 0) { return; } else { } { ptp_evt.type = 3; ptp_evt.__annonCompField87.pps_times = ptp->host_time_pps; ptp_clock_event(ptp->phc_clock, & ptp_evt); } return; } } static void efx_ptp_worker(struct work_struct *work ) { struct efx_ptp_data *ptp_data ; struct work_struct const *__mptr ; struct efx_nic *efx ; struct sk_buff *skb ; struct sk_buff_head tempq ; { __mptr = (struct work_struct const *)work; ptp_data = (struct efx_ptp_data *)__mptr + 0xfffffffffffffd70UL; efx = ptp_data->efx; if ((int )ptp_data->reset_required) { { efx_ptp_stop(efx); efx_ptp_start(efx); } return; } else { } { efx_ptp_drop_time_expired_events(efx); __skb_queue_head_init(& tempq); efx_ptp_process_events(efx, & tempq); } goto ldv_51136; ldv_51135: { efx_ptp_xmit_skb(efx, skb); } ldv_51136: { skb = skb_dequeue(& ptp_data->txq); } if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { goto ldv_51135; } else { } goto ldv_51139; ldv_51138: { efx_ptp_process_rx(efx, skb); } ldv_51139: { skb = __skb_dequeue(& tempq); } if ((unsigned long )skb != (unsigned long )((struct sk_buff *)0)) { goto ldv_51138; } else { } return; } } static struct ptp_clock_info const efx_phc_clock_info = {& __this_module, {'s', 'f', 'c', '\000'}, 1000000, 0, 0, 0, 1, & efx_phc_adjfreq, & efx_phc_adjtime, & efx_phc_gettime, & efx_phc_settime, & efx_phc_enable}; int efx_ptp_probe(struct efx_nic *efx , struct efx_channel *channel ) { struct efx_ptp_data *ptp ; int rc ; unsigned int pos ; void *tmp ; int tmp___0 ; struct lock_class_key __key ; char const *__lock_name ; struct workqueue_struct *tmp___1 ; struct lock_class_key __key___0 ; atomic_long_t __constr_expr_0 ; struct lock_class_key __key___1 ; long tmp___2 ; long tmp___3 ; struct lock_class_key __key___2 ; atomic_long_t __constr_expr_1 ; struct lock_class_key __key___3 ; char const *__lock_name___0 ; struct workqueue_struct *tmp___4 ; { { rc = 0; tmp = kzalloc(1664UL, 208U); ptp = (struct efx_ptp_data *)tmp; efx->ptp_data = ptp; } if ((unsigned long )efx->ptp_data == (unsigned long )((struct efx_ptp_data *)0)) { return (-12); } else { } { ptp->efx = efx; ptp->channel = channel; tmp___0 = efx_nic_rev(efx); ptp->rx_ts_inline = tmp___0 > 3; rc = efx_nic_alloc_buffer(efx, & ptp->start, 4U, 208U); } if (rc != 0) { goto fail1; } else { } { skb_queue_head_init(& ptp->rxq); skb_queue_head_init(& ptp->txq); __lock_name = "\"%s\"(\"sfc_ptp\")"; tmp___1 = __alloc_workqueue_key("%s", 10U, 1, & __key, __lock_name, (char *)"sfc_ptp"); ptp->workwq = tmp___1; } if ((unsigned long )ptp->workwq == (unsigned long )((struct workqueue_struct *)0)) { rc = -12; goto fail2; } else { } { __init_work(& ptp->work, 0); __constr_expr_0.counter = 137438953408L; ptp->work.data = __constr_expr_0; lockdep_init_map(& ptp->work.lockdep_map, "(&ptp->work)", & __key___0, 0); INIT_LIST_HEAD(& ptp->work.entry); ptp->work.func = & efx_ptp_worker; ptp->config.flags = 0; ptp->config.tx_type = 0; ptp->config.rx_filter = 0; INIT_LIST_HEAD(& ptp->evt_list); INIT_LIST_HEAD(& ptp->evt_free_list); spinlock_check(& ptp->evt_lock); __raw_spin_lock_init(& ptp->evt_lock.__annonCompField19.rlock, "&(&ptp->evt_lock)->rlock", & __key___1); pos = 0U; } goto ldv_51158; ldv_51157: { list_add(& ptp->rx_evts[pos].link, & ptp->evt_free_list); pos = pos + 1U; } ldv_51158: ; if (pos <= 7U) { goto ldv_51157; } else { } { ptp->evt_overflow = 0; rc = efx_ptp_get_attributes(efx); } if (rc < 0) { goto fail3; } else { } { rc = efx_ptp_get_timestamp_corrections(efx); } if (rc < 0) { goto fail3; } else { } if ((int )(efx->mcdi)->fn_flags & 1) { { ptp->phc_clock_info = efx_phc_clock_info; ptp->phc_clock = ldv_ptp_clock_register_101(& ptp->phc_clock_info, & (efx->pci_dev)->dev); tmp___3 = IS_ERR((void const *)ptp->phc_clock); } if (tmp___3 != 0L) { { tmp___2 = PTR_ERR((void const *)ptp->phc_clock); rc = (int )tmp___2; } goto fail3; } else { } { __init_work(& ptp->pps_work, 0); __constr_expr_1.counter = 137438953408L; ptp->pps_work.data = __constr_expr_1; lockdep_init_map(& ptp->pps_work.lockdep_map, "(&ptp->pps_work)", & __key___2, 0); INIT_LIST_HEAD(& ptp->pps_work.entry); ptp->pps_work.func = & efx_ptp_pps_worker; __lock_name___0 = "\"%s\"(\"sfc_pps\")"; tmp___4 = __alloc_workqueue_key("%s", 10U, 1, & __key___3, __lock_name___0, (char *)"sfc_pps"); ptp->pps_workwq = tmp___4; } if ((unsigned long )ptp->pps_workwq == (unsigned long )((struct workqueue_struct *)0)) { rc = -12; goto fail4; } else { } } else { } ptp->nic_ts_enabled = 0; return (0); fail4: { ptp_clock_unregister((efx->ptp_data)->phc_clock); } fail3: { destroy_workqueue((efx->ptp_data)->workwq); } fail2: { efx_nic_free_buffer(efx, & ptp->start); } fail1: { kfree((void const *)efx->ptp_data); efx->ptp_data = (struct efx_ptp_data *)0; } return (rc); } } static int efx_ptp_probe_channel(struct efx_channel *channel ) { struct efx_nic *efx ; int tmp ; { { efx = channel->efx; channel->irq_moderation = 0U; channel->rx_queue.core_index = 0; tmp = efx_ptp_probe(efx, channel); } return (tmp); } } void efx_ptp_remove(struct efx_nic *efx ) { { if ((unsigned long )efx->ptp_data == (unsigned long )((struct efx_ptp_data *)0)) { return; } else { } { efx_ptp_disable(efx); cancel_work_sync(& (efx->ptp_data)->work); cancel_work_sync(& (efx->ptp_data)->pps_work); skb_queue_purge(& (efx->ptp_data)->rxq); skb_queue_purge(& (efx->ptp_data)->txq); } if ((unsigned long )(efx->ptp_data)->phc_clock != (unsigned long )((struct ptp_clock *)0)) { { destroy_workqueue((efx->ptp_data)->pps_workwq); ptp_clock_unregister((efx->ptp_data)->phc_clock); } } else { } { destroy_workqueue((efx->ptp_data)->workwq); efx_nic_free_buffer(efx, & (efx->ptp_data)->start); kfree((void const *)efx->ptp_data); } return; } } static void efx_ptp_remove_channel(struct efx_channel *channel ) { { { efx_ptp_remove(channel->efx); } return; } } static void efx_ptp_get_channel_name(struct efx_channel *channel , char *buf , size_t len ) { { { snprintf(buf, len, "%s-ptp", (char *)(& (channel->efx)->name)); } return; } } bool efx_ptp_is_ptp_tx(struct efx_nic *efx , struct sk_buff *skb ) { long tmp ; bool tmp___0 ; u32 tmp___1 ; struct iphdr *tmp___2 ; unsigned int tmp___3 ; int tmp___4 ; struct udphdr *tmp___5 ; int tmp___6 ; { if ((((unsigned long )efx->ptp_data != (unsigned long )((struct efx_ptp_data *)0) && (int )(efx->ptp_data)->enabled) && skb->len > 62U) && skb->len <= 240U) { { tmp = ldv__builtin_expect((unsigned int )skb->protocol == 8U, 1L); } if (tmp != 0L) { { tmp___0 = skb_transport_header_was_set((struct sk_buff const *)skb); } if ((int )tmp___0) { { tmp___1 = skb_network_header_len((struct sk_buff const *)skb); } if (tmp___1 > 19U) { { tmp___2 = ip_hdr((struct sk_buff const *)skb); } if ((unsigned int )tmp___2->protocol == 17U) { { tmp___3 = skb_headlen((struct sk_buff const *)skb); tmp___4 = skb_transport_offset((struct sk_buff const *)skb); } if ((unsigned long )tmp___3 >= (unsigned long )tmp___4 + 8UL) { { tmp___5 = udp_hdr((struct sk_buff const *)skb); } if ((unsigned int )tmp___5->dest == 16129U) { tmp___6 = 1; } else { tmp___6 = 0; } } else { tmp___6 = 0; } } else { tmp___6 = 0; } } else { tmp___6 = 0; } } else { tmp___6 = 0; } } else { tmp___6 = 0; } } else { tmp___6 = 0; } return ((bool )tmp___6); } } extern void __compiletime_assert_1433(void) ; extern void __compiletime_assert_1434(void) ; static bool efx_ptp_rx(struct efx_channel *channel , struct sk_buff *skb ) { struct efx_nic *efx ; struct efx_ptp_data *ptp ; struct efx_ptp_match *match ; u8 *match_data_012 ; u8 *match_data_345 ; unsigned int version ; unsigned long tmp ; int tmp___0 ; __u16 tmp___1 ; int tmp___2 ; long tmp___3 ; bool __cond ; bool __cond___0 ; __u16 tmp___4 ; { { efx = channel->efx; ptp = efx->ptp_data; match = (struct efx_ptp_match *)(& skb->cb); tmp = msecs_to_jiffies(10U); match->expiry = (unsigned long )jiffies + tmp; } if (ptp->mode == 0U) { { tmp___0 = pskb_may_pull(skb, 64U); } if (tmp___0 == 0) { return (0); } else { } { tmp___1 = __fswab16((int )*((__be16 *)skb->data + 28U)); version = (unsigned int )tmp___1; } if (version != 1U) { return (0); } else { } match_data_012 = skb->data + 50U; match_data_345 = skb->data + 53U; } else { { tmp___2 = pskb_may_pull(skb, 63U); } if (tmp___2 == 0) { return (0); } else { } version = (unsigned int )*(skb->data + 29UL); if ((version & 15U) != 2U) { return (0); } else { } match_data_345 = skb->data + 53U; if (ptp->mode == 2U) { match_data_012 = skb->data + 50U; } else { { match_data_012 = skb->data + 48U; tmp___3 = ldv__builtin_expect(ptp->mode != 4U, 0L); } if (tmp___3 != 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 *)"drivers/net/ethernet/sfc/ptp.c"), "i" (1422), "i" (12UL)); __builtin_unreachable(); } } else { } } } { tmp___4 = __fswab16((int )*((__be16 *)skb->data + 22U)); } if ((unsigned int )tmp___4 == 319U) { match->state = 0; __cond = 0; if ((int )__cond) { { __compiletime_assert_1433(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_1434(); } } else { } match->words[0] = (u32 )((((int )*match_data_012 | ((int )*(match_data_012 + 1UL) << 8)) | ((int )*(match_data_012 + 2UL) << 16)) | ((int )*match_data_345 << 24)); match->words[1] = (u32 )(((int )*(match_data_345 + 1UL) | ((int )*(match_data_345 + 2UL) << 8)) | ((int )*(skb->data + 59UL) << 16)); } else { match->state = 3; } { skb_queue_tail(& ptp->rxq, skb); queue_work(ptp->workwq, & ptp->work); } return (1); } } int efx_ptp_tx(struct efx_nic *efx , struct sk_buff *skb ) { struct efx_ptp_data *ptp ; struct udphdr *tmp ; { { ptp = efx->ptp_data; skb_queue_tail(& ptp->txq, skb); tmp = udp_hdr((struct sk_buff const *)skb); } if ((unsigned int )tmp->dest == 16129U && skb->len <= 240U) { { efx_xmit_hwtstamp_pending(skb); } } else { } { queue_work(ptp->workwq, & ptp->work); } return (0); } } int efx_ptp_get_mode(struct efx_nic *efx ) { { return ((int )(efx->ptp_data)->mode); } } int efx_ptp_change_mode(struct efx_nic *efx , bool enable_wanted , unsigned int new_mode ) { int rc ; bool tmp ; { if ((int )enable_wanted != (int )(efx->ptp_data)->enabled || ((int )enable_wanted && (efx->ptp_data)->mode != new_mode)) { rc = 0; if ((int )enable_wanted) { if ((int )(efx->ptp_data)->enabled && (efx->ptp_data)->mode != new_mode) { { (efx->ptp_data)->enabled = 0; rc = efx_ptp_stop(efx); } if (rc != 0) { return (rc); } else { } } else { } { (efx->ptp_data)->mode = new_mode; tmp = netif_running((struct net_device const *)efx->net_dev); } if ((int )tmp) { { rc = efx_ptp_start(efx); } } else { } if (rc == 0) { { rc = efx_ptp_synchronize(efx, 8U); } if (rc != 0) { { efx_ptp_stop(efx); } } else { } } else { } } else { { rc = efx_ptp_stop(efx); } } if (rc != 0) { return (rc); } else { } (efx->ptp_data)->enabled = enable_wanted; } else { } return (0); } } static int efx_ptp_ts_init(struct efx_nic *efx , struct hwtstamp_config *init ) { int rc ; { if (init->flags != 0) { return (-22); } else { } if ((unsigned int )init->tx_type > 1U) { return (-34); } else { } { rc = (*((efx->type)->ptp_set_ts_config))(efx, init); } if (rc != 0) { return (rc); } else { } (efx->ptp_data)->config = *init; return (0); } } void efx_ptp_get_ts_info(struct efx_nic *efx , struct ethtool_ts_info *ts_info ) { struct efx_ptp_data *ptp ; struct efx_nic *primary ; int tmp ; long tmp___0 ; { { ptp = efx->ptp_data; primary = efx->primary; tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/ptp.c", 1546); dump_stack(); } } else { } if ((unsigned long )ptp == (unsigned long )((struct efx_ptp_data *)0)) { return; } else { } ts_info->so_timestamping = ts_info->so_timestamping | 69U; if (((unsigned long )primary != (unsigned long )((struct efx_nic *)0) && (unsigned long )primary->ptp_data != (unsigned long )((struct efx_ptp_data *)0)) && (unsigned long )(primary->ptp_data)->phc_clock != (unsigned long )((struct ptp_clock *)0)) { { ts_info->phc_index = ptp_clock_index((primary->ptp_data)->phc_clock); } } else { } ts_info->tx_types = 3U; ts_info->rx_filters = ((ptp->efx)->type)->hwtstamp_filters; return; } } int efx_ptp_set_ts_config(struct efx_nic *efx , struct ifreq *ifr ) { struct hwtstamp_config config ; int rc ; unsigned long tmp ; unsigned long tmp___0 ; { if ((unsigned long )efx->ptp_data == (unsigned long )((struct efx_ptp_data *)0)) { return (-95); } else { } { tmp = copy_from_user((void *)(& config), (void const *)ifr->ifr_ifru.ifru_data, 12UL); } if (tmp != 0UL) { return (-14); } else { } { rc = efx_ptp_ts_init(efx, & config); } if (rc != 0) { return (rc); } else { } { tmp___0 = copy_to_user(ifr->ifr_ifru.ifru_data, (void const *)(& config), 12UL); } return (tmp___0 != 0UL ? -14 : 0); } } int efx_ptp_get_ts_config(struct efx_nic *efx , struct ifreq *ifr ) { unsigned long tmp ; { if ((unsigned long )efx->ptp_data == (unsigned long )((struct efx_ptp_data *)0)) { return (-95); } else { } { tmp = copy_to_user(ifr->ifr_ifru.ifru_data, (void const *)(& (efx->ptp_data)->config), 12UL); } return (tmp != 0UL ? -14 : 0); } } static void ptp_event_failure(struct efx_nic *efx , int expected_frag_len ) { struct efx_ptp_data *ptp ; { ptp = efx->ptp_data; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PTP unexpected event length: got %d expected %d\n", ptp->evt_frag_idx, expected_frag_len); } } else { } { ptp->reset_required = 1; queue_work(ptp->workwq, & ptp->work); } return; } } static void ptp_event_rx(struct efx_nic *efx , struct efx_ptp_data *ptp ) { struct efx_ptp_event_rx *evt ; bool __warned ; int __ret_warn_once ; int __ret_warn_on ; long tmp ; long tmp___0 ; long tmp___1 ; long tmp___2 ; struct list_head const *__mptr ; unsigned long tmp___3 ; int tmp___4 ; { { evt = (struct efx_ptp_event_rx *)0; __ret_warn_once = (int )ptp->rx_ts_inline; tmp___1 = ldv__builtin_expect(__ret_warn_once != 0, 0L); } if (tmp___1 != 0L) { { __ret_warn_on = ! __warned; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/ptp.c", 1609); } } else { } { tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { __warned = 1; } else { } } else { } { tmp___2 = ldv__builtin_expect(__ret_warn_once != 0, 0L); } if (tmp___2 != 0L) { return; } else { } if (ptp->evt_frag_idx != 3) { { ptp_event_failure(efx, 3); } return; } else { } { ldv_spin_lock_bh_93___0(& ptp->evt_lock); tmp___4 = list_empty((struct list_head const *)(& ptp->evt_free_list)); } if (tmp___4 == 0) { { __mptr = (struct list_head const *)ptp->evt_free_list.next; evt = (struct efx_ptp_event_rx *)__mptr; list_del(& evt->link); evt->seq0 = (u32 )ptp->evt_frags[2].u64[0]; evt->seq1 = (((u32 )(ptp->evt_frags[2].u64[0] >> 36) & 255U) | (((u32 )(ptp->evt_frags[1].u64[0] >> 36) << 8U) & 65535U)) | (((u32 )(ptp->evt_frags[0].u64[0] >> 36) & 255U) << 16U); evt->hwtimestamp = (*((efx->ptp_data)->nic_to_kernel_time))((u32 )ptp->evt_frags[0].u64[0], (u32 )ptp->evt_frags[1].u64[0], ptp->ts_corrections.rx); tmp___3 = msecs_to_jiffies(10U); evt->expiry = (unsigned long )jiffies + tmp___3; list_add_tail(& evt->link, & ptp->evt_list); queue_work(ptp->workwq, & ptp->work); } } else if (! ptp->evt_overflow) { if ((efx->msg_enable & 64U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PTP event queue overflow\n"); } } else { } ptp->evt_overflow = 1; } else { } { ldv_spin_unlock_bh_94___0(& ptp->evt_lock); } return; } } static void ptp_event_fault(struct efx_nic *efx , struct efx_ptp_data *ptp ) { int code ; { code = (int )ptp->evt_frags[0].u64[0]; if (ptp->evt_frag_idx != 1) { { ptp_event_failure(efx, 1); } return; } else { } if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PTP error %d\n", code); } } else { } return; } } static void ptp_event_pps(struct efx_nic *efx , struct efx_ptp_data *ptp ) { { if ((int )ptp->nic_ts_enabled) { { queue_work(ptp->pps_workwq, & ptp->pps_work); } } else { } return; } } void efx_ptp_event(struct efx_nic *efx , efx_qword_t *ev ) { struct efx_ptp_data *ptp ; int code ; int tmp ; int tmp___0 ; { ptp = efx->ptp_data; code = (int )(ev->u64[0] >> 44) & 255; if ((unsigned long )ptp == (unsigned long )((struct efx_ptp_data *)0)) { { tmp = net_ratelimit(); } if (tmp != 0) { if ((int )efx->msg_enable & 1) { { netdev_warn((struct net_device const *)efx->net_dev, "Received PTP event but PTP not set up\n"); } } else { } } else { } return; } else { } if (! ptp->enabled) { return; } else { } if (ptp->evt_frag_idx == 0) { ptp->evt_code = code; } else if (ptp->evt_code != code) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PTP out of sequence event %d\n", code); } } else { } ptp->evt_frag_idx = 0; } else { } tmp___0 = ptp->evt_frag_idx; ptp->evt_frag_idx = ptp->evt_frag_idx + 1; ptp->evt_frags[tmp___0] = *ev; if (((ev->u64[0] >> 32) & 1ULL) == 0ULL) { { if (code == 13) { goto case_13; } else { } if (code == 14) { goto case_14; } else { } if (code == 15) { goto case_15; } else { } goto switch_default; case_13: /* CIL Label */ { ptp_event_rx(efx, ptp); } goto ldv_51272; case_14: /* CIL Label */ { ptp_event_fault(efx, ptp); } goto ldv_51272; case_15: /* CIL Label */ { ptp_event_pps(efx, ptp); } goto ldv_51272; switch_default: /* CIL Label */ ; if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PTP unknown event %d\n", code); } } else { } goto ldv_51272; switch_break: /* CIL Label */ ; } ldv_51272: ptp->evt_frag_idx = 0; } else if (ptp->evt_frag_idx == 3) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "PTP too many event fragments\n"); } } else { } ptp->evt_frag_idx = 0; } else { } return; } } void efx_time_sync_event(struct efx_channel *channel , efx_qword_t *ev ) { enum efx_sync_events_state __ret ; enum efx_sync_events_state __old ; enum efx_sync_events_state __new ; u8 volatile *__ptr ; u16 volatile *__ptr___0 ; u32 volatile *__ptr___1 ; u64 volatile *__ptr___2 ; { channel->sync_timestamp_major = (u32 )ev->u64[0]; channel->sync_timestamp_minor = ((u32 )(ev->u64[0] >> 36) & 255U) << 19U; __old = 2; __new = 3; { if (4UL == 1UL) { goto case_1; } else { } if (4UL == 2UL) { goto case_2; } else { } if (4UL == 4UL) { goto case_4; } else { } if (4UL == 8UL) { goto case_8; } else { } goto switch_default; case_1: /* CIL Label */ __ptr = (u8 volatile *)(& channel->sync_events_state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgb %2,%1": "=a" (__ret), "+m" (*__ptr): "q" (__new), "0" (__old): "memory"); goto ldv_51285; case_2: /* CIL Label */ __ptr___0 = (u16 volatile *)(& channel->sync_events_state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgw %2,%1": "=a" (__ret), "+m" (*__ptr___0): "r" (__new), "0" (__old): "memory"); goto ldv_51285; case_4: /* CIL Label */ __ptr___1 = (u32 volatile *)(& channel->sync_events_state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgl %2,%1": "=a" (__ret), "+m" (*__ptr___1): "r" (__new), "0" (__old): "memory"); goto ldv_51285; case_8: /* CIL Label */ __ptr___2 = (u64 volatile *)(& channel->sync_events_state); __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; cmpxchgq %2,%1": "=a" (__ret), "+m" (*__ptr___2): "r" (__new), "0" (__old): "memory"); goto ldv_51285; switch_default: /* CIL Label */ { __cmpxchg_wrong_size(); } switch_break: /* CIL Label */ ; } ldv_51285: ; return; } } __inline static u32 efx_rx_buf_timestamp_minor(struct efx_nic *efx , u8 const *eh ) { __u32 tmp ; { { tmp = __le32_to_cpup((__le32 const *)eh + (unsigned long )efx->rx_packet_ts_offset); } return (tmp); } } void __efx_rx_skb_attach_timestamp(struct efx_channel *channel , struct sk_buff *skb ) { struct efx_nic *efx ; u32 pkt_timestamp_major ; u32 pkt_timestamp_minor ; u32 diff ; u32 carry ; struct skb_shared_hwtstamps *timestamps ; unsigned char *tmp ; u32 tmp___0 ; { { efx = channel->efx; tmp = skb_mac_header((struct sk_buff const *)skb); tmp___0 = efx_rx_buf_timestamp_minor(efx, (u8 const *)tmp); pkt_timestamp_minor = (tmp___0 + (u32 )(efx->ptp_data)->ts_corrections.rx) & 134217727U; diff = (pkt_timestamp_minor - channel->sync_timestamp_minor) & 134217727U; carry = channel->sync_timestamp_minor + diff > 134217728U; } if (diff <= 46976204U) { pkt_timestamp_major = channel->sync_timestamp_major + carry; } else if (diff > 120795955U) { pkt_timestamp_major = (channel->sync_timestamp_major + carry) - 1U; } else { return; } { timestamps = skb_hwtstamps(skb); timestamps->hwtstamp = efx_ptp_s27_to_ktime(pkt_timestamp_major, pkt_timestamp_minor); } return; } } static int efx_phc_adjfreq(struct ptp_clock_info *ptp , s32 delta ) { struct efx_ptp_data *ptp_data ; struct ptp_clock_info const *__mptr ; struct efx_nic *efx ; efx_dword_t inadj[6U] ; s64 adjustment_ns ; int rc ; { __mptr = (struct ptp_clock_info const *)ptp; ptp_data = (struct efx_ptp_data *)__mptr + 0xfffffffffffffc78UL; efx = ptp_data->efx; if (delta > 1000000) { delta = 1000000; } else if (delta < -1000000) { delta = -1000000; } else { } { adjustment_ns = (long long )delta * 4611686018LL >> 22; ((efx_dword_t *)(& inadj))->u32[0] = 6U; ((efx_dword_t *)(& inadj) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& inadj) + 2UL)->u32[0] = (unsigned int )adjustment_ns; ((efx_dword_t *)(& inadj) + 3U)->u32[0] = (unsigned int )((unsigned long long )adjustment_ns >> 32); ((efx_dword_t *)(& inadj) + 4UL)->u32[0] = 0U; ((efx_dword_t *)(& inadj) + 5UL)->u32[0] = 0U; rc = efx_mcdi_rpc(efx, 11U, (efx_dword_t const *)(& inadj), 24UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } if (rc != 0) { return (rc); } else { } ptp_data->current_adjfreq = adjustment_ns; return (0); } } static int efx_phc_adjtime(struct ptp_clock_info *ptp , s64 delta ) { u32 nic_major ; u32 nic_minor ; struct efx_ptp_data *ptp_data ; struct ptp_clock_info const *__mptr ; struct efx_nic *efx ; efx_dword_t inbuf[6U] ; int tmp ; { { __mptr = (struct ptp_clock_info const *)ptp; ptp_data = (struct efx_ptp_data *)__mptr + 0xfffffffffffffc78UL; efx = ptp_data->efx; (*((efx->ptp_data)->ns_to_nic_time))(delta, & nic_major, & nic_minor); ((efx_dword_t *)(& inbuf))->u32[0] = 6U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = (unsigned int )ptp_data->current_adjfreq; ((efx_dword_t *)(& inbuf) + 3U)->u32[0] = (unsigned int )((unsigned long long )ptp_data->current_adjfreq >> 32); ((efx_dword_t *)(& inbuf) + 4UL)->u32[0] = nic_major; ((efx_dword_t *)(& inbuf) + 5UL)->u32[0] = nic_minor; tmp = efx_mcdi_rpc(efx, 11U, (efx_dword_t const *)(& inbuf), 24UL, (efx_dword_t *)0, 0UL, (size_t *)0UL); } return (tmp); } } static int efx_phc_gettime(struct ptp_clock_info *ptp , struct timespec *ts ) { struct efx_ptp_data *ptp_data ; struct ptp_clock_info const *__mptr ; struct efx_nic *efx ; efx_dword_t inbuf[2U] ; efx_dword_t outbuf[2U] ; int rc ; ktime_t kt ; { { __mptr = (struct ptp_clock_info const *)ptp; ptp_data = (struct efx_ptp_data *)__mptr + 0xfffffffffffffc78UL; efx = ptp_data->efx; ((efx_dword_t *)(& inbuf))->u32[0] = 4U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 0U; rc = efx_mcdi_rpc(efx, 11U, (efx_dword_t const *)(& inbuf), 8UL, (efx_dword_t *)(& outbuf), 8UL, (size_t *)0UL); } if (rc != 0) { return (rc); } else { } { kt = (*(ptp_data->nic_to_kernel_time))(((efx_dword_t *)(& outbuf))->u32[0], ((efx_dword_t *)(& outbuf) + 1UL)->u32[0], 0); *ts = ns_to_timespec(kt.tv64); } return (0); } } static int efx_phc_settime(struct ptp_clock_info *ptp , struct timespec const *e_ts ) { int rc ; struct timespec time_now ; struct timespec delta ; s64 tmp ; { { rc = efx_phc_gettime(ptp, & time_now); } if (rc != 0) { return (rc); } else { } { delta = timespec_sub(*e_ts, time_now); tmp = timespec_to_ns((struct timespec const *)(& delta)); rc = efx_phc_adjtime(ptp, tmp); } if (rc != 0) { return (rc); } else { } return (0); } } static int efx_phc_enable(struct ptp_clock_info *ptp , struct ptp_clock_request *request , int enable ) { struct efx_ptp_data *ptp_data ; struct ptp_clock_info const *__mptr ; { __mptr = (struct ptp_clock_info const *)ptp; ptp_data = (struct efx_ptp_data *)__mptr + 0xfffffffffffffc78UL; if ((unsigned int )request->type != 2U) { return (-95); } else { } ptp_data->nic_ts_enabled = enable != 0; return (0); } } static struct efx_channel_type const efx_ptp_channel_type = {& efx_ptp_handle_no_channel, & efx_ptp_probe_channel, & efx_ptp_remove_channel, & efx_ptp_get_channel_name, 0, & efx_ptp_rx, 0}; void efx_ptp_defer_probe_with_channel(struct efx_nic *efx ) { int tmp ; { { tmp = efx_ptp_disable(efx); } if (tmp == 0) { efx->extra_channel_type[1] = & efx_ptp_channel_type; } else { } return; } } void efx_ptp_start_datapath(struct efx_nic *efx ) { int tmp ; { { tmp = efx_ptp_restart(efx); } if (tmp != 0) { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "Failed to restart PTP.\n"); } } else { } } else { } if ((unsigned long )(efx->type)->ptp_set_ts_sync_events != (unsigned long )((int (*/* const */)(struct efx_nic * , bool , bool ))0)) { { (*((efx->type)->ptp_set_ts_sync_events))(efx, 1, 1); } } else { } return; } } void efx_ptp_stop_datapath(struct efx_nic *efx ) { { if ((unsigned long )(efx->type)->ptp_set_ts_sync_events != (unsigned long )((int (*/* const */)(struct efx_nic * , bool , bool ))0)) { { (*((efx->type)->ptp_set_ts_sync_events))(efx, 0, 1); } } else { } { efx_ptp_stop(efx); } return; } } void ldv_dispatch_register_35_1(struct ptp_clock_info *arg0 ) ; void ldv_dummy_resourceless_instance_callback_21_12(int (*arg0)(struct ptp_clock_info * , struct ptp_clock_request * , int ) , struct ptp_clock_info *arg1 , struct ptp_clock_request *arg2 , int arg3 ) ; void ldv_dummy_resourceless_instance_callback_21_15(int (*arg0)(struct ptp_clock_info * , struct timespec * ) , struct ptp_clock_info *arg1 , struct timespec *arg2 ) ; void ldv_dummy_resourceless_instance_callback_21_16(int (*arg0)(struct ptp_clock_info * , struct timespec * ) , struct ptp_clock_info *arg1 , struct timespec *arg2 ) ; void ldv_dummy_resourceless_instance_callback_21_3(int (*arg0)(struct ptp_clock_info * , int ) , struct ptp_clock_info *arg1 , int arg2 ) ; void ldv_dummy_resourceless_instance_callback_21_9(int (*arg0)(struct ptp_clock_info * , long long ) , struct ptp_clock_info *arg1 , long long arg2 ) ; struct ptp_clock *ldv_ptp_clock_register(struct ptp_clock *arg0 , struct ptp_clock_info *arg1 , struct device *arg2 ) ; void ldv_switch_automaton_state_21_5(void) ; int (*ldv_21_callback_adjfreq)(struct ptp_clock_info * , int ) ; int (*ldv_21_callback_adjtime)(struct ptp_clock_info * , long long ) ; int (*ldv_21_callback_enable)(struct ptp_clock_info * , struct ptp_clock_request * , int ) ; int (*ldv_21_callback_gettime)(struct ptp_clock_info * , struct timespec * ) ; int (*ldv_21_callback_settime)(struct ptp_clock_info * , struct timespec * ) ; struct ptp_clock_info *ldv_21_container_struct_ptp_clock_info ; int ldv_statevar_21 ; _Bool (*ldv_10_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_11_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; int (*ldv_11_callback_pre_probe)(struct efx_channel * ) = & efx_ptp_probe_channel; _Bool (*ldv_11_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_12_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_12_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_13_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_13_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_14_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_14_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_15_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_15_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_16_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_16_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_17_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_ptp_get_channel_name; void (*ldv_17_callback_handle_no_channel)(struct efx_nic * ) = & efx_ptp_handle_no_channel; void (*ldv_17_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_17_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void (*ldv_18_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_ptp_get_channel_name; void (*ldv_18_callback_handle_no_channel)(struct efx_nic * ) = & efx_ptp_handle_no_channel; void (*ldv_18_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_18_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; int (*ldv_21_callback_adjfreq)(struct ptp_clock_info * , int ) = & efx_phc_adjfreq; int (*ldv_21_callback_adjtime)(struct ptp_clock_info * , long long ) = & efx_phc_adjtime; int (*ldv_21_callback_enable)(struct ptp_clock_info * , struct ptp_clock_request * , int ) = & efx_phc_enable; int (*ldv_21_callback_gettime)(struct ptp_clock_info * , struct timespec * ) = & efx_phc_gettime; int (*ldv_21_callback_settime)(struct ptp_clock_info * , struct timespec * ) = (int (*)(struct ptp_clock_info * , struct timespec * ))(& efx_phc_settime); void (*ldv_9_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_ptp_get_channel_name; void (*ldv_9_callback_handle_no_channel)(struct efx_nic * ) = & efx_ptp_handle_no_channel; void (*ldv_9_callback_post_remove)(struct efx_channel * ) = & efx_ptp_remove_channel; _Bool (*ldv_9_callback_receive_skb)(struct efx_channel * , struct sk_buff * ) = & efx_ptp_rx; void ldv_dispatch_register_35_1(struct ptp_clock_info *arg0 ) { { { ldv_21_container_struct_ptp_clock_info = arg0; ldv_switch_automaton_state_21_5(); } return; } } void ldv_dummy_resourceless_instance_callback_21_12(int (*arg0)(struct ptp_clock_info * , struct ptp_clock_request * , int ) , struct ptp_clock_info *arg1 , struct ptp_clock_request *arg2 , int arg3 ) { { { efx_phc_enable(arg1, arg2, arg3); } return; } } void ldv_dummy_resourceless_instance_callback_21_15(int (*arg0)(struct ptp_clock_info * , struct timespec * ) , struct ptp_clock_info *arg1 , struct timespec *arg2 ) { { { efx_phc_gettime(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_21_16(int (*arg0)(struct ptp_clock_info * , struct timespec * ) , struct ptp_clock_info *arg1 , struct timespec *arg2 ) { { { efx_phc_settime(arg1, (struct timespec const *)arg2); } return; } } void ldv_dummy_resourceless_instance_callback_21_3(int (*arg0)(struct ptp_clock_info * , int ) , struct ptp_clock_info *arg1 , int arg2 ) { { { efx_phc_adjfreq(arg1, arg2); } return; } } void ldv_dummy_resourceless_instance_callback_21_9(int (*arg0)(struct ptp_clock_info * , long long ) , struct ptp_clock_info *arg1 , long long arg2 ) { { { efx_phc_adjtime(arg1, arg2); } return; } } void ldv_io_instance_callback_10_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_11_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_11_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_probe_channel(arg1); } return; } } void ldv_io_instance_callback_11_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_12_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_12_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_13_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_13_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_14_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_14_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_15_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_15_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_16_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_16_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_17_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_17_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_17_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_ptp_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_17_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ptp_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_18_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_18_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_18_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_ptp_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_18_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ptp_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_9_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_ptp_remove_channel(arg1); } return; } } void ldv_io_instance_callback_9_122(_Bool (*arg0)(struct efx_channel * , struct sk_buff * ) , struct efx_channel *arg1 , struct sk_buff *arg2 ) { { { efx_ptp_rx(arg1, arg2); } return; } } void ldv_io_instance_callback_9_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_ptp_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_9_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_ptp_handle_no_channel(arg1); } return; } } struct ptp_clock *ldv_ptp_clock_register(struct ptp_clock *arg0 , struct ptp_clock_info *arg1 , struct device *arg2 ) { struct ptp_clock_info *ldv_35_struct_ptp_clock_info_struct_ptp_clock_info ; { { ldv_35_struct_ptp_clock_info_struct_ptp_clock_info = arg1; ldv_assume(ldv_statevar_21 == 5); ldv_dispatch_register_35_1(ldv_35_struct_ptp_clock_info_struct_ptp_clock_info); } return (arg0); return (arg0); } } void ldv_struct_ptp_clock_info_dummy_resourceless_instance_21(void *arg0 ) { int tmp ; int tmp___0 ; { { if (ldv_statevar_21 == 1) { goto case_1; } else { } if (ldv_statevar_21 == 2) { goto case_2; } else { } if (ldv_statevar_21 == 3) { goto case_3; } else { } if (ldv_statevar_21 == 4) { goto case_4; } else { } if (ldv_statevar_21 == 5) { goto case_5; } else { } goto switch_default; case_1: /* CIL Label */ ; goto ldv_51995; case_2: /* CIL Label */ { tmp = ldv_undef_int(); } if (tmp != 0) { ldv_statevar_21 = 1; } else { ldv_statevar_21 = 7; } goto ldv_51995; case_3: /* CIL Label */ { ldv_dummy_resourceless_instance_callback_21_3(ldv_21_callback_adjfreq, ldv_21_container_struct_ptp_clock_info, ldv_21_ldv_param_3_1_default); ldv_statevar_21 = 8; } goto ldv_51995; case_4: /* CIL Label */ { tmp___0 = ldv_undef_int(); } if (tmp___0 != 0) { ldv_statevar_21 = 1; } else { ldv_statevar_21 = 7; } goto ldv_51995; case_5: /* CIL Label */ ; goto ldv_51995; switch_default: /* CIL Label */ ; switch_break: /* CIL Label */ ; } ldv_51995: ; return; } } void ldv_switch_automaton_state_21_1(void) { { ldv_statevar_21 = 5; return; } } void ldv_switch_automaton_state_21_5(void) { { ldv_statevar_21 = 4; return; } } __inline static void ldv_spin_lock_bh_93___0(spinlock_t *lock ) { { { ldv_spin_lock_evt_lock_of_efx_ptp_data(); spin_lock_bh(lock); } return; } } __inline static void ldv_spin_unlock_bh_94___0(spinlock_t *lock ) { { { ldv_spin_unlock_evt_lock_of_efx_ptp_data(); spin_unlock_bh(lock); } return; } } static struct ptp_clock *ldv_ptp_clock_register_101(struct ptp_clock_info *ldv_func_arg1 , struct device *ldv_func_arg2 ) { ldv_func_ret_type___8 ldv_func_res ; struct ptp_clock *tmp ; struct ptp_clock *tmp___0 ; { { tmp = ptp_clock_register(ldv_func_arg1, ldv_func_arg2); ldv_func_res = tmp; tmp___0 = ldv_ptp_clock_register(ldv_func_res, ldv_func_arg1, ldv_func_arg2); } return (tmp___0); return (ldv_func_res); } } extern int mtd_device_parse_register(struct mtd_info * , char const * const * , struct mtd_part_parser_data * , struct mtd_partition const * , int ) ; extern int mtd_device_unregister(struct mtd_info * ) ; extern void mtd_erase_callback(struct erase_info * ) ; static int efx_mtd_erase(struct mtd_info *mtd , struct erase_info *erase ) { struct efx_nic *efx ; int rc ; { { efx = (struct efx_nic *)mtd->priv; rc = (*((efx->type)->mtd_erase))(mtd, (loff_t )erase->addr, (size_t )erase->len); } if (rc == 0) { erase->state = 8U; } else { erase->state = 16U; erase->fail_addr = 0xffffffffffffffffULL; } { mtd_erase_callback(erase); } return (rc); } } static void efx_mtd_sync(struct mtd_info *mtd ) { struct efx_mtd_partition *part ; struct mtd_info const *__mptr ; struct efx_nic *efx ; int rc ; { { __mptr = (struct mtd_info const *)mtd; part = (struct efx_mtd_partition *)__mptr + 0xfffffffffffffff0UL; efx = (struct efx_nic *)mtd->priv; rc = (*((efx->type)->mtd_sync))(mtd); } if (rc != 0) { { printk("\v%s: %s sync failed (%d)\n", (char *)(& part->name), part->dev_type_name, rc); } } else { } return; } } static void efx_mtd_remove_partition(struct efx_mtd_partition *part ) { int rc ; int __ret_warn_on ; long tmp ; { ldv_45876: { rc = mtd_device_unregister(& part->mtd); } if (rc != -16) { goto ldv_45875; } else { } { ssleep(1U); } goto ldv_45876; ldv_45875: { __ret_warn_on = rc != 0; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mtd.c", 62); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); list_del(& part->node); } return; } } int efx_mtd_add(struct efx_nic *efx , struct efx_mtd_partition *parts , size_t n_parts , size_t sizeof_part ) { struct efx_mtd_partition *part ; size_t i ; int tmp ; size_t tmp___0 ; { i = 0UL; goto ldv_45889; ldv_45888: { part = parts + i * sizeof_part; part->mtd.writesize = 1U; part->mtd.owner = & __this_module; part->mtd.priv = (void *)efx; part->mtd.name = (char const *)(& part->name); part->mtd._erase = & efx_mtd_erase; part->mtd._read = (int (*)(struct mtd_info * , loff_t , size_t , size_t * , u_char * ))(efx->type)->mtd_read; part->mtd._write = (int (*)(struct mtd_info * , loff_t , size_t , size_t * , u_char const * ))(efx->type)->mtd_write; part->mtd._sync = & efx_mtd_sync; (*((efx->type)->mtd_rename))(part); tmp = mtd_device_parse_register(& part->mtd, (char const * const *)0, (struct mtd_part_parser_data *)0, (struct mtd_partition const *)0, 0); } if (tmp != 0) { goto fail; } else { } { list_add_tail(& part->node, & efx->mtd_list); i = i + 1UL; } ldv_45889: ; if (i < n_parts) { goto ldv_45888; } else { } return (0); fail: ; goto ldv_45892; ldv_45891: { part = parts + i * sizeof_part; efx_mtd_remove_partition(part); } ldv_45892: tmp___0 = i; i = i - 1UL; if (tmp___0 != 0UL) { goto ldv_45891; } else { } return (-12); } } void efx_mtd_remove(struct efx_nic *efx ) { struct efx_mtd_partition *parts ; struct efx_mtd_partition *part ; struct efx_mtd_partition *next ; int __ret_warn_on ; int tmp ; long tmp___0 ; int tmp___1 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; struct list_head const *__mptr___2 ; { { tmp = efx_dev_registered(efx); __ret_warn_on = tmp != 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/mtd.c", 111); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); tmp___1 = list_empty((struct list_head const *)(& efx->mtd_list)); } if (tmp___1 != 0) { return; } else { } __mptr = (struct list_head const *)efx->mtd_list.next; parts = (struct efx_mtd_partition *)__mptr; __mptr___0 = (struct list_head const *)efx->mtd_list.next; part = (struct efx_mtd_partition *)__mptr___0; __mptr___1 = (struct list_head const *)part->node.next; next = (struct efx_mtd_partition *)__mptr___1; goto ldv_45911; ldv_45910: { efx_mtd_remove_partition(part); part = next; __mptr___2 = (struct list_head const *)next->node.next; next = (struct efx_mtd_partition *)__mptr___2; } ldv_45911: ; if ((unsigned long )(& part->node) != (unsigned long )(& efx->mtd_list)) { goto ldv_45910; } else { } { kfree((void const *)parts); } return; } } void efx_mtd_rename(struct efx_nic *efx ) { struct efx_mtd_partition *part ; int tmp ; long tmp___0 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/mtd.c", 129); dump_stack(); } } else { } __mptr = (struct list_head const *)efx->mtd_list.next; part = (struct efx_mtd_partition *)__mptr; goto ldv_45922; ldv_45921: { (*((efx->type)->mtd_rename))(part); __mptr___0 = (struct list_head const *)part->node.next; part = (struct efx_mtd_partition *)__mptr___0; } ldv_45922: ; if ((unsigned long )(& part->node) != (unsigned long )(& efx->mtd_list)) { goto ldv_45921; } else { } return; } } __inline static void __list_splice(struct list_head const *list , struct list_head *prev , struct list_head *next ) { struct list_head *first ; struct list_head *last ; { first = list->next; last = list->prev; first->prev = prev; prev->next = first; last->next = next; next->prev = last; return; } } __inline static void list_splice_tail_init(struct list_head *list , struct list_head *head ) { int tmp ; { { tmp = list_empty((struct list_head const *)list); } if (tmp == 0) { { __list_splice((struct list_head const *)list, head->prev, head); INIT_LIST_HEAD(list); } } else { } return; } } __inline static int __test_and_set_bit(long nr , unsigned long volatile *addr ) { int oldbit ; { __asm__ ("bts %2,%1\n\tsbb %0,%0": "=r" (oldbit), "+m" (*((long volatile *)addr)): "Ir" (nr)); return (oldbit); } } static void ldv___ldv_spin_lock_66___2(spinlock_t *ldv_func_arg1 ) ; static void ldv___ldv_spin_lock_68___0(spinlock_t *ldv_func_arg1 ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void ldv_spin_unlock_irqrestore_71(spinlock_t *lock , unsigned long flags ) ; __inline static void *kzalloc(size_t size , gfp_t flags ) ; extern int pci_find_ext_capability(struct pci_dev * , int ) ; extern int pci_bus_read_config_word(struct pci_bus * , unsigned int , int , u16 * ) ; __inline static int pci_read_config_word(struct pci_dev const *dev , int where , u16 *val ) { int tmp ; { { tmp = pci_bus_read_config_word(dev->bus, dev->devfn, where, val); } return (tmp); } } __inline static int pci_domain_nr(struct pci_bus *bus ) { struct pci_sysdata *sd ; { sd = (struct pci_sysdata *)bus->sysdata; return (sd->domain); } } extern int pci_enable_sriov(struct pci_dev * , int ) ; extern void pci_disable_sriov(struct pci_dev * ) ; __inline static void efx_filter_init_tx(struct efx_filter_spec *spec , unsigned int txq_id ) { { { memset((void *)spec, 0, 64UL); spec->priority = 3U; spec->flags = 16U; spec->dmaq_id = (unsigned short )txq_id; } return; } } __inline static void efx_writeo___2(struct efx_nic *efx , efx_oword_t const *value , unsigned int reg ) { unsigned long flags ; { { ldv___ldv_spin_lock_66___2(& efx->biu_lock); _efx_writeq(efx, value->u64[0], reg); _efx_writeq(efx, value->u64[1], reg + 8U); __asm__ volatile ("": : : "memory"); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_sram_writeq___0(struct efx_nic *efx , void *membase , efx_qword_t const *value , unsigned int index ) { unsigned int addr ; unsigned long flags ; { { addr = index * 8U; ldv___ldv_spin_lock_68___0(& efx->biu_lock); writeq((unsigned long )value->u64[0], (void volatile *)membase + (unsigned long )addr); __asm__ volatile ("": : : "memory"); ldv_spin_unlock_irqrestore_71(& efx->biu_lock, flags); } return; } } __inline static void efx_writeo_table___0(struct efx_nic *efx , efx_oword_t const *value , unsigned int reg , unsigned int index ) { { { efx_writeo___2(efx, value, reg + index * 16U); } return; } } static unsigned int vf_max_tx_channels = 2U; static int max_vfs = -1; static struct workqueue_struct *vfdi_workqueue ; static unsigned int abs_index(struct efx_vf *vf , unsigned int index ) { unsigned int tmp ; { { tmp = efx_vf_size(vf->efx); } return ((vf->index * tmp + index) + 128U); } } static int efx_sriov_cmd(struct efx_nic *efx , bool enable , unsigned int *vi_scale_out , unsigned int *vf_total_out ) { efx_dword_t inbuf[3U] ; efx_dword_t outbuf[2U] ; unsigned int vi_scale ; unsigned int vf_total ; size_t outlen ; int rc ; { { ((efx_dword_t *)(& inbuf))->u32[0] = (int )enable ? 1U : 0U; ((efx_dword_t *)(& inbuf) + 1UL)->u32[0] = 128U; ((efx_dword_t *)(& inbuf) + 2UL)->u32[0] = efx->vf_count; rc = efx_mcdi_rpc(efx, 48U, (efx_dword_t const *)(& inbuf), 12UL, (efx_dword_t *)(& outbuf), 8UL, & outlen); } if (rc != 0) { return (rc); } else { } if (outlen <= 7UL) { return (-5); } else { } vf_total = ((efx_dword_t *)(& outbuf) + 1UL)->u32[0]; vi_scale = ((efx_dword_t *)(& outbuf))->u32[0]; if (vi_scale > 6U) { return (-95); } else { } if ((unsigned long )vi_scale_out != (unsigned long )((unsigned int *)0U)) { *vi_scale_out = vi_scale; } else { } if ((unsigned long )vf_total_out != (unsigned long )((unsigned int *)0U)) { *vf_total_out = vf_total; } else { } return (0); } } static void efx_sriov_usrev(struct efx_nic *efx , bool enabled ) { efx_oword_t reg ; { { reg.u64[0] = ((unsigned long long )(! enabled) << 16) | (unsigned long long )(efx->vfdi_channel)->channel; reg.u64[1] = 0ULL; efx_writeo___2(efx, (efx_oword_t const *)(& reg), 256U); } return; } } static int efx_sriov_memcpy(struct efx_nic *efx , struct efx_memcpy_req *req , unsigned int count ) { efx_dword_t inbuf[63U] ; efx_dword_t *record ; unsigned int index ; unsigned int used ; u64 from_addr ; u32 from_rid ; int rc ; int __ret_warn_on ; long tmp ; long tmp___0 ; int __ret_warn_on___0 ; long tmp___1 ; long tmp___2 ; { { __asm__ volatile ("mfence": : : "memory"); __ret_warn_on = count > 7U; tmp = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/siena_sriov.c", 252); } } else { } { tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { return (-105); } else { } used = count * 32U; index = 0U; goto ldv_47129; ldv_47128: record = (efx_dword_t *)(& inbuf) + (unsigned long )index * 32UL; record->u32[0] = count; (record + 1UL)->u32[0] = req->to_rid; (record + 2UL)->u32[0] = (unsigned int )req->to_addr; (record + 3U)->u32[0] = (unsigned int )(req->to_addr >> 32); if ((unsigned long )req->from_buf == (unsigned long )((void *)0)) { from_rid = req->from_rid; from_addr = req->from_addr; } else { { __ret_warn_on___0 = used + req->length > 252U; tmp___1 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/siena_sriov.c", 269); } } else { } { tmp___2 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___2 != 0L) { rc = -105; goto out; } else { } { from_rid = 256U; from_addr = (u64 )used; memcpy((void *)(& inbuf) + (unsigned long )used, (void const *)req->from_buf, (size_t )req->length); used = used + req->length; } } (record + 4UL)->u32[0] = from_rid; (record + 5UL)->u32[0] = (unsigned int )from_addr; (record + 6U)->u32[0] = (unsigned int )(from_addr >> 32); (record + 7UL)->u32[0] = req->length; req = req + 1; index = index + 1U; ldv_47129: ; if (index < count) { goto ldv_47128; } else { } { rc = efx_mcdi_rpc(efx, 49U, (efx_dword_t const *)(& inbuf), (size_t )used, (efx_dword_t *)0, 0UL, (size_t *)0UL); } out: __asm__ volatile ("mfence": : : "memory"); return (rc); } } static void efx_sriov_reset_tx_filter(struct efx_vf *vf ) { struct efx_nic *efx ; struct efx_filter_spec filter ; u16 vlan ; int rc ; struct _ddebug descriptor ; long tmp ; bool tmp___0 ; __u16 tmp___1 ; unsigned int tmp___2 ; long tmp___3 ; struct _ddebug descriptor___0 ; long tmp___4 ; { efx = vf->efx; if (vf->tx_filter_id != -1) { { efx_filter_remove_id_safe(efx, 3, (u32 )vf->tx_filter_id); } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_sriov_reset_tx_filter"; descriptor.filename = "drivers/net/ethernet/sfc/siena_sriov.c"; descriptor.format = "Removed vf %s tx filter %d\n"; descriptor.lineno = 311U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "Removed vf %s tx filter %d\n", (char *)(& vf->pci_name), vf->tx_filter_id); } } else { } } else { } vf->tx_filter_id = -1; } else { } { tmp___0 = is_zero_ether_addr((u8 const *)(& vf->addr.mac_addr)); } if ((int )tmp___0) { return; } else { } if ((unsigned int )vf->tx_filter_mode == 1U && vf_max_tx_channels <= 2U) { vf->tx_filter_mode = 2; } else { } { tmp___1 = __fswab16((int )vf->addr.tci); vlan = (unsigned int )tmp___1 & 4095U; tmp___2 = abs_index(vf, 0U); efx_filter_init_tx(& filter, tmp___2); rc = efx_filter_set_eth_local(& filter, (unsigned int )vlan != 0U ? (int )vlan : 65535, (u8 const *)(& vf->addr.mac_addr)); tmp___3 = ldv__builtin_expect(rc != 0, 0L); } if (tmp___3 != 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 *)"drivers/net/ethernet/sfc/siena_sriov.c"), "i" (329), "i" (12UL)); __builtin_unreachable(); } } else { } { rc = efx_filter_insert_filter(efx, & filter, 1); } if (rc < 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_warn((struct net_device const *)efx->net_dev, "Unable to migrate tx filter for vf %s\n", (char *)(& vf->pci_name)); } } else { } } else { if ((efx->msg_enable & 8192U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_sriov_reset_tx_filter"; descriptor___0.filename = "drivers/net/ethernet/sfc/siena_sriov.c"; descriptor___0.format = "Inserted vf %s tx filter %d\n"; descriptor___0.lineno = 338U; 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 *)efx->net_dev, "Inserted vf %s tx filter %d\n", (char *)(& vf->pci_name), rc); } } else { } } else { } vf->tx_filter_id = rc; } return; } } static void efx_sriov_reset_rx_filter(struct efx_vf *vf ) { struct efx_nic *efx ; struct efx_filter_spec filter ; u16 vlan ; int rc ; struct _ddebug descriptor ; long tmp ; bool tmp___0 ; __u16 tmp___1 ; unsigned int tmp___2 ; long tmp___3 ; struct _ddebug descriptor___0 ; long tmp___4 ; { efx = vf->efx; if (vf->rx_filter_id != -1) { { efx_filter_remove_id_safe(efx, 3, (u32 )vf->rx_filter_id); } if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_sriov_reset_rx_filter"; descriptor.filename = "drivers/net/ethernet/sfc/siena_sriov.c"; descriptor.format = "Removed vf %s rx filter %d\n"; descriptor.lineno = 355U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); } if (tmp != 0L) { { __dynamic_netdev_dbg(& descriptor, (struct net_device const *)efx->net_dev, "Removed vf %s rx filter %d\n", (char *)(& vf->pci_name), vf->rx_filter_id); } } else { } } else { } vf->rx_filter_id = -1; } else { } if (! vf->rx_filtering) { return; } else { { tmp___0 = is_zero_ether_addr((u8 const *)(& vf->addr.mac_addr)); } if ((int )tmp___0) { return; } else { } } { tmp___1 = __fswab16((int )vf->addr.tci); vlan = (unsigned int )tmp___1 & 4095U; tmp___2 = abs_index(vf, vf->rx_filter_qid); efx_filter_init_rx(& filter, 3, vf->rx_filter_flags, tmp___2); rc = efx_filter_set_eth_local(& filter, (unsigned int )vlan != 0U ? (int )vlan : 65535, (u8 const *)(& vf->addr.mac_addr)); tmp___3 = ldv__builtin_expect(rc != 0, 0L); } if (tmp___3 != 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 *)"drivers/net/ethernet/sfc/siena_sriov.c"), "i" (369), "i" (12UL)); __builtin_unreachable(); } } else { } { rc = efx_filter_insert_filter(efx, & filter, 1); } if (rc < 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_warn((struct net_device const *)efx->net_dev, "Unable to insert rx filter for vf %s\n", (char *)(& vf->pci_name)); } } else { } } else { if ((efx->msg_enable & 8192U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_sriov_reset_rx_filter"; descriptor___0.filename = "drivers/net/ethernet/sfc/siena_sriov.c"; descriptor___0.format = "Inserted vf %s rx filter %d\n"; descriptor___0.lineno = 378U; 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 *)efx->net_dev, "Inserted vf %s rx filter %d\n", (char *)(& vf->pci_name), rc); } } else { } } else { } vf->rx_filter_id = rc; } return; } } static void __efx_sriov_update_vf_addr(struct efx_vf *vf ) { { { efx_sriov_reset_tx_filter(vf); efx_sriov_reset_rx_filter(vf); queue_work(vfdi_workqueue, & (vf->efx)->peer_work); } return; } } static void __efx_sriov_push_vf_status(struct efx_vf *vf ) { struct efx_nic *efx ; struct vfdi_status *status ; struct efx_memcpy_req copy[4U] ; struct efx_endpoint_page *epp ; unsigned int pos ; unsigned int count ; unsigned int data_offset ; efx_qword_t event ; int __ret_warn_on ; int tmp ; long tmp___0 ; int __ret_warn_on___0 ; long tmp___1 ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; unsigned int tmp___2 ; { { efx = vf->efx; status = (struct vfdi_status *)efx->vfdi_status.addr; tmp = mutex_is_locked(& vf->status_lock); __ret_warn_on = tmp == 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___0 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/siena_sriov.c", 405); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); __ret_warn_on___0 = vf->status_addr == 0ULL; tmp___1 = ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); } if (tmp___1 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/siena_sriov.c", 406); } } else { } { ldv__builtin_expect(__ret_warn_on___0 != 0, 0L); status->local = vf->addr; status->generation_start = status->generation_start + 1U; status->generation_end = status->generation_start; memset((void *)(& copy), 0, 192UL); copy[0].from_buf = (void *)(& status->generation_start); copy[0].to_rid = vf->pci_rid; copy[0].to_addr = vf->status_addr; copy[0].length = 4U; data_offset = 8U; copy[1].from_rid = (efx->pci_dev)->devfn; copy[1].from_addr = efx->vfdi_status.dma_addr + (dma_addr_t )data_offset; copy[1].to_rid = vf->pci_rid; copy[1].to_addr = vf->status_addr + (u64 )data_offset; copy[1].length = status->length - data_offset; pos = 2U; count = 0U; __mptr = (struct list_head const *)efx->local_page_list.next; epp = (struct efx_endpoint_page *)__mptr; } goto ldv_47179; ldv_47178: ; if (count == vf->peer_page_count) { goto ldv_47173; } else { } copy[pos].from_buf = (void *)0; copy[pos].from_rid = (efx->pci_dev)->devfn; copy[pos].from_addr = epp->addr; copy[pos].to_rid = vf->pci_rid; copy[pos].to_addr = *(vf->peer_page_addrs + (unsigned long )count); copy[pos].length = 4096U; pos = pos + 1U; if (pos == 4U) { { efx_sriov_memcpy(efx, (struct efx_memcpy_req *)(& copy), 4U); pos = 0U; } } else { } count = count + 1U; __mptr___0 = (struct list_head const *)epp->link.next; epp = (struct efx_endpoint_page *)__mptr___0; ldv_47179: ; if ((unsigned long )(& epp->link) != (unsigned long )(& efx->local_page_list)) { goto ldv_47178; } else { } ldv_47173: { copy[pos].from_buf = (void *)(& status->generation_end); copy[pos].to_rid = vf->pci_rid; copy[pos].to_addr = vf->status_addr + 4ULL; copy[pos].length = 4U; efx_sriov_memcpy(efx, (struct efx_memcpy_req *)(& copy), pos + 1U); event.u64[0] = (((unsigned long long )vf->msg_seqno << 24) & 4294967295ULL) | 0x8000000000040000ULL; vf->msg_seqno = vf->msg_seqno + 1U; tmp___2 = efx_vf_size(efx); efx_farch_generate_event(efx, vf->index * tmp___2 + 128U, & event); } return; } } static void efx_sriov_bufs(struct efx_nic *efx , unsigned int offset , u64 *addr , unsigned int count ) { efx_qword_t buf ; unsigned int pos ; { pos = 0U; goto ldv_47189; ldv_47188: { buf.u64[0] = (unsigned long )addr != (unsigned long )((u64 *)0ULL) ? (*(addr + (unsigned long )pos) >> 12) << 14 : 0ULL; efx_sram_writeq___0(efx, efx->membase + 8388608UL, (efx_qword_t const *)(& buf), offset + pos); pos = pos + 1U; } ldv_47189: ; if (pos < count) { goto ldv_47188; } else { } return; } } static bool bad_vf_index(struct efx_nic *efx , unsigned int index ) { unsigned int tmp ; { { tmp = efx_vf_size(efx); } return (index >= tmp); } } static bool bad_buf_count(unsigned int buf_count , unsigned int max_entry_count ) { unsigned int max_buf_count ; { max_buf_count = (unsigned int )(((unsigned long )max_entry_count * 8UL) / 4096UL); return ((bool )((buf_count & (buf_count - 1U)) != 0U || buf_count > max_buf_count)); } } static bool map_vi_index(struct efx_nic *efx , unsigned int abs_index___0 , struct efx_vf **vf_out , unsigned int *rel_index_out ) { unsigned int vf_i ; unsigned int tmp ; unsigned int tmp___0 ; { if (abs_index___0 <= 127U) { return (1); } else { } { tmp = efx_vf_size(efx); vf_i = (abs_index___0 - 128U) / tmp; } if (vf_i >= efx->vf_init_count) { return (1); } else { } if ((unsigned long )vf_out != (unsigned long )((struct efx_vf **)0)) { *vf_out = efx->vf + (unsigned long )vf_i; } else { } if ((unsigned long )rel_index_out != (unsigned long )((unsigned int *)0U)) { { tmp___0 = efx_vf_size(efx); *rel_index_out = abs_index___0 % tmp___0; } } else { } return (0); } } static int efx_vfdi_init_evq(struct efx_vf *vf ) { struct efx_nic *efx ; struct vfdi_req *req ; unsigned int vf_evq ; unsigned int buf_count ; unsigned int abs_evq ; unsigned int tmp ; unsigned int buftbl ; efx_oword_t reg ; int tmp___0 ; bool tmp___1 ; bool tmp___2 ; unsigned long tmp___3 ; { { efx = vf->efx; req = (struct vfdi_req *)vf->buf.addr; vf_evq = req->u.init_evq.index; buf_count = req->u.init_evq.buf_count; tmp = abs_index(vf, vf_evq); abs_evq = tmp; buftbl = (vf->buftbl_base + vf_evq * 32U) + 16U; tmp___1 = bad_vf_index(efx, vf_evq); } if ((int )tmp___1) { goto _L; } else { { tmp___2 = bad_buf_count(buf_count, 8192U); } if ((int )tmp___2) { _L: /* CIL Label */ { tmp___0 = net_ratelimit(); } if (tmp___0 != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Invalid INIT_EVQ from %s: evq %d bufs %d\n", (char *)(& vf->pci_name), vf_evq, buf_count); } } else { } } else { } return (-22); } else { } } { efx_sriov_bufs(efx, buftbl, (u64 *)(& req->u.init_evq.addr), buf_count); reg.u64[0] = 8589934592ULL; reg.u64[1] = 0ULL; efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16187392U, abs_evq); tmp___3 = __ffs((unsigned long )buf_count); reg.u64[0] = (((unsigned long long )tmp___3 << 20) | (unsigned long long )buftbl) | 8388608ULL; reg.u64[1] = 0ULL; efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16121856U, abs_evq); } if (vf_evq == 0U) { { memcpy((void *)(& vf->evq0_addrs), (void const *)(& req->u.init_evq.addr), (unsigned long )buf_count * 8UL); vf->evq0_count = buf_count; } } else { } return (0); } } static int efx_vfdi_init_rxq(struct efx_vf *vf ) { struct efx_nic *efx ; struct vfdi_req *req ; unsigned int vf_rxq ; unsigned int vf_evq ; unsigned int buf_count ; unsigned int buftbl ; unsigned int label ; efx_oword_t reg ; int tmp ; bool tmp___0 ; bool tmp___1 ; bool tmp___2 ; int tmp___3 ; unsigned int tmp___4 ; unsigned long tmp___5 ; unsigned int tmp___6 ; { { efx = vf->efx; req = (struct vfdi_req *)vf->buf.addr; vf_rxq = req->u.init_rxq.index; vf_evq = req->u.init_rxq.evq; buf_count = req->u.init_rxq.buf_count; buftbl = (vf->buftbl_base + vf_rxq * 32U) + 8U; tmp___0 = bad_vf_index(efx, vf_evq); } if ((int )tmp___0) { goto _L; } else { { tmp___1 = bad_vf_index(efx, vf_rxq); } if ((int )tmp___1) { goto _L; } else if (vf_rxq > 62U) { goto _L; } else { { tmp___2 = bad_buf_count(buf_count, 4096U); } if ((int )tmp___2) { _L: /* CIL Label */ { tmp = net_ratelimit(); } if (tmp != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Invalid INIT_RXQ from %s: rxq %d evq %d buf_count %d\n", (char *)(& vf->pci_name), vf_rxq, vf_evq, buf_count); } } else { } } else { } return (-22); } else { } } } { tmp___3 = __test_and_set_bit((long )req->u.init_rxq.index, (unsigned long volatile *)(& vf->rxq_mask)); } if (tmp___3 != 0) { vf->rxq_count = vf->rxq_count + 1U; } else { } { efx_sriov_bufs(efx, buftbl, (u64 *)(& req->u.init_rxq.addr), buf_count); label = req->u.init_rxq.label & 31U; tmp___4 = abs_index(vf, vf_evq); tmp___5 = __ffs((unsigned long )buf_count); reg.u64[0] = ((((((unsigned long long )buftbl << 36) | ((unsigned long long )tmp___4 << 24)) | ((unsigned long long )label << 5)) | ((unsigned long long )tmp___5 << 3)) | (((unsigned long long )req->u.init_rxq.flags & 1ULL) << 1)) | 1ULL; reg.u64[1] = 0ULL; tmp___6 = abs_index(vf, vf_rxq); efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 15990784U, tmp___6); } return (0); } } static int efx_vfdi_init_txq(struct efx_vf *vf ) { struct efx_nic *efx ; struct vfdi_req *req ; unsigned int vf_txq ; unsigned int vf_evq ; unsigned int buf_count ; unsigned int buftbl ; unsigned int label ; unsigned int eth_filt_en ; efx_oword_t reg ; int tmp ; bool tmp___0 ; bool tmp___1 ; bool tmp___2 ; int tmp___3 ; unsigned int tmp___4 ; unsigned long tmp___5 ; unsigned int _min1 ; unsigned int _min2 ; unsigned int tmp___6 ; { { efx = vf->efx; req = (struct vfdi_req *)vf->buf.addr; vf_txq = req->u.init_txq.index; vf_evq = req->u.init_txq.evq; buf_count = req->u.init_txq.buf_count; buftbl = vf->buftbl_base + vf_txq * 32U; tmp___0 = bad_vf_index(efx, vf_evq); } if ((int )tmp___0) { goto _L; } else { { tmp___1 = bad_vf_index(efx, vf_txq); } if ((int )tmp___1) { goto _L; } else if (vf_txq >= vf_max_tx_channels) { goto _L; } else { { tmp___2 = bad_buf_count(buf_count, 4096U); } if ((int )tmp___2) { _L: /* CIL Label */ { tmp = net_ratelimit(); } if (tmp != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Invalid INIT_TXQ from %s: txq %d evq %d buf_count %d\n", (char *)(& vf->pci_name), vf_txq, vf_evq, buf_count); } } else { } } else { } return (-22); } else { } } } { mutex_lock_nested(& vf->txq_lock, 0U); tmp___3 = __test_and_set_bit((long )req->u.init_txq.index, (unsigned long volatile *)(& vf->txq_mask)); } if (tmp___3 != 0) { vf->txq_count = vf->txq_count + 1U; } else { } { mutex_unlock(& vf->txq_lock); efx_sriov_bufs(efx, buftbl, (u64 *)(& req->u.init_txq.addr), buf_count); eth_filt_en = (unsigned int )vf->tx_filter_mode == 2U; label = req->u.init_txq.label & 31U; tmp___4 = abs_index(vf, vf_evq); tmp___5 = __ffs((unsigned long )buf_count); reg.u64[0] = ((((unsigned long long )buftbl << 36) | ((unsigned long long )tmp___4 << 24)) | ((unsigned long long )label << 5)) | ((unsigned long long )tmp___5 << 3); _min1 = efx->vi_scale; _min2 = 1U; reg.u64[1] = (((unsigned long long )(_min1 < _min2 ? _min1 : _min2) << 30) | ((unsigned long long )eth_filt_en << 29)) | 150994944ULL; tmp___6 = abs_index(vf, vf_txq); efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16056320U, tmp___6); } return (0); } } static bool efx_vfdi_flush_wake(struct efx_vf *vf ) { int tmp ; int tmp___0 ; { __asm__ volatile ("mfence": : : "memory"); if (vf->txq_count == 0U && vf->rxq_count == 0U) { tmp___0 = 1; } else { { tmp = atomic_read((atomic_t const *)(& vf->rxq_retry_count)); } if (tmp != 0) { tmp___0 = 1; } else { tmp___0 = 0; } } return ((bool )tmp___0); } } static void efx_vfdi_flush_clear(struct efx_vf *vf ) { { { memset((void *)(& vf->txq_mask), 0, 8UL); vf->txq_count = 0U; memset((void *)(& vf->rxq_mask), 0, 8UL); vf->rxq_count = 0U; memset((void *)(& vf->rxq_retry_mask), 0, 8UL); atomic_set(& vf->rxq_retry_count, 0); } return; } } extern void __compiletime_assert_683(void) ; static int efx_vfdi_fini_all_queues(struct efx_vf *vf ) { struct efx_nic *efx ; efx_oword_t reg ; unsigned int count ; unsigned int tmp ; unsigned int vf_offset ; unsigned int tmp___0 ; unsigned int timeout ; unsigned int index ; unsigned int rxqs_count ; efx_dword_t inbuf[63U] ; int rc ; bool __cond ; int tmp___2 ; int tmp___4 ; int __ret_warn_on ; long tmp___5 ; long __ret ; wait_queue_t __wait ; long __ret___0 ; long __int ; long tmp___6 ; bool __cond___0 ; bool tmp___7 ; bool __cond___1 ; bool tmp___8 ; int tmp___9 ; unsigned int tmp___10 ; { { efx = vf->efx; tmp = efx_vf_size(efx); count = tmp; tmp___0 = efx_vf_size(efx); vf_offset = vf->index * tmp___0 + 128U; timeout = 250U; __cond = 0; } if ((int )__cond) { { __compiletime_assert_683(); } } else { } { rtnl_lock(); siena_prepare_flush(efx); rtnl_unlock(); rxqs_count = 0U; index = 0U; } goto ldv_47299; ldv_47298: { tmp___2 = variable_test_bit((long )index, (unsigned long const volatile *)(& vf->txq_mask)); } if (tmp___2 != 0) { { reg.u64[0] = (unsigned long long )(vf_offset + index) | 4096ULL; reg.u64[1] = 0ULL; efx_writeo___2(efx, (efx_oword_t const *)(& reg), 2560U); } } else { } { tmp___4 = variable_test_bit((long )index, (unsigned long const volatile *)(& vf->rxq_mask)); } if (tmp___4 != 0) { ((efx_dword_t *)(& inbuf) + (unsigned long )rxqs_count * 4UL)->u32[0] = vf_offset + index; rxqs_count = rxqs_count + 1U; } else { } index = index + 1U; ldv_47299: ; if (index < count) { goto ldv_47298; } else { } { atomic_set(& vf->rxq_retry_count, 0); } goto ldv_47332; ldv_47331: { rc = efx_mcdi_rpc(efx, 39U, (efx_dword_t const *)(& inbuf), (size_t )(rxqs_count * 4U), (efx_dword_t *)0, 0UL, (size_t *)0UL); __ret_warn_on = rc < 0; tmp___5 = ldv__builtin_expect(__ret_warn_on != 0, 0L); } if (tmp___5 != 0L) { { warn_slowpath_null("drivers/net/ethernet/sfc/siena_sriov.c", 712); } } else { } { ldv__builtin_expect(__ret_warn_on != 0, 0L); __ret = (long )timeout; tmp___8 = efx_vfdi_flush_wake(vf); __cond___1 = tmp___8; } if ((int )__cond___1 && __ret == 0L) { __ret = 1L; } else { } if (((int )__cond___1 || __ret == 0L) == 0) { { __ret___0 = (long )timeout; INIT_LIST_HEAD(& __wait.task_list); __wait.flags = 0U; } ldv_47313: { tmp___6 = prepare_to_wait_event(& vf->flush_waitq, & __wait, 2); __int = tmp___6; tmp___7 = efx_vfdi_flush_wake(vf); __cond___0 = tmp___7; } if ((int )__cond___0 && __ret___0 == 0L) { __ret___0 = 1L; } else { } if (((int )__cond___0 || __ret___0 == 0L) != 0) { goto ldv_47312; } else { } { __ret___0 = schedule_timeout(__ret___0); } goto ldv_47313; ldv_47312: { finish_wait(& vf->flush_waitq, & __wait); } __ret = __ret___0; } else { } timeout = (unsigned int )__ret; rxqs_count = 0U; index = 0U; goto ldv_47329; ldv_47328: { tmp___9 = test_and_set_bit((long )index, (unsigned long volatile *)(& vf->rxq_retry_mask)); } if (tmp___9 != 0) { { atomic_dec(& vf->rxq_retry_count); ((efx_dword_t *)(& inbuf) + (unsigned long )rxqs_count * 4UL)->u32[0] = vf_offset + index; rxqs_count = rxqs_count + 1U; } } else { } index = index + 1U; ldv_47329: ; if (index < count) { goto ldv_47328; } else { } ldv_47332: ; if (timeout != 0U && (vf->rxq_count != 0U || vf->txq_count != 0U)) { goto ldv_47331; } else { } { rtnl_lock(); siena_finish_flush(efx); rtnl_unlock(); reg.u64[0] = 0ULL; reg.u64[1] = 0ULL; index = 0U; } goto ldv_47335; ldv_47334: { efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 15990784U, vf_offset + index); efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16056320U, vf_offset + index); efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16121856U, vf_offset + index); efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16187392U, vf_offset + index); index = index + 1U; } ldv_47335: ; if (index < count) { goto ldv_47334; } else { } { tmp___10 = efx_vf_size(efx); efx_sriov_bufs(efx, vf->buftbl_base, (u64 *)0ULL, tmp___10 * 32U); efx_vfdi_flush_clear(vf); vf->evq0_count = 0U; } return (timeout != 0U ? 0 : -110); } } static int efx_vfdi_insert_filter(struct efx_vf *vf ) { struct efx_nic *efx ; struct vfdi_req *req ; unsigned int vf_rxq ; unsigned int flags ; int tmp ; bool tmp___0 ; { { efx = vf->efx; req = (struct vfdi_req *)vf->buf.addr; vf_rxq = req->u.mac_filter.rxq; tmp___0 = bad_vf_index(efx, vf_rxq); } if ((int )tmp___0 || (int )vf->rx_filtering) { { tmp = net_ratelimit(); } if (tmp != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Invalid INSERT_FILTER from %s: rxq %d flags 0x%x\n", (char *)(& vf->pci_name), vf_rxq, req->u.mac_filter.flags); } } else { } } else { } return (-22); } else { } flags = 0U; if ((int )req->u.mac_filter.flags & 1) { flags = flags | 1U; } else { } if ((req->u.mac_filter.flags & 2U) != 0U) { flags = flags | 2U; } else { } { vf->rx_filter_flags = (enum efx_filter_flags )flags; vf->rx_filter_qid = vf_rxq; vf->rx_filtering = 1; efx_sriov_reset_rx_filter(vf); queue_work(vfdi_workqueue, & efx->peer_work); } return (0); } } static int efx_vfdi_remove_all_filters(struct efx_vf *vf ) { { { vf->rx_filtering = 0; efx_sriov_reset_rx_filter(vf); queue_work(vfdi_workqueue, & (vf->efx)->peer_work); } return (0); } } static int efx_vfdi_set_status_page(struct efx_vf *vf ) { struct efx_nic *efx ; struct vfdi_req *req ; u64 page_count___0 ; u64 max_page_count ; int tmp ; void *tmp___0 ; { efx = vf->efx; req = (struct vfdi_req *)vf->buf.addr; page_count___0 = req->u.set_status_page.peer_page_count; max_page_count = 508ULL; if (req->u.set_status_page.dma_addr == 0ULL || page_count___0 > max_page_count) { { tmp = net_ratelimit(); } if (tmp != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Invalid SET_STATUS_PAGE from %s\n", (char *)(& vf->pci_name)); } } else { } } else { } return (-22); } else { } { mutex_lock_nested(& efx->local_lock, 0U); mutex_lock_nested(& vf->status_lock, 0U); vf->status_addr = req->u.set_status_page.dma_addr; kfree((void const *)vf->peer_page_addrs); vf->peer_page_addrs = (u64 *)0ULL; vf->peer_page_count = 0U; } if (page_count___0 != 0ULL) { { tmp___0 = kcalloc((size_t )page_count___0, 8UL, 208U); vf->peer_page_addrs = (u64 *)tmp___0; } if ((unsigned long )vf->peer_page_addrs != (unsigned long )((u64 *)0ULL)) { { memcpy((void *)vf->peer_page_addrs, (void const *)(& req->u.set_status_page.peer_page_addr), (size_t )(page_count___0 * 8ULL)); vf->peer_page_count = (unsigned int )page_count___0; } } else { } } else { } { __efx_sriov_push_vf_status(vf); mutex_unlock(& vf->status_lock); mutex_unlock(& efx->local_lock); } return (0); } } static int efx_vfdi_clear_status_page(struct efx_vf *vf ) { { { mutex_lock_nested(& vf->status_lock, 0U); vf->status_addr = 0ULL; mutex_unlock(& vf->status_lock); } return (0); } } static efx_vfdi_op_t vfdi_ops[9U] = { 0, & efx_vfdi_init_evq, & efx_vfdi_init_rxq, & efx_vfdi_init_txq, & efx_vfdi_fini_all_queues, & efx_vfdi_insert_filter, & efx_vfdi_remove_all_filters, & efx_vfdi_set_status_page, & efx_vfdi_clear_status_page}; static void efx_sriov_vfdi(struct work_struct *work ) { struct efx_vf *vf ; struct work_struct const *__mptr ; struct efx_nic *efx ; struct vfdi_req *req ; struct efx_memcpy_req copy[2U] ; int rc ; int tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; { { __mptr = (struct work_struct const *)work; vf = (struct efx_vf *)__mptr + 0xffffffffffffffe0UL; efx = vf->efx; req = (struct vfdi_req *)vf->buf.addr; memset((void *)(& copy), 0, 96UL); copy[0].from_rid = vf->pci_rid; copy[0].from_addr = vf->req_addr; copy[0].to_rid = (efx->pci_dev)->devfn; copy[0].to_addr = vf->buf.dma_addr; copy[0].length = 4096U; rc = efx_sriov_memcpy(efx, (struct efx_memcpy_req *)(& copy), 1U); } if (rc != 0) { { tmp = net_ratelimit(); } if (tmp != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Unable to fetch VFDI request from %s rc %d\n", (char *)(& vf->pci_name), - rc); } } else { } } else { } vf->busy = 0; return; } else { } if (req->op <= 8U && (unsigned long )vfdi_ops[req->op] != (unsigned long )((int (*)(struct efx_vf * ))0)) { { rc = (*(vfdi_ops[req->op]))(vf); } if (rc == 0) { if ((efx->msg_enable & 8192U) != 0U) { { descriptor.modname = "sfc"; descriptor.function = "efx_sriov_vfdi"; descriptor.filename = "drivers/net/ethernet/sfc/siena_sriov.c"; descriptor.format = "vfdi request %d from %s ok\n"; descriptor.lineno = 891U; 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 *)efx->net_dev, "vfdi request %d from %s ok\n", req->op, (char *)(& vf->pci_name)); } } else { } } else { } } else { } } else { if ((efx->msg_enable & 8192U) != 0U) { { descriptor___0.modname = "sfc"; descriptor___0.function = "efx_sriov_vfdi"; descriptor___0.filename = "drivers/net/ethernet/sfc/siena_sriov.c"; descriptor___0.format = "ERROR: Unrecognised request %d from VF %s addr %llx\n"; descriptor___0.lineno = 897U; 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 *)efx->net_dev, "ERROR: Unrecognised request %d from VF %s addr %llx\n", req->op, (char *)(& vf->pci_name), vf->req_addr); } } else { } } else { } rc = -95; } { vf->busy = 0; __asm__ volatile ("": : : "memory"); req->rc = rc; req->op = 0U; memset((void *)(& copy), 0, 96UL); copy[0].from_buf = (void *)(& req->rc); copy[0].to_rid = vf->pci_rid; copy[0].to_addr = vf->req_addr + 8ULL; copy[0].length = 4U; copy[1].from_buf = (void *)(& req->op); copy[1].to_rid = vf->pci_rid; copy[1].to_addr = vf->req_addr; copy[1].length = 4U; efx_sriov_memcpy(efx, (struct efx_memcpy_req *)(& copy), 2U); } return; } } static void efx_sriov_reset_vf(struct efx_vf *vf , struct efx_buffer *buffer ) { struct efx_nic *efx ; struct efx_memcpy_req copy_req[4U] ; efx_qword_t event ; unsigned int pos ; unsigned int count ; unsigned int k ; unsigned int buftbl ; unsigned int abs_evq ; efx_oword_t reg ; efx_dword_t ptr ; int rc ; long tmp ; long tmp___0 ; unsigned int __min1 ; unsigned int __min2 ; int tmp___1 ; unsigned long tmp___2 ; { { efx = vf->efx; tmp = ldv__builtin_expect(buffer->len != 4096U, 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 *)"drivers/net/ethernet/sfc/siena_sriov.c"), "i" (938), "i" (12UL)); __builtin_unreachable(); } } else { } if (vf->evq0_count == 0U) { return; } else { } { tmp___0 = ldv__builtin_expect((vf->evq0_count & (vf->evq0_count - 1U)) != 0U, 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 *)"drivers/net/ethernet/sfc/siena_sriov.c"), "i" (942), "i" (12UL)); __builtin_unreachable(); } } else { } { mutex_lock_nested(& vf->status_lock, 0U); event.u64[0] = ((unsigned long long )vf->msg_seqno << 24) | 0x8000000000050000ULL; vf->msg_seqno = vf->msg_seqno + 1U; pos = 0U; } goto ldv_47391; ldv_47390: { memcpy(buffer->addr + (unsigned long )pos, (void const *)(& event), 8UL); pos = pos + 8U; } ldv_47391: ; if (pos <= 4095U) { goto ldv_47390; } else { } pos = 0U; goto ldv_47403; ldv_47402: __min1 = vf->evq0_count - pos; __min2 = 4U; count = __min1 < __min2 ? __min1 : __min2; k = 0U; goto ldv_47399; ldv_47398: copy_req[k].from_buf = (void *)0; copy_req[k].from_rid = (efx->pci_dev)->devfn; copy_req[k].from_addr = buffer->dma_addr; copy_req[k].to_rid = vf->pci_rid; copy_req[k].to_addr = vf->evq0_addrs[pos + k]; copy_req[k].length = 4096U; k = k + 1U; ldv_47399: ; if (k < count) { goto ldv_47398; } else { } { rc = efx_sriov_memcpy(efx, (struct efx_memcpy_req *)(& copy_req), count); } if (rc != 0) { { tmp___1 = net_ratelimit(); } if (tmp___1 != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Unable to notify %s of reset: %d\n", (char *)(& vf->pci_name), - rc); } } else { } } else { } goto ldv_47401; } else { } pos = pos + count; ldv_47403: ; if (pos < vf->evq0_count) { goto ldv_47402; } else { } ldv_47401: { abs_evq = abs_index(vf, 0U); buftbl = vf->buftbl_base + 16U; efx_sriov_bufs(efx, buftbl, (u64 *)(& vf->evq0_addrs), vf->evq0_count); reg.u64[0] = 8589934592ULL; reg.u64[1] = 0ULL; efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16187392U, abs_evq); tmp___2 = __ffs((unsigned long )vf->evq0_count); reg.u64[0] = (((unsigned long long )tmp___2 << 20) | (unsigned long long )buftbl) | 8388608ULL; reg.u64[1] = 0ULL; efx_writeo_table___0(efx, (efx_oword_t const *)(& reg), 16121856U, abs_evq); ptr.u32[0] = 0U; efx_writed(efx, (efx_dword_t const *)(& ptr), (abs_evq + 1024000U) * 16U); mutex_unlock(& vf->status_lock); } return; } } static void efx_sriov_reset_vf_work(struct work_struct *work ) { struct efx_vf *vf ; struct work_struct const *__mptr ; struct efx_nic *efx ; struct efx_buffer buf ; int tmp ; { { __mptr = (struct work_struct const *)work; vf = (struct efx_vf *)__mptr + 0xffffffffffffffe0UL; efx = vf->efx; tmp = efx_nic_alloc_buffer(efx, & buf, 4096U, 16U); } if (tmp == 0) { { efx_sriov_reset_vf(vf, & buf); efx_nic_free_buffer(efx, & buf); } } else { } return; } } static void efx_sriov_handle_no_channel(struct efx_nic *efx ) { { if ((int )efx->msg_enable & 1) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: IOV requires MSI-X and 1 additional interruptvector. IOV disabled\n"); } } else { } efx->vf_count = 0U; return; } } static int efx_sriov_probe_channel(struct efx_channel *channel ) { { (channel->efx)->vfdi_channel = channel; return (0); } } static void efx_sriov_get_channel_name(struct efx_channel *channel , char *buf , size_t len ) { { { snprintf(buf, len, "%s-iov", (char *)(& (channel->efx)->name)); } return; } } static struct efx_channel_type const efx_sriov_channel_type = {& efx_sriov_handle_no_channel, & efx_sriov_probe_channel, & efx_channel_dummy_op_void, & efx_sriov_get_channel_name, 0, 0, 1}; void efx_sriov_probe(struct efx_nic *efx ) { unsigned int count ; int tmp ; { if (max_vfs == 0) { return; } else { } { tmp = efx_sriov_cmd(efx, 0, & efx->vi_scale, & count); } if (tmp != 0) { return; } else { } if (count != 0U && count > (unsigned int )max_vfs) { count = (unsigned int )max_vfs; } else { } efx->vf_count = count; efx->extra_channel_type[0] = & efx_sriov_channel_type; return; } } static void efx_sriov_peer_work(struct work_struct *data ) { struct efx_nic *efx ; struct work_struct const *__mptr ; struct vfdi_status *vfdi_status ; struct efx_vf *vf ; struct efx_local_addr *local_addr ; struct vfdi_endpoint *peer ; struct efx_endpoint_page *epp ; struct list_head pages ; unsigned int peer_space ; unsigned int peer_count ; unsigned int pos ; struct vfdi_endpoint *tmp ; long tmp___0 ; bool tmp___1 ; int tmp___2 ; struct list_head const *__mptr___0 ; void *tmp___3 ; struct list_head const *__mptr___1 ; int tmp___4 ; struct list_head const *__mptr___2 ; struct list_head const *__mptr___3 ; int tmp___5 ; { { __mptr = (struct work_struct const *)data; efx = (struct efx_nic *)__mptr + 0xfffffffffffff1a8UL; vfdi_status = (struct vfdi_status *)efx->vfdi_status.addr; mutex_lock_nested(& efx->local_lock, 0U); INIT_LIST_HEAD(& pages); list_splice_tail_init(& efx->local_page_list, & pages); peer = (struct vfdi_endpoint *)(& vfdi_status->peers) + 1UL; peer_space = 255U; peer_count = 1U; pos = 0U; } goto ldv_47446; ldv_47445: { vf = efx->vf + (unsigned long )pos; mutex_lock_nested(& vf->status_lock, 0U); } if ((int )vf->rx_filtering) { { tmp___1 = is_zero_ether_addr((u8 const *)(& vf->addr.mac_addr)); } if (tmp___1) { tmp___2 = 0; } else { tmp___2 = 1; } if (tmp___2) { { tmp = peer; peer = peer + 1; *tmp = vf->addr; peer_count = peer_count + 1U; peer_space = peer_space - 1U; tmp___0 = ldv__builtin_expect(peer_space == 0U, 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 *)"drivers/net/ethernet/sfc/siena_sriov.c"), "i" (1091), "i" (12UL)); __builtin_unreachable(); } } else { } } else { } } else { } { mutex_unlock(& vf->status_lock); pos = pos + 1U; } ldv_47446: ; if (pos < efx->vf_count) { goto ldv_47445; } else { } __mptr___0 = (struct list_head const *)efx->local_addr_list.next; local_addr = (struct efx_local_addr *)__mptr___0; goto ldv_47456; ldv_47455: { memcpy((void *)(& peer->mac_addr), (void const *)(& local_addr->addr), 6UL); peer->tci = 0U; peer = peer + 1; peer_count = peer_count + 1U; peer_space = peer_space - 1U; } if (peer_space == 0U) { { tmp___4 = list_empty((struct list_head const *)(& pages)); } if (tmp___4 != 0) { { tmp___3 = kmalloc(32UL, 208U); epp = (struct efx_endpoint_page *)tmp___3; } if ((unsigned long )epp == (unsigned long )((struct efx_endpoint_page *)0)) { goto ldv_47452; } else { } { epp->ptr = dma_alloc_attrs(& (efx->pci_dev)->dev, 4096UL, & epp->addr, 208U, (struct dma_attrs *)0); } if ((unsigned long )epp->ptr == (unsigned long )((void *)0)) { { kfree((void const *)epp); } goto ldv_47452; } else { } } else { { __mptr___1 = (struct list_head const *)pages.next; epp = (struct efx_endpoint_page *)__mptr___1; list_del(& epp->link); } } { list_add_tail(& epp->link, & efx->local_page_list); peer = (struct vfdi_endpoint *)epp->ptr; peer_space = 512U; } } else { } __mptr___2 = (struct list_head const *)local_addr->link.next; local_addr = (struct efx_local_addr *)__mptr___2; ldv_47456: ; if ((unsigned long )(& local_addr->link) != (unsigned long )(& efx->local_addr_list)) { goto ldv_47455; } else { } ldv_47452: { vfdi_status->peer_count = (u16 )peer_count; mutex_unlock(& efx->local_lock); } goto ldv_47460; ldv_47459: { __mptr___3 = (struct list_head const *)pages.next; epp = (struct efx_endpoint_page *)__mptr___3; list_del(& epp->link); dma_free_attrs(& (efx->pci_dev)->dev, 4096UL, epp->ptr, epp->addr, (struct dma_attrs *)0); kfree((void const *)epp); } ldv_47460: { tmp___5 = list_empty((struct list_head const *)(& pages)); } if (tmp___5 == 0) { goto ldv_47459; } else { } pos = 0U; goto ldv_47463; ldv_47462: { vf = efx->vf + (unsigned long )pos; mutex_lock_nested(& vf->status_lock, 0U); } if (vf->status_addr != 0ULL) { { __efx_sriov_push_vf_status(vf); } } else { } { mutex_unlock(& vf->status_lock); pos = pos + 1U; } ldv_47463: ; if (pos < efx->vf_count) { goto ldv_47462; } else { } return; } } static void efx_sriov_free_local(struct efx_nic *efx ) { struct efx_local_addr *local_addr ; struct efx_endpoint_page *epp ; struct list_head const *__mptr ; int tmp ; struct list_head const *__mptr___0 ; int tmp___0 ; { goto ldv_47473; ldv_47472: { __mptr = (struct list_head const *)efx->local_addr_list.next; local_addr = (struct efx_local_addr *)__mptr; list_del(& local_addr->link); kfree((void const *)local_addr); } ldv_47473: { tmp = list_empty((struct list_head const *)(& efx->local_addr_list)); } if (tmp == 0) { goto ldv_47472; } else { } goto ldv_47478; ldv_47477: { __mptr___0 = (struct list_head const *)efx->local_page_list.next; epp = (struct efx_endpoint_page *)__mptr___0; list_del(& epp->link); dma_free_attrs(& (efx->pci_dev)->dev, 4096UL, epp->ptr, epp->addr, (struct dma_attrs *)0); kfree((void const *)epp); } ldv_47478: { tmp___0 = list_empty((struct list_head const *)(& efx->local_page_list)); } if (tmp___0 == 0) { goto ldv_47477; } else { } return; } } static int efx_sriov_vf_alloc(struct efx_nic *efx ) { unsigned int index ; struct efx_vf *vf ; void *tmp ; struct lock_class_key __key ; atomic_long_t __constr_expr_0 ; struct lock_class_key __key___0 ; atomic_long_t __constr_expr_1 ; struct lock_class_key __key___1 ; struct lock_class_key __key___2 ; struct lock_class_key __key___3 ; { { tmp = kzalloc((unsigned long )efx->vf_count * 912UL, 208U); efx->vf = (struct efx_vf *)tmp; } if ((unsigned long )efx->vf == (unsigned long )((struct efx_vf *)0)) { return (-12); } else { } index = 0U; goto ldv_47493; ldv_47492: { vf = efx->vf + (unsigned long )index; vf->efx = efx; vf->index = index; vf->rx_filter_id = -1; vf->tx_filter_mode = 1; vf->tx_filter_id = -1; __init_work(& vf->req, 0); __constr_expr_0.counter = 137438953408L; vf->req.data = __constr_expr_0; lockdep_init_map(& vf->req.lockdep_map, "(&vf->req)", & __key, 0); INIT_LIST_HEAD(& vf->req.entry); vf->req.func = & efx_sriov_vfdi; __init_work(& vf->reset_work, 0); __constr_expr_1.counter = 137438953408L; vf->reset_work.data = __constr_expr_1; lockdep_init_map(& vf->reset_work.lockdep_map, "(&vf->reset_work)", & __key___0, 0); INIT_LIST_HEAD(& vf->reset_work.entry); vf->reset_work.func = & efx_sriov_reset_vf_work; __init_waitqueue_head(& vf->flush_waitq, "&vf->flush_waitq", & __key___1); __mutex_init(& vf->status_lock, "&vf->status_lock", & __key___2); __mutex_init(& vf->txq_lock, "&vf->txq_lock", & __key___3); index = index + 1U; } ldv_47493: ; if (index < efx->vf_count) { goto ldv_47492; } else { } return (0); } } static void efx_sriov_vfs_fini(struct efx_nic *efx ) { struct efx_vf *vf ; unsigned int pos ; { pos = 0U; goto ldv_47501; ldv_47500: { vf = efx->vf + (unsigned long )pos; efx_nic_free_buffer(efx, & vf->buf); kfree((void const *)vf->peer_page_addrs); vf->peer_page_addrs = (u64 *)0ULL; vf->peer_page_count = 0U; vf->evq0_count = 0U; pos = pos + 1U; } ldv_47501: ; if (pos < efx->vf_count) { goto ldv_47500; } else { } return; } } static int efx_sriov_vfs_init(struct efx_nic *efx ) { struct pci_dev *pci_dev ; unsigned int index ; unsigned int devfn ; unsigned int sriov ; unsigned int buftbl_base ; u16 offset ; u16 stride ; struct efx_vf *vf ; int rc ; int tmp ; unsigned int tmp___0 ; int tmp___1 ; { { pci_dev = efx->pci_dev; tmp = pci_find_ext_capability(pci_dev, 16); sriov = (unsigned int )tmp; } if (sriov == 0U) { return (-2); } else { } { pci_read_config_word((struct pci_dev const *)pci_dev, (int )(sriov + 20U), & offset); pci_read_config_word((struct pci_dev const *)pci_dev, (int )(sriov + 22U), & stride); buftbl_base = efx->vf_buftbl_base; devfn = pci_dev->devfn + (unsigned int )offset; index = 0U; } goto ldv_47517; ldv_47516: { vf = efx->vf + (unsigned long )index; vf->buftbl_base = buftbl_base; tmp___0 = efx_vf_size(efx); buftbl_base = buftbl_base + tmp___0 * 32U; vf->pci_rid = devfn; tmp___1 = pci_domain_nr(pci_dev->bus); snprintf((char *)(& vf->pci_name), 13UL, "%04x:%02x:%02x.%d", tmp___1, (int )(pci_dev->bus)->number, (devfn >> 3) & 31U, devfn & 7U); rc = efx_nic_alloc_buffer(efx, & vf->buf, 4096U, 208U); } if (rc != 0) { goto fail; } else { } devfn = devfn + (unsigned int )stride; index = index + 1U; ldv_47517: ; if (index < efx->vf_count) { goto ldv_47516; } else { } return (0); fail: { efx_sriov_vfs_fini(efx); } return (rc); } } extern void __compiletime_assert_1267(void) ; extern void __compiletime_assert_1269(void) ; int efx_sriov_init(struct efx_nic *efx ) { struct net_device *net_dev ; struct vfdi_status *vfdi_status ; int rc ; bool __cond ; bool __cond___0 ; struct lock_class_key __key ; struct lock_class_key __key___0 ; atomic_long_t __constr_expr_0 ; unsigned int tmp ; { net_dev = efx->net_dev; __cond = 0; if ((int )__cond) { { __compiletime_assert_1267(); } } else { } __cond___0 = 0; if ((int )__cond___0) { { __compiletime_assert_1269(); } } else { } if (efx->vf_count == 0U) { return (0); } else { } { rc = efx_sriov_cmd(efx, 1, (unsigned int *)0U, (unsigned int *)0U); } if (rc != 0) { goto fail_cmd; } else { } { rc = efx_nic_alloc_buffer(efx, & efx->vfdi_status, 2084U, 208U); } if (rc != 0) { goto fail_status; } else { } { vfdi_status = (struct vfdi_status *)efx->vfdi_status.addr; memset((void *)vfdi_status, 0, 2084UL); vfdi_status->version = 1U; vfdi_status->length = 2084U; vfdi_status->max_tx_channels = (u8 )vf_max_tx_channels; vfdi_status->vi_scale = (u8 )efx->vi_scale; vfdi_status->rss_rxq_count = (u8 )efx->rss_spread; vfdi_status->peer_count = (unsigned int )((u16 )efx->vf_count) + 1U; vfdi_status->timer_quantum_ns = efx->timer_quantum_ns; rc = efx_sriov_vf_alloc(efx); } if (rc != 0) { goto fail_alloc; } else { } { __mutex_init(& efx->local_lock, "&efx->local_lock", & __key); __init_work(& efx->peer_work, 0); __constr_expr_0.counter = 137438953408L; efx->peer_work.data = __constr_expr_0; lockdep_init_map(& efx->peer_work.lockdep_map, "(&efx->peer_work)", & __key___0, 0); INIT_LIST_HEAD(& efx->peer_work.entry); efx->peer_work.func = & efx_sriov_peer_work; INIT_LIST_HEAD(& efx->local_addr_list); INIT_LIST_HEAD(& efx->local_page_list); rc = efx_sriov_vfs_init(efx); } if (rc != 0) { goto fail_vfs; } else { } { rtnl_lock(); memcpy((void *)(& vfdi_status->peers[0].mac_addr), (void const *)net_dev->dev_addr, 6UL); efx->vf_init_count = efx->vf_count; rtnl_unlock(); efx_sriov_usrev(efx, 1); rc = pci_enable_sriov(efx->pci_dev, (int )efx->vf_count); } if (rc != 0) { goto fail_pci; } else { } if ((efx->msg_enable & 2U) != 0U) { { tmp = efx_vf_size(efx); netdev_info((struct net_device const *)net_dev, "enabled SR-IOV for %d VFs, %d VI per VF\n", efx->vf_count, tmp); } } else { } return (0); fail_pci: { efx_sriov_usrev(efx, 0); rtnl_lock(); efx->vf_init_count = 0U; rtnl_unlock(); efx_sriov_vfs_fini(efx); } fail_vfs: { cancel_work_sync(& efx->peer_work); efx_sriov_free_local(efx); kfree((void const *)efx->vf); } fail_alloc: { efx_nic_free_buffer(efx, & efx->vfdi_status); } fail_status: { efx_sriov_cmd(efx, 0, (unsigned int *)0U, (unsigned int *)0U); } fail_cmd: ; return (rc); } } void efx_sriov_fini(struct efx_nic *efx ) { struct efx_vf *vf ; unsigned int pos ; long tmp ; { if (efx->vf_init_count == 0U) { return; } else { } { tmp = ldv__builtin_expect((long )(efx->vfdi_channel)->enabled, 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 *)"drivers/net/ethernet/sfc/siena_sriov.c"), "i" (1351), "i" (12UL)); __builtin_unreachable(); } } else { } { efx_sriov_usrev(efx, 0); rtnl_lock(); efx->vf_init_count = 0U; rtnl_unlock(); pos = 0U; } goto ldv_47547; ldv_47546: { vf = efx->vf + (unsigned long )pos; cancel_work_sync(& vf->req); cancel_work_sync(& vf->reset_work); pos = pos + 1U; } ldv_47547: ; if (pos < efx->vf_count) { goto ldv_47546; } else { } { cancel_work_sync(& efx->peer_work); pci_disable_sriov(efx->pci_dev); efx_sriov_vfs_fini(efx); efx_sriov_free_local(efx); kfree((void const *)efx->vf); efx_nic_free_buffer(efx, & efx->vfdi_status); efx_sriov_cmd(efx, 0, (unsigned int *)0U, (unsigned int *)0U); } return; } } extern void __compiletime_assert_1384(void) ; void efx_sriov_event(struct efx_channel *channel , efx_qword_t *event ) { struct efx_nic *efx ; struct efx_vf *vf ; unsigned int qid ; unsigned int seq ; unsigned int type ; unsigned int data ; bool __cond ; bool tmp ; unsigned int tmp___0 ; int tmp___1 ; { efx = channel->efx; qid = (unsigned int )(event->u64[0] >> 32) & 1023U; __cond = 0; if ((int )__cond) { { __compiletime_assert_1384(); } } else { } { seq = (unsigned int )(event->u64[0] >> 24) & 255U; type = (unsigned int )(event->u64[0] >> 16) & 255U; data = (unsigned int )event->u64[0] & 65535U; tmp = map_vi_index(efx, qid, & vf, (unsigned int *)0U); } if ((int )tmp) { return; } else { } if ((int )vf->busy) { goto error; } else { } if (type == 0U) { vf->req_type = 0; vf->req_seqno = seq + 1U; vf->req_addr = 0ULL; } else { tmp___0 = vf->req_seqno; vf->req_seqno = vf->req_seqno + 1U; if (seq != (tmp___0 & 255U) || type != (unsigned int )vf->req_type) { goto error; } else { } } { if (vf->req_type == 0) { goto case_0; } else { } if (vf->req_type == 1) { goto case_1; } else { } if (vf->req_type == 2) { goto case_2; } else { } if (vf->req_type == 3) { goto case_3; } else { } goto switch_break; case_0: /* CIL Label */ ; case_1: /* CIL Label */ ; case_2: /* CIL Label */ vf->req_addr = vf->req_addr | ((unsigned long long )data << (vf->req_type << 4)); vf->req_type = vf->req_type + 1; return; case_3: /* CIL Label */ { vf->req_addr = vf->req_addr | ((unsigned long long )data << 48); vf->req_type = 0; vf->busy = 1; queue_work(vfdi_workqueue, & vf->req); } return; switch_break: /* CIL Label */ ; } error: { tmp___1 = net_ratelimit(); } if (tmp___1 != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "ERROR: Screaming VFDI request from %s\n", (char *)(& vf->pci_name)); } } else { } } else { } vf->req_type = 0; vf->req_seqno = seq + 1U; return; } } void efx_sriov_flr(struct efx_nic *efx , unsigned int vf_i ) { struct efx_vf *vf ; { if (vf_i > efx->vf_init_count) { return; } else { } vf = efx->vf + (unsigned long )vf_i; if ((efx->msg_enable & 8192U) != 0U) { { netdev_info((struct net_device const *)efx->net_dev, "FLR on VF %s\n", (char *)(& vf->pci_name)); } } else { } { vf->status_addr = 0ULL; efx_vfdi_remove_all_filters(vf); efx_vfdi_flush_clear(vf); vf->evq0_count = 0U; } return; } } void efx_sriov_mac_address_changed(struct efx_nic *efx ) { struct vfdi_status *vfdi_status ; { vfdi_status = (struct vfdi_status *)efx->vfdi_status.addr; if (efx->vf_init_count == 0U) { return; } else { } { memcpy((void *)(& vfdi_status->peers[0].mac_addr), (void const *)(efx->net_dev)->dev_addr, 6UL); queue_work(vfdi_workqueue, & efx->peer_work); } return; } } void efx_sriov_tx_flush_done(struct efx_nic *efx , efx_qword_t *event ) { struct efx_vf *vf ; unsigned int queue ; unsigned int qid ; bool tmp ; int tmp___1 ; bool tmp___2 ; { { queue = (unsigned int )event->u64[0] & 16383U; tmp = map_vi_index(efx, queue, & vf, & qid); } if ((int )tmp) { return; } else { } { tmp___1 = variable_test_bit((long )qid, (unsigned long const volatile *)(& vf->txq_mask)); } if (tmp___1 == 0) { return; } else { } { __clear_bit((long )qid, (unsigned long volatile *)(& vf->txq_mask)); vf->txq_count = vf->txq_count - 1U; tmp___2 = efx_vfdi_flush_wake(vf); } if ((int )tmp___2) { { __wake_up(& vf->flush_waitq, 3U, 1, (void *)0); } } else { } return; } } void efx_sriov_rx_flush_done(struct efx_nic *efx , efx_qword_t *event ) { struct efx_vf *vf ; unsigned int ev_failed ; unsigned int queue ; unsigned int qid ; bool tmp ; int tmp___1 ; bool tmp___2 ; { { queue = (unsigned int )event->u64[0] & 4095U; ev_failed = (unsigned int )(event->u64[0] >> 12) & 1U; tmp = map_vi_index(efx, queue, & vf, & qid); } if ((int )tmp) { return; } else { } { tmp___1 = variable_test_bit((long )qid, (unsigned long const volatile *)(& vf->rxq_mask)); } if (tmp___1 == 0) { return; } else { } if (ev_failed != 0U) { { set_bit((long )qid, (unsigned long volatile *)(& vf->rxq_retry_mask)); atomic_inc(& vf->rxq_retry_count); } } else { { __clear_bit((long )qid, (unsigned long volatile *)(& vf->rxq_mask)); vf->rxq_count = vf->rxq_count - 1U; } } { tmp___2 = efx_vfdi_flush_wake(vf); } if ((int )tmp___2) { { __wake_up(& vf->flush_waitq, 3U, 1, (void *)0); } } else { } return; } } void efx_sriov_desc_fetch_err(struct efx_nic *efx , unsigned int dmaq ) { struct efx_vf *vf ; unsigned int rel ; bool tmp ; int tmp___0 ; { { tmp = map_vi_index(efx, dmaq, & vf, & rel); } if ((int )tmp) { return; } else { } { tmp___0 = net_ratelimit(); } if (tmp___0 != 0) { if ((efx->msg_enable & 8192U) != 0U) { { netdev_err((struct net_device const *)efx->net_dev, "VF %d DMA Q %d reports descriptor fetch error.\n", vf->index, rel); } } else { } } else { } { queue_work(vfdi_workqueue, & vf->reset_work); } return; } } void efx_sriov_reset(struct efx_nic *efx ) { unsigned int vf_i ; struct efx_buffer buf ; struct efx_vf *vf ; int tmp ; long tmp___0 ; int tmp___1 ; { { tmp = rtnl_is_locked(); tmp___0 = ldv__builtin_expect(tmp == 0, 0L); } if (tmp___0 != 0L) { { printk("\vRTNL: assertion failed at %s (%d)\n", (char *)"drivers/net/ethernet/sfc/siena_sriov.c", 1526); dump_stack(); } } else { } if (efx->vf_init_count == 0U) { return; } else { } { efx_sriov_usrev(efx, 1); efx_sriov_cmd(efx, 1, (unsigned int *)0U, (unsigned int *)0U); tmp___1 = efx_nic_alloc_buffer(efx, & buf, 4096U, 16U); } if (tmp___1 != 0) { return; } else { } vf_i = 0U; goto ldv_47606; ldv_47605: { vf = efx->vf + (unsigned long )vf_i; efx_sriov_reset_vf(vf, & buf); vf_i = vf_i + 1U; } ldv_47606: ; if (vf_i < efx->vf_init_count) { goto ldv_47605; } else { } { efx_nic_free_buffer(efx, & buf); } return; } } int efx_init_sriov(void) { struct lock_class_key __key ; char const *__lock_name ; struct workqueue_struct *tmp ; { { __lock_name = "\"%s\"(\"sfc_vfdi\")"; tmp = __alloc_workqueue_key("%s", 10U, 1, & __key, __lock_name, (char *)"sfc_vfdi"); vfdi_workqueue = tmp; } if ((unsigned long )vfdi_workqueue == (unsigned long )((struct workqueue_struct *)0)) { return (-12); } else { } return (0); } } void efx_fini_sriov(void) { { { destroy_workqueue(vfdi_workqueue); } return; } } int efx_sriov_set_vf_mac(struct net_device *net_dev , int vf_i , u8 *mac ) { struct efx_nic *efx ; void *tmp ; struct efx_vf *vf ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((unsigned int )vf_i >= efx->vf_init_count) { return (-22); } else { } { vf = efx->vf + (unsigned long )vf_i; mutex_lock_nested(& vf->status_lock, 0U); memcpy((void *)(& vf->addr.mac_addr), (void const *)mac, 6UL); __efx_sriov_update_vf_addr(vf); mutex_unlock(& vf->status_lock); } return (0); } } int efx_sriov_set_vf_vlan(struct net_device *net_dev , int vf_i , u16 vlan , u8 qos ) { struct efx_nic *efx ; void *tmp ; struct efx_vf *vf ; u16 tci ; __u16 tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((unsigned int )vf_i >= efx->vf_init_count) { return (-22); } else { } { vf = efx->vf + (unsigned long )vf_i; mutex_lock_nested(& vf->status_lock, 0U); tci = (u16 )(((int )((short )vlan) & 4095) | (int )((short )((int )qos << 13))); tmp___0 = __fswab16((int )tci); vf->addr.tci = tmp___0; __efx_sriov_update_vf_addr(vf); mutex_unlock(& vf->status_lock); } return (0); } } int efx_sriov_set_vf_spoofchk(struct net_device *net_dev , int vf_i , bool spoofchk ) { struct efx_nic *efx ; void *tmp ; struct efx_vf *vf ; int rc ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((unsigned int )vf_i >= efx->vf_init_count) { return (-22); } else { } { vf = efx->vf + (unsigned long )vf_i; mutex_lock_nested(& vf->txq_lock, 0U); } if (vf->txq_count == 0U) { vf->tx_filter_mode = (int )spoofchk ? 2 : 0; rc = 0; } else { rc = -16; } { mutex_unlock(& vf->txq_lock); } return (rc); } } int efx_sriov_get_vf_config(struct net_device *net_dev , int vf_i , struct ifla_vf_info *ivi ) { struct efx_nic *efx ; void *tmp ; struct efx_vf *vf ; u16 tci ; __u16 tmp___0 ; { { tmp = netdev_priv((struct net_device const *)net_dev); efx = (struct efx_nic *)tmp; } if ((unsigned int )vf_i >= efx->vf_init_count) { return (-22); } else { } { vf = efx->vf + (unsigned long )vf_i; ivi->vf = (__u32 )vf_i; memcpy((void *)(& ivi->mac), (void const *)(& vf->addr.mac_addr), 6UL); ivi->tx_rate = 0U; tmp___0 = __fswab16((int )vf->addr.tci); tci = tmp___0; ivi->vlan = (__u32 )tci & 4095U; ivi->qos = (__u32 )((int )tci >> 13) & 7U; ivi->spoofchk = (unsigned int )vf->tx_filter_mode == 2U; } return (0); } } void (*ldv_10_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_sriov_get_channel_name; void (*ldv_10_callback_handle_no_channel)(struct efx_nic * ) = & efx_sriov_handle_no_channel; void (*ldv_10_callback_post_remove)(struct efx_channel * ) = & efx_channel_dummy_op_void; int (*ldv_10_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; void (*ldv_11_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_sriov_get_channel_name; void (*ldv_11_callback_handle_no_channel)(struct efx_nic * ) = & efx_sriov_handle_no_channel; void (*ldv_12_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_sriov_get_channel_name; void (*ldv_12_callback_handle_no_channel)(struct efx_nic * ) = & efx_sriov_handle_no_channel; int (*ldv_12_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; void (*ldv_13_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_sriov_get_channel_name; void (*ldv_13_callback_handle_no_channel)(struct efx_nic * ) = & efx_sriov_handle_no_channel; int (*ldv_13_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; void (*ldv_14_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_sriov_get_channel_name; void (*ldv_14_callback_handle_no_channel)(struct efx_nic * ) = & efx_sriov_handle_no_channel; int (*ldv_14_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; void (*ldv_15_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_sriov_get_channel_name; void (*ldv_15_callback_handle_no_channel)(struct efx_nic * ) = & efx_sriov_handle_no_channel; int (*ldv_15_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; void (*ldv_16_callback_get_name)(struct efx_channel * , char * , unsigned long ) = & efx_sriov_get_channel_name; void (*ldv_16_callback_handle_no_channel)(struct efx_nic * ) = & efx_sriov_handle_no_channel; int (*ldv_16_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; int (*ldv_17_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; int (*ldv_18_callback_pre_probe)(struct efx_channel * ) = & efx_sriov_probe_channel; void ldv_io_instance_callback_10_108(void (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_channel_dummy_op_void(arg1); } return; } } void ldv_io_instance_callback_10_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } void ldv_io_instance_callback_10_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_sriov_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_10_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_sriov_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_11_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_sriov_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_11_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_sriov_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_12_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } void ldv_io_instance_callback_12_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_sriov_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_12_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_sriov_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_13_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } void ldv_io_instance_callback_13_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_sriov_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_13_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_sriov_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_14_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } void ldv_io_instance_callback_14_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_sriov_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_14_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_sriov_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_15_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } void ldv_io_instance_callback_15_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_sriov_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_15_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_sriov_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_16_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } void ldv_io_instance_callback_16_63(void (*arg0)(struct efx_channel * , char * , unsigned long ) , struct efx_channel *arg1 , char *arg2 , unsigned long arg3 ) { { { efx_sriov_get_channel_name(arg1, arg2, arg3); } return; } } void ldv_io_instance_callback_16_69(void (*arg0)(struct efx_nic * ) , struct efx_nic *arg1 ) { { { efx_sriov_handle_no_channel(arg1); } return; } } void ldv_io_instance_callback_17_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } void ldv_io_instance_callback_18_109(int (*arg0)(struct efx_channel * ) , struct efx_channel *arg1 ) { { { efx_sriov_probe_channel(arg1); } return; } } static void ldv___ldv_spin_lock_66___2(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } static void ldv___ldv_spin_lock_68___0(spinlock_t *ldv_func_arg1 ) { { { ldv_spin_lock_biu_lock_of_efx_nic(); __ldv_spin_lock(ldv_func_arg1); } return; } } void *ldv_xzalloc(size_t size ) ; void *ldv_dev_get_drvdata(struct device const *dev ) { { if ((unsigned long )dev != (unsigned long )((struct device const *)0) && (unsigned long )dev->p != (unsigned long )((struct device_private */* const */)0)) { return ((dev->p)->driver_data); } else { } return ((void *)0); } } int ldv_dev_set_drvdata(struct device *dev , void *data ) { void *tmp ; { { tmp = ldv_xzalloc(8UL); dev->p = (struct device_private *)tmp; (dev->p)->driver_data = data; } return (0); } } void *ldv_zalloc(size_t size ) ; struct spi_master *ldv_spi_alloc_master(struct device *host , unsigned int size ) { struct spi_master *master ; void *tmp ; { { tmp = ldv_zalloc((unsigned long )size + 2200UL); master = (struct spi_master *)tmp; } if ((unsigned long )master == (unsigned long )((struct spi_master *)0)) { return ((struct spi_master *)0); } else { } { ldv_dev_set_drvdata(& master->dev, (void *)master + 1U); } return (master); } } long ldv_is_err(void const *ptr ) { { return ((unsigned long )ptr > 4294967295UL); } } void *ldv_err_ptr(long error ) { { return ((void *)(4294967295L - error)); } } long ldv_ptr_err(void const *ptr ) { { return ((long )(4294967295UL - (unsigned long )ptr)); } } long ldv_is_err_or_null(void const *ptr ) { long tmp ; int tmp___0 ; { if ((unsigned long )ptr == (unsigned long )((void const *)0)) { tmp___0 = 1; } else { { tmp = ldv_is_err(ptr); } if (tmp != 0L) { tmp___0 = 1; } else { tmp___0 = 0; } } return ((long )tmp___0); } } static int ldv_filter_positive_int(int val ) { { { ldv_assume(val <= 0); } return (val); } } int ldv_post_init(int init_ret_val ) { int tmp ; { { tmp = ldv_filter_positive_int(init_ret_val); } return (tmp); } } int ldv_post_probe(int probe_ret_val ) { int tmp ; { { tmp = ldv_filter_positive_int(probe_ret_val); } return (tmp); } } int ldv_filter_err_code(int ret_val ) { int tmp ; { { tmp = ldv_filter_positive_int(ret_val); } return (tmp); } } extern void ldv_check_alloc_flags(gfp_t ) ; extern void ldv_after_alloc(void * ) ; void *ldv_kzalloc(size_t size , gfp_t flags ) { void *res ; { { ldv_check_alloc_flags(flags); res = ldv_zalloc(size); ldv_after_alloc(res); } return (res); } } extern void ldv_assert(char const * , int ) ; void ldv__builtin_trap(void) ; void ldv_assume(int expression ) { { if (expression == 0) { ldv_assume_label: ; goto ldv_assume_label; } else { } return; } } void ldv_stop(void) { { ldv_stop_label: ; goto ldv_stop_label; } } long ldv__builtin_expect(long exp , long c ) { { return (exp); } } void ldv__builtin_trap(void) { { { ldv_assert("", 0); } return; } } void *ldv_malloc(size_t size ) ; void *ldv_calloc(size_t nmemb , size_t size ) ; void *ldv_malloc_unknown_size(void) ; void *ldv_calloc_unknown_size(void) ; void *ldv_zalloc_unknown_size(void) ; void *ldv_xmalloc_unknown_size(size_t size ) ; extern void *malloc(size_t ) ; extern void *calloc(size_t , size_t ) ; extern void free(void * ) ; void *ldv_malloc(size_t size ) { void *res ; void *tmp ; long tmp___0 ; int tmp___1 ; { { tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { { tmp = malloc(size); res = tmp; ldv_assume((unsigned long )res != (unsigned long )((void *)0)); tmp___0 = ldv_is_err((void const *)res); ldv_assume(tmp___0 == 0L); } return (res); } else { return ((void *)0); } } } void *ldv_calloc(size_t nmemb , size_t size ) { void *res ; void *tmp ; long tmp___0 ; int tmp___1 ; { { tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { { tmp = calloc(nmemb, size); res = tmp; ldv_assume((unsigned long )res != (unsigned long )((void *)0)); tmp___0 = ldv_is_err((void const *)res); ldv_assume(tmp___0 == 0L); } return (res); } else { return ((void *)0); } } } void *ldv_zalloc(size_t size ) { void *tmp ; { { tmp = ldv_calloc(1UL, size); } return (tmp); } } void ldv_free(void *s ) { { { free(s); } return; } } void *ldv_xmalloc(size_t size ) { void *res ; void *tmp ; long tmp___0 ; { { tmp = malloc(size); res = tmp; ldv_assume((unsigned long )res != (unsigned long )((void *)0)); tmp___0 = ldv_is_err((void const *)res); ldv_assume(tmp___0 == 0L); } return (res); } } void *ldv_xzalloc(size_t size ) { void *res ; void *tmp ; long tmp___0 ; { { tmp = calloc(1UL, size); res = tmp; ldv_assume((unsigned long )res != (unsigned long )((void *)0)); tmp___0 = ldv_is_err((void const *)res); ldv_assume(tmp___0 == 0L); } return (res); } } void *ldv_malloc_unknown_size(void) { void *res ; void *tmp ; long tmp___0 ; int tmp___1 ; { { tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { { tmp = external_allocated_data(); res = tmp; ldv_assume((unsigned long )res != (unsigned long )((void *)0)); tmp___0 = ldv_is_err((void const *)res); ldv_assume(tmp___0 == 0L); } return (res); } else { return ((void *)0); } } } void *ldv_calloc_unknown_size(void) { void *res ; void *tmp ; long tmp___0 ; int tmp___1 ; { { tmp___1 = ldv_undef_int(); } if (tmp___1 != 0) { { tmp = external_allocated_data(); res = tmp; memset(res, 0, 8UL); ldv_assume((unsigned long )res != (unsigned long )((void *)0)); tmp___0 = ldv_is_err((void const *)res); ldv_assume(tmp___0 == 0L); } return (res); } else { return ((void *)0); } } } void *ldv_zalloc_unknown_size(void) { void *tmp ; { { tmp = ldv_calloc_unknown_size(); } return (tmp); } } void *ldv_xmalloc_unknown_size(size_t size ) { void *res ; void *tmp ; long tmp___0 ; { { tmp = external_allocated_data(); res = tmp; ldv_assume((unsigned long )res != (unsigned long )((void *)0)); tmp___0 = ldv_is_err((void const *)res); ldv_assume(tmp___0 == 0L); } return (res); } } void *ldv_undef_ptr(void) ; unsigned long ldv_undef_ulong(void) ; int ldv_undef_int_negative(void) ; int ldv_undef_int_nonpositive(void) ; extern int __VERIFIER_nondet_int(void) ; extern unsigned long __VERIFIER_nondet_ulong(void) ; extern void *__VERIFIER_nondet_pointer(void) ; 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); } } int ldv_undef_int_negative(void) { int ret ; int tmp ; { { tmp = ldv_undef_int(); ret = tmp; ldv_assume(ret < 0); } return (ret); } } int ldv_undef_int_nonpositive(void) { int ret ; int tmp ; { { tmp = ldv_undef_int(); ret = tmp; ldv_assume(ret <= 0); } return (ret); } } int ldv_thread_create(struct ldv_thread *ldv_thread , void (*function)(void * ) , void *data ) ; int ldv_thread_create_N(struct ldv_thread_set *ldv_thread_set , void (*function)(void * ) , void *data ) ; int ldv_thread_join(struct ldv_thread *ldv_thread , void (*function)(void * ) ) ; int ldv_thread_join_N(struct ldv_thread_set *ldv_thread_set , void (*function)(void * ) ) ; int ldv_thread_create(struct ldv_thread *ldv_thread , void (*function)(void * ) , void *data ) { { if ((unsigned long )function != (unsigned long )((void (*)(void * ))0)) { { (*function)(data); } } else { } return (0); } } int ldv_thread_create_N(struct ldv_thread_set *ldv_thread_set , void (*function)(void * ) , void *data ) { int i ; { if ((unsigned long )function != (unsigned long )((void (*)(void * ))0)) { i = 0; goto ldv_1179; ldv_1178: { (*function)(data); i = i + 1; } ldv_1179: ; if (i < ldv_thread_set->number) { goto ldv_1178; } else { } } else { } return (0); } } int ldv_thread_join(struct ldv_thread *ldv_thread , void (*function)(void * ) ) { { return (0); } } int ldv_thread_join_N(struct ldv_thread_set *ldv_thread_set , void (*function)(void * ) ) { { return (0); } } void ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(int expr ) ; void ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(int expr ) ; void ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(int expr ) ; void ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(int expr ) ; static int ldv_spin__xmit_lock_of_netdev_queue = 1; void ldv_spin_lock__xmit_lock_of_netdev_queue(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin__xmit_lock_of_netdev_queue == 1); ldv_assume(ldv_spin__xmit_lock_of_netdev_queue == 1); ldv_spin__xmit_lock_of_netdev_queue = 2; } return; } } void ldv_spin_unlock__xmit_lock_of_netdev_queue(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin__xmit_lock_of_netdev_queue == 2); ldv_assume(ldv_spin__xmit_lock_of_netdev_queue == 2); ldv_spin__xmit_lock_of_netdev_queue = 1; } return; } } int ldv_spin_trylock__xmit_lock_of_netdev_queue(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin__xmit_lock_of_netdev_queue == 1); ldv_assume(ldv_spin__xmit_lock_of_netdev_queue == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin__xmit_lock_of_netdev_queue = 2; return (1); } } } void ldv_spin_unlock_wait__xmit_lock_of_netdev_queue(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin__xmit_lock_of_netdev_queue == 1); ldv_assume(ldv_spin__xmit_lock_of_netdev_queue == 1); } return; } } int ldv_spin_is_locked__xmit_lock_of_netdev_queue(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin__xmit_lock_of_netdev_queue == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock__xmit_lock_of_netdev_queue(void) { int tmp ; { { tmp = ldv_spin_is_locked__xmit_lock_of_netdev_queue(); } return (tmp == 0); } } int ldv_spin_is_contended__xmit_lock_of_netdev_queue(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock__xmit_lock_of_netdev_queue(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin__xmit_lock_of_netdev_queue == 1); ldv_assume(ldv_spin__xmit_lock_of_netdev_queue == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin__xmit_lock_of_netdev_queue = 2; return (1); } else { } return (0); } } static int ldv_spin_addr_list_lock_of_net_device = 1; void ldv_spin_lock_addr_list_lock_of_net_device(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_addr_list_lock_of_net_device == 1); ldv_assume(ldv_spin_addr_list_lock_of_net_device == 1); ldv_spin_addr_list_lock_of_net_device = 2; } return; } } void ldv_spin_unlock_addr_list_lock_of_net_device(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_addr_list_lock_of_net_device == 2); ldv_assume(ldv_spin_addr_list_lock_of_net_device == 2); ldv_spin_addr_list_lock_of_net_device = 1; } return; } } int ldv_spin_trylock_addr_list_lock_of_net_device(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_addr_list_lock_of_net_device == 1); ldv_assume(ldv_spin_addr_list_lock_of_net_device == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_addr_list_lock_of_net_device = 2; return (1); } } } void ldv_spin_unlock_wait_addr_list_lock_of_net_device(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_addr_list_lock_of_net_device == 1); ldv_assume(ldv_spin_addr_list_lock_of_net_device == 1); } return; } } int ldv_spin_is_locked_addr_list_lock_of_net_device(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_addr_list_lock_of_net_device == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_addr_list_lock_of_net_device(void) { int tmp ; { { tmp = ldv_spin_is_locked_addr_list_lock_of_net_device(); } return (tmp == 0); } } int ldv_spin_is_contended_addr_list_lock_of_net_device(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_addr_list_lock_of_net_device(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_addr_list_lock_of_net_device == 1); ldv_assume(ldv_spin_addr_list_lock_of_net_device == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_addr_list_lock_of_net_device = 2; return (1); } else { } return (0); } } static int ldv_spin_alloc_lock_of_task_struct = 1; void ldv_spin_lock_alloc_lock_of_task_struct(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_alloc_lock_of_task_struct == 1); ldv_assume(ldv_spin_alloc_lock_of_task_struct == 1); ldv_spin_alloc_lock_of_task_struct = 2; } return; } } void ldv_spin_unlock_alloc_lock_of_task_struct(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_alloc_lock_of_task_struct == 2); ldv_assume(ldv_spin_alloc_lock_of_task_struct == 2); ldv_spin_alloc_lock_of_task_struct = 1; } return; } } int ldv_spin_trylock_alloc_lock_of_task_struct(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_alloc_lock_of_task_struct == 1); ldv_assume(ldv_spin_alloc_lock_of_task_struct == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_alloc_lock_of_task_struct = 2; return (1); } } } void ldv_spin_unlock_wait_alloc_lock_of_task_struct(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_alloc_lock_of_task_struct == 1); ldv_assume(ldv_spin_alloc_lock_of_task_struct == 1); } return; } } int ldv_spin_is_locked_alloc_lock_of_task_struct(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_alloc_lock_of_task_struct == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_alloc_lock_of_task_struct(void) { int tmp ; { { tmp = ldv_spin_is_locked_alloc_lock_of_task_struct(); } return (tmp == 0); } } int ldv_spin_is_contended_alloc_lock_of_task_struct(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_alloc_lock_of_task_struct(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_alloc_lock_of_task_struct == 1); ldv_assume(ldv_spin_alloc_lock_of_task_struct == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_alloc_lock_of_task_struct = 2; return (1); } else { } return (0); } } static int ldv_spin_async_lock_of_efx_mcdi_iface = 1; void ldv_spin_lock_async_lock_of_efx_mcdi_iface(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_async_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_async_lock_of_efx_mcdi_iface == 1); ldv_spin_async_lock_of_efx_mcdi_iface = 2; } return; } } void ldv_spin_unlock_async_lock_of_efx_mcdi_iface(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_async_lock_of_efx_mcdi_iface == 2); ldv_assume(ldv_spin_async_lock_of_efx_mcdi_iface == 2); ldv_spin_async_lock_of_efx_mcdi_iface = 1; } return; } } int ldv_spin_trylock_async_lock_of_efx_mcdi_iface(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_async_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_async_lock_of_efx_mcdi_iface == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_async_lock_of_efx_mcdi_iface = 2; return (1); } } } void ldv_spin_unlock_wait_async_lock_of_efx_mcdi_iface(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_async_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_async_lock_of_efx_mcdi_iface == 1); } return; } } int ldv_spin_is_locked_async_lock_of_efx_mcdi_iface(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_async_lock_of_efx_mcdi_iface == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_async_lock_of_efx_mcdi_iface(void) { int tmp ; { { tmp = ldv_spin_is_locked_async_lock_of_efx_mcdi_iface(); } return (tmp == 0); } } int ldv_spin_is_contended_async_lock_of_efx_mcdi_iface(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_async_lock_of_efx_mcdi_iface(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_async_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_async_lock_of_efx_mcdi_iface == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_async_lock_of_efx_mcdi_iface = 2; return (1); } else { } return (0); } } static int ldv_spin_biu_lock_of_efx_nic = 1; void ldv_spin_lock_biu_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_biu_lock_of_efx_nic == 1); ldv_assume(ldv_spin_biu_lock_of_efx_nic == 1); ldv_spin_biu_lock_of_efx_nic = 2; } return; } } void ldv_spin_unlock_biu_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_biu_lock_of_efx_nic == 2); ldv_assume(ldv_spin_biu_lock_of_efx_nic == 2); ldv_spin_biu_lock_of_efx_nic = 1; } return; } } int ldv_spin_trylock_biu_lock_of_efx_nic(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_biu_lock_of_efx_nic == 1); ldv_assume(ldv_spin_biu_lock_of_efx_nic == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_biu_lock_of_efx_nic = 2; return (1); } } } void ldv_spin_unlock_wait_biu_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_biu_lock_of_efx_nic == 1); ldv_assume(ldv_spin_biu_lock_of_efx_nic == 1); } return; } } int ldv_spin_is_locked_biu_lock_of_efx_nic(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_biu_lock_of_efx_nic == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_biu_lock_of_efx_nic(void) { int tmp ; { { tmp = ldv_spin_is_locked_biu_lock_of_efx_nic(); } return (tmp == 0); } } int ldv_spin_is_contended_biu_lock_of_efx_nic(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_biu_lock_of_efx_nic(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_biu_lock_of_efx_nic == 1); ldv_assume(ldv_spin_biu_lock_of_efx_nic == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_biu_lock_of_efx_nic = 2; return (1); } else { } return (0); } } static int ldv_spin_evt_lock_of_efx_ptp_data = 1; void ldv_spin_lock_evt_lock_of_efx_ptp_data(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_evt_lock_of_efx_ptp_data == 1); ldv_assume(ldv_spin_evt_lock_of_efx_ptp_data == 1); ldv_spin_evt_lock_of_efx_ptp_data = 2; } return; } } void ldv_spin_unlock_evt_lock_of_efx_ptp_data(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_evt_lock_of_efx_ptp_data == 2); ldv_assume(ldv_spin_evt_lock_of_efx_ptp_data == 2); ldv_spin_evt_lock_of_efx_ptp_data = 1; } return; } } int ldv_spin_trylock_evt_lock_of_efx_ptp_data(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_evt_lock_of_efx_ptp_data == 1); ldv_assume(ldv_spin_evt_lock_of_efx_ptp_data == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_evt_lock_of_efx_ptp_data = 2; return (1); } } } void ldv_spin_unlock_wait_evt_lock_of_efx_ptp_data(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_evt_lock_of_efx_ptp_data == 1); ldv_assume(ldv_spin_evt_lock_of_efx_ptp_data == 1); } return; } } int ldv_spin_is_locked_evt_lock_of_efx_ptp_data(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_evt_lock_of_efx_ptp_data == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_evt_lock_of_efx_ptp_data(void) { int tmp ; { { tmp = ldv_spin_is_locked_evt_lock_of_efx_ptp_data(); } return (tmp == 0); } } int ldv_spin_is_contended_evt_lock_of_efx_ptp_data(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_evt_lock_of_efx_ptp_data(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_evt_lock_of_efx_ptp_data == 1); ldv_assume(ldv_spin_evt_lock_of_efx_ptp_data == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_evt_lock_of_efx_ptp_data = 2; return (1); } else { } return (0); } } static int ldv_spin_filter_lock_of_efx_nic = 1; void ldv_spin_lock_filter_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_filter_lock_of_efx_nic == 1); ldv_assume(ldv_spin_filter_lock_of_efx_nic == 1); ldv_spin_filter_lock_of_efx_nic = 2; } return; } } void ldv_spin_unlock_filter_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_filter_lock_of_efx_nic == 2); ldv_assume(ldv_spin_filter_lock_of_efx_nic == 2); ldv_spin_filter_lock_of_efx_nic = 1; } return; } } int ldv_spin_trylock_filter_lock_of_efx_nic(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_filter_lock_of_efx_nic == 1); ldv_assume(ldv_spin_filter_lock_of_efx_nic == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_filter_lock_of_efx_nic = 2; return (1); } } } void ldv_spin_unlock_wait_filter_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_filter_lock_of_efx_nic == 1); ldv_assume(ldv_spin_filter_lock_of_efx_nic == 1); } return; } } int ldv_spin_is_locked_filter_lock_of_efx_nic(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_filter_lock_of_efx_nic == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_filter_lock_of_efx_nic(void) { int tmp ; { { tmp = ldv_spin_is_locked_filter_lock_of_efx_nic(); } return (tmp == 0); } } int ldv_spin_is_contended_filter_lock_of_efx_nic(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_filter_lock_of_efx_nic(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_filter_lock_of_efx_nic == 1); ldv_assume(ldv_spin_filter_lock_of_efx_nic == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_filter_lock_of_efx_nic = 2; return (1); } else { } return (0); } } static int ldv_spin_i_lock_of_inode = 1; void ldv_spin_lock_i_lock_of_inode(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_i_lock_of_inode == 1); ldv_assume(ldv_spin_i_lock_of_inode == 1); ldv_spin_i_lock_of_inode = 2; } return; } } void ldv_spin_unlock_i_lock_of_inode(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_i_lock_of_inode == 2); ldv_assume(ldv_spin_i_lock_of_inode == 2); ldv_spin_i_lock_of_inode = 1; } return; } } int ldv_spin_trylock_i_lock_of_inode(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_i_lock_of_inode == 1); ldv_assume(ldv_spin_i_lock_of_inode == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_i_lock_of_inode = 2; return (1); } } } void ldv_spin_unlock_wait_i_lock_of_inode(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_i_lock_of_inode == 1); ldv_assume(ldv_spin_i_lock_of_inode == 1); } return; } } int ldv_spin_is_locked_i_lock_of_inode(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_i_lock_of_inode == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_i_lock_of_inode(void) { int tmp ; { { tmp = ldv_spin_is_locked_i_lock_of_inode(); } return (tmp == 0); } } int ldv_spin_is_contended_i_lock_of_inode(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_i_lock_of_inode(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_i_lock_of_inode == 1); ldv_assume(ldv_spin_i_lock_of_inode == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_i_lock_of_inode = 2; return (1); } else { } return (0); } } static int ldv_spin_iface_lock_of_efx_mcdi_iface = 1; void ldv_spin_lock_iface_lock_of_efx_mcdi_iface(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); ldv_spin_iface_lock_of_efx_mcdi_iface = 2; } return; } } void ldv_spin_unlock_iface_lock_of_efx_mcdi_iface(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_iface_lock_of_efx_mcdi_iface == 2); ldv_assume(ldv_spin_iface_lock_of_efx_mcdi_iface == 2); ldv_spin_iface_lock_of_efx_mcdi_iface = 1; } return; } } int ldv_spin_trylock_iface_lock_of_efx_mcdi_iface(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_iface_lock_of_efx_mcdi_iface = 2; return (1); } } } void ldv_spin_unlock_wait_iface_lock_of_efx_mcdi_iface(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); } return; } } int ldv_spin_is_locked_iface_lock_of_efx_mcdi_iface(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_iface_lock_of_efx_mcdi_iface == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_iface_lock_of_efx_mcdi_iface(void) { int tmp ; { { tmp = ldv_spin_is_locked_iface_lock_of_efx_mcdi_iface(); } return (tmp == 0); } } int ldv_spin_is_contended_iface_lock_of_efx_mcdi_iface(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_iface_lock_of_efx_mcdi_iface(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); ldv_assume(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_iface_lock_of_efx_mcdi_iface = 2; return (1); } else { } return (0); } } static int ldv_spin_lock = 1; void ldv_spin_lock_lock(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_lock == 1); ldv_assume(ldv_spin_lock == 1); ldv_spin_lock = 2; } return; } } void ldv_spin_unlock_lock(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_lock == 2); ldv_assume(ldv_spin_lock == 2); ldv_spin_lock = 1; } return; } } int ldv_spin_trylock_lock(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock == 1); ldv_assume(ldv_spin_lock == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_lock = 2; return (1); } } } void ldv_spin_unlock_wait_lock(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock == 1); ldv_assume(ldv_spin_lock == 1); } return; } } int ldv_spin_is_locked_lock(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_lock == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_lock(void) { int tmp ; { { tmp = ldv_spin_is_locked_lock(); } return (tmp == 0); } } int ldv_spin_is_contended_lock(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_lock(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock == 1); ldv_assume(ldv_spin_lock == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_lock = 2; return (1); } else { } return (0); } } static int ldv_spin_lock_of_NOT_ARG_SIGN = 1; void ldv_spin_lock_lock_of_NOT_ARG_SIGN(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_lock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_lock_of_NOT_ARG_SIGN == 1); ldv_spin_lock_of_NOT_ARG_SIGN = 2; } return; } } void ldv_spin_unlock_lock_of_NOT_ARG_SIGN(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_lock_of_NOT_ARG_SIGN == 2); ldv_assume(ldv_spin_lock_of_NOT_ARG_SIGN == 2); ldv_spin_lock_of_NOT_ARG_SIGN = 1; } return; } } int ldv_spin_trylock_lock_of_NOT_ARG_SIGN(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_lock_of_NOT_ARG_SIGN == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_lock_of_NOT_ARG_SIGN = 2; return (1); } } } void ldv_spin_unlock_wait_lock_of_NOT_ARG_SIGN(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_lock_of_NOT_ARG_SIGN == 1); } return; } } int ldv_spin_is_locked_lock_of_NOT_ARG_SIGN(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_lock_of_NOT_ARG_SIGN == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_lock_of_NOT_ARG_SIGN(void) { int tmp ; { { tmp = ldv_spin_is_locked_lock_of_NOT_ARG_SIGN(); } return (tmp == 0); } } int ldv_spin_is_contended_lock_of_NOT_ARG_SIGN(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_lock_of_NOT_ARG_SIGN(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_lock_of_NOT_ARG_SIGN == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_lock_of_NOT_ARG_SIGN = 2; return (1); } else { } return (0); } } static int ldv_spin_lock_of_res_counter = 1; void ldv_spin_lock_lock_of_res_counter(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_lock_of_res_counter == 1); ldv_assume(ldv_spin_lock_of_res_counter == 1); ldv_spin_lock_of_res_counter = 2; } return; } } void ldv_spin_unlock_lock_of_res_counter(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_lock_of_res_counter == 2); ldv_assume(ldv_spin_lock_of_res_counter == 2); ldv_spin_lock_of_res_counter = 1; } return; } } int ldv_spin_trylock_lock_of_res_counter(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock_of_res_counter == 1); ldv_assume(ldv_spin_lock_of_res_counter == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_lock_of_res_counter = 2; return (1); } } } void ldv_spin_unlock_wait_lock_of_res_counter(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock_of_res_counter == 1); ldv_assume(ldv_spin_lock_of_res_counter == 1); } return; } } int ldv_spin_is_locked_lock_of_res_counter(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_lock_of_res_counter == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_lock_of_res_counter(void) { int tmp ; { { tmp = ldv_spin_is_locked_lock_of_res_counter(); } return (tmp == 0); } } int ldv_spin_is_contended_lock_of_res_counter(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_lock_of_res_counter(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lock_of_res_counter == 1); ldv_assume(ldv_spin_lock_of_res_counter == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_lock_of_res_counter = 2; return (1); } else { } return (0); } } static int ldv_spin_lru_lock_of_netns_frags = 1; void ldv_spin_lock_lru_lock_of_netns_frags(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_lru_lock_of_netns_frags == 1); ldv_assume(ldv_spin_lru_lock_of_netns_frags == 1); ldv_spin_lru_lock_of_netns_frags = 2; } return; } } void ldv_spin_unlock_lru_lock_of_netns_frags(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_lru_lock_of_netns_frags == 2); ldv_assume(ldv_spin_lru_lock_of_netns_frags == 2); ldv_spin_lru_lock_of_netns_frags = 1; } return; } } int ldv_spin_trylock_lru_lock_of_netns_frags(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lru_lock_of_netns_frags == 1); ldv_assume(ldv_spin_lru_lock_of_netns_frags == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_lru_lock_of_netns_frags = 2; return (1); } } } void ldv_spin_unlock_wait_lru_lock_of_netns_frags(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lru_lock_of_netns_frags == 1); ldv_assume(ldv_spin_lru_lock_of_netns_frags == 1); } return; } } int ldv_spin_is_locked_lru_lock_of_netns_frags(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_lru_lock_of_netns_frags == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_lru_lock_of_netns_frags(void) { int tmp ; { { tmp = ldv_spin_is_locked_lru_lock_of_netns_frags(); } return (tmp == 0); } } int ldv_spin_is_contended_lru_lock_of_netns_frags(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_lru_lock_of_netns_frags(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_lru_lock_of_netns_frags == 1); ldv_assume(ldv_spin_lru_lock_of_netns_frags == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_lru_lock_of_netns_frags = 2; return (1); } else { } return (0); } } static int ldv_spin_node_size_lock_of_pglist_data = 1; void ldv_spin_lock_node_size_lock_of_pglist_data(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_node_size_lock_of_pglist_data == 1); ldv_assume(ldv_spin_node_size_lock_of_pglist_data == 1); ldv_spin_node_size_lock_of_pglist_data = 2; } return; } } void ldv_spin_unlock_node_size_lock_of_pglist_data(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_node_size_lock_of_pglist_data == 2); ldv_assume(ldv_spin_node_size_lock_of_pglist_data == 2); ldv_spin_node_size_lock_of_pglist_data = 1; } return; } } int ldv_spin_trylock_node_size_lock_of_pglist_data(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_node_size_lock_of_pglist_data == 1); ldv_assume(ldv_spin_node_size_lock_of_pglist_data == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_node_size_lock_of_pglist_data = 2; return (1); } } } void ldv_spin_unlock_wait_node_size_lock_of_pglist_data(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_node_size_lock_of_pglist_data == 1); ldv_assume(ldv_spin_node_size_lock_of_pglist_data == 1); } return; } } int ldv_spin_is_locked_node_size_lock_of_pglist_data(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_node_size_lock_of_pglist_data == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_node_size_lock_of_pglist_data(void) { int tmp ; { { tmp = ldv_spin_is_locked_node_size_lock_of_pglist_data(); } return (tmp == 0); } } int ldv_spin_is_contended_node_size_lock_of_pglist_data(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_node_size_lock_of_pglist_data(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_node_size_lock_of_pglist_data == 1); ldv_assume(ldv_spin_node_size_lock_of_pglist_data == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_node_size_lock_of_pglist_data = 2; return (1); } else { } return (0); } } static int ldv_spin_ptl = 1; void ldv_spin_lock_ptl(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_ptl == 1); ldv_assume(ldv_spin_ptl == 1); ldv_spin_ptl = 2; } return; } } void ldv_spin_unlock_ptl(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_ptl == 2); ldv_assume(ldv_spin_ptl == 2); ldv_spin_ptl = 1; } return; } } int ldv_spin_trylock_ptl(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_ptl == 1); ldv_assume(ldv_spin_ptl == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_ptl = 2; return (1); } } } void ldv_spin_unlock_wait_ptl(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_ptl == 1); ldv_assume(ldv_spin_ptl == 1); } return; } } int ldv_spin_is_locked_ptl(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_ptl == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_ptl(void) { int tmp ; { { tmp = ldv_spin_is_locked_ptl(); } return (tmp == 0); } } int ldv_spin_is_contended_ptl(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_ptl(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_ptl == 1); ldv_assume(ldv_spin_ptl == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_ptl = 2; return (1); } else { } return (0); } } static int ldv_spin_siglock_of_sighand_struct = 1; void ldv_spin_lock_siglock_of_sighand_struct(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_siglock_of_sighand_struct == 1); ldv_assume(ldv_spin_siglock_of_sighand_struct == 1); ldv_spin_siglock_of_sighand_struct = 2; } return; } } void ldv_spin_unlock_siglock_of_sighand_struct(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_siglock_of_sighand_struct == 2); ldv_assume(ldv_spin_siglock_of_sighand_struct == 2); ldv_spin_siglock_of_sighand_struct = 1; } return; } } int ldv_spin_trylock_siglock_of_sighand_struct(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_siglock_of_sighand_struct == 1); ldv_assume(ldv_spin_siglock_of_sighand_struct == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_siglock_of_sighand_struct = 2; return (1); } } } void ldv_spin_unlock_wait_siglock_of_sighand_struct(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_siglock_of_sighand_struct == 1); ldv_assume(ldv_spin_siglock_of_sighand_struct == 1); } return; } } int ldv_spin_is_locked_siglock_of_sighand_struct(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_siglock_of_sighand_struct == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_siglock_of_sighand_struct(void) { int tmp ; { { tmp = ldv_spin_is_locked_siglock_of_sighand_struct(); } return (tmp == 0); } } int ldv_spin_is_contended_siglock_of_sighand_struct(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_siglock_of_sighand_struct(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_siglock_of_sighand_struct == 1); ldv_assume(ldv_spin_siglock_of_sighand_struct == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_siglock_of_sighand_struct = 2; return (1); } else { } return (0); } } static int ldv_spin_sk_dst_lock_of_sock = 1; void ldv_spin_lock_sk_dst_lock_of_sock(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_sk_dst_lock_of_sock == 1); ldv_assume(ldv_spin_sk_dst_lock_of_sock == 1); ldv_spin_sk_dst_lock_of_sock = 2; } return; } } void ldv_spin_unlock_sk_dst_lock_of_sock(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_sk_dst_lock_of_sock == 2); ldv_assume(ldv_spin_sk_dst_lock_of_sock == 2); ldv_spin_sk_dst_lock_of_sock = 1; } return; } } int ldv_spin_trylock_sk_dst_lock_of_sock(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_sk_dst_lock_of_sock == 1); ldv_assume(ldv_spin_sk_dst_lock_of_sock == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_sk_dst_lock_of_sock = 2; return (1); } } } void ldv_spin_unlock_wait_sk_dst_lock_of_sock(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_sk_dst_lock_of_sock == 1); ldv_assume(ldv_spin_sk_dst_lock_of_sock == 1); } return; } } int ldv_spin_is_locked_sk_dst_lock_of_sock(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_sk_dst_lock_of_sock == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_sk_dst_lock_of_sock(void) { int tmp ; { { tmp = ldv_spin_is_locked_sk_dst_lock_of_sock(); } return (tmp == 0); } } int ldv_spin_is_contended_sk_dst_lock_of_sock(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_sk_dst_lock_of_sock(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_sk_dst_lock_of_sock == 1); ldv_assume(ldv_spin_sk_dst_lock_of_sock == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_sk_dst_lock_of_sock = 2; return (1); } else { } return (0); } } static int ldv_spin_slock_of_NOT_ARG_SIGN = 1; void ldv_spin_lock_slock_of_NOT_ARG_SIGN(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_slock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_slock_of_NOT_ARG_SIGN == 1); ldv_spin_slock_of_NOT_ARG_SIGN = 2; } return; } } void ldv_spin_unlock_slock_of_NOT_ARG_SIGN(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_slock_of_NOT_ARG_SIGN == 2); ldv_assume(ldv_spin_slock_of_NOT_ARG_SIGN == 2); ldv_spin_slock_of_NOT_ARG_SIGN = 1; } return; } } int ldv_spin_trylock_slock_of_NOT_ARG_SIGN(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_slock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_slock_of_NOT_ARG_SIGN == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_slock_of_NOT_ARG_SIGN = 2; return (1); } } } void ldv_spin_unlock_wait_slock_of_NOT_ARG_SIGN(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_slock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_slock_of_NOT_ARG_SIGN == 1); } return; } } int ldv_spin_is_locked_slock_of_NOT_ARG_SIGN(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_slock_of_NOT_ARG_SIGN == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_slock_of_NOT_ARG_SIGN(void) { int tmp ; { { tmp = ldv_spin_is_locked_slock_of_NOT_ARG_SIGN(); } return (tmp == 0); } } int ldv_spin_is_contended_slock_of_NOT_ARG_SIGN(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_slock_of_NOT_ARG_SIGN(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_slock_of_NOT_ARG_SIGN == 1); ldv_assume(ldv_spin_slock_of_NOT_ARG_SIGN == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_slock_of_NOT_ARG_SIGN = 2; return (1); } else { } return (0); } } static int ldv_spin_stats_lock_of_efx_nic = 1; void ldv_spin_lock_stats_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_stats_lock_of_efx_nic == 1); ldv_assume(ldv_spin_stats_lock_of_efx_nic == 1); ldv_spin_stats_lock_of_efx_nic = 2; } return; } } void ldv_spin_unlock_stats_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_stats_lock_of_efx_nic == 2); ldv_assume(ldv_spin_stats_lock_of_efx_nic == 2); ldv_spin_stats_lock_of_efx_nic = 1; } return; } } int ldv_spin_trylock_stats_lock_of_efx_nic(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_stats_lock_of_efx_nic == 1); ldv_assume(ldv_spin_stats_lock_of_efx_nic == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_stats_lock_of_efx_nic = 2; return (1); } } } void ldv_spin_unlock_wait_stats_lock_of_efx_nic(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_stats_lock_of_efx_nic == 1); ldv_assume(ldv_spin_stats_lock_of_efx_nic == 1); } return; } } int ldv_spin_is_locked_stats_lock_of_efx_nic(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_stats_lock_of_efx_nic == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_stats_lock_of_efx_nic(void) { int tmp ; { { tmp = ldv_spin_is_locked_stats_lock_of_efx_nic(); } return (tmp == 0); } } int ldv_spin_is_contended_stats_lock_of_efx_nic(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_stats_lock_of_efx_nic(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_stats_lock_of_efx_nic == 1); ldv_assume(ldv_spin_stats_lock_of_efx_nic == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_stats_lock_of_efx_nic = 2; return (1); } else { } return (0); } } static int ldv_spin_tx_global_lock_of_net_device = 1; void ldv_spin_lock_tx_global_lock_of_net_device(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(ldv_spin_tx_global_lock_of_net_device == 1); ldv_assume(ldv_spin_tx_global_lock_of_net_device == 1); ldv_spin_tx_global_lock_of_net_device = 2; } return; } } void ldv_spin_unlock_tx_global_lock_of_net_device(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(ldv_spin_tx_global_lock_of_net_device == 2); ldv_assume(ldv_spin_tx_global_lock_of_net_device == 2); ldv_spin_tx_global_lock_of_net_device = 1; } return; } } int ldv_spin_trylock_tx_global_lock_of_net_device(void) { int is_spin_held_by_another_thread ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_tx_global_lock_of_net_device == 1); ldv_assume(ldv_spin_tx_global_lock_of_net_device == 1); is_spin_held_by_another_thread = ldv_undef_int(); } if (is_spin_held_by_another_thread != 0) { return (0); } else { ldv_spin_tx_global_lock_of_net_device = 2; return (1); } } } void ldv_spin_unlock_wait_tx_global_lock_of_net_device(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_tx_global_lock_of_net_device == 1); ldv_assume(ldv_spin_tx_global_lock_of_net_device == 1); } return; } } int ldv_spin_is_locked_tx_global_lock_of_net_device(void) { int is_spin_held_by_another_thread ; { { is_spin_held_by_another_thread = ldv_undef_int(); } if (ldv_spin_tx_global_lock_of_net_device == 1 && is_spin_held_by_another_thread == 0) { return (0); } else { return (1); } } } int ldv_spin_can_lock_tx_global_lock_of_net_device(void) { int tmp ; { { tmp = ldv_spin_is_locked_tx_global_lock_of_net_device(); } return (tmp == 0); } } int ldv_spin_is_contended_tx_global_lock_of_net_device(void) { int is_spin_contended ; { { is_spin_contended = ldv_undef_int(); } if (is_spin_contended != 0) { return (0); } else { return (1); } } } int ldv_atomic_dec_and_lock_tx_global_lock_of_net_device(void) { int atomic_value_after_dec ; { { ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(ldv_spin_tx_global_lock_of_net_device == 1); ldv_assume(ldv_spin_tx_global_lock_of_net_device == 1); atomic_value_after_dec = ldv_undef_int(); } if (atomic_value_after_dec == 0) { ldv_spin_tx_global_lock_of_net_device = 2; return (1); } else { } return (0); } } void ldv_check_final_state(void) { { { ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin__xmit_lock_of_netdev_queue == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_addr_list_lock_of_net_device == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_alloc_lock_of_task_struct == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_async_lock_of_efx_mcdi_iface == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_biu_lock_of_efx_nic == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_evt_lock_of_efx_ptp_data == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_filter_lock_of_efx_nic == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_i_lock_of_inode == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_iface_lock_of_efx_mcdi_iface == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_lock == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_lock_of_NOT_ARG_SIGN == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_lock_of_res_counter == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_lru_lock_of_netns_frags == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_node_size_lock_of_pglist_data == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_ptl == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_siglock_of_sighand_struct == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_sk_dst_lock_of_sock == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_slock_of_NOT_ARG_SIGN == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_stats_lock_of_efx_nic == 1); ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(ldv_spin_tx_global_lock_of_net_device == 1); } return; } } int ldv_exclusive_spin_is_locked(void) { { if (ldv_spin__xmit_lock_of_netdev_queue == 2) { return (1); } else { } if (ldv_spin_addr_list_lock_of_net_device == 2) { return (1); } else { } if (ldv_spin_alloc_lock_of_task_struct == 2) { return (1); } else { } if (ldv_spin_async_lock_of_efx_mcdi_iface == 2) { return (1); } else { } if (ldv_spin_biu_lock_of_efx_nic == 2) { return (1); } else { } if (ldv_spin_evt_lock_of_efx_ptp_data == 2) { return (1); } else { } if (ldv_spin_filter_lock_of_efx_nic == 2) { return (1); } else { } if (ldv_spin_i_lock_of_inode == 2) { return (1); } else { } if (ldv_spin_iface_lock_of_efx_mcdi_iface == 2) { return (1); } else { } if (ldv_spin_lock == 2) { return (1); } else { } if (ldv_spin_lock_of_NOT_ARG_SIGN == 2) { return (1); } else { } if (ldv_spin_lock_of_res_counter == 2) { return (1); } else { } if (ldv_spin_lru_lock_of_netns_frags == 2) { return (1); } else { } if (ldv_spin_node_size_lock_of_pglist_data == 2) { return (1); } else { } if (ldv_spin_ptl == 2) { return (1); } else { } if (ldv_spin_siglock_of_sighand_struct == 2) { return (1); } else { } if (ldv_spin_sk_dst_lock_of_sock == 2) { return (1); } else { } if (ldv_spin_slock_of_NOT_ARG_SIGN == 2) { return (1); } else { } if (ldv_spin_stats_lock_of_efx_nic == 2) { return (1); } else { } if (ldv_spin_tx_global_lock_of_net_device == 2) { return (1); } else { } return (0); } } extern void __VERIFIER_error(void) ; void ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock(int expr ) { { if (! expr) { { __VERIFIER_error(); } } else { } return; } } void ldv_assert_linux_kernel_locking_spinlock__one_thread_double_lock_try(int expr ) { { if (! expr) { { __VERIFIER_error(); } } else { } return; } } void ldv_assert_linux_kernel_locking_spinlock__one_thread_double_unlock(int expr ) { { if (! expr) { { __VERIFIER_error(); } } else { } return; } } void ldv_assert_linux_kernel_locking_spinlock__one_thread_locked_at_exit(int expr ) { { if (! expr) { { __VERIFIER_error(); } } else { } return; } }