/external/fio/ |
cgroup.c | 22 static char *find_cgroup_mnt(struct thread_data *td) 31 td_verror(td, errno, "setmntent /proc/mounts"); 50 static void add_cgroup(struct thread_data *td, const char *name, 71 if (td->o.cgroup_nodelete) 100 static char *get_cgroup_root(struct thread_data *td, char *mnt) 104 if (td->o.cgroup) 105 sprintf(str, "%s/%s", mnt, td->o.cgroup); 107 sprintf(str, "%s/%s", mnt, td->o.name); 112 static int write_int_to_file(struct thread_data *td, const char *path, 122 td_verror(td, errno, onerr) [all...] |
eta.c | 33 * Sets the status of the 'td' in the printed status map. 35 static void check_str_update(struct thread_data *td) 37 char c = __run_str[td->thread_number - 1]; 39 switch (td->runstate) { 41 if (td->error) 43 else if (td->sig) 55 if (td_rw(td)) { 56 if (td_random(td)) { 57 if (td->o.rwmix[DDIR_READ] == 100) 59 else if (td->o.rwmix[DDIR_WRITE] == 100 356 struct thread_data *td; local [all...] |
trim.c | 14 bool get_next_trim(struct thread_data *td, struct io_u *io_u) 23 if (flist_empty(&td->trim_list)) 26 assert(td->trim_entries); 27 ipo = flist_first_entry(&td->trim_list, struct io_piece, trim_list); 28 remove_trim_entry(td, ipo); 38 if (!td->o.trim_zero) { 43 rb_erase(&ipo->rb_node, &td->io_hist_tree); 45 td->io_hist_len--; 51 int r = td_io_open_file(td, io_u->file); 70 bool io_u_should_trim(struct thread_data *td, struct io_u *io_u [all...] |
time.c | 41 uint64_t usec_sleep(struct thread_data *td, unsigned long usec) 75 } while (!td->terminate); 95 bool in_ramp_time(struct thread_data *td) 97 return td->o.ramp_time && !td->ramp_time_over; 100 static void parent_update_ramp(struct thread_data *td) 102 struct thread_data *parent = td->parent; 112 bool ramp_time_over(struct thread_data *td) 116 if (!td->o.ramp_time || td->ramp_time_over [all...] |
iolog.c | 27 void queue_io_piece(struct thread_data *td, struct io_piece *ipo) 29 flist_add_tail(&ipo->list, &td->io_log_list); 30 td->total_io_size += ipo->len; 33 void log_io_u(const struct thread_data *td, const struct io_u *io_u) 35 if (!td->o.write_iolog_file) 38 fprintf(td->iolog_f, "%s %s %llu %lu\n", io_u->file->file_name, 43 void log_file(struct thread_data *td, struct fio_file *f, 50 if (!td->o.write_iolog_file) 57 if (!td->iolog_f) 60 fprintf(td->iolog_f, "%s %s\n", f->file_name, act[what]) 1273 struct thread_data *td = sw->wq->td; local 1582 struct thread_data *td; local [all...] |
verify.c | 30 static void populate_hdr(struct thread_data *td, struct io_u *io_u, 33 static void fill_hdr(struct thread_data *td, struct io_u *io_u, 36 static void __fill_hdr(struct thread_data *td, struct io_u *io_u, 40 void fill_buffer_pattern(struct thread_data *td, void *p, unsigned int len) 42 (void)cpy_pattern(td->o.buffer_pattern, td->o.buffer_pattern_bytes, p, len); 51 static unsigned long fill_buffer(struct thread_data *td, void *p, 54 struct frand_state *fs = &td->verify_state; 55 struct thread_options *o = &td->o; 60 void fill_verify_pattern(struct thread_data *td, void *p, unsigned int len 230 struct thread_data *td; member in struct:vcont 300 struct thread_data *td = vc->td; local 336 struct thread_data *td = vc->td; local 376 struct thread_data *td = vc->td; local 1395 struct thread_data *td = data; local 1576 struct thread_data *td; local [all...] |
fio.h | 438 #define __td_verror(td, err, msg, func) \ 441 if ((td)->error) \ 443 (td)->error = ____e; \ 444 if (!(td)->first_error) \ 445 snprintf(td->verror, sizeof(td->verror), "file:%s:%d, func=%s, error=%s", __FILE__, __LINE__, (func), (msg)); \ 449 #define td_clear_error(td) do { \ 450 (td)->error = 0; \ 451 if ((td)->parent) \ 452 (td)->parent->error = 0; [all...] |
td_error.h | 23 int td_non_fatal_error(struct thread_data *td, enum error_type_bit etype, 25 void update_error_count(struct thread_data *td, int err);
|
init.c | 386 static void dump_opt_list(struct thread_data *td) 391 if (flist_empty(&td->opt_list)) 394 flist_for_each(entry, &td->opt_list) { 400 static void fio_dump_options_free(struct thread_data *td) 402 while (!flist_empty(&td->opt_list)) { 405 p = flist_first_entry(&td->opt_list, struct print_option, list); 440 struct thread_data *td; local 454 td = &threads[thread_number++]; 455 *td = *parent; 457 INIT_FLIST_HEAD(&td->opt_list) 1236 struct thread_data *td; local 1615 struct thread_data *td, *td_parent; local 2302 struct thread_data *td = NULL; local [all...] |
/external/swiftshader/third_party/LLVM/test/Bindings/Ocaml/ |
target.ml | 36 let td = TargetData.create (target_triple m) in 39 ignore (TargetData.as_string td); 40 ignore (byte_order td); 41 ignore (pointer_size td); 42 ignore (intptr_type td); 43 ignore (size_in_bits td sty); 44 ignore (store_size td sty); 45 ignore (abi_size td sty); 46 ignore (stack_align td sty); 47 ignore (preferred_align td sty) [all...] |
/external/pdfium/third_party/libtiff/ |
tif_aux.c | 92 TIFFDefaultTransferFunction(TIFFDirectory* td) 94 uint16 **tf = td->td_transferfunction; 98 if (td->td_bitspersample >= sizeof(tmsize_t) * 8 - 2) 101 n = ((tmsize_t)1)<<td->td_bitspersample; 112 if (td->td_samplesperpixel - td->td_extrasamples > 1) { 136 TIFFDefaultRefBlackWhite(TIFFDirectory* td) 140 td->td_refblackwhite = (float *)_TIFFmalloc(6*sizeof (float)); 141 if (td->td_refblackwhite == NULL) 143 if (td->td_photometric == PHOTOMETRIC_YCBCR) 176 TIFFDirectory *td = &tif->tif_dir; local [all...] |
tif_print.c | 238 TIFFDirectory *td = &tif->tif_dir; local 254 if (td->td_subfiletype & FILETYPE_REDUCEDIMAGE) { 258 if (td->td_subfiletype & FILETYPE_PAGE) { 262 if (td->td_subfiletype & FILETYPE_MASK) 265 (unsigned long) td->td_subfiletype, (long) td->td_subfiletype); 269 (unsigned long) td->td_imagewidth, (unsigned long) td->td_imagelength); 272 (unsigned long) td->td_imagedepth); 277 (unsigned long) td->td_tilewidth, (unsigned long) td->td_tilelength) [all...] |
tif_strip.c | 41 TIFFDirectory *td = &tif->tif_dir; local 44 strip = row / td->td_rowsperstrip; 45 if (td->td_planarconfig == PLANARCONFIG_SEPARATE) { 46 if (sample >= td->td_samplesperpixel) { 49 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); 52 strip += (uint32)sample*td->td_stripsperimage; 63 TIFFDirectory *td = &tif->tif_dir; local 66 nstrips = (td->td_rowsperstrip == (uint32) -1 ? 1 : 67 TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip)) 81 TIFFDirectory *td = &tif->tif_dir; local 152 TIFFDirectory* td = &tif->tif_dir; local 205 TIFFDirectory* td = &tif->tif_dir; local 277 TIFFDirectory *td = &tif->tif_dir; local 355 TIFFDirectory *td = &tif->tif_dir; local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/ |
2-1.c | 77 if (td->fork) \ 86 if (td->fork) \ 215 testdata_t *td; variable 225 ret = pthread_mutex_lock(&td->mtx1); 231 td->count1++; 233 timed = td->count1 & 1; 237 ret = clock_gettime(td->cid, &ts); 247 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts); 249 ret = pthread_cond_wait(&td->cnd, &td->mtx1) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
2-4.c | 164 testdata_t *td = (testdata_t *) arg; local 167 ret = pthread_mutex_lock(&(td->mtx)); 169 td->status = ret; 174 td->ctrl = 1; 177 ret = clock_gettime(td->cid, &ts); 179 td->status = ret; 190 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts); 191 td->ctrl = 2; 192 } while ((ret == 0) && (td->bool == 0)) 253 testdata_t *td; local [all...] |
2-7.c | 166 testdata_t *td = (testdata_t *) arg; local 169 ret = pthread_mutex_lock(&(td->mtx)); 171 td->status = ret; 176 td->ctrl = 1; 179 ret = clock_gettime(td->cid, &ts); 181 td->status = ret; 197 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts); 198 td->ctrl = 2; 199 } while ((ret == 0) && (td->bool == 0)) 260 testdata_t *td; local [all...] |
2-1.c | 35 } td; variable in typeref:struct:testdata 48 if (pthread_mutex_lock(&td.mutex) != 0) { 63 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout); 82 if (pthread_mutex_trylock(&td.mutex) == 0) { 90 if (pthread_mutex_unlock(&td.mutex) != 0) { 103 if (pthread_mutex_init(&td.mutex, NULL) != 0) { 107 if (pthread_cond_init(&td.cond, NULL) != 0) { 120 if (pthread_mutex_lock(&td.mutex) != 0) { 124 if (pthread_mutex_unlock(&td.mutex) != 0) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
2-2.c | 191 testdata_t *td = (testdata_t *) arg; local 194 ret = pthread_mutex_lock(&(td->mtx)); 196 td->status = ret; 201 td->ctrl = 1; 205 ret = pthread_cond_wait(&(td->cnd), &(td->mtx)); 206 td->ctrl = 2; 207 } while ((ret == 0) && (td->bool == 0)); 209 td->ctrl = 3; 212 td->status = ret 267 testdata_t *td; local [all...] |
2-1.c | 25 } td; variable in typeref:struct:testdata 44 if (pthread_mutex_lock(&td.mutex) != 0) { 52 rc = pthread_cond_wait(&td.cond, &td.mutex); 64 if (pthread_mutex_trylock(&td.mutex) == 0) { 72 if (pthread_mutex_unlock(&td.mutex) != 0) { 86 if (pthread_mutex_init(&td.mutex, NULL) != 0) { 90 if (pthread_cond_init(&td.cond, NULL) != 0) { 103 if (pthread_mutex_lock(&td.mutex) != 0) { 107 if (pthread_mutex_unlock(&td.mutex) != 0) [all...] |
/compatibility/cdd/5_multimedia/ |
5_2_video-encoding.md | 75 <td>320 x 240 px</td> 76 <td>720 x 480 px</td> 77 <td>1280 x 720 px</td> 78 <td>1920 x 1080 px</td> 82 <td>20 fps</td> [all...] |
/external/fio/engines/ |
glusterfs.c | 35 int fio_gf_setup(struct thread_data *td) 39 struct gf_options *opt = td->eo; 44 if (td->io_ops_data) 80 td->io_ops_data = g; 86 td->io_ops_data = NULL; 90 void fio_gf_cleanup(struct thread_data *td) 92 struct gf_data *g = td->io_ops_data; 102 td->io_ops_data = NULL; 106 int fio_gf_get_file_size(struct thread_data *td, struct fio_file *f) 110 struct gf_data *g = td->io_ops_data [all...] |
net.c | 40 struct thread_data *td; member in struct:netio_options 228 static int set_window_size(struct thread_data *td, int fd) 231 struct netio_options *o = td->eo; 247 td_verror(td, errno, "rcvbuf window size"); 253 td_verror(td, errno, "sndbuf window size"); 258 td_verror(td, -EINVAL, "setsockopt window size"); 263 static int set_mss(struct thread_data *td, int fd) 266 struct netio_options *o = td->eo; 277 td_verror(td, errno, "setsockopt TCP_MAXSEG"); 281 td_verror(td, -EINVAL, "setsockopt TCP_MAXSEG") [all...] |
mmap.c | 30 static int fio_mmap_file(struct thread_data *td, struct fio_file *f, 36 if (td_rw(td)) 38 else if (td_write(td)) { 41 if (td->o.verify != VERIFY_NONE) 49 td_verror(td, errno, "mmap"); 53 if (!td_random(td)) { 55 td_verror(td, errno, "madvise"); 60 td_verror(td, errno, "madvise"); 65 td_verror(td, errno, "madvise"); 75 if (td->error && fmd->mmap_ptr [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
2-1.c | 27 } td; variable in typeref:struct:testdata 37 if (pthread_mutex_lock(&td.mutex) != 0) { 48 rc = pthread_cond_wait(&td.cond, &td.mutex); 54 if (pthread_mutex_trylock(&td.mutex) == 0) { 64 if (pthread_mutex_unlock(&td.mutex) != 0) { 79 if (pthread_mutex_init(&td.mutex, NULL) != 0) { 83 if (pthread_cond_init(&td.cond, NULL) != 0) { 99 if (pthread_mutex_lock(&td.mutex) != 0) { 103 if (pthread_mutex_unlock(&td.mutex) != 0) [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
IntrinsicLowering.h | 27 const TargetData& TD; 32 explicit IntrinsicLowering(const TargetData &td) : 33 TD(td), Warned(false) {}
|