/system/wlan/ti/wilink_6_1/platforms/os/common/inc/ |
RxBuf.h | 67 #define RX_BUF_DATA(pBuf) ((void*)((TI_UINT8 *)pBuf + sizeof(RxIfDescriptor_t))) 74 sizeof(RxIfDescriptor_t) ) 80 #define RX_ETH_PKT_DATA(pBuf) *((void **)(((TI_UINT32)pBuf + sizeof(RxIfDescriptor_t) + 2) & ~3)) 85 #define RX_ETH_PKT_LEN(pBuf) *((TI_UINT32 *)(((TI_UINT32)pBuf + sizeof(RxIfDescriptor_t) + 6) & ~3))
|
/external/chromium/sdch/open-vcdiff/src/ |
vcdecoder_test.cc | 66 sizeof(kStandardFileHeader)); 71 sizeof(kInterleavedFileHeader)); 109 sizeof(kMaxVarint)); 120 sizeof(kNegativeVarint)); 131 sizeof(kInvalidVarint)); 148 for (; fuzzer_ < (sizeof(fuzzers) / sizeof(fuzzers[0])); ++fuzzer_) { 220 delta_window_header_.assign(kWindowHeader, sizeof(kWindowHeader)); 221 delta_window_body_.assign(kWindowBody, sizeof(kWindowBody)); 276 delta_window_header_.assign(kWindowHeader, sizeof(kWindowHeader)) [all...] |
/external/chromium/third_party/icu/source/test/cintltst/ |
cdtdptst.c | 58 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("EEE MMM dd HH:mm:ss.SSS zzz yyyy G")+1 )); 72 s=(UChar*)malloc(sizeof(UChar) * (strlen("03-Apr-04 2:20:47 o'clock AM PST")+1) ); 129 s=(UChar*)malloc(sizeof(UChar) * (strlen("01/01/1997 10:11:42 AM")+1) ); 163 str=(UChar*)malloc(sizeof(UChar) * (strlen(s) + 1) ); 165 pat=(UChar*)malloc(sizeof(UChar) * (strlen(pattern) + 1) ); 201 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("yyyyMMddHHmmssSSS")+1) ); 249 pattern=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); 253 tzID=(UChar*)malloc(sizeof(UChar) * 4); 313 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("MM/dd/yyyy 'at' hh:mm:ss a zzz")+1) ); 324 tzID=(UChar*)malloc(sizeof(UChar) * 4) [all...] |
/external/grub/stage2/ |
fsys_iso9660.c | 52 ((struct iso_inode_info *)(FSYS_BUF+sizeof(struct iso_sb_info))) 119 if (!iso9660_devread(sector, 0, sizeof(*PRIMDESC), (char *)PRIMDESC)) 123 && !memcmp(PRIMDESC->id, ISO_STANDARD_ID, sizeof(PRIMDESC->id))) 199 - sizeof(struct iso_directory_record) 200 + sizeof(idr->name)); 202 + sizeof(struct iso_directory_record) 203 - sizeof(idr->name)); 227 if ( rr_ptr.rr->len >= (4+sizeof(struct RR))) 232 name_len = rr_ptr.rr->len - (4+sizeof(struct NM)); 236 if (rr_ptr.rr->len >= (4+sizeof(struct PX)) [all...] |
/external/icu4c/common/ |
ustr_wcs.c | 30 /* Android has stubbed out wchar support, where sizeof(wchar_t) == 1. */ 113 (_BUFFER_CAPACITY_MULTIPLIER * (srcLength)), count,sizeof(char))){ 135 tempBufCapacity-count+1, count,sizeof(char))){ 149 intTarget = (wchar_t*)uprv_malloc( intTargetCapacity * sizeof(wchar_t) ); 175 sizeof(wchar_t)); 203 uprv_memcpy(dest,intTarget,count*sizeof(wchar_t)); 324 cStackCap * _BUFFER_CAPACITY_MULTIPLIER, 0, sizeof(char)); 357 _BUFFER_CAPACITY_MULTIPLIER*cStackCap+(nulLen*MB_CUR_MAX),len,sizeof(char)); 390 pWStack =(wchar_t*) uprv_malloc(sizeof(wchar_t) * (nulLen + 1)); 398 uprv_memcpy(pWStack,pSrc,nulLen*sizeof(wchar_t)) [all...] |
/external/icu4c/test/cintltst/ |
cdtdptst.c | 58 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("EEE MMM dd HH:mm:ss.SSS zzz yyyy G")+1 )); 72 s=(UChar*)malloc(sizeof(UChar) * (strlen("03-Apr-04 2:20:47 o'clock AM PST")+1) ); 129 s=(UChar*)malloc(sizeof(UChar) * (strlen("01/01/1997 10:11:42 AM")+1) ); 163 str=(UChar*)malloc(sizeof(UChar) * (strlen(s) + 1) ); 165 pat=(UChar*)malloc(sizeof(UChar) * (strlen(pattern) + 1) ); 201 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("yyyyMMddHHmmssSSS")+1) ); 249 pattern=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); 253 tzID=(UChar*)malloc(sizeof(UChar) * 4); 313 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("MM/dd/yyyy 'at' hh:mm:ss a zzz")+1) ); 324 tzID=(UChar*)malloc(sizeof(UChar) * 4) [all...] |
/external/iproute2/include/linux/ |
rtnetlink.h | 140 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ 141 (rta)->rta_len >= sizeof(struct rtattr) && \ 145 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 289 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 290 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg)) 319 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \ 322 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len)) 498 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 499 #define TCA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcmsg)) 605 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))) [all...] |
/external/wpa_supplicant/ |
driver_atmel.c | 108 os_memset(&iwr, 0, sizeof(iwr)); 130 os_memset(&iwr, 0, sizeof(iwr)); 151 if (blen < sizeof(*param)) 152 blen = sizeof(*param); 234 blen = sizeof(*param) + key_len; 295 os_memset(¶m, 0, sizeof(param)); 300 ret = atmel_ioctl(drv, ¶m, sizeof(param), 1); 313 os_memset(¶m, 0, sizeof(param)); 319 ret = atmel_ioctl(drv, ¶m, sizeof(param), 1); 461 drv = os_zalloc(sizeof(*drv)) [all...] |
wpa_cli.c | 252 len = sizeof(buf) - 1; 358 res = os_snprintf(cmd, sizeof(cmd), "SET %s %s", argv[0], argv[1]); 359 if (res < 0 || (size_t) res >= sizeof(cmd) - 1) { 398 res = os_snprintf(cmd, sizeof(cmd), "PREAUTH %s", argv[0]); 399 if (res < 0 || (size_t) res >= sizeof(cmd) - 1) { 417 res = os_snprintf(cmd, sizeof(cmd), "AP_SCAN %s", argv[0]); 418 if (res < 0 || (size_t) res >= sizeof(cmd) - 1) { 438 res = os_snprintf(cmd, sizeof(cmd), "STKSTART %s", argv[0]); 439 if (res < 0 || (size_t) res >= sizeof(cmd) - 1) { 457 res = os_snprintf(cmd, sizeof(cmd), "LEVEL %s", argv[0]) [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_atmel.c | 107 os_memset(&iwr, 0, sizeof(iwr)); 129 os_memset(&iwr, 0, sizeof(iwr)); 150 if (blen < sizeof(*param)) 151 blen = sizeof(*param); 233 blen = sizeof(*param) + key_len; 294 os_memset(¶m, 0, sizeof(param)); 299 ret = atmel_ioctl(drv, ¶m, sizeof(param), 1); 312 os_memset(¶m, 0, sizeof(param)); 318 ret = atmel_ioctl(drv, ¶m, sizeof(param), 1); 458 drv = os_zalloc(sizeof(*drv)) [all...] |
/frameworks/base/cmds/dumpstate/ |
dumpstate.c | 54 strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&now)); 215 fgets(cmdline_buf, sizeof(cmdline_buf), cmdline); 222 if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) { 242 strlcpy(path, use_outfile, sizeof(path)); 246 strftime(date, sizeof(date), "-%Y-%m-%d-%H-%M-%S", localtime(&now)); 247 strlcat(path, date, sizeof(path)); 249 strlcat(path, ".txt", sizeof(path)); 250 if (do_compress) strlcat(path, ".gz", sizeof(path)); 251 strlcpy(tmp_path, path, sizeof(tmp_path)) [all...] |
/frameworks/base/libs/rs/ |
rsFileA3D.cpp | 53 len = fread(&mMajorVersion, 1, sizeof(mMajorVersion), f); 54 if (len != sizeof(mMajorVersion)) { 59 len = fread(&mMinorVersion, 1, sizeof(mMinorVersion), f); 60 if (len != sizeof(mMinorVersion)) { 66 len = fread(&flags, 1, sizeof(flags), f); 67 if (len != sizeof(flags)) { 75 len = fread(&mDataSize, 1, sizeof(mDataSize), f); 76 if (len != sizeof(mDataSize)) { 81 len = fread(&tmp, 1, sizeof(tmp), f); 82 if (len != sizeof(tmp)) [all...] |
/frameworks/base/opengl/libagl/ |
TextureObjectManager.cpp | 45 memset(&surface, 0, sizeof(surface)); 46 surface.version = sizeof(surface); 55 memset(crop_rect, 0, sizeof(crop_rect)); 67 memcpy(crop_rect, old->crop_rect, sizeof(crop_rect)); 85 mMipmaps = (GGLSurface*)malloc(numLods * sizeof(GGLSurface)); 89 memset(mMipmaps, 0, numLods * sizeof(GGLSurface)); 134 memset(crop_rect, 0, sizeof(crop_rect)); 151 sur.version = sizeof(GGLSurface); 181 surface.version = sizeof(GGLSurface); 208 memset(&mipmap, 0, sizeof(GGLSurface)) [all...] |
/hardware/ti/wlan/wl1271/stad/src/Data_link/ |
GeneralUtil.c | 79 List = (List_t*)os_memoryAlloc(hOs, sizeof(List_t)); 85 List->ElementList =(ListElement_t*)os_memoryAlloc(hOs, (sizeof(ListElement_t)*MaxNumOfElements)); 88 os_memoryFree(List->hOs, List, sizeof(List_t)); 105 os_memoryFree(List->hOs, List->ElementList, (sizeof(ListElement_t)*MaxNumOfElements)); 106 os_memoryFree(List->hOs,List,(sizeof(List_t))); 141 os_memoryFree(List->hOs,List->ElementList,(sizeof(ListElement_t)*List->MaxNumOfElements)); 143 os_memoryFree(List->hOs, List, sizeof(List_t)); 305 DistributorMgr = (DistributorMgr_t*)os_memoryAlloc(hOs, sizeof(DistributorMgr_t)); 309 DistributorMgr->DistributionList = (List_t*)List_create(hOs,MaxNotifReqElment,sizeof(NotifReqElment_t)); 312 os_memoryFree(hOs, DistributorMgr, sizeof(DistributorMgr_t)) [all...] |
/system/core/adb/ |
services.c | 115 snprintf(buf, sizeof(buf), "adbd is already running as root\n"); 121 snprintf(buf, sizeof(buf), "adbd cannot run as root in production builds\n"); 128 snprintf(buf, sizeof(buf), "restarting adbd as root\n"); 145 snprintf(buf, sizeof(buf), "invalid port\n"); 151 snprintf(value, sizeof(value), "%d", port); 153 snprintf(buf, sizeof(buf), "restarting in TCP mode port: %d\n", port); 167 snprintf(buf, sizeof(buf), "restarting in USB mode\n"); 199 snprintf(buf, sizeof(buf), "reboot failed: %s\n", strerror(errno)); 253 sti = malloc(sizeof(stinfo)); 322 snprintf(text, sizeof text, "/proc/%d/oom_adj", pid) [all...] |
/system/extras/ext4_utils/ |
ext4_utils.c | 120 aux_info.blocks_per_ind = info.block_size / sizeof(u32); 125 DIV_ROUND_UP(aux_info.groups * sizeof(struct ext2_group_desc), 129 DIV_ROUND_UP(aux_info.groups * 1024 * sizeof(struct ext2_group_desc), 201 memset(sb->s_volume_name, 0, sizeof(sb->s_volume_name)); 202 strncpy(sb->s_volume_name, info.label, sizeof(sb->s_volume_name)); 203 memset(sb->s_last_mounted, 0, sizeof(sb->s_last_mounted)); 210 //memcpy(sb->s_journal_uuid, sb->s_uuid, sizeof(sb->s_journal_uuid)); 218 sb->s_desc_size = sizeof(struct ext2_group_desc); 227 sb->s_min_extra_isize = sizeof(struct ext4_inode) - 229 sb->s_want_extra_isize = sizeof(struct ext4_inode) [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/EvHandler/ |
EvHandler.c | 55 pEvHandler = os_memoryAlloc(hOs,sizeof(EV_HANDLER_STRUCT_T)); 56 os_memoryZero(hOs,pEvHandler,sizeof(EV_HANDLER_STRUCT_T)); 80 os_memoryFree(pEvHandler->hOs,pEvHandler,sizeof(EV_HANDLER_STRUCT_T)); 111 /* used to be: if ( sizeof(IPC_EVENT_PARAMS) != Length) 113 if ( sizeof(IPC_EVENT_PARAMS) > Length) 115 PRINTF(DBG_INIT_ERROR, (" EvHandlerRegisterEvent Error sizeof(IPC_EVENT_PARAMS) != Length," 116 "%d != %d \n",sizeof(IPC_EVENT_PARAMS), (int)Length)); 242 *pLength = sizeof(IPC_EV_DATA); 244 os_memoryCopy(pEvHandler->hOs, pData,pNewEvent, sizeof(IPC_EV_DATA)); 305 sizeof(IPC_EVENT_PARAMS)) [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/TrafficMonitor/ |
GeneralUtil.c | 79 List = (List_t*)os_memoryAlloc(hOs, sizeof(List_t)); 85 List->ElementList =(ListElement_t*)os_memoryAlloc(hOs, (sizeof(ListElement_t)*MaxNumOfElements)); 88 os_memoryFree(List->hOs, List, sizeof(List_t)); 105 os_memoryFree(List->hOs, List->ElementList, (sizeof(ListElement_t)*MaxNumOfElements)); 106 os_memoryFree(List->hOs,List,(sizeof(List_t))); 141 os_memoryFree(List->hOs,List->ElementList,(sizeof(ListElement_t)*List->MaxNumOfElements)); 143 os_memoryFree(List->hOs, List, sizeof(List_t)); 305 DistributorMgr = (DistributorMgr_t*)os_memoryAlloc(hOs, sizeof(DistributorMgr_t)); 309 DistributorMgr->DistributionList = (List_t*)List_create(hOs,MaxNotifReqElment,sizeof(NotifReqElment_t)); 312 os_memoryFree(hOs, DistributorMgr, sizeof(DistributorMgr_t)) [all...] |
/system/wlan/ti/wilink_6_1/stad/src/Data_link/ |
GeneralUtil.c | 79 List = (List_t*)os_memoryAlloc(hOs, sizeof(List_t)); 85 List->ElementList =(ListElement_t*)os_memoryAlloc(hOs, (sizeof(ListElement_t)*MaxNumOfElements)); 88 os_memoryFree(List->hOs, List, sizeof(List_t)); 105 os_memoryFree(List->hOs, List->ElementList, (sizeof(ListElement_t)*MaxNumOfElements)); 106 os_memoryFree(List->hOs,List,(sizeof(List_t))); 141 os_memoryFree(List->hOs,List->ElementList,(sizeof(ListElement_t)*List->MaxNumOfElements)); 143 os_memoryFree(List->hOs, List, sizeof(List_t)); 305 DistributorMgr = (DistributorMgr_t*)os_memoryAlloc(hOs, sizeof(DistributorMgr_t)); 309 DistributorMgr->DistributionList = (List_t*)List_create(hOs,MaxNotifReqElment,sizeof(NotifReqElment_t)); 312 os_memoryFree(hOs, DistributorMgr, sizeof(DistributorMgr_t)) [all...] |
/bionic/libc/kernel/arch-sh/asm/ |
elf.h | 79 #define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
|
hw_irq.h | 83 #define _INTC_ARRAY(a) a, sizeof(a)/sizeof(*a)
|
system.h | 42 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr)))) 46 #define cmpxchg(ptr,o,n) ({ __typeof__(*(ptr)) _o_ = (o); __typeof__(*(ptr)) _n_ = (n); (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, (unsigned long)_n_, sizeof(*(ptr))); })
|
/bionic/libc/kernel/arch-x86/asm/ |
percpu_32.h | 25 #define percpu_to_op(op,var,val) do { typedef typeof(var) T__; if (0) { T__ tmp__; tmp__ = (val); } switch (sizeof(var)) { case 1: asm(op "b %1,"__percpu_seg"%0" : "+m" (var) :"ri" ((T__)val)); break; case 2: asm(op "w %1,"__percpu_seg"%0" : "+m" (var) :"ri" ((T__)val)); break; case 4: asm(op "l %1,"__percpu_seg"%0" : "+m" (var) :"ri" ((T__)val)); break; default: __bad_percpu_size(); } } while (0) 27 #define percpu_from_op(op,var) ({ typeof(var) ret__; switch (sizeof(var)) { case 1: asm(op "b "__percpu_seg"%1,%0" : "=r" (ret__) : "m" (var)); break; case 2: asm(op "w "__percpu_seg"%1,%0" : "=r" (ret__) : "m" (var)); break; case 4: asm(op "l "__percpu_seg"%1,%0" : "=r" (ret__) : "m" (var)); break; default: __bad_percpu_size(); } ret__; })
|
/bionic/libc/kernel/common/linux/ |
if_link.h | 95 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) 96 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
|
/bionic/libc/kernel/common/linux/netfilter_ipv4/ |
ipt_sctp.h | 33 u_int32_t chunkmap[256 / sizeof (u_int32_t)]; 47 #define bytes(type) (sizeof(type) * 8)
|