Searched defs:data (Results 26 - 50 of 92) sorted by path

1234

/system/core/fastboot/
H A Dusb_osx.c470 int usb_read(usb_handle *h, void *data, int len) { argument
493 h->interface, h->bulkIn, data, &numBytes);
504 int usb_write(usb_handle *h, const void *data, int len) { argument
527 h->interface, h->bulkOut, (void *)data, len);
530 * by trying to write too much data at once. The kernel IOCopyMapper
541 h->interface, h->bulkOut, (void *)data, lenToSend);
545 data = (const char*)data + lenToSend;
554 h->interface, h->bulkOut, (void *)data, 0);
H A Dusb_windows.c75 /// Writes data to the opened usb handle
76 int usb_write(usb_handle* handle, const void* data, int len);
78 /// Reads data using the opened usb handle
79 int usb_read(usb_handle *handle, void* data, int len);
154 int usb_write(usb_handle* handle, const void* data, int len) { argument
166 (void*)data,
181 data += written;
196 int usb_read(usb_handle *handle, void* data, int len) { argument
207 (void*)data,
H A Dutil_windows.c42 char *data; local
77 char *data; local
92 data = NULL;
95 data = (char*) malloc( sz );
96 if (data == NULL) {
102 if ( !ReadFile( file, data, sz, &out_bytes, NULL ) ||
106 free(data);
107 data = NULL;
115 return data;
/system/core/include/corkscrew/
H A Dmap_info.h36 void* data; // arbitrary data associated with the map by the user, initially NULL member in struct:map_info
/system/core/include/cutils/
H A Dnative_handle.h27 int numFds; /* number of file-descriptors at &data[0] */
28 int numInts; /* number of ints at &data[numFds] */
29 int data[0]; /* numFds + numInts ints */ member in struct:native_handle
H A Dselector.h20 * write data and handle errors.
40 * when the descriptor contains out-of-band data. Simply set a callback to
55 /** Pointer to user-specific data. Can be NULL. */
56 void* data; member in struct:SelectableFd
71 * Invoked by the selector when the descriptor has data available. Set to
77 * Invoked by the selector when the descriptor can accept data. Set to
83 * Invoked by the selector when out-of-band (OOB) data is available. Set to
84 * NULL to indicate that you're not interested in OOB data.
/system/core/include/diskconfig/
H A Ddiskconfig.h103 uint8_t data[0]; member in struct:write_list
/system/core/include/pixelflinger/
H A Dpixelflinger.h192 GGLubyte* data; // pointer to the bits member in struct:__anon318
/system/core/include/private/pixelflinger/
H A Dggl_context.h349 uint8_t* data; member in struct:android::surface_t::__anon322::__anon323
478 // data locality in the pixel pipeline
483 int32_t data; member in struct:android::generated_tex_vars_t
/system/core/init/
H A Dbootchart.c39 #define LOG_ROOT "/data/bootchart"
46 #define LOG_STARTFILE "/data/bootchart-start"
47 #define LOG_STOPFILE "/data/bootchart-stop"
83 char data[FILE_BUFF_SIZE]; member in struct:__anon367
97 int avail = sizeof(buff->data) - buff->count;
101 memcpy( buff->data + buff->count, src, avail );
107 unix_write( buff->fd, buff->data, buff->count );
117 unix_write( buff->fd, buff->data, buff->count );
313 * timeout. this is useful when using -wipe-data since the /data
[all...]
H A Ddevices.c707 char *root, *loading, *data, *file1 = NULL, *file2 = NULL, *file3 = NULL; local
722 l = asprintf(&data, "%sdata", root);
742 data_fd = open(data, O_WRONLY);
782 free(data);
H A Dinit.c721 /* read any property files on system or data and
724 * that /data/local.prop cannot interfere with them.
777 { SELABEL_OPT_PATH, "/data/system/property_contexts" },
828 int audit_callback(void *data, security_class_t cls, char *buf, size_t len) argument
830 snprintf(buf, len, "property=%s", !data ? "NULL" : (char *)data);
939 action_for_each_trigger("post-fs-data", action_add_queue_tail);
H A Dinit_parser.c402 char *data; local
403 data = read_file(fn, 0);
404 if (!data) return -1;
406 parse_config(fn, data);
H A Dlogo.c109 unsigned short *data, *bits, *ptr; local
126 data = mmap(0, s.st_size, PROT_READ, MAP_SHARED, fd, 0);
127 if (data == MAP_FAILED)
134 ptr = data;
148 munmap(data, s.st_size);
156 munmap(data, s.st_size);
H A Dproperty_service.c53 #define PERSISTENT_PROPERTY_DIR "/data/property"
115 void *data; member in struct:__anon374
122 void *data; local
135 data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
136 if(data == MAP_FAILED)
147 w->data = data;
181 pa_info_array = (void*) (((char*) pa_workspace.data) + PA_INFO_START);
183 pa = pa_workspace.data;
490 static void load_properties(char *data) argument
519 char *data; local
[all...]
H A Dueventd_parser.c63 char *data; local
64 data = read_file(fn, 0);
65 if (!data) return -1;
67 parse_config(fn, data);
H A Dutil.c151 char *data; local
156 data = 0;
176 data = (char*) malloc(sz + 2);
177 if(data == 0) goto oops;
179 if(read(fd, data, sz) != sz) goto oops;
181 data[sz] = '\n';
182 data[sz+1] = 0;
184 return data;
188 if(data != 0) free(data);
395 char data[1024]; local
[all...]
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c136 if (mi && mi->data) {
137 const map_info_data_t* data = (const map_info_data_t*)mi->data; local
138 exidx_start = data->exidx_start;
139 exidx_size = data->exidx_size;
185 handler = entry_handler_ptr; // in-place handler data
269 * The data for the built-in personality routines consists of a sequence
H A Dptrace-arm.c65 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument
66 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size);
69 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) { argument
/system/core/libcorkscrew/arch-mips/
H A Dptrace-mips.c24 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument
27 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) { argument
/system/core/libcorkscrew/
H A Dmap_info.c61 mi->data = NULL;
135 static void dec_ref(map_info_t* milist, my_map_info_data_t* data) { argument
136 if (!--data->refs) {
138 free(data);
148 my_map_info_data_t* data = (my_map_info_data_t*)g_my_map_info_list->data; local
149 int64_t age = time - data->timestamp;
152 dec_ref(g_my_map_info_list, data);
160 my_map_info_data_t* data = (my_map_info_data_t*)malloc(sizeof(my_map_info_data_t)); local
164 g_my_map_info_list->data
174 my_map_info_data_t* data = (my_map_info_data_t*)g_my_map_info_list->data; local
186 my_map_info_data_t* data = (my_map_info_data_t*)milist->data; local
[all...]
H A Dptrace.c87 map_info_data_t* data = (map_info_data_t*)calloc(1, sizeof(map_info_data_t)); local
88 if (data) {
89 mi->data = data;
91 data->symbol_table = load_symbol_table(mi->name);
94 load_ptrace_map_info_data_arch(pid, mi, data);
114 map_info_data_t* data = (map_info_data_t*)mi->data; local
115 if (data) {
116 if (data
139 const map_info_data_t* data = (const map_info_data_t*)mi->data; local
[all...]
/system/core/libcutils/
H A Dbuffer.c34 buffer->data = malloc(capacity);
35 if (buffer->data == NULL) {
43 free(buffer->data);
47 Buffer* bufferWrap(char* data, size_t capacity, size_t size) { argument
53 buffer->data = data;
63 char* expanded = realloc(buffer->data, expected);
69 buffer->data = expanded;
81 buffer->data + buffer->size,
101 buffer->data
[all...]
H A Dbuffer.h31 * Byte buffer of known size. Keeps track of how much data has been read
35 /** Buffered data. */
36 char* data; member in struct:__anon388
54 * Returns true if all data has been read into the buffer.
71 Buffer* bufferWrap(char* data, size_t capacity, size_t size);
74 * Frees and its data.
86 * Reads some data into a buffer. Returns -1 in case of an error and sets
100 * Writes data from buffer to the given fd. Returns -1 and sets errno in case
H A Dconfig_utils.c116 char *data; member in struct:__anon390
126 char *data; local
128 data = cs->data;
138 c = *data++;
149 switch(*data) {
151 cs->data = data;
154 cs->data = data
292 config_load(cnode *root, char *data) argument
314 char *data; local
[all...]

Completed in 83 milliseconds

1234