Home
last modified time | relevance | path

Searched refs:bridge (Results 1 – 25 of 232) sorted by relevance

12345678910

/third_party/ltp/testcases/kernel/device-drivers/agp/kernel_space/
Dtagp.c580 struct agp_bridge_data *bridge = NULL; in test_pci_find_device() local
596 bridge = agp_alloc_bridge(); in test_pci_find_device()
597 if (!bridge) { in test_pci_find_device()
602 bridge->driver = &test_driver; in test_pci_find_device()
603 bridge->dev = pdev; in test_pci_find_device()
604 bridge->capndx = cap_ptr; in test_pci_find_device()
608 bridge->capndx + PCI_AGP_STATUS, in test_pci_find_device()
609 &bridge->mode); in test_pci_find_device()
611 pci_set_drvdata(pdev, bridge); in test_pci_find_device()
613 return agp_add_bridge(bridge); in test_pci_find_device()
[all …]
Dstr_agp.h172 #define A_IDX8(bridge) (A_SIZE_8((bridge)->driver->aperture_sizes) + i) argument
173 #define A_IDX16(bridge) (A_SIZE_16((bridge)->driver->aperture_sizes) + i) argument
174 #define A_IDX32(bridge) (A_SIZE_32((bridge)->driver->aperture_sizes) + i) argument
375 void agp_put_bridge(struct agp_bridge_data *bridge);
376 int agp_add_bridge(struct agp_bridge_data *bridge);
377 void agp_remove_bridge(struct agp_bridge_data *bridge);
398 int agp_3_5_enable(struct agp_bridge_data *bridge);
400 void get_agp_version(struct agp_bridge_data *bridge);
/third_party/rust/crates/cxx/book/src/
Dextern-rust.md5 #[cxx::bridge]
13 The `extern "Rust"` section of a CXX bridge declares Rust types and signatures
18 has the same path as the Rust source file containing the bridge, except with a
21 A bridge module may contain zero or more extern "Rust" blocks.
29 # #[cxx::bridge]
41 later passed a `&mut MultiBuf` back across the bridge to Rust.
48 module, the parent module of the CXX bridge. You can think of an opaque type `T`
60 crate that contains the bridge using them. This restriction may be lifted in the
63 The bridge's parent module will contain the appropriate imports or definitions
73 # #[cxx::bridge]
[all …]
Dreference.md1 {{#title The bridge module — Rust ♡ C++}}
2 # The bridge module reference
7 \#\[cxx::bridge\].
14 multiple bridge modules or different crates; using bindgen-generated data
15 structures across a CXX bridge; Rust orphan-rule-compatible way to request
16 that particular glue code be emitted in a specific bridge module.
Dextern-c++.md5 #[cxx::bridge]
16 The `extern "C++"` section of a CXX bridge declares C++ types and signatures to
20 A bridge module may contain zero or more extern "C++" blocks.
28 # #[cxx::bridge]
45 FFI bridge. For mutation support, the bridge is required to use `Pin<&mut
59 # #[cxx::bridge]
101 #[cxx::bridge]
137 #[cxx::bridge]
156 correct C++ type already exists outside of the current bridge module. This
161 #[cxx::bridge(namespace = "path::to")]
[all …]
Dattributes.md6 The top-level cxx::bridge attribute macro takes an optional `namespace` argument
11 #[cxx::bridge(namespace = "path::of::my::company")]
23 Additionally, a `#[namespace = "..."]` attribute may be used inside the bridge
26 namespace specified with the top level cxx::bridge attribute if any, otherwise
30 #[cxx::bridge(namespace = "third_priority")]
56 #[cxx::bridge]
Dshared.md8 Unlike opaque types, the FFI bridge is allowed to pass and return shared types
20 #[cxx::bridge]
108 #[cxx::bridge]
130 #[cxx::bridge]
150 #[cxx::bridge]
177 some header in the bridge and then declare your enum *additionally* as an extern
181 #[cxx::bridge]
207 bridge module.
223 #[cxx::bridge]
Dasync.md9 #[cxx::bridge]
34 // bridge.rs
38 #[cxx::bridge]
74 #include "path/to/bridge.rs.h"
/third_party/rust/crates/cxx/book/src/build/
Dbazel.md14 $ cxxbridge src/bridge.rs --header > path/to/bridge.rs.h
15 $ cxxbridge src/bridge.rs > path/to/bridge.rs.cc
84 ":bridge",
90 name = "bridge",
100 ":bridge/include",
Dcargo.md39 cxx_build::bridge("src/main.rs") // returns a cc::Build
63 `extern "C++"` section of your Rust cxx::bridge.
87 cxx_build::bridge(...)...
106 If your `#[cxx::bridge]` module contains an `extern "Rust"` block i.e. types or
192 cxx_build::bridge("src/bridge.rs").compile("demo");
222 cxx_build::bridge("src/bridge.rs").compile("demo");
273 cxx_build::bridge("src/bridge.rs")
304 cxx_build::bridge("src/bridge.rs").compile("demo");
Dother.md18 CXX's Rust code generation automatically happens when the `#[cxx::bridge]`
29 $ cxxbridge src/bridge.rs --header > path/to/bridge.rs.h
30 $ cxxbridge src/bridge.rs > path/to/bridge.rs.cc
/third_party/rust/crates/cxx/book/src/binding/
Dresult.md12 by the CXX bridge to return Result, the program calls C++'s `std::terminate`.
17 declared by the CXX bridge to return Result, a message is logged and the program
25 Note that the return type written inside of cxx::bridge must be written without
27 FFI. The Rust *implementation* (outside of the bridge module) may pick any error
33 #[cxx::bridge]
83 Note that the return type written inside of cxx::bridge must be written without
93 #[cxx::bridge]
113 headers `include!`'d by your cxx::bridge.
/third_party/rust/crates/cxx/tests/ui/
Dvec_opaque.rs1 #[cxx::bridge]
8 #[cxx::bridge]
19 #[cxx::bridge]
Dunpin_impl.stderr10 1 | #[cxx::bridge]
16 1 | #[cxx::bridge]
18 …= note: this error originates in the attribute macro `cxx::bridge` (in Nightly builds, run with -Z…
Dwrong_type_id.rs1 #[cxx::bridge(namespace = "folly")]
8 #[cxx::bridge(namespace = "folly")]
Dextern_type_bound.rs1 #[cxx::bridge]
8 #[cxx::bridge]
Dunique_ptr_twice.rs1 #[cxx::bridge]
10 #[cxx::bridge]
/third_party/rust/crates/cxx/demo/
DBUCK9 ":bridge",
15 name = "bridge",
27 ":bridge/include",
DBUILD11 ":bridge",
17 name = "bridge",
28 ":bridge/include",
/third_party/iptables/
Dbackport-ebtables-translate-Print-flush-command-after-parsing-is-finished.patch27 - printf("flush chain bridge %s %s\n", p.table, p.chain);
29 - printf("flush table bridge %s\n", p.table);
42 + printf("flush chain bridge %s %s\n", p.table, p.chain);
44 + printf("flush table bridge %s\n", p.table);
/third_party/rust/crates/cxx/gen/src/
Dmod.rs140 for bridge in syntax.modules { in generate()
144 bridge.attrs, in generate()
152 let ref namespace = bridge.namespace; in generate()
153 let trusted = bridge.unsafety.is_some(); in generate()
156 bridge.content, in generate()
/third_party/rust/crates/cxx/tests/
DBUCK32 ":bridge/source",
37 ":bridge/header",
45 name = "bridge",
DBUILD34 ":bridge/source",
39 ":bridge/include",
46 name = "bridge",
/third_party/rust/crates/cxx/book/diagram/
Doverview.tex23 …(bridge) at (0, .25) {\makecell{\texttt{\#\hspace{-1pt}[}cxx::bridge\texttt{]} mod\\[-4pt]descript…
32 \draw (bridge) -- (0, 4);
43 (-9.5, 0) -- (rust-bindings.south)+(0, .3) -- (9.5, 0) -- (bridge.north);
/third_party/toybox/toys/pending/
Dbrctl.c43 static void get_ports(char *bridge, int *indices)
52 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ);
58 void get_br_info(char *bridge, struct __bridge_info *info) in get_br_info() argument
65 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ); in get_br_info()
69 perror_msg("%s: can't get info %s\n", bridge, strerror(errno)); in get_br_info()

12345678910