/external/ppp/pppd/plugins/rp-pppoe/ |
if.c | 156 ifc.ifc_len = sizeof(inbuf); 165 i += sizeof(ifr->ifr_name) + 166 (ifr->ifr_addr.sa_len > sizeof(struct sockaddr) 168 : sizeof(struct sockaddr)); 173 !strncmp(ifname, ifr->ifr_name, sizeof(ifr->ifr_name))) { 241 struct bpf_insn bpfInsn[sizeof(bpfRun) / sizeof(bpfRun[0])]; 243 memcpy(bpfInsn, bpfRun, sizeof(bpfRun)); 250 bpfProgram.bf_len = (sizeof(bpfInsn) / sizeof(bpfInsn[0])) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/Xext/Xxf86vm/ |
XF86VMode.c | 238 (SIZEOF(xXF86OldVidModeGetModeLineReply) - SIZEOF(xReply)) >> 2, xFalse)) { 257 (SIZEOF(xXF86VidModeGetModeLineReply) - SIZEOF(xReply)) >> 2, xFalse)) { 277 if (!(modeline->private = Xcalloc(modeline->privsize, sizeof(INT32)))) { 278 _XEatData(dpy, (modeline->privsize) * sizeof(INT32)); 282 _XRead(dpy, (char*)modeline->private, modeline->privsize * sizeof(INT32)); 332 (SIZEOF(xXF86VidModeGetAllModeLinesReply) - SIZEOF(xReply)) >> 2, xFalse)) { 341 sizeof(SDL_NAME(XF86VidModeModeInfo) * [all...] |
/external/tcpdump/ |
print-icmp6.c | 172 snprintf(buf, sizeof(buf), "%u", v); 210 memset(&phu, 0, sizeof(phu)); 217 for (i = 0; i < sizeof(phu.pa) / sizeof(phu.pa[0]); i++) 540 hlen = sizeof(struct ip6_hdr); 575 hlen = sizeof(struct ip6_frag); 610 #define ECHECK(var) if ((u_char *)&(var) > ep - sizeof(var)) return 682 memset(&in6, 0, sizeof(in6)); 693 memcpy(&in6, opri + 1, sizeof(in6)); 735 if ((u_char *)mp + sizeof(*mp) > ep [all...] |
/frameworks/base/libs/ui/ |
EventHub.cpp | 114 memset(mSwitches, 0, sizeof(mSwitches)); 188 memset(key_bitmask, 0, sizeof(key_bitmask)); 190 EVIOCGKEY(sizeof(key_bitmask)), key_bitmask) >= 0) { 211 memset(key_bitmask, 0, sizeof(key_bitmask)); 212 if (ioctl(device->fd, EVIOCGKEY(sizeof(key_bitmask)), key_bitmask) >= 0) { 247 memset(sw_bitmask, 0, sizeof(sw_bitmask)); 249 EVIOCGSW(sizeof(sw_bitmask)), sw_bitmask) >= 0) { 451 sizeof(struct input_event) * INPUT_BUFFER_SIZE); 456 } else if ((readSize % sizeof(struct input_event)) != 0) { 459 mInputBufferCount = readSize / sizeof(struct input_event) [all...] |
/external/e2fsprogs/lib/uuid/ |
gen_uuid.c | 163 memcpy(tmp_seed, jrand_seed, sizeof(tmp_seed)); 168 sizeof(jrand_seed)-sizeof(unsigned short)); 192 * max(sizeof(ifreq), sizeof(ifreq.ifr_name)+ifreq.ifr_addr.sa_len 194 * just sizeof(struct ifreq) 200 #define ifreq_size(i) max(sizeof(struct ifreq),\ 201 sizeof((i).ifr_name)+(i).ifr_addr.sa_len) 203 #define ifreq_size(i) sizeof(struct ifreq) 210 memset(buf, 0, sizeof(buf)) [all...] |
/external/iptables/libiptc/ |
libip6tc.c | 144 inet_ntop(AF_INET6, &e->ipv6.src, buf, sizeof buf); 151 inet_ntop(AF_INET6, &e->ipv6.smsk, buf, sizeof buf); 157 inet_ntop(AF_INET6, &e->ipv6.dst, buf, sizeof buf); 164 inet_ntop(AF_INET6, &e->ipv6.dmsk, buf, sizeof buf); 216 if (memcmp(&a->ipv6.src, &b->ipv6.src, sizeof(struct in6_addr)) 217 || memcmp(&a->ipv6.dst, &b->ipv6.dst, sizeof(struct in6_addr)) 218 || memcmp(&a->ipv6.smsk, &b->ipv6.smsk, sizeof(struct in6_addr)) 219 || memcmp(&a->ipv6.dmsk, &b->ipv6.dmsk, sizeof(struct in6_addr)) 244 mptr = matchmask + sizeof(STRUCT_ENTRY); 247 mptr += IP6T_ALIGN(sizeof(struct ip6t_entry_target)) [all...] |
/external/wpa_supplicant/ |
driver_madwifi.c | 55 os_memset(&iwr, 0, sizeof(iwr)); 133 idx < (int) (sizeof(opnames) / sizeof(opnames[0])) 150 os_memset(&iwr, 0, sizeof(iwr)); 153 os_memcpy(iwr.u.name+sizeof(__u32), &arg, sizeof(arg)); 169 os_memset(&iwr, 0, sizeof(iwr)); 189 os_memset(&wk, 0, sizeof(wk)); 194 return set80211priv(drv, IEEE80211_IOCTL_DELKEY, &wk, sizeof(wk), 1); 246 if (seq_len > sizeof(u_int64_t)) [all...] |
/device/samsung/crespo/alsa-utils/aplay/ |
aplay.c | 695 return LE_SHORT(vp->headerlen) - sizeof(VocHeader); /* 0 mostly */ 738 if (size < sizeof(WaveHeader)) 742 if (size > sizeof(WaveHeader)) { 743 check_wavefile_space(buffer, size - sizeof(WaveHeader), blimit); 744 memcpy(buffer, _buffer + sizeof(WaveHeader), size - sizeof(WaveHeader)); 746 size -= sizeof(WaveHeader); 748 check_wavefile_space(buffer, sizeof(WaveChunkHeader), blimit); 749 test_wavefile_read(fd, buffer, &size, sizeof(WaveChunkHeader), __LINE__); 754 if (size > sizeof(WaveChunkHeader) [all...] |
/external/chromium/third_party/icu/source/i18n/ |
ucol_elm.cpp | 50 uprv_memcpy(buf, element->cPoints, element->cSize*sizeof(UChar)); 65 uprv_memcpy(buf1, element1->cPoints, element1->cSize*sizeof(UChar)); 71 uprv_memcpy(buf2, element2->cPoints, element2->cSize*sizeof(UChar)); 83 expansions->CEs = (uint32_t *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(uint32_t)); 94 uint32_t *newData = (uint32_t *)uprv_realloc(expansions->CEs, 2*expansions->size*sizeof(uint32_t)); 114 tempUCATable *t = (tempUCATable *)uprv_malloc(sizeof(tempUCATable)); 120 uprv_memset(t, 0, sizeof(tempUCATable)); 122 maxet = (MaxExpansionTable *)uprv_malloc(sizeof(MaxExpansionTable)); 126 uprv_memset(maxet, 0, sizeof(MaxExpansionTable)); 129 maxjet = (MaxJamoExpansionTable *)uprv_malloc(sizeof(MaxJamoExpansionTable)) [all...] |
/external/icu4c/i18n/ |
ucol_elm.cpp | 52 uprv_memcpy(buf, element->cPoints, element->cSize*sizeof(UChar)); 67 uprv_memcpy(buf1, element1->cPoints, element1->cSize*sizeof(UChar)); 73 uprv_memcpy(buf2, element2->cPoints, element2->cSize*sizeof(UChar)); 85 expansions->CEs = (uint32_t *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(uint32_t)); 96 uint32_t *newData = (uint32_t *)uprv_realloc(expansions->CEs, 2*expansions->size*sizeof(uint32_t)); 116 tempUCATable *t = (tempUCATable *)uprv_malloc(sizeof(tempUCATable)); 122 uprv_memset(t, 0, sizeof(tempUCATable)); 124 maxet = (MaxExpansionTable *)uprv_malloc(sizeof(MaxExpansionTable)); 128 uprv_memset(maxet, 0, sizeof(MaxExpansionTable)); 131 maxjet = (MaxJamoExpansionTable *)uprv_malloc(sizeof(MaxJamoExpansionTable)) [all...] |
/hardware/ril/libril/ |
ril.cpp | 74 #define NUM_ELEMS(a) (sizeof (a) / sizeof (a)[0]) 298 pRI = (RequestInfo *)calloc(1, sizeof(RequestInfo)); 347 pRI = (RequestInfo *)calloc(1, sizeof(RequestInfo)); 398 sizeof(char *), pRI); 428 pStrings = (char **)alloca(sizeof(char *)); 434 datalen = sizeof(char *) * countStrings; 482 datalen = sizeof(int) * count; 527 memset (&args, 0, sizeof(args)); 546 s_callbacks.onRequest(pRI->pCI->requestNumber, &args, sizeof(args), pRI) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_ralink.c | 59 os_memset(&iwr, 0, sizeof(iwr)); 86 os_memset(&iwr, 0, sizeof(iwr)); 110 os_memset(&iwr, 0, sizeof(iwr)); 147 os_memset(&iwr, 0, sizeof(iwr)); 198 if (ralink_set_oid(drv, OID_802_11_SET_IEEE8021X, (char *) &ieee8021x_mode, sizeof(BOOLEAN)) < 0) 207 if (ralink_set_oid(drv, OID_802_11_SET_IEEE8021X_REQUIRE_KEY, (char *) &ieee8021x_required_key, sizeof(BOOLEAN)) < 0) 232 buf = os_zalloc(sizeof(NDIS_802_11_SSID)); 235 os_memset(buf, 0, sizeof(buf)); 238 os_memset(&iwr, 0, sizeof(iwr)); 244 iwr.u.data.length = sizeof(NDIS_802_11_SSID) [all...] |
/bionic/libc/bionic/ |
_rand48.c | 38 accu >>= sizeof(unsigned short) * 8; 42 accu >>= sizeof(unsigned short) * 8;
|
/bionic/libc/kernel/arch-arm/asm/ |
elf.h | 35 #define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
|
/bionic/libc/kernel/arch-sh/asm/ |
bug.h | 22 #define BUG() do { __asm__ __volatile__ ( "1:\t.short %O0\n" _EMIT_BUG_ENTRY : : "n" (TRAPA_BUG_OPCODE), "i" (__FILE__), "i" (__LINE__), "i" (0), "i" (sizeof(struct bug_entry))); } while (0) 24 #define __WARN() do { __asm__ __volatile__ ( "1:\t.short %O0\n" _EMIT_BUG_ENTRY : : "n" (TRAPA_BUG_OPCODE), "i" (__FILE__), "i" (__LINE__), "i" (BUGFLAG_WARNING), "i" (sizeof(struct bug_entry))); } while (0)
|
/bionic/libc/kernel/arch-x86/asm/ |
elf.h | 21 #define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))
|
/bionic/libc/kernel/common/linux/ |
if_packet.h | 74 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
|
if_tr.h | 18 #define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))
|
socket.h | 21 char __data[_K_SS_MAXSIZE - sizeof(unsigned short)]; 66 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) 68 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) 69 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) 70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) 72 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? (struct cmsghdr *)(ctl) : (struct cmsghdr *)NULL) 74 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
|
/bionic/libc/stdlib/ |
_rand48.c | 38 accu >>= sizeof(unsigned short) * 8; 42 accu >>= sizeof(unsigned short) * 8;
|
/bootable/recovery/minui/ |
resources.c | 52 snprintf(resPath, sizeof(resPath)-1, "/res/images/%s.png", name); 53 resPath[sizeof(resPath)-1] = '\0'; 60 size_t bytesRead = fread(header, 1, sizeof(header), fp); 61 if (bytesRead != sizeof(header)) { 66 if (png_sig_cmp(header, 0, sizeof(header))) { 89 png_set_sig_bytes(png_ptr, sizeof(header)); 108 surface = malloc(sizeof(GGLSurface) + pixelSize); 114 surface->version = sizeof(GGLSurface);
|
/bootable/recovery/mtdutils/ |
flash_image.c | 36 vsnprintf(buf, sizeof(buf), msg, args); 40 strlcat(buf, ": ", sizeof(buf)); 41 strlcat(buf, strerror(err), sizeof(buf)); 72 int headerlen = read(fd, header, sizeof(header)); 81 int checklen = mtd_read_data(in, check, sizeof(check)); 104 while ((len = read(fd, buf, sizeof(buf))) > 0) { 131 len = read(fd, buf, left > (int)sizeof(buf) ? (int)sizeof(buf) : left);
|
mounts.c | 53 memset((void *)volume, 0, sizeof(*volume)); 69 MountedVolume *volumes = malloc(numv * sizeof(*volumes)); 76 memset(volumes, 0, numv * sizeof(*volumes)); 93 nbytes = read(fd, buf, sizeof(buf) - 1); 128 device[sizeof(device)-1] = '\0'; 129 mount_point[sizeof(mount_point)-1] = '\0'; 130 filesystem[sizeof(filesystem)-1] = '\0'; 131 flags[sizeof(flags)-1] = '\0';
|
/cts/tests/jni/ |
android_os_cts_CpuFeatures.cpp | 45 sizeof(gMethods) / sizeof(JNINativeMethod));
|
/cts/tests/tests/jni/libjnitest/ |
android_jni_cts_JniCTest.c | 47 methods, sizeof(methods) / sizeof(JNINativeMethod));
|