Lines Matching refs:io_u
34 struct io_u { struct
93 int (*end_io)(struct thread_data *, struct io_u **); argument
137 int (*prep)(struct thread_data *, struct io_u *);
138 int (*queue)(struct thread_data *, struct io_u *);
141 struct io_u *(*event)(struct thread_data *, int);
142 int (*cancel)(struct thread_data *, struct io_u *);
150 int (*io_u_init)(struct thread_data *, struct io_u *);
151 void (*io_u_free)(struct thread_data *, struct io_u *);
182 extern int __must_check td_io_prep(struct thread_data *, struct io_u *);
183 extern int __must_check td_io_queue(struct thread_data *, struct io_u *);
203 extern struct io_u *__get_io_u(struct thread_data *);
204 extern struct io_u *get_io_u(struct thread_data *);
205 extern void put_io_u(struct thread_data *, struct io_u *);
206 extern void clear_io_u(struct thread_data *, struct io_u *);
207 extern void requeue_io_u(struct thread_data *, struct io_u **);
208 extern int __must_check io_u_sync_complete(struct thread_data *, struct io_u *, uint64_t *);
210 extern void io_u_queued(struct thread_data *, struct io_u *);
212 extern void io_u_log_error(struct thread_data *, struct io_u *);
215 extern void io_u_fill_buffer(struct thread_data *td, struct io_u *, unsigned int, unsigned int);
220 int do_io_u_sync(const struct thread_data *, struct io_u *);
221 int do_io_u_trim(const struct thread_data *, struct io_u *);
224 static inline void dprint_io_u(struct io_u *io_u, const char *p) in dprint_io_u() argument
226 struct fio_file *f = io_u->file; in dprint_io_u()
228 dprint(FD_IO, "%s: io_u %p: off=%llu/len=%lu/ddir=%d", p, io_u, in dprint_io_u()
229 (unsigned long long) io_u->offset, in dprint_io_u()
230 io_u->buflen, io_u->ddir); in dprint_io_u()
239 #define dprint_io_u(io_u, p) argument
242 static inline enum fio_ddir acct_ddir(struct io_u *io_u) in acct_ddir() argument
244 if (io_u->acct_ddir != -1) in acct_ddir()
245 return io_u->acct_ddir; in acct_ddir()
247 return io_u->ddir; in acct_ddir()