Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 73) sorted by relevance

123

/device/generic/goldfish-opengl/android-emu/android/base/files/
DStream.cpp148 void Stream::putPackedNum(uint64_t num) { in putPackedNum() argument
150 auto byte = uint8_t(num & 0x7f); in putPackedNum()
151 num >>= 7; in putPackedNum()
152 if (num) { in putPackedNum()
156 } while (num != 0); in putPackedNum()
170 void Stream::putPackedSignedNum(int64_t num) { in putPackedSignedNum() argument
171 if (num >= 0) { in putPackedSignedNum()
172 assert((uint64_t(num) & (1ULL << 63)) == 0); in putPackedSignedNum()
173 putPackedNum(uint64_t(num) << 1); in putPackedSignedNum()
175 assert((uint64_t(-num) & (1ULL << 63)) == 0); in putPackedSignedNum()
[all …]
DStream.h102 void putPackedNum(uint64_t num);
107 void putPackedSignedNum(int64_t num);
/device/google/contexthub/firmware/os/cpu/cortexm4/
DatomicBitset.c36 bool atomicBitsetGetBit(const struct AtomicBitset *set, uint32_t num) in atomicBitsetGetBit() argument
38 if (num >= set->numBits) /* any value is as good as the next */ in atomicBitsetGetBit()
41 return !!((set->words[num / 32]) & (1UL << (num & 31))); in atomicBitsetGetBit()
44 void atomicBitsetClearBit(struct AtomicBitset *set, uint32_t num) in atomicBitsetClearBit() argument
46 uint32_t idx = num / 32, mask = 1UL << (num & 31), status, tmp; in atomicBitsetClearBit()
49 if (num >= set->numBits) in atomicBitsetClearBit()
64 void atomicBitsetSetBit(struct AtomicBitset *set, uint32_t num) in atomicBitsetSetBit() argument
66 uint32_t idx = num / 32, mask = 1UL << (num & 31), status, tmp; in atomicBitsetSetBit()
69 if (num >= set->numBits) in atomicBitsetSetBit()
DcpuMath.c50 return num; \
52 ret = cpuMathUint64TimesUint64Lsr64(num, denomRecip); \
54 if (try <= num && try >= ret * denom) \
59 uint64_t cpuMathRecipAssistedUdiv64by64(uint64_t num, uint64_t denom, uint64_t denomRecip) in cpuMathRecipAssistedUdiv64by64() argument
64 uint64_t cpuMathRecipAssistedUdiv64by32(uint64_t num, uint32_t denom, uint64_t denomRecip) in cpuMathRecipAssistedUdiv64by32() argument
/device/google/contexthub/firmware/os/cpu/x86/
DatomicBitset.c37 bool atomicBitsetGetBit(const struct AtomicBitset *set, uint32_t num) in atomicBitsetGetBit() argument
39 if (num >= set->numBits) /* any value is as good as the next */ in atomicBitsetGetBit()
42 return !!((set->words[num / 32]) & (1UL << (num & 31))); in atomicBitsetGetBit()
45 void atomicBitsetClearBit(struct AtomicBitset *set, uint32_t num) in atomicBitsetClearBit() argument
47 uint32_t idx = num / 32, mask = 1UL << (num & 31); in atomicBitsetClearBit()
51 if (num >= set->numBits) in atomicBitsetClearBit()
/device/google/contexthub/firmware/os/drivers/leds/
Dleds_gpio.c54 uint32_t num; member
115 if (lcfg->led_num >= mTask.num) { in sensorConfigLedsGpio()
130 for (i=0; i < mTask.num; i++) in sensorLedsOnOff()
178 mTask.num = 0; in startTask()
182 for (i=0; i < leds->num && i < LEDS_GPIO_MAX; i++) { in startTask()
186 mTask.leds[mTask.num].val = 0; in startTask()
187 mTask.leds[mTask.num++].ledid = led; in startTask()
190 if (mTask.num == 0) in startTask()
202 for (i=0; i < mTask.num; i++) { in endTask()
/device/linaro/hikey/gralloc960/
Dmali_gralloc_debug.cpp85 size_t num; in mali_gralloc_dump_buffers() local
94 for (num = 0; num < dump_buffers.size(); num++) in mali_gralloc_dump_buffers()
96 hnd = dump_buffers[num]; in mali_gralloc_dump_buffers()
106 …s, "---------------------End dump Gralloc buffers info with num %zu----------------------\n", num); in mali_gralloc_dump_buffers()
/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_debug.cpp85 size_t num; in mali_gralloc_dump_buffers() local
94 for (num = 0; num < dump_buffers.size(); num++) in mali_gralloc_dump_buffers()
96 hnd = dump_buffers[num]; in mali_gralloc_dump_buffers()
106 …s, "---------------------End dump Gralloc buffers info with num %zu----------------------\n", num); in mali_gralloc_dump_buffers()
/device/google/cuttlefish/host/commands/assemble_cvd/
Dflags.cc279 std::string StrForInstance(const std::string& prefix, int num) { in StrForInstance() argument
281 stream << prefix << std::setfill('0') << std::setw(2) << num; in StrForInstance()
512 for (const auto& num : instance_nums) { in InitializeCuttlefishConfiguration() local
513 auto instance = tmp_config_obj.ForInstance(num); in InitializeCuttlefishConfiguration()
515 .ForInstance(num); in InitializeCuttlefishConfiguration()
517 instance.set_instance_dir(FLAGS_instance_dir + "." + std::to_string(num)); in InitializeCuttlefishConfiguration()
519 instance.set_serial_number(RandomSerialNumber("CFCVD" + std::to_string(num))); in InitializeCuttlefishConfiguration()
521 instance.set_serial_number(FLAGS_serial_number + std::to_string(num)); in InitializeCuttlefishConfiguration()
524 instance.set_mobile_bridge_name(StrForInstance("cvd-mbr-", num)); in InitializeCuttlefishConfiguration()
525 instance.set_mobile_tap_name(StrForInstance("cvd-mtap-", num)); in InitializeCuttlefishConfiguration()
[all …]
/device/google/contexthub/lib/nanohub/
Drsa.c23 static bool biModIterative(uint32_t *num, const uint32_t *denum, uint32_t *tmp, uint32_t *state1, u… in biModIterative() argument
60 if (num[limbsh + i] < tmp[i]) in biModIterative()
62 if (num[limbsh + i] > tmp[i]) in biModIterative()
69 t += (uint64_t)num[limbsh + i]; in biModIterative()
71 num[limbsh + i] = t; in biModIterative()
77 t += (uint64_t)num[i]; in biModIterative()
78 num[i] = t; in biModIterative()
229 static void biMod(uint32_t *num, const uint32_t *denum, uint32_t *tmp) in biMod() argument
233 for (step = 0; !biModIterative(num, denum, tmp, &state1, &state2, step); step++); in biMod()
/device/google/contexthub/firmware/os/inc/
DatomicBitset.h38 bool atomicBitsetGetBit(const struct AtomicBitset *set, uint32_t num);
39 void atomicBitsetClearBit(struct AtomicBitset *set, uint32_t num);
40 void atomicBitsetSetBit(struct AtomicBitset *set, uint32_t num);
/device/google/cuttlefish/host/commands/modem_simulator/
Dnvram_config.cpp98 NvramConfig::InstanceSpecific NvramConfig::ForInstance(int num) const { in ForInstance()
99 return InstanceSpecific(this, std::to_string(num)); in ForInstance()
135 for (size_t num = 0; num < total_instances_; num++) { in InitDefaultNvramConfig() local
136 auto instance = ForInstance(num); in InitDefaultNvramConfig()
/device/generic/goldfish/wifi/wifi_hal/
Dinfo.cpp47 wifi_error Info::getInterfaces(int* num, wifi_interface_handle** interfaces) { in getInterfaces() argument
48 if (num == nullptr || interfaces == nullptr) { in getInterfaces()
51 *num = mInterfaceHandles.size(); in getInterfaces()
/device/linaro/poplar/wifi/wifi_hal/
Dgscan.cpp330 static int parseScanResults(wifi_scan_result *results, int num, nlattr *attr) in parseScanResults() argument
332 memset(results, 0, sizeof(wifi_scan_result) * num); in parseScanResults()
335 for (nl_iterator it(attr); it.has_next() && i < num; it.next(), i++) { in parseScanResults()
364 if (i >= num) { in parseScanResults()
844 wifi_cached_scan_results *results, int max, int *num) in GetScanResultsCommand() argument
845 : WifiCommand("GetScanResultsCommand", iface, -1), mScans(results), mMax(max), mNum(num), in GetScanResultsCommand()
849 int createRequest(WifiRequest& request, int num, byte flush) { in createRequest() argument
856 result = request.put_u32(GSCAN_ATTRIBUTE_NUM_OF_RESULTS, num); in createRequest()
938 int scan_id = 0, flags = 0, num = 0, scan_ch_bucket_mask = 0; in handleResponse() local
947 num = it2.get_u32(); in handleResponse()
[all …]
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c118 uint32_t num[RSA_LIMBS]; member
131 rsa->num[i] = le32toh(le32SigPack[i]); in validateSignature()
134 printHashRev(stderr, "RSA cyphertext", rsa->num, RSA_LIMBS); in validateSignature()
139 rsaResult = rsaPubOp(&rsa->state, rsa->num, rsa->modulus); in validateSignature()
217 rsa->num[RSA_LIMBS - i - 1] = be32toh(be32Buf[i]); in handleConvertKey()
220 ret = fwrite(rsa->num, 1, RSA_BYTES, out) == RSA_BYTES ? 0 : 2; in handleConvertKey()
369 memcpy(rsa->num, hash, SHA2_HASH_SIZE); in handleSign()
373 rsa->num[i++] = rand32_no_zero_bytes() << 8; //low byte here must be zero as per padding spec in handleSign()
375 rsa->num[i] = rand32_no_zero_bytes(); in handleSign()
376 rsa->num[i] = (rand32_no_zero_bytes() >> 16) | 0x00020000; //as per padding spec in handleSign()
[all …]
/device/generic/goldfish/network/wifi_forwarder/
Dhwsim.h20 #define BIT(num) (1UL << (num)) argument
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/
DatomicBitset.h35 bool atomicBitsetGetBit(const struct AtomicBitset *set, uint32_t num);
36 void atomicBitsetClearBit(struct AtomicBitset *set, uint32_t num);
DcpuMath.h44 uint64_t cpuMathRecipAssistedUdiv64by64(uint64_t num, uint64_t denom, uint64_t denomRecip);
45 uint64_t cpuMathRecipAssistedUdiv64by32(uint64_t num, uint32_t denom, uint64_t denomRecip);
/device/google/contexthub/firmware/os/cpu/x86/inc/cpu/
DatomicBitset.h34 bool atomicBitsetGetBit(const struct AtomicBitset *set, uint32_t num);
35 void atomicBitsetClearBit(struct AtomicBitset *set, uint32_t num);
/device/google/cuttlefish/guest/commands/setup_wifi/
Dmain.cpp41 int num; in str_to_mac() local
42 stream >> std::hex >> num; in str_to_mac()
43 mac[i] = num; in str_to_mac()
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/sys/xt-shmem/board-hikey/
Ddsp_driver_ipc.h39 #define SYS_IPC_DATA(base, box, num) WORD_REF(base + ((box) << 6) + 0x20 + ((num) << 2))
Dxf-board.h57 #define SYS_IPC_DATA(base, box, num) WORD_REF(base + ((box) << 6) + 0x20 + ((num) << 2)) argument
/device/generic/goldfish/tools/
Dmk_combined_img.py107 num = str(partition["num"])
108 new_comm = '--new=' + num + ':' + partition["start"] + ':' + partition["end"]
109 type_comm = '--type=' + num + ':8300'
110 name_comm = '--change-name=' + num + ':' + partition["label"]
/device/google/cuttlefish/host/commands/secure_env/
Dencrypted_serializable.cpp158 static uint32_t RoundUpToBlockSize(uint32_t num) { in RoundUpToBlockSize() argument
159 return num % BLOCK_SIZE == 0 ? num : num + (BLOCK_SIZE - (num % BLOCK_SIZE)); in RoundUpToBlockSize()
/device/generic/goldfish-opengl/system/codecs/omx/common/
Dgoldfish_media_utils.cpp42 … virtual void writeParam(__u64 val, unsigned int num, unsigned int offSetToStartAddr = 0) override;
180 void GoldfishMediaTransportImpl::writeParam(__u64 val, unsigned int num, unsigned int offSetToStart… in writeParam() argument
182 uint64_t* pint = (uint64_t*)(p + 8 * num); in writeParam()

123