Home | History | Annotate | Download | only in fio

Lines Matching refs:io_u

33 struct io_u {
99 int (*end_io)(struct thread_data *, struct io_u **);
130 extern struct io_u *__get_io_u(struct thread_data *);
131 extern struct io_u *get_io_u(struct thread_data *);
132 extern void put_io_u(struct thread_data *, struct io_u *);
133 extern void clear_io_u(struct thread_data *, struct io_u *);
134 extern void requeue_io_u(struct thread_data *, struct io_u **);
135 extern int __must_check io_u_sync_complete(struct thread_data *, struct io_u *);
137 extern void io_u_queued(struct thread_data *, struct io_u *);
139 extern void io_u_log_error(struct thread_data *, struct io_u *);
142 extern void io_u_fill_buffer(struct thread_data *td, struct io_u *, unsigned int, unsigned int);
147 int do_io_u_sync(const struct thread_data *, struct io_u *);
148 int do_io_u_trim(const struct thread_data *, struct io_u *);
151 static inline void dprint_io_u(struct io_u *io_u, const char *p)
153 struct fio_file *f = io_u->file;
155 dprint(FD_IO, "%s: io_u %p: off=%llu/len=%lu/ddir=%d", p, io_u,
156 (unsigned long long) io_u->offset,
157 io_u->buflen, io_u->ddir);
163 #define dprint_io_u(io_u, p)
166 static inline enum fio_ddir acct_ddir(struct io_u *io_u)
168 if (io_u->acct_ddir != -1)
169 return io_u->acct_ddir;
171 return io_u->ddir;
174 #define io_u_clear(td, io_u, val) \
175 td_flags_clear((td), &(io_u->flags), (val))
176 #define io_u_set(td, io_u, val) \
177 td_flags_set((td), &(io_u)->flags, (val))