Searched refs:sc (Results 1 - 17 of 17) sorted by relevance

/fuchsia/zircon/kernel/lib/libc/string/
H A Dstrnlen.c14 const char *sc; local
16 for (sc = s; count-- && *sc != '\0'; ++sc)
18 return sc - s;
/fuchsia/zircon/system/host/abigen/
H A Dvdso_wrapper_generator.cpp16 static bool none_apply(const Syscall& sc, const std::vector<CallWrapper*> wrappers) { argument
18 if (wrapper->applies(sc)) {
25 bool VdsoWrapperGenerator::syscall(ofstream& os, const Syscall& sc) { argument
26 if (sc.is_vdso() || none_apply(sc, wrappers_)) {
32 write_syscall_signature_line(os, sc, wrapper_prefix_, "", " ", false, "");
35 std::string return_var = write_syscall_return_var(os, sc);
36 pre_call(os, sc);
39 write_syscall_invocation(os, sc, return_var, call_prefix_);
40 post_call(os, sc, return_va
61 post_call(ofstream& os, const Syscall& sc, string return_var) const argument
78 postCall(ofstream& os, const Syscall& sc, string return_var) const argument
90 postCall( ofstream& os, const Syscall& sc, string return_var) const argument
[all...]
H A Dgenerator.cpp35 bool VDsoAsmGenerator::syscall(ofstream& os, const Syscall& sc) { argument
36 if (!sc.is_vdso()) {
37 bool is_public = !sc.is_internal();
39 if (wrapper->applies(sc)) {
47 << " " << name_prefix_ << sc.name
48 << " " << sc.index
49 << " " << sc.num_kernel_args()
64 bool KernelBranchGenerator::syscall(ofstream& os, const Syscall& sc) { argument
65 if (sc.is_vdso()) {
68 os << "syscall_dispatch " << sc
72 syscall(ofstream& os, const Syscall& sc) argument
86 syscall(ofstream& os, const Syscall& sc) argument
97 syscall(ofstream& os, const Syscall& sc) argument
111 os << " SYSCALL_IN_CATEGORY(" << *sc << ")\\n"; local
118 write_syscall_signature_line(ofstream& os, const Syscall& sc, string name_prefix, string before_args, string inter_arg, bool wrap_pointers_with_user_ptr, string no_args_type) argument
148 write_syscall_return_var(ofstream& os, const Syscall& sc) argument
156 write_syscall_invocation(ofstream& os, const Syscall& sc, const string& return_var, const string& name_prefix) argument
[all...]
H A Dheader_generator.cpp17 static vector<int> collect_nonnull(const Syscall& sc) { argument
19 int out_idx = sc.arg_spec.size();
20 sc.for_each_return([&](const TypeSpec& type) {
28 bool HeaderGenerator::syscall(std::ofstream& os, const Syscall& sc) { argument
32 if (name_prefix.second(sc))
35 auto syscall_name = name_prefix.first + sc.name;
40 os, sc, name_prefix.first,
43 allow_pointer_wrapping_ && !sc.is_vdso(),
47 const vector<int> nonnull = collect_nonnull(sc);
61 for (const auto& attr : sc
[all...]
H A Drust_binding_generator.cpp24 bool RustBindingGenerator::syscall(std::ofstream& os, const Syscall& sc) { argument
25 os << " pub fn zx_" << sc.name << "(";
28 sc.for_each_kernel_arg([&](const TypeSpec& arg) {
37 if (sc.num_kernel_args() > 0) {
43 if (sc.return_type() != "void") {
44 os << " -> " << map_override(sc.return_type(), rust_primitives);
H A Dvdso_wrapper_generator.h19 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;
H A Dkernel_wrapper_generator.cpp17 static void write_syscall_signature_line(ofstream& os, const Syscall& sc, string name_prefix) { argument
18 auto syscall_name = name_prefix + sc.name;
23 sc.for_each_kernel_arg([&](const TypeSpec& arg) {
38 bool KernelWrapperGenerator::syscall(ofstream& os, const Syscall& sc) { argument
39 if (sc.is_vdso())
42 auto syscall_name = syscall_prefix_ + sc.name;
43 write_syscall_signature_line(os, sc, wrapper_prefix_);
45 << define_prefix_ << sc.name << ", "
47 << "&VDso::ValidSyscallPC::" << sc.name << ", "
51 for (const TypeSpec& arg : sc
[all...]
H A Dgenerator.h17 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 {}
29 virtual void postCall(std::ofstream& os, const Syscall& sc, std::string return_var) const {} 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) overrid
[all...]
H A Djson_generator.cpp20 bool JsonGenerator::syscall(std::ofstream& os, const Syscall& sc) { argument
27 os << " \"name\": \"" << sc.name << "\",\n";
32 index != sc.attributes.size(); ++index) {
33 os << " \"" << sc.attributes[index] << "\"";
34 if (index < sc.attributes.size() - 1) {
45 sc.for_each_kernel_arg([&](const TypeSpec& arg) {
93 os << " \"return_type\": \"" << sc.return_type() << "\"\n";
H A Dabigen_generator.cpp53 static bool skip_internal(const Syscall& sc) { argument
54 return sc.is_internal();
57 static bool skip_vdso(const Syscall& sc) { argument
58 return sc.is_vdso();
198 [&generator, &ofile](const Syscall& sc) {
199 return generator.syscall(ofile, sc);
H A Dheader_generator.h32 bool syscall(std::ofstream& os, const Syscall& sc) override;
/fuchsia/zircon/system/dev/usb/xhci/
H A Dxhci-device-manager.c40 uint32_t route = XHCI_GET_BITS32(&hub_slot->sc->sc0, SLOT_CTX_ROUTE_STRING_START,
68 if (slot->sc)
97 xhci_slot_context_t* sc = (xhci_slot_context_t*)&xhci->input_context[1 * xhci->context_size]; local
100 memset((void*)sc, 0, xhci->context_size);
103 slot->sc = (xhci_slot_context_t*)device_context;
115 XHCI_SET_BITS32(&sc->sc0, SLOT_CTX_ROUTE_STRING_START, SLOT_CTX_ROUTE_STRING_BITS,
117 XHCI_SET_BITS32(&sc->sc0, SLOT_CTX_SPEED_START, SLOT_CTX_SPEED_BITS, speed);
118 XHCI_SET_BITS32(&sc->sc0, SLOT_CTX_CONTEXT_ENTRIES_START, SLOT_CTX_CONTEXT_ENTRIES_BITS, 1);
119 XHCI_SET_BITS32(&sc->sc1, SLOT_CTX_ROOT_HUB_PORT_NUM_START, SLOT_CTX_ROOT_HUB_PORT_NUM_BITS,
127 tt_hub_slot_id = XHCI_GET_BITS32(&hub_slot->sc
615 xhci_slot_context_t* sc = (xhci_slot_context_t*)&xhci->input_context[1 * xhci->context_size]; local
736 xhci_slot_context_t* sc = (xhci_slot_context_t*)&xhci->input_context[1 * xhci->context_size]; local
[all...]
H A Dxhci.h72 const xhci_slot_context_t* sc; member in struct:xhci_slot
73 // epcs point into DMA memory past sc
H A Dxhci-transfer.c376 if (!slot->sc) {
H A Dxhci.c355 return XHCI_GET_BITS32(&slot->sc->sc3, SLOT_CTX_SLOT_STATE_START,
/fuchsia/zircon/third_party/ulib/musl/third_party/math/
H A Derfl.c226 /* erfc(1/x) = x exp (-1/x^2 - 0.5625 + rc(x^2)/sc(x^2))
238 sc[] = { variable
288 S = sc[0] + s * (sc[1] + s * (sc[2] + s * (sc[3] + s * (sc[4] + s))));
/fuchsia/zircon/third_party/ulib/backtrace/
H A Dpecoff.c133 uint16_t sc; member in struct:__anon1546
311 isym->sc = sym->storage_class;

Completed in 101 milliseconds