Line data Source code
1 :
2 : struct device;
3 :
4 : void *ldv_dev_get_drvdata(const struct device *dev);
5 : int ldv_dev_set_drvdata(struct device *dev, void *data);
6 :
7 : struct spi_master;
8 : struct device;
9 : struct spi_master *ldv_spi_alloc_master(struct device *host, unsigned size);
10 :
11 : #include <linux/ldv/err.h>
12 :
13 : #include <linux/types.h>
14 : void *ldv_kzalloc(size_t size, gfp_t flags);
15 :
16 : struct clk;
17 :
18 : extern void ldv_clk_disable(struct clk *clk);
19 : extern int ldv_clk_enable(void);
20 :
21 : #include <linux/ldv/common.h>
22 : #include <linux/ldv/irq.h>
23 : #include <verifier/common.h>
24 : #include <verifier/nondet.h>
25 : #include <verifier/memory.h>
26 : #include <verifier/thread.h>
27 :
28 : #include <linux/device.h>
29 : #include <linux/platform_device.h>
30 : #include <linux/pm.h>
31 : #include <linux/rtc.h>
32 : #include <linux/timer.h>
33 :
34 :
35 : struct ldv_struct_platform_instance_2 {
36 : int signal_pending;
37 : };
38 :
39 : struct ldv_struct_timer_scenario_24 {
40 : struct timer_list *arg0;
41 : int signal_pending;
42 : };
43 :
44 : /* EMG Function declarations */
45 : void ldv_random_containerless_scenario_callback_22_12(int (*)(struct mmc_host *), struct mmc_host *);
46 : void ldv_random_containerless_scenario_callback_22_13(int (*)(struct mmc_host *), struct mmc_host *);
47 : void ldv_random_containerless_scenario_callback_22_4(int (*)(struct mmc_host *), struct mmc_host *);
48 : void ldv_random_containerless_scenario_callback_23_12(int (*)(struct mmc_host *), struct mmc_host *);
49 : void ldv_random_containerless_scenario_callback_23_4(int (*)(struct mmc_host *), struct mmc_host *);
50 :
51 : /* EMG variable declarations */
52 :
53 : /* EMG variable initialization */
54 :
55 : /* EMG function definitions */
56 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_22_12 */
57 : void ldv_random_containerless_scenario_callback_22_12(int (*arg0)(struct mmc_host *), struct mmc_host *arg1) {
58 4 : ((& mmc_sleep))(arg1);
59 1 : }
60 :
61 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_22_13 */
62 : void ldv_random_containerless_scenario_callback_22_13(int (*arg0)(struct mmc_host *), struct mmc_host *arg1) {
63 2 : ((& mmc_suspend))(arg1);
64 1 : }
65 :
66 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_22_4 */
67 : void ldv_random_containerless_scenario_callback_22_4(int (*arg0)(struct mmc_host *), struct mmc_host *arg1) {
68 4 : ((& mmc_awake))(arg1);
69 1 : }
70 :
71 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_23_12 */
72 : void ldv_random_containerless_scenario_callback_23_12(int (*arg0)(struct mmc_host *), struct mmc_host *arg1) {
73 4 : ((& mmc_sleep))(arg1);
74 1 : }
75 :
76 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_23_4 */
77 : void ldv_random_containerless_scenario_callback_23_4(int (*arg0)(struct mmc_host *), struct mmc_host *arg1) {
78 4 : ((& mmc_awake))(arg1);
79 1 : }
80 :
81 :
82 : /* AUX_FUNC ERR_PTR */
83 : static inline void *ERR_PTR (long int error)
84 : {
85 :
86 : return ldv_err_ptr(error);
87 : }
88 :
89 : /* AUX_FUNC PTR_ERR */
90 : static inline long int PTR_ERR (void const *ptr)
91 : {
92 4 :
93 12 : return ldv_ptr_err(ptr);
94 : }
95 :
96 : /* AUX_FUNC IS_ERR */
97 : static inline long int IS_ERR (void const *ptr)
98 : {
99 4 :
100 12 : return ldv_is_err(ptr);
101 : }
102 :
103 : /* AUX_FUNC IS_ERR_OR_NULL */
104 : static inline long int IS_ERR_OR_NULL (void const *ptr)
105 : {
106 :
107 : return ldv_is_err_or_null(ptr);
108 : }
109 :
110 : /* AUX_FUNC kzalloc */
111 : static inline void *kzalloc (size_t size, gfp_t flags)
112 : {
113 :
114 : return ldv_kzalloc(size, flags);
115 : }
|