Lines Matching refs:f
54 int qemu_stdio_fd(QEMUFile *f);
55 void qemu_fflush(QEMUFile *f);
56 int qemu_fclose(QEMUFile *f);
57 void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, int size);
58 void qemu_put_byte(QEMUFile *f, int v);
60 static inline void qemu_put_ubyte(QEMUFile *f, unsigned int v) in qemu_put_ubyte() argument
62 qemu_put_byte(f, (int)v); in qemu_put_ubyte()
67 void qemu_put_be16(QEMUFile *f, unsigned int v);
68 void qemu_put_be32(QEMUFile *f, unsigned int v);
69 void qemu_put_be64(QEMUFile *f, uint64_t v);
71 void qemu_put_float(QEMUFile *f, float v);
73 int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size);
74 int qemu_get_byte(QEMUFile *f);
76 static inline unsigned int qemu_get_ubyte(QEMUFile *f) in qemu_get_ubyte() argument
78 return (unsigned int)qemu_get_byte(f); in qemu_get_ubyte()
83 unsigned int qemu_get_be16(QEMUFile *f);
84 unsigned int qemu_get_be32(QEMUFile *f);
85 uint64_t qemu_get_be64(QEMUFile *f);
87 float qemu_get_float(QEMUFile *f);
89 int qemu_file_rate_limit(QEMUFile *f);
90 int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate);
91 int64_t qemu_file_get_rate_limit(QEMUFile *f);
92 int qemu_file_has_error(QEMUFile *f);
93 void qemu_file_set_error(QEMUFile *f);
98 void qemu_file_put_notify(QEMUFile *f);
100 static inline void qemu_put_be64s(QEMUFile *f, const uint64_t *pv) in qemu_put_be64s() argument
102 qemu_put_be64(f, *pv); in qemu_put_be64s()
105 static inline void qemu_put_be32s(QEMUFile *f, const uint32_t *pv) in qemu_put_be32s() argument
107 qemu_put_be32(f, *pv); in qemu_put_be32s()
110 static inline void qemu_put_be16s(QEMUFile *f, const uint16_t *pv) in qemu_put_be16s() argument
112 qemu_put_be16(f, *pv); in qemu_put_be16s()
115 static inline void qemu_put_8s(QEMUFile *f, const uint8_t *pv) in qemu_put_8s() argument
117 qemu_put_byte(f, *pv); in qemu_put_8s()
120 static inline void qemu_get_be64s(QEMUFile *f, uint64_t *pv) in qemu_get_be64s() argument
122 *pv = qemu_get_be64(f); in qemu_get_be64s()
125 static inline void qemu_get_be32s(QEMUFile *f, uint32_t *pv) in qemu_get_be32s() argument
127 *pv = qemu_get_be32(f); in qemu_get_be32s()
130 static inline void qemu_get_be16s(QEMUFile *f, uint16_t *pv) in qemu_get_be16s() argument
132 *pv = qemu_get_be16(f); in qemu_get_be16s()
135 static inline void qemu_get_8s(QEMUFile *f, uint8_t *pv) in qemu_get_8s() argument
137 *pv = qemu_get_byte(f); in qemu_get_8s()
141 static inline void qemu_put_sbuffer(QEMUFile *f, const int8_t *buf, int size) in qemu_put_sbuffer() argument
143 qemu_put_buffer(f, (const uint8_t *)buf, size); in qemu_put_sbuffer()
146 static inline void qemu_put_sbe16(QEMUFile *f, int v) in qemu_put_sbe16() argument
148 qemu_put_be16(f, (unsigned int)v); in qemu_put_sbe16()
151 static inline void qemu_put_sbe32(QEMUFile *f, int v) in qemu_put_sbe32() argument
153 qemu_put_be32(f, (unsigned int)v); in qemu_put_sbe32()
156 static inline void qemu_put_sbe64(QEMUFile *f, int64_t v) in qemu_put_sbe64() argument
158 qemu_put_be64(f, (uint64_t)v); in qemu_put_sbe64()
161 static inline size_t qemu_get_sbuffer(QEMUFile *f, int8_t *buf, int size) in qemu_get_sbuffer() argument
163 return qemu_get_buffer(f, (uint8_t *)buf, size); in qemu_get_sbuffer()
166 static inline int qemu_get_sbe16(QEMUFile *f) in qemu_get_sbe16() argument
168 return (int)qemu_get_be16(f); in qemu_get_sbe16()
171 static inline int qemu_get_sbe32(QEMUFile *f) in qemu_get_sbe32() argument
173 return (int)qemu_get_be32(f); in qemu_get_sbe32()
176 static inline int64_t qemu_get_sbe64(QEMUFile *f) in qemu_get_sbe64() argument
178 return (int64_t)qemu_get_be64(f); in qemu_get_sbe64()
181 static inline void qemu_put_s8s(QEMUFile *f, const int8_t *pv) in qemu_put_s8s() argument
183 qemu_put_8s(f, (const uint8_t *)pv); in qemu_put_s8s()
186 static inline void qemu_put_sbe16s(QEMUFile *f, const int16_t *pv) in qemu_put_sbe16s() argument
188 qemu_put_be16s(f, (const uint16_t *)pv); in qemu_put_sbe16s()
191 static inline void qemu_put_sbe32s(QEMUFile *f, const int32_t *pv) in qemu_put_sbe32s() argument
193 qemu_put_be32s(f, (const uint32_t *)pv); in qemu_put_sbe32s()
196 static inline void qemu_put_sbe64s(QEMUFile *f, const int64_t *pv) in qemu_put_sbe64s() argument
198 qemu_put_be64s(f, (const uint64_t *)pv); in qemu_put_sbe64s()
201 static inline void qemu_get_s8s(QEMUFile *f, int8_t *pv) in qemu_get_s8s() argument
203 qemu_get_8s(f, (uint8_t *)pv); in qemu_get_s8s()
206 static inline void qemu_get_sbe16s(QEMUFile *f, int16_t *pv) in qemu_get_sbe16s() argument
208 qemu_get_be16s(f, (uint16_t *)pv); in qemu_get_sbe16s()
211 static inline void qemu_get_sbe32s(QEMUFile *f, int32_t *pv) in qemu_get_sbe32s() argument
213 qemu_get_be32s(f, (uint32_t *)pv); in qemu_get_sbe32s()
216 static inline void qemu_get_sbe64s(QEMUFile *f, int64_t *pv) in qemu_get_sbe64s() argument
218 qemu_get_be64s(f, (uint64_t *)pv); in qemu_get_sbe64s()
222 void qemu_put_string(QEMUFile *f, const char* str);
223 char* qemu_get_string(QEMUFile *f);
248 int64_t qemu_ftell(QEMUFile *f);
249 int64_t qemu_fseek(QEMUFile *f, int64_t pos, int whence);
251 typedef void SaveStateHandler(QEMUFile *f, void *opaque);
252 typedef int SaveLiveStateHandler(QEMUFile *f, int stage, void *opaque);
253 typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);