| /linux/rust/syn/ |
| H A D | attr.rs | 13 use crate::path::Path; 188 pub fn path(&self) -> &Path { in path() argument 249 Meta::Path(path) => Err(crate::error::new2( in parse_args_with() 476 Path(Path), 490 pub path: Path, 500 pub path: Path, 511 pub fn path(&self) -> &Path { in path() argument 513 Meta::Path(path) => path, in path() 522 pub fn require_path_only(&self) -> Result<&Path> { in require_path_only() argument 524 Meta::Path(path) => return Ok(path), in require_path_only() [all …]
|
| H A D | path.rs | 16 pub struct Path { 22 impl<T> From<T> for Path implementation 27 let mut path = Path { in from() 36 impl Path { impl 302 ParenthesizedGenericArguments, Path, PathArguments, PathSegment, QSelf, 311 impl Parse for Path { implementation 331 Type::Path(mut ty) in parse() 402 argument = Type::Path(ty); in parse() 421 return Ok(Expr::Path(ExprPath { in const_argument() 424 path: Path::from(ident), in const_argument() [all …]
|
| H A D | restriction.rs | 3 use crate::path::Path; 37 pub path: Box<Path>, 68 use crate::path::Path; 119 path: Box::new(Path::from(path)), in parse_pub() 124 let path = content.call(Path::parse_mod_style)?; in parse_pub()
|
| H A D | meta.rs | 9 use crate::path::{Path, PathSegment}; 167 pub path: Path, 405 fn parse_meta_path(input: ParseStream) -> Result<Path> { in parse_meta_path() argument 406 Ok(Path { in parse_meta_path()
|
| H A D | pat.rs | 6 use crate::path::{Path, QSelf}; 54 Path(PatPath), 177 pub path: Path, 200 pub path: Path, 256 use crate::path::{self, Path, QSelf}; 450 Ok(Pat::Path(ExprPath { in pat_path_or_macro_or_struct_or_range() 498 path: Path, in pat_tuple_struct() argument 523 fn pat_struct(input: ParseStream, qself: Option<QSelf>, path: Path) -> Result<PatStruct> { in pat_struct() 606 fn pat_range(input: ParseStream, qself: Option<QSelf>, path: Path) -> Result<Pat> { in pat_range() 614 start: Some(Box::new(Expr::Path(ExprPath { in pat_range() [all …]
|
| H A D | classify.rs | 8 use crate::path::{Path, PathArguments}; 57 | Expr::Path(_) in requires_comma_to_be_match_arm() 84 Type::Path(t) => match last_type_in_path(&t.path) { in trailing_unparameterized_path() 107 fn last_type_in_path(path: &Path) -> ControlFlow<bool, &Type> { in trailing_unparameterized_path() 168 | Expr::Path(_) in expr_leading_label() 239 | Expr::Path(_) in expr_trailing_brace() 258 Type::Path(t) => match last_type_in_path(&t.path) { in expr_trailing_brace() 281 fn last_type_in_path(path: &Path) -> Option<&Type> { in expr_trailing_brace()
|
| H A D | mac.rs | 7 use crate::path::Path; 20 pub path: Path, 179 use crate::path::Path; 186 path: input.call(Path::parse_mod_style)?, in parse()
|
| H A D | ty.rs | 10 use crate::path::{Path, QSelf}; 53 Path(TypePath), 178 pub path: Path, 286 use crate::path::{Path, PathArguments, QSelf}; 330 if let Type::Path(mut ty) = *group.elem { in ambig_ty() 331 Path::parse_rest(input, &mut ty.path, false)?; in ambig_ty() 332 return Ok(Type::Path(ty)); in ambig_ty() 334 return Ok(Type::Path(TypePath { in ambig_ty() 342 path: Path::parse_helper(input, false)?, in ambig_ty() 348 if let Type::Path(mut ty) = *group.elem { in ambig_ty() [all …]
|
| /linux/tools/testing/selftests/net/lib/py/ |
| H A D | ynl.py | 4 from pathlib import Path 43 super().__init__((SPEC_PATH / Path('ethtool.yaml')).as_posix(), 49 super().__init__((SPEC_PATH / Path('rt-link.yaml')).as_posix(), 54 super().__init__((SPEC_PATH / Path('rt-addr.yaml')).as_posix(), 59 super().__init__((SPEC_PATH / Path('netdev.yaml')).as_posix(), 64 super().__init__((SPEC_PATH / Path('net_shaper.yaml')).as_posix(), 70 super().__init__((SPEC_PATH / Path('nlctrl.yaml')).as_posix(), 76 super().__init__((SPEC_PATH / Path('devlink.yaml')).as_posix(), 81 super().__init__((SPEC_PATH / Path('psp.yaml')).as_posix(),
|
| H A D | consts.py | 4 from pathlib import Path 6 KSFT_DIR = (Path(__file__).parent / "../../..").resolve() 7 KSRC = (Path(__file__).parent / "../../../../../..").resolve() 9 KSFT_MAIN_NAME = Path(sys.argv[0]).with_suffix("").name
|
| /linux/scripts/ |
| H A D | rustdoc_test_gen.rs | 35 path::{Path, PathBuf}, 48 fn find_real_path<'a>(srctree: &Path, valid_paths: &'a mut Vec<PathBuf>, file: &str) -> &'a str { in find_real_path() argument 53 find_candidates(srctree, valid_paths, Path::new(""), &potential_components); in find_real_path() 55 srctree: &Path, in find_real_path() argument 57 prefix: &Path, in find_real_path() argument 71 Path::new("rust/kernel") in find_real_path() 111 let srctree = Path::new(&srctree); in main()
|
| H A D | generate_rust_analyzer.py | 51 proc_macro_dylib_path: str # `pathlib.Path` is not JSON serializable. 59 srctree: pathlib.Path, 60 objtree: pathlib.Path, 61 sysroot_src: pathlib.Path, 62 external_src: Optional[pathlib.Path], 78 def get_crate_name(path: pathlib.Path) -> str: 83 root_module: pathlib.Path, 109 root_module: pathlib.Path, 147 root_module: pathlib.Path, 310 def is_root_crate(build_file: pathlib.Path, targe [all...] |
| /linux/tools/net/sunrpc/xdrgen/generators/ |
| H A D | __init__.py | 5 from pathlib import Path 18 Path(__file__).parent.parent / "templates" / language / xdr_type 55 return Path(filename).stem.upper()
|
| /linux/tools/testing/selftests/drivers/net/lib/py/ |
| H A D | __init__.py | 13 from pathlib import Path 15 KSFT_DIR = (Path(__file__).parent / "../../../..").resolve()
|
| H A D | env.py | 7 from pathlib import Path 21 test_dir: Path to the source directory of the test 22 net_lib_dir: Path to the net/lib directory 25 self.src_path = Path(src_path) 27 self.net_lib_dir = (Path(__file__).parent / "../../../../net/lib").resolve() 37 src_dir = Path(self.src_path).parent.resolve()
|
| /linux/tools/testing/selftests/drivers/net/hw/lib/py/ |
| H A D | __init__.py | 13 from pathlib import Path 15 KSFT_DIR = (Path(__file__).parent / "../../../../..").resolve()
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | README | 74 Path: /sys/kernel/debug/libertas_wireless/ethX/registers/ 97 Path: /sys/kernel/debug/libertas_wireless/ethX/ 117 Path: /sys/kernel/debug/libertas_wireless/ethX/subscribed_events/ 167 Path: /sys/kernel/debug/libertas_wireless/ethX/ 181 Path: /sys/kernel/debug/libertas_wireless/ethX/ 190 Path: /sys/kernel/debug/libertas_wireless/ethX/ 233 Path: /sys/kernel/debug/libertas_wireless/ethX/
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | conftest.py | 15 from pathlib import Path 68 Path("/lib/modules/")
|
| H A D | base.py | 19 from pathlib import Path 232 sysfs_path = Path("/sys/bus/hid/drivers") 238 sysfs_path = Path("/sys/module") / kernel_module.replace("-", "_") 254 script_dir = Path(os.path.dirname(os.path.realpath(__file__)))
|
| H A D | base_device.py | 39 from pathlib import Path 221 def __init__(self: "EvdevDevice", sysfs: Path) -> None: argument 244 def evdev(self: "EvdevDevice") -> Path: 245 return Path("/dev/input") / self.sysfs.name
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-uevent.rst | 52 :Value: Path name in the form of "Major:Minor" 78 1.) Path failure:: 95 2.) Path reinstate::
|
| /linux/tools/perf/tests/shell/lib/ |
| H A D | perf_metric_validation.py | 6 from pathlib import Path 80 with open(Path(filename).resolve(), "r") as f: 89 parent = Path(output_file).parent 588 outpath = Path(args.output_dir) 589 reportf = Path.joinpath(outpath, 'perf_report.json') 590 fullrule = Path.joinpath(outpath, 'full_rule.json') 591 datafile = Path.joinpath(outpath, 'perf_data.json')
|
| /linux/rust/pin-init/internal/src/ |
| H A D | init.rs | 11 token, Attribute, Block, Expr, ExprCall, ExprPath, Ident, Path, Token, Type, 19 path: Path, 197 Expr::Path(ExprPath { 201 Path { 358 path: &Path,
|
| /linux/tools/net/sunrpc/xdrgen/ |
| H A D | xdrgen | 13 from pathlib import Path 16 _XDRGEN_DIR = Path(__file__).resolve().parent
|
| /linux/drivers/tty/vt/ |
| H A D | gen_ucs_recompose_table.py | 19 from pathlib import Path 20 this_file = Path(__file__).name
|