Home
last modified time | relevance | path

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

12345678910>>...31

/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/cuttlefish/host/frontend/gcastv2/webrtc/
DSCTPHandler.cpp71 size_t offset = 12; in inject() local
72 while (offset < size) { in inject()
73 if (offset + 4 > size) { in inject()
77 size_t chunkLength = U16_AT(&data[offset + 2]); in inject()
79 if (offset + chunkLength > size) { in inject()
91 (offset + chunkLength == size) in inject()
92 || (offset + paddedChunkLength == size); in inject()
96 &data[offset], in inject()
107 offset += chunkLength; in inject()
109 if (offset == size) { in inject()
[all …]
DSTUNMessage.cpp77 size_t offset = mData.size(); in addAttribute() local
80 uint8_t *ptr = mData.data() + offset; in addAttribute()
92 size_t offset = mData.size(); in addMessageIntegrityAttribute() local
94 uint16_t truncatedLength = offset + 4; in addMessageIntegrityAttribute()
105 offset, in addMessageIntegrityAttribute()
148 size_t offset = 0; in validate() local
149 while (offset + 4 <= messageLength) { in validate()
150 auto attrType = UINT16_AT(&data[offset]); in validate()
158 auto attrLength = UINT16_AT(&data[offset + 2]); in validate()
160 if (offset + 4 + attrLength > messageLength) { in validate()
[all …]
DRTPSender.cpp132 size_t offset = 8; in processRTCP() local
134 auto SSRC = U32_AT(&data[offset]); in processRTCP()
135 auto fractionLost = data[offset + 4]; in processRTCP()
136 auto cumPacketsLost = U32_AT(&data[offset + 4]) & 0xffffff; in processRTCP()
150 offset += 6 * 4; in processRTCP()
171 size_t offset = 12; in processRTCP() local
172 size_t n = (size - offset) / 4; in processRTCP()
174 auto PID = U16_AT(&data[offset]); in processRTCP()
175 auto BLP = U16_AT(&data[offset + 2]); in processRTCP()
187 offset += 4; in processRTCP()
[all …]
/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/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/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/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/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/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/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/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.c69 const float *offset, float offset_temp_celsius);
171 static bool outlierCheck(struct OverTempCal *over_temp_cal, const float *offset,
188 static bool isValidOtcOffset(const float *offset, float offset_temp_celsius);
311 void overTempCalSetModel(struct OverTempCal *over_temp_cal, const float *offset, in overTempCalSetModel() argument
316 ASSERT_NOT_NULL(offset); in overTempCalSetModel()
340 if (isValidOtcOffset(offset, offset_temp_celsius)) { in overTempCalSetModel()
342 memcpy(over_temp_cal->model_data[0].offset, offset, in overTempCalSetModel()
343 sizeof(over_temp_cal->model_data[0].offset)); in overTempCalSetModel()
360 if (isValidOtcOffset(offset, offset_temp_celsius)) { in overTempCalSetModel()
361 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/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()
/device/google/cuttlefish/host/frontend/gcastv2/https/
DSupport.cpp36 size_t offset = 0; in hexdump() local
37 while (offset < size) { in hexdump()
38 printf("%08zx: ", offset); in hexdump()
41 if (offset + col < size) { in hexdump()
42 printf("%02x ", data[offset + col]); in hexdump()
55 if (offset + col < size && isprint(data[offset + col])) { in hexdump()
56 printf("%c", data[offset + col]); in hexdump()
57 } else if (offset + col < size) { in hexdump()
64 offset += 16; in hexdump()

12345678910>>...31