Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 52) sorted by relevance

123

/system/core/adb/
Dusb_linux_client.c45 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 …]
Dusb_linux.c311 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 …]
Dusb_libusb.c208 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 …]
Dframebuffer_service.c61 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 …]
/system/core/libcutils/
Dnative_handle.c30 native_handle_t* h = malloc( in native_handle_create() local
33 h->version = sizeof(native_handle_t); in native_handle_create()
34 h->numFds = numFds; in native_handle_create()
35 h->numInts = numInts; in native_handle_create()
36 return h; in native_handle_create()
39 int native_handle_delete(native_handle_t* h) in native_handle_delete() argument
41 if (h) { in native_handle_delete()
42 if (h->version != sizeof(native_handle_t)) in native_handle_delete()
44 free(h); in native_handle_delete()
49 int native_handle_close(const native_handle_t* h) in native_handle_close() argument
[all …]
Dhashmap.c81 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/
Dusb_osx.c386 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
470 int usb_read(usb_handle *h, void *data, int len) { in usb_read() argument
478 if (h == NULL) { in usb_read()
482 if (h->interface == NULL) { in usb_read()
[all …]
Dusb_linux.c311 int usb_write(usb_handle *h, const void *_data, int len) in usb_write() argument
318 if(h->ep_out == 0) { in usb_write()
323 bulk.ep = h->ep_out; in usb_write()
328 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_write()
341 bulk.ep = h->ep_out; in usb_write()
346 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_write()
361 int usb_read(usb_handle *h, void *_data, int len) in usb_read() argument
368 if(h->ep_in == 0) { in usb_read()
375 bulk.ep = h->ep_in; in usb_read()
382 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read()
[all …]
Dusb.h62 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);
Dbootimg.c35 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/
Ddu.c251 int h, h2; in linkchk() local
261 h = sawzero; in linkchk()
263 return h; in linkchk()
298 h = tmp >> (HTBITS - htshift); in linkchk()
302 while (htable[h].ino || htable[h].dev) { in linkchk()
303 if ((htable[h].ino == ino) && (htable[h].dev == dev)) in linkchk()
305 h = (h + h2) & htmask; in linkchk()
309 htable[h].dev = dev; in linkchk()
310 htable[h].ino = ino; in linkchk()
/system/core/sh/
DAndroid.mk44 p4 edit arith.c arith_lex.c arith.h builtins.h builtins.c
45 p4 edit init.c nodes.c nodes.h token.h
49 perl -ne 'print if ( /^\#\s*define\s+ARITH/ );' < arith.c > arith.h
50 sh ./mkbuiltins shell.h builtins.def . -Wall -O2
Dnodes.c.pat37 #include <stdlib.h>
42 #include "shell.h"
43 #include "nodes.h"
44 #include "memalloc.h"
45 #include "machdep.h"
46 #include "mystring.h"
/system/core/libpixelflinger/
Dclear.cpp51 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()
Dbuffer.cpp36 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 …]
/system/extras/tests/framebuffer/
Dfb_test.c207 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()
Dmdp_test.c140 int parse_geometry(char *geom, int *w, int *h, int *x, int *y) in parse_geometry() argument
144 *w = *h = 0; in parse_geometry()
155 *h = atoi(geom); in parse_geometry()
303 req->src_rect.h = srch; in main()
313 req->dst_rect.h = dsth; in main()
/system/core/sdcard/
Dsdcard.c807 struct handle *h; in handle_open() local
818 h = malloc(sizeof(*h)); in handle_open()
819 if (!h) { in handle_open()
823 h->fd = open(path, req->flags); in handle_open()
824 if (h->fd < 0) { in handle_open()
825 free(h); in handle_open()
828 out.fh = ptr_to_id(h); in handle_open()
838 struct handle *h = id_to_ptr(req->fh); in handle_read() local
849 h, h->fd, size, offset); in handle_read()
853 res = pread64(h->fd, handler->read_buffer, size, offset); in handle_read()
[all …]
/system/core/include/cutils/
Dnative_handle.h40 int native_handle_close(const native_handle_t* h);
62 int native_handle_delete(native_handle_t* h);
/system/core/libpixelflinger/codeflinger/
Dload_store.cpp109 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 …]
DGGLAssembler.h237 inline int hi(int c) const { return format.c[c].h; } in hi()
246 component_t() : reg_t(), h(0), l(0) { in component_t()
249 : reg_t(r, f), h(0), l(0) { in reg_t()
252 : reg_t(r, f), h(hi), l(lo) { in reg_t()
255 : reg_t(rhs.reg, rhs.flags), h(rhs.s), l(0) { in component_t()
260 rhs.format.c[component].h, in component_t()
264 reg_t::setTo(r, f); h=hi; l=lo;
266 int8_t h; member
268 inline int size() const { return h-l; } in size()
379 void extract(integer_t& d, int s, int h, int l, int bits=32);
/system/core/include/pixelflinger/
Dformat.h99 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/core/include/system/
Dwindow.h687 int w, int h, int format) in native_window_set_buffers_geometry() argument
690 w, h, format); in native_window_set_buffers_geometry()
708 int w, int h) in native_window_set_buffers_dimensions() argument
711 w, h); in native_window_set_buffers_dimensions()
733 int w, int h) in native_window_set_buffers_user_dimensions() argument
736 w, h); in native_window_set_buffers_user_dimensions()
/system/core/libnl_2/
DREADME76 * netlink-types.h - Contains many important structs for libnl
78 * netlink/netlink-kernel.h - Netlink kernel headers and field constants.
79 * netlink/msg.h - macros for iterating over netlink messages
80 * netlink/attr.h - netlink attribute constants, iteration macros and setters
84 * nl80211.h
85 * netlink_types.h
D.gitignore1 include/netlink/version.h.in

123