Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 14 of 14) sorted by relevance

/base/usb/usb_manager/services/native/src/
Dusb_descriptor_parser.cpp75 const uint8_t *buffer, uint32_t length, uint32_t &cursor, USBConfig &config) in ParseConfigDescriptor() argument
81 …USB_HILOGI(MODULE_USB_SERVICE, "parse begin length=%{public}u, cursor=%{public}u", length, cursor); in ParseConfigDescriptor()
89 cursor += configDescriptorSize; in ParseConfigDescriptor()
101 for (int32_t i = 0; (i < configDescriptor.bNumInterfaces) && (cursor < length); ++i) { in ParseConfigDescriptor()
105 … buffer + cursor + interfaceCursor, length - cursor - interfaceCursor, interfaceCursor, interface); in ParseConfigDescriptor()
112 cursor += interfaceCursor; in ParseConfigDescriptor()
119 const uint8_t *buffer, uint32_t length, uint32_t &cursor, UsbInterface &interface) in ParseInterfaceDescriptor() argument
126 while (static_cast<uint32_t>(cursor) < length) { in ParseInterfaceDescriptor()
131 …riptorHeader descriptorHeader = *(reinterpret_cast<const UsbdDescriptorHeader *>(buffer + cursor)); in ParseInterfaceDescriptor()
139 cursor += descriptorHeader.bLength; in ParseInterfaceDescriptor()
[all …]
Dusb_service.cpp822 uint32_t cursor = CURSOR_INIT; in GetConfigDescriptor() local
825 if (length <= cursor) { in GetConfigDescriptor()
832 …ret = UsbDescriptorParser::ParseConfigDescriptor(buffer + cursor, length - cursor, configCursor, c… in GetConfigDescriptor()
837 cursor += configCursor; in GetConfigDescriptor()
/base/hiviewdfx/faultloggerd/test/funchook/
Ddfx_hook_utils.c59 unw_cursor_t cursor; in LogBacktrace() local
60 unw_init_local_with_as(as, &cursor, &context); in LogBacktrace()
75 if (unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t*)(&pc))) { in LogBacktrace()
84 relPc = unw_get_rel_pc(&cursor); in LogBacktrace()
85 struct map_info* mapInfo = unw_get_map(&cursor); in LogBacktrace()
90 sz = unw_get_previous_instr_sz(&cursor); in LogBacktrace()
112 int ret = unw_step(&cursor); in LogBacktrace()
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddwarf_unwinder.cpp82 unw_cursor_t cursor; in UnwindWithContext() local
83 unw_init_local_with_as(as, &cursor, &context); in UnwindWithContext()
97 if (unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t*)(&(frame.pc)))) { in UnwindWithContext()
101 if (unw_get_reg(&cursor, UNW_REG_SP, (unw_word_t*)(&(frame.sp)))) { in UnwindWithContext()
110 frame.relPc = unw_get_rel_pc(&cursor); in UnwindWithContext()
111 unw_word_t sz = unw_get_previous_instr_sz(&cursor); in UnwindWithContext()
116 unw_set_adjust_pc(&cursor, frame.pc); in UnwindWithContext()
120 struct map_info* map = unw_get_map(&cursor); in UnwindWithContext()
146 } while ((unw_step(&cursor) > 0) && (curIndex < DfxConfig::GetConfig().maxFrameNums)); in UnwindWithContext()
/base/usb/usb_manager/services/native/include/
Dusb_descriptor_parser.h28 …static int32_t ParseConfigDescriptor(const uint8_t *buffer, uint32_t length, uint32_t &cursor, USB…
29 … static int32_t ParseInterfaceDescriptor(const uint8_t *buffer, uint32_t length, uint32_t &cursor,
31 …static int32_t ParseEndpointDescriptor(const uint8_t *buffer, uint32_t length, uint32_t &cursor, U…
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_unwind_remote.cpp140 uint64_t DfxUnwindRemote::DoAdjustPc(unw_cursor_t & cursor, uint64_t pc) in DoAdjustPc() argument
149 ret = pc - unw_get_previous_instr_sz(&cursor); in DoAdjustPc()
179 std::shared_ptr<DfxThread>& thread, unw_cursor_t& cursor, std::shared_ptr<DfxProcess> process) in DoUnwindStep() argument
184 if (unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t*)(&framePc))) { in DoUnwindStep()
190 if (unw_get_reg(&cursor, UNW_REG_SP, (unw_word_t*)(&frameSp))) { in DoUnwindStep()
200 uint64_t relPc = unw_get_rel_pc(&cursor); in DoUnwindStep()
202 relPc = DoAdjustPc(cursor, relPc); in DoUnwindStep()
203 framePc = DoAdjustPc(cursor, framePc); in DoUnwindStep()
205 unw_set_adjust_pc(&cursor, framePc); in DoUnwindStep()
218 ret = UpdateAndFillFrame(cursor, frame, thread, ProcessDumper::GetInstance().IsCrash()); in DoUnwindStep()
[all …]
Ddfx_unwind_remote.h49 … std::shared_ptr<DfxThread> &thread, unw_cursor_t &cursor, std::shared_ptr<DfxProcess> process);
50 uint64_t DoAdjustPc(unw_cursor_t &cursor, uint64_t pc);
51 bool UpdateAndFillFrame(unw_cursor_t& cursor, std::shared_ptr<DfxFrame> frame,
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
Ddfx_crash_local_handler.c90 unw_cursor_t* cursor = NULL; in UnwindWithContext() local
91 GET_MEMORY(cursor, sizeof(unw_cursor_t)); in UnwindWithContext()
92 if (!cursor) { in UnwindWithContext()
97 if (unw_init_local(cursor, context) != 0) { in UnwindWithContext()
99 munmap(cursor, sizeof(unw_cursor_t)); in UnwindWithContext()
115 if (unw_get_reg(cursor, UNW_REG_IP, (unw_word_t*)(&pc))) { in UnwindWithContext()
126 relPc = unw_get_rel_pc(cursor); in UnwindWithContext()
127 sz = unw_get_previous_instr_sz(cursor); in UnwindWithContext()
132 struct map_info* mapInfo = unw_get_map(cursor); in UnwindWithContext()
139 if (unw_get_proc_name(cursor, symbol, sizeof(symbol), (unw_word_t*)(&offset)) == 0) { in UnwindWithContext()
[all …]
/base/startup/init/services/begetctl/shell/
Dshell_bas.c213 shell->cursor = 0; in BShellEnvHandleEnter()
249 if (shell->cursor == shell->length) { in BShellEnvHandleBackspace()
251 shell->cursor--; in BShellEnvHandleBackspace()
254 } else if (shell->cursor > 0) { in BShellEnvHandleBackspace()
255 for (short i = 0; i < shell->length - shell->cursor; i++) { in BShellEnvHandleBackspace()
256 shell->buffer[shell->cursor + i - 1] = shell->buffer[shell->cursor + i]; in BShellEnvHandleBackspace()
259 shell->cursor--; in BShellEnvHandleBackspace()
262 for (short i = shell->cursor; i < shell->length; i++) { in BShellEnvHandleBackspace()
266 for (short i = shell->length - shell->cursor + 1; i > 0; i--) { in BShellEnvHandleBackspace()
287 if (shell->length == shell->cursor) { in BShellEnvHandleNormal()
[all …]
Dshell_bas.h84 uint16_t cursor; member
/base/startup/init/test/unittest/param/
Dparam_shell_unittest.cpp154 bshd->cursor = strlen("testb"); in TestParamShellcmdEndkey()
161 bshd->cursor = strlen(bshd->buffer); in TestParamShellcmdEndkey()
176 bshd->cursor = 1; in TestParamShellcmdEndkey()
199 bshd->cursor = 0;
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
Dlog_util.cpp51 void LogUtil::GetTrace(stringstream& buffer, int cursor, const string& reg, string& result, string … in GetTrace() argument
53 buffer.seekg(cursor, ios::beg); in GetTrace()
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/include/
Dlog_util.h47 …static void GetTrace(std::stringstream& buffer, int cursor, const std::string& reg, std::string& r…
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
Ditypes_util.h170 uint8_t *cursor = buffer.get(); in MarshalToBuffer() local
171 if (!input.WriteToBuffer(cursor, leftSize)) { in MarshalToBuffer()
187 uint8_t *cursor = buffer.get(); in MarshalToBuffer() local
189 if (!entry.WriteToBuffer(cursor, size)) { in MarshalToBuffer()