Searched defs:region (Results 1 - 24 of 24) sorted by relevance

/device/google/cuttlefish_common/common/vsoc/lib/
H A Dscreen_region_view_test.cpp27 auto region = ScreenRegionView::GetInstance(vsoc::GetDomain().c_str()); local
29 auto region = ScreenRegionView::GetInstance(); local
31 if (!region) {
32 fprintf(stderr, "Error opening region\n");
37 buffer_id = region->WaitForNewFrameSince(&frame_num);
H A Dlock_guard.h59 LockGuard(Lock* lock, RegionView* region) : lock_(lock), region_(region) { argument
H A Dlock_common.cpp142 void layout::GuestAndHostLock::Lock(RegionView* region) { argument
149 region->WaitForSignal(&lock_uint32_, expected);
153 void layout::GuestAndHostLock::Unlock(RegionView* region) { argument
154 region->SendSignal(UnlockCommon(gettid()), &lock_uint32_);
157 bool layout::GuestAndHostLock::Recover(RegionView* region) { argument
176 region->SendSignal(UnlockCommon(expected_state), &lock_uint32_);
H A Dregion_view.cpp14 vsoc::RegionWorker::RegionWorker(RegionView* region, argument
17 region_(region),
191 new vsoc::RegionWorker(this /* region */, control_));
H A Dcircqueue_test.cpp24 #define EXPECT_BLOCK(region, tid) \
25 EXPECT_TRUE(region.IsBlocking(tid))
52 intptr_t ReadBytes(CircQueueRegionView* region, int bytes) { argument
54 CircQueueTestRegionLayout* layout = region->data();
55 return layout->byte_queue.Read(region, buffer_out, bytes);
58 intptr_t WriteBytes(CircQueueRegionView* region, int bytes) { argument
60 CircQueueTestRegionLayout* layout = region->data();
61 return layout->byte_queue.Write(region, buffer_in, bytes);
64 intptr_t ReadPacket(CircQueueRegionView* region, int max_size) { argument
66 CircQueueTestRegionLayout* layout = region
70 WritePacket(CircQueueRegionView* region, int packet_size) argument
76 ReadBytesInChunk(CircQueueRegionView* region, int total_size, int chuck_size) argument
92 WriteBytesInChunk(CircQueueRegionView* region, int total_size, int chuck_size) argument
108 ReadManyPackets(CircQueueRegionView* region, int num_packets, int packet_size) argument
121 WriteManyPackets(CircQueueRegionView* region, int num_packets, int packet_size) argument
[all...]
H A Dvsoc_memory.cpp103 // Returns the minimum size the region needs to accomodate the signaling
143 << " managed by unknown region: " << regions[i].managed_by()
152 // and region descriptors
183 LOG(ERROR) << "Unable to resize region: " << region_name
188 auto& region = regions_[index]; variable
189 auto min_required_size = region.GetMinRegionSize();
194 LOG(ERROR) << "Requested resize of region " << region_name << " to "
200 region.SetRegionSize(new_min_size);
202 // Get new offset for next region
203 auto offset = region
260 WriteRegionDescription(vsoc_device_region* shmem_region_desc, const VSoCRegionLayoutImpl& region) argument
306 const auto& region = regions_[idx]; local
[all...]
/device/google/cuttlefish_common/host/commands/launch/
H A Dscreen_region_handler.cc24 auto region = local
27 if (!region) {
28 LOG(FATAL) << "Screen region was not found";
31 auto dest = region->data();
H A Dwifi_region_handler.cc28 auto region = WifiExchangeView::GetInstance(vsoc::GetDomain().c_str()); local
30 if (!region) {
31 LOG(FATAL) << "Wifi region not found";
42 region->SetGuestMACAddress(guest_mac);
50 region->SetHostMACAddress(host_mac);
H A Dril_region_handler.cc132 auto region = local
135 if (!region) {
136 LOG(ERROR) << "Ril region was not found";
140 auto dest = region->data();
/device/linaro/hikey/gralloc960/
H A Dgralloc_buffer_priv.cpp48 ALOGE("Failed to allocate page for shared attribute region");
53 * Default protection on the shm region is PROT_EXEC | PROT_READ | PROT_WRITE.
68 /* The attribute region contains signed integers only.
72 attr_region *region = (attr_region *) hnd->attr_base; local
80 ALOGE("Failed to mmap shared attribute region");
113 ALOGE("Shared attribute region not avail to free");
118 ALOGW("Warning shared attribute region mapped at free. Unmapping");
H A Dgralloc_buffer_priv.h94 ALOGE("Shared attribute region not available to be mapped");
106 ALOGE("Failed to mmap shared attribute region err=%s",strerror(errno));
155 attr_region *region = (attr_region *) hnd->attr_base; local
160 memcpy( &region->crop_top, val, sizeof(int)*4 );
165 region->use_yuv_transform = *val;
170 region->use_sparse_alloc = *val;
189 attr_region *region = (attr_region *) hnd->attr_base; local
194 memcpy( val, &region->crop_top, sizeof(int)*4 );
199 *val = region->use_yuv_transform;
204 *val = region
[all...]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
H A Dregtrav.c67 onig_capture_tree_traverse(OnigRegion* region, int at, argument
71 return capture_tree_traverse(region->history_root, at,
H A Dregexec.c155 onig_get_capture_tree(OnigRegion* region) argument
157 return region->history_root;
162 onig_region_clear(OnigRegion* region) argument
166 for (i = 0; i < region->num_regs; i++) {
167 region->beg[i] = region->end[i] = ONIG_REGION_NOTPOS;
170 history_root_free(region);
175 onig_region_resize(OnigRegion* region, int n) argument
177 region->num_regs = n;
182 if (region
205 onig_region_resize_clear(OnigRegion* region, int n) argument
216 onig_region_set(OnigRegion* region, int at, int beg, int end) argument
231 onig_region_init(OnigRegion* region) argument
1328 OnigRegion* region; local
3062 onig_match(regex_t* reg, const UChar* str, const UChar* end, const UChar* at, OnigRegion* region, OnigOptionType option) argument
3363 onig_search(regex_t* reg, const UChar* str, const UChar* end, const UChar* start, const UChar* range, OnigRegion* region, OnigOptionType option) argument
[all...]
H A Dregint.h740 OnigRegion* region; member in struct:__anon6943
H A Dregparse.c855 const UChar* name_end, OnigRegion *region)
867 if (IS_NOT_NULL(region)) {
869 if (region->beg[nums[i]] != ONIG_REGION_NOTPOS)
888 const UChar* name_end, OnigRegion* region)
854 onig_name_to_backref_number(regex_t* reg, const UChar* name, const UChar* name_end, OnigRegion *region) argument
887 onig_name_to_backref_number(regex_t* reg, const UChar* name, const UChar* name_end, OnigRegion* region) argument
/device/google/cuttlefish_common/guest/vsoc/lib/
H A Dvsoc_driver_test.cpp30 void BasicWaitForSignal(vsoc::E2EPrimaryRegionView* region, argument
33 ASSERT_EQ(expected_start, region->read_guest_self_register());
34 int rval = region->wait_guest_self_register(expected_start);
37 EXPECT_EQ(expected_finish, region->read_guest_self_register());
44 auto region = vsoc::E2EPrimaryRegionView::GetInstance(); local
45 ASSERT_TRUE(region != NULL);
47 region->write_guest_self_register(INITIAL_SIGNAL);
48 std::thread waiter(BasicWaitForSignal, region, INITIAL_SIGNAL, WAKE_SIGNAL);
51 region->signal_guest_to_host_register();
54 region
[all...]
H A Dguest_region_e2e_test.cpp52 // 1. Write our strings to the first region
53 // 2. Ensure that our peer hasn't signalled the second region. That would
55 // 3. Send the interrupt on the first region
56 // 4. Wait for our peer's interrupt on the first region
57 // 5. Confirm that we can see our peer's writes in the first region
58 // 6. Initialize our strings in the second region
59 // 7. Send an interrupt on the second region to our peer
60 // 8. Wait for our peer's interrupt on the second region
61 // 9. Confirm that we can see our peer's writes in the second region
63 // 11. Confirm that no interrupt is pending in the first region
244 auto region = vsoc::E2EPrimaryRegionView::GetInstance(); local
[all...]
/device/google/cuttlefish_common/host/vsoc/lib/
H A Dhost_region_e2e_test.cpp26 // 1. Write our strings to the first region
27 // 2. Ensure that our peer hasn't signalled the second region. That would
29 // 3. Send the interrupt on the first region
30 // 4. Wait for our peer's interrupt on the first region
31 // 5. Confirm that we can see our peer's writes in the first region
32 // 6. Initialize our strings in the second region
33 // 7. Send an interrupt on the second region to our peer
34 // 8. Wait for our peer's interrupt on the second region
35 // 9. Confirm that we can see our peer's writes in the second region
37 // 11. Confirm that no interrupt is pending in the first region
125 auto region = local
[all...]
/device/google/cuttlefish_common/guest/hals/gralloc/legacy/
H A Dregion_registry.cpp99 GrallocRegion* region = reinterpret_cast<GrallocRegion*>( local
101 if (!region) {
102 region = new GrallocRegion;
103 hashmapPut(hash, strdup(region_name), region);
105 return region;
110 * This method takes a region to simplfy the refactoring if we go to
120 GrallocRegion* region = lock_region_for_handle(hnd, name_buf); local
121 if (!region->base_) {
126 unlock_region(region);
136 region
155 GrallocRegion* region = lock_region_for_handle(hnd, name_buf); local
[all...]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/tzc/
H A Dtzc400.c146 * `tzc400_configure_region0` is used to program region 0 into the TrustZone
148 * to any other region, and is enabled on all filters; this cannot be
162 * controller. A region can be associated with more than one filter. The
166 * for this region (see comment for that function).
169 int region,
179 (region >= 0) && (region < tzc400.num_regions));
193 _tzc400_configure_region(tzc400.base, filters, region, region_base,
168 tzc400_configure_region(unsigned int filters, int region, unsigned long long region_base, unsigned long long region_top, tzc_region_attributes_t sec_attr, unsigned int nsaid_permissions) argument
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
H A Dio_block.c127 io_block_spec_t *region; local
133 region = (io_block_spec_t *)spec;
135 assert(((region->offset % cur->dev_spec->block_size) == 0) &&
136 ((region->length % cur->dev_spec->block_size) == 0));
138 cur->base = region->offset;
139 cur->size = region->length;
/device/linaro/bootloader/arm-trusted-firmware/include/drivers/arm/
H A Dtzc400.h99 * All TZC region configuration registers are placed one after another. It
100 * depicts size of block of registers for programming each region.
117 int region,
135 int region,
158 int region,
164 tzc400_configure_region(filters, region, region_base,
156 tzc_configure_region( unsigned int filters, int region, unsigned long long region_base, unsigned long long region_top, tzc_region_attributes_t sec_attr, unsigned int ns_device_access) argument
/device/google/marlin/camera/usbcamcore/src/
H A DQCameraMjpegDecode.cpp88 jpeg_rectangle_t region; member in struct:__anon1329
348 dest.region = p_args->region;
350 // if region is defined, re-assign the output width/height
354 if (p_args->region.right || p_args->region.bottom)
359 (uint32_t)(dest.region.right - dest.region.left + 1));
361 (uint32_t)(dest.region.bottom - dest.region
[all...]
/device/google/marlin/camera/QCamera2/HAL3/
H A DQCamera3HWI.cpp5506 // Adjust crop region from sensor output coordinate system to active
5584 // Adjust crop region from sensor output coordinate system to active
5906 // Adjust crop region from sensor output coordinate system to active
5949 // Adjust crop region from sensor output coordinate system to active
6640 * @region : int32_t destination array
6646 int32_t *region, int weight)
6648 region[0] = rect.left;
6649 region[1] = rect.top;
6650 region[2] = rect.left + rect.width;
6651 region[
6645 convertToRegions(cam_rect_t rect, int32_t *region, int weight) argument
[all...]

Completed in 251 milliseconds