/system/core/libutils/tests/ |
D | BasicHashtable_test.cpp | 107 static void cookieAt(const BasicHashtable<TKey, TEntry>& h, size_t index, in cookieAt() argument 109 uint32_t cookie = h.cookieAt(index); in cookieAt() 116 static const void* getBuckets(const BasicHashtable<TKey, TEntry>& h) { in getBuckets() argument 117 return h.mBuckets; in getBuckets() 122 static size_t add(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, in add() argument 124 return h.add(hash_type(key), key_value_pair_t<TKey, TValue>(key, value)); in add() 128 static ssize_t find(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, in find() argument 130 return h.find(index, hash_type(key), key); in find() 134 static bool remove(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, in remove() argument 136 ssize_t index = find(h, -1, key); in remove() [all …]
|
/system/core/adb/ |
D | usb_linux_client.c | 45 int (*write)(usb_handle *h, const void *data, int len); 46 int (*read)(usb_handle *h, void *data, int len); 47 void (*kick)(usb_handle *h); 186 static int usb_adb_write(usb_handle *h, const void *data, int len) in usb_adb_write() argument 190 D("about to write (fd=%d, len=%d)\n", h->fd, len); in usb_adb_write() 191 n = adb_write(h->fd, data, len); in usb_adb_write() 194 h->fd, n, errno, strerror(errno)); in usb_adb_write() 197 D("[ done fd=%d ]\n", h->fd); in usb_adb_write() 201 static int usb_adb_read(usb_handle *h, void *data, int len) in usb_adb_read() argument 205 D("about to read (fd=%d, len=%d)\n", h->fd, len); in usb_adb_read() [all …]
|
D | usb_linux.c | 311 static int usb_bulk_write(usb_handle *h, const void *data, int len) in usb_bulk_write() argument 313 struct usbdevfs_urb *urb = &h->urb_out; in usb_bulk_write() 320 urb->endpoint = h->ep_out; in usb_bulk_write() 327 adb_mutex_lock(&h->lock); in usb_bulk_write() 328 if(h->dead) { in usb_bulk_write() 333 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_write() 341 h->urb_out_busy = 1; in usb_bulk_write() 347 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts); in usb_bulk_write() 348 if(res < 0 || h->dead) { in usb_bulk_write() 351 if(h->urb_out_busy == 0) { in usb_bulk_write() [all …]
|
D | usb_libusb.c | 208 usb_close(struct usb_handle *h) in usb_close() argument 210 D("usb_close(): closing transport %p\n", h); in usb_close() 213 h->next->prev = h->prev; in usb_close() 214 h->prev->next = h->next; in usb_close() 215 h->prev = NULL; in usb_close() 216 h->next = NULL; in usb_close() 218 libusb_release_interface(h->devh, h->interface); in usb_close() 219 libusb_close(h->devh); in usb_close() 220 libusb_unref_device(h->dev); in usb_close() 224 free(h); in usb_close() [all …]
|
D | framebuffer_service.c | 61 int w, h, f; in framebuffer_service() local 83 if(readx(fd_screencap, &h, 4)) goto done; in framebuffer_service() 91 fbinfo.size = w * h * 4; in framebuffer_service() 93 fbinfo.height = h; in framebuffer_service() 105 fbinfo.size = w * h * 4; in framebuffer_service() 107 fbinfo.height = h; in framebuffer_service() 119 fbinfo.size = w * h * 3; in framebuffer_service() 121 fbinfo.height = h; in framebuffer_service() 133 fbinfo.size = w * h * 2; in framebuffer_service() 135 fbinfo.height = h; in framebuffer_service() [all …]
|
D | adb.h | 305 void register_usb_transport(usb_handle *h, const char *serial, const char *devpath, unsigned writea… 369 int usb_write(usb_handle *h, const void *data, int len); 370 int usb_read(usb_handle *h, void *data, int len); 371 int usb_close(usb_handle *h); 372 void usb_kick(usb_handle *h);
|
/system/core/libcutils/ |
D | native_handle.c | 38 native_handle_t* h = malloc(mallocSize); in native_handle_create() local 39 if (h) { in native_handle_create() 40 h->version = sizeof(native_handle_t); in native_handle_create() 41 h->numFds = numFds; in native_handle_create() 42 h->numInts = numInts; in native_handle_create() 44 return h; in native_handle_create() 47 int native_handle_delete(native_handle_t* h) in native_handle_delete() argument 49 if (h) { in native_handle_delete() 50 if (h->version != sizeof(native_handle_t)) in native_handle_delete() 52 free(h); in native_handle_delete() [all …]
|
D | hashmap.c | 81 int h = map->hash(key); in hashKey() local 85 h += ~(h << 9); in hashKey() 86 h ^= (((unsigned int) h) >> 14); in hashKey() 87 h += (h << 4); in hashKey() 88 h ^= (((unsigned int) h) >> 10); in hashKey() 90 return h; in hashKey() 156 int h = keySize; in hashmapHash() local 160 h = h * 31 + *data; in hashmapHash() 163 return h; in hashmapHash()
|
/system/core/fastboot/ |
D | usb_osx.c | 386 usb_handle h; in init_usb() local 388 h.success = 0; in init_usb() 389 h.callback = callback; in init_usb() 427 if (try_device(device, &h) != 0) { in init_usb() 433 if (h.success) { in init_usb() 435 memcpy(*handle, &h, sizeof(usb_handle)); in init_usb() 465 int usb_close(usb_handle *h) { in usb_close() argument 475 int usb_read(usb_handle *h, void *data, int len) { in usb_read() argument 483 if (h == NULL) { in usb_read() 487 if (h->interface == NULL) { in usb_read() [all …]
|
D | usb_linux.c | 359 int usb_write(usb_handle *h, const void *_data, int len) in usb_write() argument 366 if(h->ep_out == 0 || h->desc == -1) { in usb_write() 374 bulk.ep = h->ep_out; in usb_write() 379 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_write() 394 int usb_read(usb_handle *h, void *_data, int len) in usb_read() argument 401 if(h->ep_in == 0 || h->desc == -1) { in usb_read() 408 bulk.ep = h->ep_in; in usb_read() 415 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read() 416 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_read() 417 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry); in usb_read() [all …]
|
D | usb.h | 62 int usb_close(usb_handle *h); 63 int usb_read(usb_handle *h, void *_data, int len); 64 int usb_write(usb_handle *h, const void *_data, int len); 65 int usb_wait_for_disconnect(usb_handle *h);
|
D | bootimg.c | 35 void bootimg_set_cmdline(boot_img_hdr *h, const char *cmdline) in bootimg_set_cmdline() argument 37 strcpy((char*) h->cmdline, cmdline); in bootimg_set_cmdline()
|
/system/core/toolbox/upstream-netbsd/usr.bin/du/ |
D | du.c | 293 int h, h2; in linkchk() local 303 h = sawzero; in linkchk() 305 return h; in linkchk() 340 h = tmp >> (HTBITS - htshift); in linkchk() 344 while (htable[h].ino || htable[h].dev) { in linkchk() 345 if ((htable[h].ino == ino) && (htable[h].dev == dev)) in linkchk() 347 h = (h + h2) & htmask; in linkchk() 351 htable[h].dev = dev; in linkchk() 352 htable[h].ino = ino; in linkchk()
|
/system/core/libpixelflinger/ |
D | clear.cpp | 51 uint32_t l, uint32_t t, uint32_t w, uint32_t h) in memset2d() argument 60 w *= h; in memset2d() 61 h = 1; in memset2d() 69 } while(--h); in memset2d() 75 } while(--h); in memset2d() 83 } while(--h); in memset2d() 102 uint32_t h = c->state.scissor.bottom - t; in ggl_clear() local 104 if (!w || !h) in ggl_clear() 131 memset2d(c, c->state.buffers.color, packed, l, t, w, h); in ggl_clear() 140 memset2d(c, c->state.buffers.depth, packed, l, t, w, h); in ggl_clear()
|
D | buffer.cpp | 36 static uint32_t extract(uint32_t v, int h, int l, int bits); 127 pixel->s[i] = f->c[i].h - f->c[i].l; in read_pixel() 129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel() 187 const int h = f->c[i].h; in write_pixel() local 188 if (h && (c->state.mask.color & component_mask)) { in write_pixel() 189 mask |= (((1<<(h-l))-1)<<l); in write_pixel() 192 if (pixelSize < (h-l)) { in write_pixel() 193 u = expand(u, pixelSize, h-l); in write_pixel() 194 pixelSize = h-l; in write_pixel() 196 v = downshift_component(v, u, pixelSize, 0, h, l, 0, 0, dither); in write_pixel() [all …]
|
D | raster.cpp | 153 GGLint h = where[3]; in gglBitBlit() local 170 if ((w == Wcr) && (h == Hcr)) { in gglBitBlit() 178 c->procs.recti(c, x, y, x+w, y+h); in gglBitBlit() 197 int32_t dtdy = Hcr / h; // dtdy = ((Hcr/h)/Ht)*Ht in gglBitBlit() 213 gglFixedToIntRound(y)+h); in gglBitBlit()
|
/system/extras/tests/framebuffer/ |
D | fb_test.c | 207 void draw_grid(int w, int h, void* _loc) { in draw_grid() argument 214 for (j = 0; j < h/2; j++) { in draw_grid() 227 for (; j < h; j++) { in draw_grid() 242 void clear_screen(int w, int h, void* _loc) in clear_screen() argument 249 for (j = 0; j < h; j++) in clear_screen() 259 int h; in main() local 273 h = atoi(argv[3]); in main() 276 h = vi.yres; in main() 282 draw_grid(w, h, gr_fbs[id].data); in main()
|
D | refresh.c | 135 int l,t,w,h; in main() local 139 h=480; in main() 142 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in main()
|
/system/core/include/cutils/ |
D | native_handle.h | 40 int native_handle_close(const native_handle_t* h); 62 int native_handle_delete(native_handle_t* h);
|
/system/core/libpixelflinger/codeflinger/ |
D | load_store.cpp | 109 void GGLAssembler::extract(integer_t& d, int s, int h, int l, int bits) in extract() argument 111 const int maskLen = h-l; in extract() 118 assert(h); in extract() 122 if ((h == bits) && !l && (s != d.reg)) { in extract() 124 } else if ((h == bits) && l) { in extract() 134 if (h != bits) { in extract() 141 MOV(AL, 0, d.reg, reg_imm(s, LSL, 32-h)); in extract() 142 l += 32-h; in extract() 143 h = 32; in extract() 164 s.format.c[component].h, in extract() [all …]
|
D | GGLAssembler.h | 243 inline int hi(int c) const { return format.c[c].h; } in hi() 252 component_t() : reg_t(), h(0), l(0) { in component_t() 255 : reg_t(r, f), h(0), l(0) { in reg_t() 258 : reg_t(r, f), h(hi), l(lo) { in reg_t() 261 : reg_t(rhs.reg, rhs.flags), h(rhs.s), l(0) { in component_t() 266 rhs.format.c[component].h, in component_t() 270 reg_t::setTo(r, f); h=hi; l=lo; 272 int8_t h; member 274 inline int size() const { return h-l; } in size() 385 void extract(integer_t& d, int s, int h, int l, int bits=32);
|
/system/core/include/system/ |
D | window.h | 732 int w, int h, int format) __deprecated; 736 int w, int h, int format) in native_window_set_buffers_geometry() argument 739 w, h, format); in native_window_set_buffers_geometry() 757 int w, int h) in native_window_set_buffers_dimensions() argument 760 w, h); in native_window_set_buffers_dimensions() 782 int w, int h) in native_window_set_buffers_user_dimensions() argument 785 w, h); in native_window_set_buffers_user_dimensions()
|
/system/core/include/pixelflinger/ |
D | format.h | 99 return ((1<<(c[i].h-c[i].l))-1)<<c[i].l; in mask() 102 return c[i].h - c[i].l; in bits() 119 uint8_t h; member
|
/system/extras/ksmutils/ |
D | lookup3.c | 775 uint32_t h=0; in driver1() local 782 h = hashlittle(&buf[0],1,h); in driver1() 785 if (z-a > 0) printf("time %d %.8x\n", z-a, h); in driver1() 797 uint32_t e[HASHSTATE],f[HASHSTATE],g[HASHSTATE],h[HASHSTATE]; in driver2() local 812 e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0); in driver2() 833 h[l] &= ~c[l]; in driver2() 836 if (e[l]|f[l]|g[l]|h[l]|x[l]|y[l]) finished=0; in driver2() 845 e[0],f[0],g[0],h[0],x[0],y[0]); in driver2() 868 uint32_t h; in driver3() local 931 for (h=0, b=buf+1; h<8; ++h, ++b) in driver3() [all …]
|
/system/core/sdcard/ |
D | sdcard.c | 1223 struct handle *h; in handle_open() local 1239 h = malloc(sizeof(*h)); in handle_open() 1240 if (!h) { in handle_open() 1244 h->fd = open(path, req->flags); in handle_open() 1245 if (h->fd < 0) { in handle_open() 1246 free(h); in handle_open() 1249 out.fh = ptr_to_id(h); in handle_open() 1259 struct handle *h = id_to_ptr(req->fh); in handle_read() local 1271 h, h->fd, size, (uint64_t) offset); in handle_read() 1275 res = pread64(h->fd, read_buffer, size, offset); in handle_read() [all …]
|