/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/ |
H A D | hist.c | 11 typedef int (*hpp_snprint_fn)(char *buf, size_t size, const char *fmt, ...); 15 const char *fmt, hpp_snprint_fn print_fn, 29 ret = print_fn(hpp->buf, hpp->size, fmt, percent); 31 ret = print_fn(hpp->buf, hpp->size, fmt, get_field(he)); 56 fmt, 0); 61 fmt, 100.0 * period / total); 64 fmt, period); 76 fmt, 0); 83 static int hpp__header_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \ 97 static int hpp__width_##_type(struct perf_hpp_fmt *fmt __maybe_unuse 13 __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, u64 (*get_field)(struct hist_entry *), const char *fmt, hpp_snprint_fn print_fn, bool fmt_percent) argument 263 struct perf_hpp_fmt *fmt; local [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | color.c | 171 const char *fmt, va_list args, const char *trail) 187 r += vscnprintf(bf + r, size - r, fmt, args); 195 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, argument 212 r += vfprintf(fp, fmt, args); 221 const char *fmt, va_list args) 223 return __color_vsnprintf(bf, size, color, fmt, args, NULL); 226 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args) argument 228 return __color_vfprintf(fp, color, fmt, args, NULL); 232 const char *fmt, ...) 237 va_start(args, fmt); 170 __color_vsnprintf(char *bf, size_t size, const char *color, const char *fmt, va_list args, const char *trail) argument 220 color_vsnprintf(char *bf, size_t size, const char *color, const char *fmt, va_list args) argument 231 color_snprintf(char *bf, size_t size, const char *color, const char *fmt, ...) argument 243 color_fprintf(FILE *fp, const char *color, const char *fmt, ...) argument 254 color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...) argument 310 percent_color_fprintf(FILE *fp, const char *fmt, double percent) argument 321 percent_color_snprintf(char *bf, size_t size, const char *fmt, double percent) argument [all...] |
H A D | trace-event-parse.c | 189 char *fmt = NULL; local 194 addr_str = strtok_r(line, " ", &fmt); 197 strtok_r(NULL, " ", &fmt); 198 func = strtok_r(NULL, "\t", &fmt); 199 mod = strtok_r(NULL, "]", &fmt); 218 char *fmt; local 222 addr_str = strtok_r(line, ":", &fmt); 228 /* fmt still has a space, skip it */ 229 printk = strdup(fmt+1);
|
/external/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_debug.c | 72 const char *fmt, 77 va_start( args, fmt ); 78 debug_vprintf( fmt, args ); 231 const char *fmt, 239 va_start( args, fmt ); 240 debug_vprintf( fmt, args ); 264 const char *fmt, 272 va_start( args, fmt ); 273 debug_vprintf( fmt, args ); 70 PRINTF( struct debug_stream *stream, const char *fmt, ... ) argument 226 BITS( struct debug_stream *stream, unsigned dw, unsigned hi, unsigned lo, const char *fmt, ... ) argument 260 FLAG( struct debug_stream *stream, unsigned dw, unsigned bit, const char *fmt, ... ) argument
|
/external/mesa3d/src/gallium/drivers/nv30/ |
H A D | nv30_vbo.c | 270 enum pipe_format fmt = ve->src_format; local 272 so->element[i].state = nv30_vtxfmt(pipe->screen, fmt)->hw; 274 switch (util_format_get_nr_components(fmt)) { 275 case 1: fmt = PIPE_FORMAT_R32_FLOAT; break; 276 case 2: fmt = PIPE_FORMAT_R32G32_FLOAT; break; 277 case 3: fmt = PIPE_FORMAT_R32G32B32_FLOAT; break; 278 case 4: fmt = PIPE_FORMAT_R32G32B32A32_FLOAT; break; 283 so->element[i].state = nv30_vtxfmt(pipe->screen, fmt)->hw; 296 transkey.element[j].output_format = fmt; 298 transkey.output_stride += (util_format_get_stride(fmt, [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_compiler.c | 52 void rc_debug(struct radeon_compiler * c, const char * fmt, ...) argument 59 va_start(ap, fmt); 60 vfprintf(stderr, fmt, ap); 64 void rc_error(struct radeon_compiler * c, const char * fmt, ...) argument 75 va_start(ap, fmt); 76 written = vsnprintf(buf, sizeof(buf), fmt, ap); 84 va_start(ap, fmt); 85 vsnprintf(c->ErrorMsg, written + 1, fmt, ap); 93 va_start(ap, fmt); 94 vfprintf(stderr, fmt, a [all...] |
/external/mesa3d/src/gallium/state_trackers/egl/drm/ |
H A D | native_drm.c | 45 enum pipe_format fmt, boolean is_color) 48 fmt, PIPE_TEXTURE_2D, 0, 44 drm_display_is_format_supported(struct native_display *ndpy, enum pipe_format fmt, boolean is_color) argument
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | vg_context.c | 68 enum pipe_format *fmt; local 70 for (fmt = formats; *fmt != PIPE_FORMAT_NONE; fmt++) { 71 if (screen->is_format_supported(screen, *fmt, 76 ctx->ds_format = *fmt;
|
/external/mesa3d/src/glsl/ |
H A D | ralloc.c | 375 ralloc_asprintf(const void *ctx, const char *fmt, ...) argument 379 va_start(args, fmt); 380 ptr = ralloc_vasprintf(ctx, fmt, args); 389 printf_length(const char *fmt, va_list untouched_args) argument 402 size = _vscprintf(fmt, args); 405 size = vsnprintf(&junk, 1, fmt, args); 415 ralloc_vasprintf(const void *ctx, const char *fmt, va_list args) argument 417 size_t size = printf_length(fmt, args) + 1; 421 vsnprintf(ptr, size, fmt, args); 427 ralloc_asprintf_append(char **str, const char *fmt, argument 438 ralloc_vasprintf_append(char **str, const char *fmt, va_list args) argument 447 ralloc_asprintf_rewrite_tail(char **str, size_t *start, const char *fmt, ...) argument 458 ralloc_vasprintf_rewrite_tail(char **str, size_t *start, const char *fmt, va_list args) argument [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_state_dump.c | 36 int index, char *fmt, ...) PRINTFLIKE(5, 6); 40 int index, char *fmt, ...) 48 va_start(va, fmt); 49 vfprintf(stderr, fmt, va); 39 batch_out(struct brw_context *brw, const char *name, uint32_t offset, int index, char *fmt, ...) argument
|
/external/mesa3d/src/mesa/main/ |
H A D | framebuffer.c | 518 const gl_format fmt = rb->Format; local 528 fb->Visual.redBits = _mesa_get_format_bits(fmt, GL_RED_BITS); 529 fb->Visual.greenBits = _mesa_get_format_bits(fmt, GL_GREEN_BITS); 530 fb->Visual.blueBits = _mesa_get_format_bits(fmt, GL_BLUE_BITS); 531 fb->Visual.alphaBits = _mesa_get_format_bits(fmt, GL_ALPHA_BITS); 534 if (_mesa_get_format_color_encoding(fmt) == GL_SRGB) 545 const gl_format fmt = rb->Format; local 547 if (_mesa_get_format_datatype(fmt) == GL_FLOAT) { 557 const gl_format fmt = rb->Format; local 559 fb->Visual.depthBits = _mesa_get_format_bits(fmt, GL_DEPTH_BIT 565 const gl_format fmt = rb->Format; local 573 const gl_format fmt = rb->Format; local [all...] |
H A D | imports.c | 63 extern int vsnprintf(char *str, size_t count, const char *fmt, va_list arg); 577 _mesa_vsnprintf(char *str, size_t size, const char *fmt, va_list args) argument 579 return vsnprintf( str, size, fmt, args); 584 _mesa_snprintf( char *str, size_t size, const char *fmt, ... ) argument 588 va_start( args, fmt ); 589 r = vsnprintf( str, size, fmt, args );
|
/external/pixman/test/ |
H A D | blitters-test.c | 29 pixman_format_code_t fmt; local 38 fmt = allowed_formats[prng_rand_n (n)]; 42 stride = (width * PIXMAN_FORMAT_BPP (fmt) + 7) / 8 + 60 img = pixman_image_create_bits (fmt, width, height, buf, stride); 62 if (PIXMAN_FORMAT_TYPE (fmt) == PIXMAN_TYPE_COLOR) 64 pixman_image_set_indexed (img, &(rgb_palette[PIXMAN_FORMAT_BPP (fmt)])); 66 else if (PIXMAN_FORMAT_TYPE (fmt) == PIXMAN_TYPE_GRAY) 68 pixman_image_set_indexed (img, &(y_palette[PIXMAN_FORMAT_BPP (fmt)])); 76 if (used_fmt) *used_fmt = fmt; 84 pixman_format_code_t fmt) 82 free_random_image(uint32_t initcrc, pixman_image_t *img, pixman_format_code_t fmt) argument [all...] |
/external/ppp/pppd/plugins/pppoatm/ |
H A D | ans.c | 144 int *fmt; local 154 fmt = fmt_dcc; 158 fmt = fmt_e164; 164 for (i = 0; fmt[i]; i++) { 165 pos -= fmt[i]; 166 for (j = 0; j < fmt[i]; j++)
|
/external/qemu/android/base/ |
H A D | Log.cpp | 96 LogString::LogString(const char* fmt, ...) : mString(NULL) { argument 101 va_start(args, fmt); 102 int ret = vsnprintf(message, capacity, fmt, args);
|
/external/qemu/android/utils/ |
H A D | misc.c | 117 tempstr_format( const char* fmt, ... ) argument 122 va_start(args, fmt); 123 stralloc_formatv(s, fmt, args);
|
H A D | stralloc.c | 186 stralloc_formatv( stralloc_t* s, const char* fmt, va_list args ) argument 196 n = vsnprintf( s->s, s->a, fmt, args2 ); 214 stralloc_format( stralloc_t* s, const char* fmt, ... ) argument 217 va_start(args, fmt); 218 stralloc_formatv(s, fmt, args); 223 stralloc_add_formatv( stralloc_t* s, const char* fmt, va_list args ) argument 226 stralloc_formatv(s2, fmt, args); 232 stralloc_add_format( stralloc_t* s, const char* fmt, ... ) argument 235 va_start(args, fmt); 236 stralloc_add_formatv( s, fmt, arg [all...] |
/external/qemu/audio/ |
H A D | audio.h | 51 audfmt_e fmt; member in struct:audsettings 90 void AUD_vlog (const char *cap, const char *fmt, va_list ap); 91 void AUD_log (const char *cap, const char *fmt, ...)
|
/external/qemu/ |
H A D | blockdev.c | 43 QemuOpts *drive_add(const char *file, const char *fmt, ...) argument 49 va_start(ap, fmt); 50 vsnprintf(optstr, sizeof(optstr), fmt, ap); 573 const char *filename, const char *fmt) 584 if (fmt) { 585 drv = bdrv_find_whitelisted_format(fmt); 587 qerror_report(QERR_INVALID_BLOCK_FORMAT, fmt); 572 do_change_block(Monitor *mon, const char *device, const char *filename, const char *fmt) argument
|
H A D | disas.c | 428 monitor_fprintf(FILE *stream, const char *fmt, ...) argument 431 va_start(ap, fmt); 432 monitor_vprintf((Monitor *)stream, fmt, ap);
|
H A D | monitor-android.c | 105 void monitor_vprintf(Monitor* mon, const char* fmt, va_list args) { argument 107 vsnprintf(buf, sizeof(buf), fmt, args); 111 void monitor_printf(Monitor *mon, const char *fmt, ...) argument 114 va_start(ap, fmt); 115 monitor_vprintf(mon, fmt, ap);
|
/external/qemu/distrib/libsparse/src/ |
H A D | sparse_read.c | 53 static void verbose_error(bool verbose, int err, const char *fmt, ...) argument 57 if (fmt) { 61 va_start(argp, fmt); 62 size = vsnprintf(NULL, 0, fmt, argp); 74 va_start(argp, fmt); 75 vsnprintf(at, size, fmt, argp); 95 if (fmt) {
|
/external/qemu/distrib/sdl-1.2.15/src/audio/nas/ |
H A D | SDL_nasaudio.c | 276 static unsigned char sdlformat_to_auformat(unsigned int fmt) argument 278 switch (fmt)
|
/external/qemu/distrib/sdl-1.2.15/src/audio/ums/ |
H A D | SDL_umsaudio.c | 59 static UMSAudioDevice_ReturnCode UADSetAudioFormatType(_THIS, string fmt); 60 static UMSAudioDevice_ReturnCode UADSetNumberFormat(_THIS, string fmt); 64 static UMSAudioDevice_ReturnCode UADSetTimeFormat(_THIS, UMSAudioTypes_TimeFormat fmt ); 383 static UMSAudioDevice_ReturnCode UADSetAudioFormatType(_THIS, string fmt) 388 fmt ); 391 static UMSAudioDevice_ReturnCode UADSetNumberFormat(_THIS, string fmt) 396 fmt ); 411 static UMSAudioDevice_ReturnCode UADSetTimeFormat(_THIS, UMSAudioTypes_TimeFormat fmt ) 419 fmt ); 382 UADSetAudioFormatType(_THIS, string fmt) argument 390 UADSetNumberFormat(_THIS, string fmt) argument
|
/external/qemu/distrib/sdl-1.2.15/src/video/ |
H A D | SDL_pixels.c | 369 void SDL_GetRGBA(Uint32 pixel, const SDL_PixelFormat * const fmt, argument 372 if ( fmt->palette == NULL ) { 383 v = (pixel & fmt->Rmask) >> fmt->Rshift; 384 *r = (v << fmt->Rloss) + (v >> (8 - (fmt->Rloss << 1))); 385 v = (pixel & fmt->Gmask) >> fmt->Gshift; 386 *g = (v << fmt->Gloss) + (v >> (8 - (fmt 403 SDL_GetRGB(Uint32 pixel, const SDL_PixelFormat * const fmt, Uint8 *r,Uint8 *g,Uint8 *b) argument [all...] |