| /system/host/abigen/ |
| A D | vdso_wrapper_generator.cpp | 18 if (wrapper->applies(sc)) { in none_apply() 26 if (sc.is_vdso() || none_apply(sc, wrappers_)) { in syscall() 36 pre_call(os, sc); in syscall() 40 post_call(os, sc, return_var); in syscall() 55 if (wrapper->applies(sc)) { in pre_call() 56 wrapper->preCall(os, sc); in pre_call() 63 if (wrapper->applies(sc)) { in post_call() 64 wrapper->postCall(os, sc, return_var); in post_call() 69 bool TestWrapper::applies(const Syscall& sc) const { in applies() 70 return sc.name == "syscall_test_wrapper"; in applies() [all …]
|
| A D | generator.cpp | 36 if (!sc.is_vdso()) { in syscall() 48 << " " << sc.index in syscall() 65 if (sc.is_vdso()) { in syscall() 68 os << "syscall_dispatch " << sc.num_kernel_args() << " " << sc.name << "\n"; in syscall() 73 if (sc.is_vdso()) in syscall() 77 os << define_prefix_ << sc.name << " " << sc.index << "\n"; in syscall() 87 if (sc.is_vdso()) in syscall() 91 os << "{" << sc.index << ", " << sc.num_kernel_args() << ", " in syscall() 138 if (sc.num_kernel_args() > 0) { in write_syscall_signature_line() 150 if (!sc.is_void_return()) { in write_syscall_return_var() [all …]
|
| A D | header_generator.cpp | 17 static vector<int> collect_nonnull(const Syscall& sc) { in collect_nonnull() argument 19 int out_idx = static_cast<int>(sc.arg_spec.size()); in collect_nonnull() 20 sc.for_each_return([&](const TypeSpec& type) { in collect_nonnull() 32 if (name_prefix.second(sc)) in syscall() 35 auto syscall_name = name_prefix.first + sc.name; in syscall() 40 os, sc, name_prefix.first, in syscall() 43 allow_pointer_wrapping_ && !sc.is_vdso(), in syscall() 47 const vector<int> nonnull = collect_nonnull(sc); in syscall() 61 for (const auto& attr : sc.attributes) { in syscall() 67 if (sc.ret_spec.size() > 0) in syscall() [all …]
|
| A D | json_generator.cpp | 27 os << " \"name\": \"" << sc.name << "\",\n"; in syscall() 32 index != sc.attributes.size(); ++index) { in syscall() 33 os << " \"" << sc.attributes[index] << "\""; in syscall() 34 if (index < sc.attributes.size() - 1) { in syscall() 45 os << "\"" << sc.top_description[i] << "\""; in syscall() 46 if (i < sc.top_description.size() - 1) { in syscall() 54 for (size_t i = 0; i < sc.requirements.size(); ++i) { in syscall() 57 os << "\"" << sc.requirements[i][j] << "\""; in syscall() 58 if (j < sc.requirements[i].size() - 1) { in syscall() 62 if (i < sc.requirements.size() - 1) { in syscall() [all …]
|
| A D | kernel_wrapper_generator.cpp | 18 auto syscall_name = name_prefix + sc.name; in write_syscall_signature_line() 23 sc.for_each_kernel_arg([&](const TypeSpec& arg) { in write_syscall_signature_line() 39 if (sc.is_vdso()) in syscall() 42 auto syscall_name = syscall_prefix_ + sc.name; in syscall() 43 write_syscall_signature_line(os, sc, wrapper_prefix_); in syscall() 45 << define_prefix_ << sc.name << ", " in syscall() 47 << "&VDso::ValidSyscallPC::" << sc.name << ", " in syscall() 51 for (const TypeSpec& arg : sc.arg_spec) { in syscall() 67 sc.for_each_return([&](const TypeSpec& arg) { in syscall() 90 << (sc.is_noreturn() ? "/*noreturn*/ " : "auto result = ") in syscall() [all …]
|
| A D | vdso_wrapper_generator.h | 19 bool syscall(std::ofstream& os, const Syscall& sc) override; 22 void pre_call(std::ofstream& os, const Syscall& sc) const; 23 void post_call(std::ofstream& os, const Syscall& sc, std::string return_var) const; 33 bool applies(const Syscall& sc) const override; 35 void preCall(std::ofstream& os, const Syscall& sc) const override; 37 void postCall(std::ofstream& os, const Syscall& sc, std::string return_var) const override; 44 bool applies(const Syscall& sc) const override; 45 void preCall(std::ofstream& os, const Syscall& sc) const override; 46 void postCall(std::ofstream& os, const Syscall& sc, std::string return_var) const override;
|
| A D | rust_binding_generator.cpp | 24 bool RustBindingGenerator::syscall(std::ofstream& os, const Syscall& sc) { in syscall() argument 25 os << " pub fn zx_" << sc.name << "("; in syscall() 28 sc.for_each_kernel_arg([&](const TypeSpec& arg) { in syscall() 37 if (sc.num_kernel_args() > 0) { in syscall() 43 if (sc.return_type() != "void") { in syscall() 44 os << " -> " << map_override(sc.return_type(), rust_primitives); in syscall()
|
| A D | generator.h | 17 virtual bool syscall(std::ofstream& os, const Syscall& sc) = 0; 27 virtual bool applies(const Syscall& sc) const = 0; 28 virtual void preCall(std::ofstream& os, const Syscall& sc) const {} in preCall() argument 45 bool syscall(std::ofstream& os, const Syscall& sc) override; 59 bool syscall(std::ofstream& os, const Syscall& sc) override; 70 bool syscall(std::ofstream& os, const Syscall& sc) override; 76 bool syscall(std::ofstream& os, const Syscall& sc) override; 87 bool syscall(std::ofstream& os, const Syscall& sc) override; 99 bool syscall(std::ofstream& os, const Syscall& sc) override; 113 bool syscall(std::ofstream& os, const Syscall& sc) override; [all …]
|
| A D | abigen_generator.cpp | 53 static bool skip_internal(const Syscall& sc) { in skip_internal() argument 54 return sc.is_internal(); in skip_internal() 57 static bool skip_vdso(const Syscall& sc) { in skip_vdso() argument 58 return sc.is_vdso(); in skip_vdso() 213 [&generator, &ofile](const Syscall& sc) { in generate_one() argument 214 return generator.syscall(ofile, sc); in generate_one()
|
| A D | header_generator.h | 32 bool syscall(std::ofstream& os, const Syscall& sc) override;
|
| /system/dev/usb/xhci/ |
| A D | xhci-device-manager.cpp | 77 bool enumerating = slot->sc == nullptr; in xhci_address_device() 112 memset(sc, 0, xhci->context_size); in xhci_address_device() 303 slot->sc = nullptr; in xhci_disable_slot() 736 memset(sc, 0, xhci->context_size); in xhci_enable_endpoint() 800 XHCI_WRITE32(&sc->sc0, XHCI_READ32(&slot->sc->sc0)); in xhci_enable_endpoint() 801 XHCI_WRITE32(&sc->sc1, XHCI_READ32(&slot->sc->sc1)); in xhci_enable_endpoint() 802 XHCI_WRITE32(&sc->sc2, XHCI_READ32(&slot->sc->sc2)); in xhci_enable_endpoint() 856 memset(sc, 0, xhci->context_size); in xhci_configure_hub() 859 XHCI_WRITE32(&sc->sc0, XHCI_READ32(&slot->sc->sc0) | SLOT_CTX_HUB); in xhci_configure_hub() 860 XHCI_WRITE32(&sc->sc1, XHCI_READ32(&slot->sc->sc1)); in xhci_configure_hub() [all …]
|
| A D | xhci.h | 73 const xhci_slot_context_t* sc; member
|
| A D | xhci-transfer.cpp | 386 if (!slot->sc) { in xhci_queue_transfer()
|
| A D | xhci.cpp | 363 return XHCI_GET_BITS32(&slot->sc->sc3, SLOT_CTX_SLOT_STATE_START, in xhci_get_slot_ctx_state()
|