/haiku/src/apps/cortex/Persistence/Wrappers/ |
H A D | MediaFormatIO.cpp | 197 ExportContext& context) { in write_colorspace_attr() argument 201 context.writeAttr(key, "B_RGB32"); in write_colorspace_attr() 204 context.writeAttr(key, "B_RGBA32"); in write_colorspace_attr() 207 context.writeAttr(key, "B_RGB24"); in write_colorspace_attr() 210 context.writeAttr(key, "B_RGB16"); in write_colorspace_attr() 213 context.writeAttr(key, "B_RGB15"); in write_colorspace_attr() 216 context.writeAttr(key, "B_RGBA15"); in write_colorspace_attr() 219 context.writeAttr(key, "B_CMAP8"); in write_colorspace_attr() 222 context.writeAttr(key, "B_GRAY8"); in write_colorspace_attr() 225 context.writeAttr(key, "B_GRAY1"); in write_colorspace_attr() [all …]
|
H A D | FlatMessageIO.cpp | 95 ExportContext& context) const { in xmlExportBegin() 97 context.beginElement(s_element); in xmlExportBegin() 101 ExportContext& context) const { in xmlExportAttributes() 103 context.writeAttr("encoding", "base64"); in xmlExportAttributes() 107 ExportContext& context) const { in xmlExportContent() 109 context.beginContent(); in xmlExportContent() 136 context.writeString(context.indentString()); in xmlExportContent() 137 context.writeString(pos, chunk); in xmlExportContent() 138 context.writeString("\n"); in xmlExportContent() 151 ExportContext& context) const { in xmlExportEnd() [all …]
|
H A D | MediaFormatIO.h | 104 ExportContext& context) const; 107 ExportContext& context) const; 110 ExportContext& context) const; 113 ExportContext& context) const; 118 ImportContext& context); 123 ImportContext& context); 128 ImportContext& context); 132 ImportContext& context); 135 ImportContext& context); 139 ImportContext& context); [all …]
|
H A D | MessageIO.h | 94 ExportContext& context) const; 97 ExportContext& context) const; 100 ExportContext& context) const; 103 ExportContext& context) const; 109 ImportContext& context); 114 ImportContext& context); 119 ImportContext& context); 123 ImportContext& context); 126 ImportContext& context); 130 ImportContext& context); [all …]
|
/haiku/src/libs/zydis/Zydis/ |
H A D | FormatterIntel.c | 46 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context) in ZydisFormatterIntelFormatInstruction() argument 50 ZYAN_ASSERT(context); in ZydisFormatterIntelFormatInstruction() 51 ZYAN_ASSERT(context->instruction); in ZydisFormatterIntelFormatInstruction() 52 ZYAN_ASSERT(context->operands); in ZydisFormatterIntelFormatInstruction() 54 ZYAN_CHECK(formatter->func_print_prefixes(formatter, buffer, context)); in ZydisFormatterIntelFormatInstruction() 55 ZYAN_CHECK(formatter->func_print_mnemonic(formatter, buffer, context)); in ZydisFormatterIntelFormatInstruction() 59 for (ZyanU8 i = 0; i < context->instruction->operand_count_visible; ++i) in ZydisFormatterIntelFormatInstruction() 61 const ZydisDecodedOperand* const operand = &context->operands[i]; in ZydisFormatterIntelFormatInstruction() 82 context->operand = operand; in ZydisFormatterIntelFormatInstruction() 87 status = formatter->func_pre_operand(formatter, buffer, context); in ZydisFormatterIntelFormatInstruction() [all …]
|
H A D | FormatterATT.c | 44 ZydisFormatterBuffer* buffer, ZydisFormatterContext* context) in ZydisFormatterATTFormatInstruction() argument 48 ZYAN_ASSERT(context); in ZydisFormatterATTFormatInstruction() 49 ZYAN_ASSERT(context->instruction); in ZydisFormatterATTFormatInstruction() 50 ZYAN_ASSERT(context->operands); in ZydisFormatterATTFormatInstruction() 52 ZYAN_CHECK(formatter->func_print_prefixes(formatter, buffer, context)); in ZydisFormatterATTFormatInstruction() 53 ZYAN_CHECK(formatter->func_print_mnemonic(formatter, buffer, context)); in ZydisFormatterATTFormatInstruction() 58 const ZyanI8 c = (ZyanI8)context->instruction->operand_count_visible - 1; in ZydisFormatterATTFormatInstruction() 61 const ZydisDecodedOperand* const operand = &context->operands[i]; in ZydisFormatterATTFormatInstruction() 82 context->operand = operand; in ZydisFormatterATTFormatInstruction() 87 status = formatter->func_pre_operand(formatter, buffer, context); in ZydisFormatterATTFormatInstruction() [all …]
|
H A D | FormatterBase.c | 81 ZydisFormatterContext* context, const ZydisDecodedOperand* operand) in ZydisFormatterHelperGetExplicitSize() argument 84 ZYAN_ASSERT(context); in ZydisFormatterHelperGetExplicitSize() 101 if (!context->operands) in ZydisFormatterHelperGetExplicitSize() 111 if (context->instruction->operand_count_visible < 2) in ZydisFormatterHelperGetExplicitSize() 115 if ((context->operands[1].type == ZYDIS_OPERAND_TYPE_UNUSED) || in ZydisFormatterHelperGetExplicitSize() 116 (context->operands[1].type == ZYDIS_OPERAND_TYPE_IMMEDIATE)) in ZydisFormatterHelperGetExplicitSize() 118 return context->operands[0].size; in ZydisFormatterHelperGetExplicitSize() 120 if (context->operands[0].size != context->operands[1].size) in ZydisFormatterHelperGetExplicitSize() 122 return context->operands[0].size; in ZydisFormatterHelperGetExplicitSize() 124 if ((context->operands[1].type == ZYDIS_OPERAND_TYPE_REGISTER) && in ZydisFormatterHelperGetExplicitSize() [all …]
|
/haiku/src/tests/kits/app/broster/ |
H A D | BroadcastTester.cpp | 164 LaunchContext context; in BroadcastTestA2() local 170 CHK(context(caller1, appType1, &team1) == B_OK); in BroadcastTestA2() 176 CHK(context(caller2, appType2, &team2) == B_OK); in BroadcastTestA2() 181 CHK(context(caller3, appType3, &team3) == B_OK); in BroadcastTestA2() 186 CHK(context(caller4, appType4, &team4) == B_OK); in BroadcastTestA2() 188 context.WaitForMessage(team1, MSG_READY_TO_RUN); in BroadcastTestA2() 189 context.WaitForMessage(team2, MSG_READY_TO_RUN); in BroadcastTestA2() 190 context.WaitForMessage(team3, MSG_READY_TO_RUN); in BroadcastTestA2() 191 context.WaitForMessage(team4, MSG_READY_TO_RUN); in BroadcastTestA2() 196 context.WaitForMessage(team1, MSG_MESSAGE_RECEIVED); in BroadcastTestA2() [all …]
|
H A D | LaunchTester.cpp | 275 LaunchContext context; in CommonLaunchTest1() local 278 CHK(context(caller, uninstalledType, &team) == B_LAUNCH_FAILED_APP_NOT_FOUND); in CommonLaunchTest1() 289 LaunchContext context; in CommonLaunchTest2() local 293 CHK(context(caller, fileType1, &team) == B_LAUNCH_FAILED_NO_PREFERRED_APP); in CommonLaunchTest2() 305 LaunchContext context; in CommonLaunchTest3() local 309 CHK(context(caller, fileType1, &team) == B_LAUNCH_FAILED_APP_NOT_FOUND); in CommonLaunchTest3() 323 LaunchContext context; in CommonLaunchTest4() local 328 CHK(context(caller, fileType1, &team) == B_OK); in CommonLaunchTest4() 332 context.Terminate(); in CommonLaunchTest4() 334 CHK(context.CheckNextMessage(caller, team, cookie, MSG_STARTED)); in CommonLaunchTest4() [all …]
|
H A D | RosterWatchingTester.cpp | 111 check_watching_message(LaunchContext &context, team_id team, int32 &cookie, in check_watching_message() argument 115 CHK(context.WaitForMessage(team, MSG_MESSAGE_RECEIVED, false, in check_watching_message() 117 BMessage *container = context.NextMessageFrom(team, cookie); in check_watching_message() 231 LaunchContext context; in WatchingTest2() local 237 CHK(context(caller1, appType1, &team1) == B_OK); in WatchingTest2() 238 context.WaitForMessage(team1, MSG_READY_TO_RUN); in WatchingTest2() 245 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_STARTED)); in WatchingTest2() 246 CHK(context.CheckMainArgsMessage(caller1, team1, cookie1, &ref1, false)); in WatchingTest2() 247 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_READY_TO_RUN)); in WatchingTest2() 253 CHK(context(caller2, appType2, &team2) == B_OK); in WatchingTest2() [all …]
|
/haiku/src/libs/libsolv/solv/ |
H A D | sha2.c | 332 void solv_SHA256_Init(SHA256_CTX* context) { in solv_SHA256_Init() argument 333 if (context == (SHA256_CTX*)0) { in solv_SHA256_Init() 336 MEMCPY_BCOPY(context->state, sha256_initial_hash_value, SHA256_DIGEST_LENGTH); in solv_SHA256_Init() 337 MEMSET_BZERO((char *)context->buffer, SHA256_BLOCK_LENGTH); in solv_SHA256_Init() 338 context->bitcount = 0; in solv_SHA256_Init() 378 static void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform() argument 383 W256 = context->buffer; in SHA256_Transform() 386 a = context->state[0]; in SHA256_Transform() 387 b = context->state[1]; in SHA256_Transform() 388 c = context->state[2]; in SHA256_Transform() [all …]
|
/haiku/src/bin/debug/strace/ |
H A D | TypeHandler.cpp | 100 string GetParameterValue(Context &context, Parameter *, const void *address) in GetParameterValue() argument 102 return RenderValue(context, get_value<status_t>(address)); in GetParameterValue() 105 string GetReturnValue(Context &context, uint64 value) in GetReturnValue() argument 107 return RenderValue(context, value); in GetReturnValue() 111 string RenderValue(Context &context, uint64 value) const in RenderValue() argument 113 string rendered = context.FormatUnsigned(value); in RenderValue() 132 read_string(Context &context, void *data) in read_string() argument 134 if (data == NULL || !context.GetContents(Context::STRINGS)) in read_string() 135 return context.FormatPointer(data); in read_string() 139 status_t error = context.Reader().Read(data, buffer, sizeof(buffer), bytesRead); in read_string() [all …]
|
H A D | NetworkTypes.cpp | 30 obtain_pointer_data(Context &context, Type *data, void *address, uint32 what) in obtain_pointer_data() argument 32 if (address == NULL || !context.GetContents(what)) in obtain_pointer_data() 37 status_t err = context.Reader().Read(address, data, sizeof(Type), bytesRead); in obtain_pointer_data() 55 format_iovecs(Context &context, const iovec *iov, int iovlen) in format_iovecs() argument 64 status_t err = context.Reader().Read((void*)iov, vecs, sizeof(vecs), bytesRead); in format_iovecs() 66 r += context.FormatPointer(iov); in format_iovecs() 67 r += ", " + context.FormatSigned(iovlen); in format_iovecs() 76 r += "{iov_base=" + context.FormatPointer(vecs[i].iov_base); in format_iovecs() 77 r += ", iov_len=" + context.FormatUnsigned(vecs[i].iov_len); in format_iovecs() 87 TypeHandlerImpl<iovec *>::GetParameterValue(Context &context, Parameter *param, in GetParameterValue() argument [all …]
|
H A D | events.cpp | 87 read_fdset(Context &context, void *data) in read_fdset() argument 93 status_t err = context.Reader().Read(data, &tmp, sizeof(tmp), bytesRead); in read_fdset() 95 return context.FormatPointer(data); in read_fdset() 113 r += context.FormatUnsigned(fd); in read_fdset() 130 TypeHandlerImpl<fd_set *>::GetParameterValue(Context &context, Parameter *, in GetParameterValue() argument 134 if (data != NULL && context.GetContents(Context::SIMPLE_STRUCTS)) in GetParameterValue() 135 return read_fdset(context, data); in GetParameterValue() 136 return context.FormatPointer(data); in GetParameterValue() 142 TypeHandlerImpl<fd_set *>::GetReturnValue(Context &context, uint64 value) in GetReturnValue() argument 144 return context.FormatPointer((void *)value); in GetReturnValue() [all …]
|
/haiku/src/apps/cortex/RouteApp/ |
H A D | LiveNodeIO.cpp | 64 const NodeSetIOContext* context, in LiveNodeIO() argument 70 ASSERT(context); in LiveNodeIO() 74 context, in LiveNodeIO() 92 const NodeSetIOContext* context, in getNode() argument 96 ASSERT(context); in getNode() 101 err = context->getNodeFor(key(), outNode); in getNode() 153 ExportContext& context) const { in xmlExportBegin() 156 context.reportError( in xmlExportBegin() 162 context.beginElement(_LIVE_NODE_ELEMENT); in xmlExportBegin() 166 ExportContext& context) const { in xmlExportAttributes() [all …]
|
H A D | DormantNodeIO.cpp | 283 ExportContext& context) const { in xmlExportBegin() 286 context.reportError( in xmlExportBegin() 292 context.beginElement(_DORMANT_NODE_ELEMENT); in xmlExportBegin() 296 ExportContext& context) const { in xmlExportAttributes() 298 context.writeAttr("key", m_nodeKey); in xmlExportAttributes() 302 ExportContext& context) const { in xmlExportContent() 304 context.beginContent(); in xmlExportContent() 308 context.beginElement(_NAME_ELEMENT); in xmlExportContent() 309 context.beginContent(); in xmlExportContent() 310 context.writeString(m_dormantName); in xmlExportContent() [all …]
|
H A D | ConnectionIO.cpp | 75 const NodeSetIOContext* context) : in ConnectionIO() argument 84 ASSERT(context); in ConnectionIO() 94 context, in ConnectionIO() 109 context, in ConnectionIO() 143 const NodeSetIOContext* context, in instantiate() argument 156 err = m_outputNodeIO->getNode(manager, context, &node); in instantiate() 200 err = m_inputNodeIO->getNode(manager, context, &node); in instantiate() 289 ExportContext& context) const { in xmlExportBegin() 292 context.reportError( in xmlExportBegin() 298 context.beginElement(_CONNECTION_ELEMENT); in xmlExportBegin() [all …]
|
H A D | ConnectionIO.h | 72 const NodeSetIOContext* context); 82 const NodeSetIOContext* context, 94 ExportContext& context) const; 97 ExportContext& context) const; 100 ExportContext& context) const; 103 ExportContext& context) const; 108 ImportContext& context); 113 ImportContext& context); 118 ImportContext& context); 122 ImportContext& context); [all …]
|
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_thread.cpp | 54 memset(&thread->arch_info.context, 0, sizeof(arch_context)); in arch_thread_init_kthread_stack() 55 thread->arch_info.context.sp = (addr_t)_stackTop; in arch_thread_init_kthread_stack() 56 thread->arch_info.context.s[0] = 0; // fp in arch_thread_init_kthread_stack() 57 thread->arch_info.context.s[1] = (addr_t)function; in arch_thread_init_kthread_stack() 58 thread->arch_info.context.s[2] = (addr_t)data; in arch_thread_init_kthread_stack() 59 thread->arch_info.context.ra = (addr_t)arch_thread_entry; in arch_thread_init_kthread_stack() 96 arch_context_switch(&from->arch_info.context, &to->arch_info.context); in arch_thread_context_switch() 189 signalFrameData->context.uc_mcontext.x[ 0] = frame->ra; in arch_setup_signal_frame() 190 signalFrameData->context.uc_mcontext.x[ 1] = frame->sp; in arch_setup_signal_frame() 191 signalFrameData->context.uc_mcontext.x[ 2] = frame->gp; in arch_setup_signal_frame() [all …]
|
/haiku/src/apps/cortex/Persistence/ |
H A D | IPersistent.h | 85 ExportContext& context) const=0; 94 ExportContext& context) const=0; 104 ExportContext& context) const { TOUCH(context); } in xmlExportContent() argument 111 ExportContext& context) const=0; 122 ImportContext& context) =0; 131 ImportContext& context) =0; 143 ImportContext& context) =0; 154 ImportContext& context) =0; 165 ImportContext& context) =0; 176 ImportContext& context) { in xmlImportChildBegin() argument [all …]
|
H A D | StringContent.cpp | 46 ExportContext& context) const { in xmlExportBegin() 47 context.reportError("StringContent: no export"); in xmlExportBegin() 50 ExportContext& context) const { in xmlExportAttributes() 51 context.reportError("StringContent: no export"); in xmlExportAttributes() 54 ExportContext& context) const { in xmlExportContent() 55 context.reportError("StringContent: no export"); in xmlExportContent() 58 ExportContext& context) const { in xmlExportEnd() 59 context.reportError("StringContent: no export"); in xmlExportEnd() 67 ImportContext& context) {} in xmlImportBegin() argument 72 ImportContext& context) {} in xmlImportAttribute() argument [all …]
|
/haiku/src/libs/libtelnet/ |
H A D | kerberos5.c | 96 static krb5_context context; variable 100 print_krb5_error(krb5_context context, krb5_error_code code, const char *msg) in print_krb5_error() argument 104 error_message = krb5_get_error_message(context, code); in print_krb5_error() 106 krb5_free_error_message(context, error_message); in print_krb5_error() 145 ret = krb5_init_context(&context); in kerberos5_init() 152 ret = krb5_kt_default(context, &kt); in kerberos5_init() 156 ret = krb5_kt_start_seq_get (context, kt, &cursor); in kerberos5_init() 158 krb5_kt_close (context, kt); in kerberos5_init() 161 krb5_kt_end_seq_get (context, kt, &cursor); in kerberos5_init() 162 krb5_kt_close (context, kt); in kerberos5_init() [all …]
|
/haiku/src/system/libroot/posix/ |
H A D | syslog.cpp | 40 syslog_context *context = (syslog_context *)malloc(sizeof(syslog_context)); in allocate_context() local 41 if (context == NULL) in allocate_context() 45 memcpy(context, &sTeamContext, sizeof(syslog_context)); in allocate_context() 46 return context; in allocate_context() 81 syslog_context *context = (syslog_context *)tls_get(sThreadContextSlot); in get_context() local 82 if (context == NULL) { in get_context() 86 *tls_address(sThreadContextSlot) = context = allocate_context(); in get_context() 88 if (context != NULL) in get_context() 89 return context; in get_context() 97 message_to_console(syslog_context *context, const char *text, va_list args) in message_to_console() argument [all …]
|
/haiku/src/libs/compat/openbsd_wlan/crypto/ |
H A D | sha2.c | 257 SHA256Init(SHA2_CTX *context) in SHA256Init() argument 259 memcpy(context->state.st32, sha256_initial_hash_value, in SHA256Init() 261 memset(context->buffer, 0, SHA256_BLOCK_LENGTH); in SHA256Init() 262 context->bitcount[0] = 0; in SHA256Init() 426 SHA256Update(SHA2_CTX *context, const void *dataptr, size_t len) in SHA256Update() argument 435 usedspace = (context->bitcount[0] >> 3) % SHA256_BLOCK_LENGTH; in SHA256Update() 442 memcpy(&context->buffer[usedspace], data, freespace); in SHA256Update() 443 context->bitcount[0] += freespace << 3; in SHA256Update() 446 SHA256Transform(context->state.st32, context->buffer); in SHA256Update() 449 memcpy(&context->buffer[usedspace], data, len); in SHA256Update() [all …]
|
/haiku/src/kits/interface/ |
H A D | PicturePlayer.cpp | 49 adapter_context* context = reinterpret_cast<adapter_context*>(_context); in move_pen_by() local 50 ((void (*)(void*, BPoint))context->function_table[1])(context->user_data, in move_pen_by() 58 adapter_context* context = reinterpret_cast<adapter_context*>(_context); in stroke_line() local 59 ((void (*)(void*, BPoint, BPoint))context->function_table[2])( in stroke_line() 60 context->user_data, start, end); in stroke_line() 67 adapter_context* context = reinterpret_cast<adapter_context*>(_context); in draw_rect() local 68 ((void (*)(void*, BRect))context->function_table[fill ? 4 : 3])( in draw_rect() 69 context->user_data, rect); in draw_rect() 77 adapter_context* context = reinterpret_cast<adapter_context*>(_context); in draw_round_rect() local 78 ((void (*)(void*, BRect, BPoint))context->function_table[fill ? 6 : 5])( in draw_round_rect() [all …]
|