Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 17 of 17) sorted by relevance

/hardware/google/apf/v7/
Dapf_dns.h19 u32* const ofs)) { in FUNC() argument
20 u32 first_unread_offset = *ofs; in FUNC()
27 if (*ofs >= udp_len) return error_packet; in FUNC()
28 v = udp[(*ofs)++]; in FUNC()
32 if (*ofs >= udp_len) return error_packet; in FUNC()
33 w = udp[(*ofs)++]; in FUNC()
34 if (*ofs > first_unread_offset) first_unread_offset = *ofs; in FUNC()
36 … if (new_ofs >= *ofs) return error_packet; /* RFC 1035 4.1.4 allows only backward pointers */ in FUNC()
37 *ofs = new_ofs; in FUNC()
42 if (*ofs + label_size > udp_len) return error_packet; in FUNC()
[all …]
Dapf_interpreter.c406 u32* const ofs)) { in FUNC() argument
407 u32 first_unread_offset = *ofs; in FUNC()
414 if (*ofs >= udp_len) return error_packet; in FUNC()
415 v = udp[(*ofs)++]; in FUNC()
419 if (*ofs >= udp_len) return error_packet; in FUNC()
420 w = udp[(*ofs)++]; in FUNC()
421 if (*ofs > first_unread_offset) first_unread_offset = *ofs; in FUNC()
423 … if (new_ofs >= *ofs) return error_packet; /* RFC 1035 4.1.4 allows only backward pointers */ in FUNC()
424 *ofs = new_ofs; in FUNC()
429 if (*ofs + label_size > udp_len) return error_packet; in FUNC()
[all …]
Dapf_interpreter_source.c121 static u8 read_packet_u8(apf_context* ctx, u32 ofs) { in read_packet_u8() argument
122 return ctx->packet[ofs]; in read_packet_u8()
/hardware/google/apf/
Dapf_dns.h19 u32* const ofs)) { in FUNC() argument
20 u32 first_unread_offset = *ofs; in FUNC()
27 if (*ofs >= udp_len) return error_packet; in FUNC()
28 v = udp[(*ofs)++]; in FUNC()
32 if (*ofs >= udp_len) return error_packet; in FUNC()
33 w = udp[(*ofs)++]; in FUNC()
34 if (*ofs > first_unread_offset) first_unread_offset = *ofs; in FUNC()
36 … if (new_ofs >= *ofs) return error_packet; /* RFC 1035 4.1.4 allows only backward pointers */ in FUNC()
37 *ofs = new_ofs; in FUNC()
42 if (*ofs + label_size > udp_len) return error_packet; in FUNC()
[all …]
Dapf_dns_test.cc29 u32 ofs = 12; in TEST() local
30 …needle_match, needle_match + sizeof(needle_match), udp_payload, sizeof(udp_payload), &ofs), match); in TEST()
31 EXPECT_EQ(ofs, 29); in TEST()
38 ofs = 12; in TEST()
39 …ar, needle_match_star + sizeof(needle_match_star), udp_payload, sizeof(udp_payload), &ofs), match); in TEST()
40 EXPECT_EQ(ofs, 29); in TEST()
47 ofs = 12; in TEST()
48 …omatch, needle_nomatch + sizeof(needle_nomatch), udp_payload, sizeof(udp_payload), &ofs), nomatch); in TEST()
49 EXPECT_EQ(ofs, 29); in TEST()
56 ofs = 12; in TEST()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/
Du_mm.c45 debug_printf(" Offset:%08x, Size:%08x, %c%c\n", p->ofs, p->size, in u_mmDumpMemInfo()
59 debug_printf(" FREE Offset:%08x, Size:%08x, %c%c\n", p->ofs, p->size, in u_mmDumpMemInfo()
70 u_mmInit(int ofs, int size) in u_mmInit() argument
98 block->ofs = ofs; in u_mmInit()
114 if (startofs > p->ofs) { in SliceBlock()
118 newblock->ofs = startofs; in SliceBlock()
119 newblock->size = p->size - (startofs - p->ofs); in SliceBlock()
142 newblock->ofs = startofs + size; in SliceBlock()
197 startofs = (p->ofs + mask) & ~mask; in u_mmAllocMem()
202 if (endofs <= (p->ofs+p->size)) in u_mmAllocMem()
[all …]
Du_mm.h41 int ofs,size; member
52 extern struct mem_block *u_mmInit(int ofs, int size);
/hardware/google/apf/devtools/
Dapf_interpreter.c406 u32* const ofs)) { in FUNC() argument
407 u32 first_unread_offset = *ofs; in FUNC()
414 if (*ofs >= udp_len) return error_packet; in FUNC()
415 v = udp[(*ofs)++]; in FUNC()
419 if (*ofs >= udp_len) return error_packet; in FUNC()
420 w = udp[(*ofs)++]; in FUNC()
421 if (*ofs > first_unread_offset) first_unread_offset = *ofs; in FUNC()
423 … if (new_ofs >= *ofs) return error_packet; /* RFC 1035 4.1.4 allows only backward pointers */ in FUNC()
424 *ofs = new_ofs; in FUNC()
429 if (*ofs + label_size > udp_len) return error_packet; in FUNC()
[all …]
/hardware/google/apf/v6/
Dapf_interpreter.c404 u32* const ofs)) { in FUNC() argument
405 u32 first_unread_offset = *ofs; in FUNC()
412 if (*ofs >= udp_len) return error_packet; in FUNC()
413 v = udp[(*ofs)++]; in FUNC()
417 if (*ofs >= udp_len) return error_packet; in FUNC()
418 w = udp[(*ofs)++]; in FUNC()
419 if (*ofs > first_unread_offset) first_unread_offset = *ofs; in FUNC()
421 … if (new_ofs >= *ofs) return error_packet; /* RFC 1035 4.1.4 allows only backward pointers */ in FUNC()
422 *ofs = new_ofs; in FUNC()
427 if (*ofs + label_size > udp_len) return error_packet; in FUNC()
[all …]
/hardware/google/graphics/common/libhwc2.1/libmaindisplay/
DExynosPrimaryDisplay.cpp779 std::ofstream ofs(gamma_node); in SetCurrentPanelGammaSource() local
780 if (!ofs.is_open()) { in SetCurrentPanelGammaSource()
784 ofs.write(gamma_data.c_str(), gamma_data.size()); in SetCurrentPanelGammaSource()
785 ofs.close(); in SetCurrentPanelGammaSource()
1211 std::ofstream ofs(path); in setDisplayIdleTimerEnabled() local
1212 if (!ofs.is_open()) { in setDisplayIdleTimerEnabled()
1216 ofs << enabled; in setDisplayIdleTimerEnabled()
1217 ofs.close(); in setDisplayIdleTimerEnabled()
1245 std::ofstream ofs(path); in setDisplayIdleDelayNanos() local
1246 if (!ofs.is_open()) { in setDisplayIdleDelayNanos()
[all …]
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenc_compute_variance.cpp66 ptrdiff_t ofs = -static_cast<ptrdiff_t>(step * stride); in brent_kung_prefix_sum() local
71 *da = *da + da[ofs]; in brent_kung_prefix_sum()
90 ptrdiff_t ofs = -static_cast<ptrdiff_t>(step * stride); in brent_kung_prefix_sum() local
95 *da = *da + da[ofs]; in brent_kung_prefix_sum()
Dastcenc_weight_align.cpp129 vfloat ofs = angle * mult; in compute_angular_offsets() local
130 storea(ofs, offsets + i); in compute_angular_offsets()
Dtinyexr.h5448 int ofs = filename_len - 1; in mz_zip_reader_locate_file() local
5450 if ((pFilename[ofs] == '/') || (pFilename[ofs] == '\\') || in mz_zip_reader_locate_file()
5451 (pFilename[ofs] == ':')) in mz_zip_reader_locate_file()
5453 } while (--ofs >= 0); in mz_zip_reader_locate_file()
5454 ofs++; in mz_zip_reader_locate_file()
5455 pFilename += ofs; in mz_zip_reader_locate_file()
5456 filename_len -= ofs; in mz_zip_reader_locate_file()
5862 static size_t mz_zip_file_write_callback(void *pOpaque, mz_uint64 ofs, in mz_zip_file_write_callback() argument
5864 (void)ofs; in mz_zip_file_write_callback()
/hardware/google/camera/common/sensor_listener/tests/
Dgoog_gyro_test.cc222 std::ofstream ofs(output_filename); in LogGyroDataToFile() local
224 ofs << gyro_timestamp_ns[i] << " " << azimuth[i] << " " << roll[i] << " " in LogGyroDataToFile()
Dgoog_sensor_sync_test.cc284 std::ofstream ofs(output_filename); in LogDataToFile() local
286 ofs << "vsync: " << vsync_timestamps_[i] in LogDataToFile()
/hardware/google/graphics/common/libhwc2.1/libdisplayinterface/
DExynosDisplayDrmInterface.cpp68 std::ofstream ofs(path); in writeIntToKernelFile() local
70 if (!ofs.is_open()) { in writeIntToKernelFile()
75 ofs << value << std::endl; in writeIntToKernelFile()
3032 std::ofstream ofs(kDpHotplugErrorCodeSysfsPath); in resetHotplugErrorCode() local
3033 if (ofs.is_open()) ofs << "0"; in resetHotplugErrorCode()
/hardware/google/graphics/common/libhwc2.1/libdevice/
DExynosDisplay.cpp6795 std::ofstream ofs(path); in setAllowWakeup() local
6796 if (ofs.is_open()) { in setAllowWakeup()
6797 ofs << enabled; in setAllowWakeup()
6798 if (ofs.fail()) { in setAllowWakeup()