Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt_ro.c58 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq()
108 static int _nextprop(const void *fdt, int offset) in _nextprop() argument
114 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop()
124 return offset; in _nextprop()
126 offset = nextoffset; in _nextprop()
132 int fdt_subnode_offset_namelen(const void *fdt, int offset, in fdt_subnode_offset_namelen() argument
140 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
141 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
143 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen()
[all …]
Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument
82 if (((offset + len) < offset) in fdt_offset_ptr()
83 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr()
86 p = _fdt_offset_ptr(fdt, offset); in fdt_offset_ptr()
97 int offset = startoffset; in fdt_next_tag() local
101 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag()
105 offset += FDT_TAGSIZE; in fdt_next_tag()
112 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
119 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
123 offset += sizeof(struct fdt_property) - FDT_TAGSIZE in fdt_next_tag()
[all …]
Dfdt_sw.c75 int offset = fdt_size_dt_struct(fdt); in _fdt_grab_space() local
81 if ((offset + len < offset) || (offset + len > spaceleft)) in _fdt_grab_space()
84 fdt_set_size_dt_struct(fdt, offset + len); in _fdt_grab_space()
85 return _fdt_offset_ptr_w(fdt, offset); in _fdt_grab_space()
113 int offset; in fdt_add_reservemap_entry() local
120 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
121 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry()
124 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry()
128 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry()
174 int struct_top, offset; in _fdt_find_add_string() local
[all …]
Dlibfdt_internal.h65 int _fdt_check_node_offset(const void *fdt, int offset);
66 int _fdt_check_prop_offset(const void *fdt, int offset);
70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) in _fdt_offset_ptr() argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in _fdt_offset_ptr()
75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) in _fdt_offset_ptr_w() argument
77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset); in _fdt_offset_ptr_w()
/device/linaro/bootloader/arm-trusted-firmware/lib/libfdt/
Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument
79 unsigned absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr()
81 if ((absoffset < offset) in fdt_offset_ptr()
87 if (((offset + len) < offset) in fdt_offset_ptr()
88 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr()
91 return _fdt_offset_ptr(fdt, offset); in fdt_offset_ptr()
98 int offset = startoffset; in fdt_next_tag() local
102 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag()
106 offset += FDT_TAGSIZE; in fdt_next_tag()
113 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
[all …]
Dfdt_ro.c58 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq()
94 int offset; in fdt_get_max_phandle() local
96 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle()
97 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle()
100 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle()
103 if (offset < 0) in fdt_get_max_phandle()
106 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle()
134 static int _nextprop(const void *fdt, int offset) in _nextprop() argument
140 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop()
[all …]
Dfdt_sw.c75 int offset = fdt_size_dt_struct(fdt); in _fdt_grab_space() local
81 if ((offset + len < offset) || (offset + len > spaceleft)) in _fdt_grab_space()
84 fdt_set_size_dt_struct(fdt, offset + len); in _fdt_grab_space()
85 return _fdt_offset_ptr_w(fdt, offset); in _fdt_grab_space()
145 int offset; in fdt_add_reservemap_entry() local
152 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
153 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry()
156 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry()
160 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry()
206 int struct_top, offset; in _fdt_find_add_string() local
[all …]
Dlibfdt_internal.h65 int _fdt_check_node_offset(const void *fdt, int offset);
66 int _fdt_check_prop_offset(const void *fdt, int offset);
70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) in _fdt_offset_ptr() argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in _fdt_offset_ptr()
75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) in _fdt_offset_ptr_w() argument
77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset); in _fdt_offset_ptr_w()
/device/google/contexthub/util/common/
DJSONObject.cpp52 size_t offset = 0; in Parse() local
53 while (offset < size && isspace(data[offset])) { in Parse()
54 ++offset; in Parse()
57 if (offset == size) { in Parse()
61 if (data[offset] == '[') { in Parse()
63 ++offset; in Parse()
66 while (offset < size && isspace(data[offset])) { in Parse()
67 ++offset; in Parse()
70 if (offset == size) { in Parse()
74 if (data[offset] == ']') { in Parse()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/pl061/
Dpl061_gpio.c50 unsigned int data, offset; in pl061_get_direction() local
55 offset = gpio % GPIOS_PER_PL061; in pl061_get_direction()
57 if (data & BIT(offset)) in pl061_get_direction()
65 unsigned int data, offset; in pl061_set_direction() local
70 offset = gpio % GPIOS_PER_PL061; in pl061_set_direction()
72 data = mmio_read_8(base_addr + PL061_GPIO_DIR) | BIT(offset); in pl061_set_direction()
75 data = mmio_read_8(base_addr + PL061_GPIO_DIR) & ~BIT(offset); in pl061_set_direction()
91 unsigned int offset; in pl061_get_value() local
96 offset = gpio % GPIOS_PER_PL061; in pl061_get_value()
97 if (mmio_read_8(base_addr + BIT(offset + 2))) in pl061_get_value()
[all …]
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/
DSplitFspBin.py300 def AlignPtr (offset, alignment = 8): argument
301 return (offset + alignment - 1) & ~(alignment - 1)
351 def __init__(self, offset, secdata): argument
354 self.Offset = offset
357 def __init__(self, offset, filedata): argument
360 self.Offset = offset
365 offset = sizeof(self.FfsHdr)
367 while offset < ffssize:
368 sechdr = EFI_COMMON_SECTION_HEADER.from_buffer (self.FfsData, offset)
369 sec = Section (offset, self.FfsData[offset:offset + int(sechdr.Size)])
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DIndexRangeCache.h48 size_t offset,
54 size_t offset,
59 void invalidateRange(size_t offset, size_t size);
65 offset(0), in IndexRangeKey()
73 offset(_offset), in IndexRangeKey()
78 size_t end = offset + count * glSizeof(type);
79 size_t end_other = rhs.offset + rhs.count * glSizeof(rhs.type);
81 if (offset != rhs.offset) return offset < rhs.offset;
90 size_t offset; member
DIndexRangeCache.cpp23 size_t offset, in addRange() argument
31 mIndexRangeCache[IndexRangeKey(type, offset, count, primitiveRestartEnabled)] = r; in addRange()
35 size_t offset, in findRange() argument
42 IndexRangeKey(type, offset, count, primitiveRestartEnabled)); in findRange()
56 void IndexRangeCache::invalidateRange(size_t offset, size_t size) { in invalidateRange() argument
57 size_t invalidateStart = offset; in invalidateRange()
58 size_t invalidateEnd = offset + size; in invalidateRange()
63 size_t rangeStart = it->first.offset; in invalidateRange()
65 it->first.offset + in invalidateRange()
/device/google/contexthub/util/stm32_flash/
Dstm32_bl.c137 uint32_t offset = 0; in read_memory() local
139 while (ret == CMD_ACK && length > offset) { in read_memory()
143 write_addr(handle, addr+offset); in read_memory()
146 if (length-offset >= 256) { in read_memory()
150 handle->read_data(handle, &buffer[offset], 256); in read_memory()
151 offset += 256; in read_memory()
154 write_len(handle, length-offset); in read_memory()
157 handle->read_data(handle, &buffer[offset], length - offset); in read_memory()
158 offset = length; in read_memory()
172 uint32_t offset = 0; in write_memory() local
[all …]
/device/google/cuttlefish_common/host/commands/launch/
Dvsoc_shared_memory.cc36 uint32_t offset = 0; in OffsetOfRegionData() local
38 offset += in OffsetOfRegionData()
40 offset += in OffsetOfRegionData()
43 offset += 2 * sizeof(uint32_t); in OffsetOfRegionData()
44 return offset; in OffsetOfRegionData()
52 VSoCRegionAllocator(const VSoCRegionLayout& layout, uint32_t offset, in VSoCRegionAllocator()
55 begin_offset(offset), in VSoCRegionAllocator()
64 uint32_t offset, int log_size) { in WriteSignalTableDescription() argument
67 layout->futex_uaddr_table_offset = offset; in WriteSignalTableDescription()
68 offset += (1 << log_size) * sizeof(uint32_t); in WriteSignalTableDescription()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/SetStamp/
DSetStamp.c179 long offset, in ReadFromFile() argument
201 if (fseek (fp, offset, SEEK_SET) != 0) { in ReadFromFile()
219 long offset, in WriteToFile() argument
241 if (fseek (fp, offset, SEEK_SET) != 0) { in WriteToFile()
275 unsigned long offset; in SetStamp() local
297 if (ReadFromFile (fp, 0x3C, &offset, 4) != 0) { in SetStamp()
303 if (ReadFromFile (fp, offset, header, 4) != 0) { in SetStamp()
317 offset += 8; in SetStamp()
319 if (WriteToFile (fp, offset, &ltime, 4) != 0) { in SetStamp()
325 offset += 16; in SetStamp()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Scripts/LauterbachT32/
DEfiLoadDxe.cmm32 LOCAL &TopOfRam &offset
38 &offset=&TopOfRam
41 &offset=&offset&0xFFC00000
44 while &offset>0
47 if Data.Long(a:&offset)==0x20494249
50 if Data.Long(a:&offset+4)==0x54535953
53 if Data.Long(a:&offset+0x0c)==0
56 if Data.Long(a:&offset+8)<&TopOfRam
58 return Data.Long(a:&offset+8)
64 if &offset<0x400000
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey/
Dhisi_ipc.c97 unsigned int offset; in hisi_ipc_cpu_on_off() local
100 offset = cluster * 16 + cpu * 4; in hisi_ipc_cpu_on_off()
102 offset = cluster * 16 + cpu * 4 + 1; in hisi_ipc_cpu_on_off()
106 val |= (0x01 << offset); in hisi_ipc_cpu_on_off()
129 unsigned int offset; in hisi_ipc_cluster_on_off() local
132 offset = cluster * 4; in hisi_ipc_cluster_on_off()
134 offset = cluster * 4 + 1; in hisi_ipc_cluster_on_off()
138 val |= (0x01 << offset); in hisi_ipc_cluster_on_off()
160 unsigned int offset; in hisi_ipc_cpu_suspend() local
162 offset = cluster * 16 + cpu * 4 + 2; in hisi_ipc_cpu_suspend()
[all …]
/device/google/cuttlefish_common/common/libs/fs/
Dgce_fs.cpp90 int offset; in gce_fs_mkdirs() local
107 for (offset = 1; offset < len; offset++) { in gce_fs_mkdirs()
108 if (buf[offset] == '/' || offset == (len - 1)) { in gce_fs_mkdirs()
109 if (buf[offset] == '/') { in gce_fs_mkdirs()
110 buf[offset] = '\0'; in gce_fs_mkdirs()
126 if (buf[offset] == '\0') { in gce_fs_mkdirs()
127 buf[offset] = '/'; in gce_fs_mkdirs()
/device/google/cuttlefish_common/common/vsoc/lib/
Dregion_view.cpp31 region_->ProcessSignalsFromPeer([this](uint32_t offset) { in Work() argument
32 control_->SignalSelf(offset); in Work()
105 uint32_t offset = raw_offset & UADDR_OFFSET_MASK; in ProcessSignalsFromPeer() local
106 signal_handler(offset); in ProcessSignalsFromPeer()
109 region_offset_to_pointer<std::atomic<uint32_t>>(offset), false); in ProcessSignalsFromPeer()
139 uint32_t offset = pointer_to_region_offset(uaddr); in SendSignalToPeer() local
140 if (offset & ~UADDR_OFFSET_MASK) { in SendSignalToPeer()
145 size_t hash = (offset >> 2) & max_index; in SendSignalToPeer()
147 offset |= UADDR_OFFSET_ROUND_TRIP_FLAG; in SendSignalToPeer()
151 if (offsets[hash].compare_exchange_strong(expected, offset)) { in SendSignalToPeer()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dgzip.py123 self.offset = 0
228 self.offset += len(data)
258 offset = self.offset - self.extrastart
259 chunk = self.extrabuf[offset: offset + size]
262 self.offset += size
267 self.offset -= len(buf)
321 offset = self.offset - self.extrastart
322 self.extrabuf = self.extrabuf[offset:] + data
324 self.extrastart = self.offset
395 self.offset = 0
[all …]
/device/google/contexthub/firmware/os/algos/calibration/over_temp/
Dover_temp_cal.c66 const float *offset, float offset_temp_celsius);
168 static bool outlierCheck(struct OverTempCal *over_temp_cal, const float *offset,
185 static bool isValidOtcOffset(const float *offset, float offset_temp_celsius);
308 void overTempCalSetModel(struct OverTempCal *over_temp_cal, const float *offset, in overTempCalSetModel() argument
313 ASSERT_NOT_NULL(offset); in overTempCalSetModel()
337 if (isValidOtcOffset(offset, offset_temp_celsius)) { in overTempCalSetModel()
339 memcpy(over_temp_cal->model_data[0].offset, offset, in overTempCalSetModel()
340 sizeof(over_temp_cal->model_data[0].offset)); in overTempCalSetModel()
357 if (isValidOtcOffset(offset, offset_temp_celsius)) { in overTempCalSetModel()
358 memcpy(over_temp_cal->compensated_offset.offset, offset, in overTempCalSetModel()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/
Dsystem_table.py127 offset = self.membase + self.memsize
129 offset = offset & ~0x3FFFFF
131 offset = offset - 0x400000
134 while offset > self.membase:
136 … signature = struct.unpack("cccccccc", self.ec.getMemoryService().read(str(offset), 8, 32))
142 self.system_table_base = self.ec.getMemoryService().readMemory64(offset + 0x8)
144 self.system_table_base = self.ec.getMemoryService().readMemory32(offset + 0x8)
146 offset = offset - 0x400000
167 offset = conf_table_offset + (i * 0x18)
169 offset = conf_table_offset + (i * 0x14)
[all …]
/device/google/cuttlefish_common/host/vsoc/lib/
Dgralloc_buffer_region_view.cpp25 uint8_t* GrallocBufferRegionView::OffsetToBufferPtr(uint32_t offset) { in OffsetToBufferPtr() argument
26 if (offset <= control_->region_desc().offset_of_region_data || in OffsetToBufferPtr()
27 offset >= control_->region_size()) { in OffsetToBufferPtr()
30 << offset; in OffsetToBufferPtr()
33 return region_offset_to_pointer<uint8_t>(offset); in OffsetToBufferPtr()
/device/google/contexthub/util/nanotool/
Dlog.cpp77 int offset = 0; in DebugBuf() local
83 offset += snprintf(&line[offset], sizeof(line) - offset, "%02x ", in DebugBuf()
90 offset = 0; in DebugBuf()
93 offset += snprintf(&line[offset], sizeof(line) - offset, " "); in DebugBuf()
97 if (offset > 0) { in DebugBuf()
99 while (offset < 28) { in DebugBuf()
101 offset += 8; in DebugBuf()

12345678910>>...27